AllanBlanchard / tutoriel_wp

Frama-C and WP tutorial
Other
49 stars 17 forks source link

typo in ch4, Section 4.1.1. first formula #23

Closed alexioslyrakis closed 3 years ago

alexioslyrakis commented 3 years ago

This is a typo in ch4, Section 4.1.1. first formula.

AllanBlanchard commented 3 years ago

Hum, no this is not a typo. The formula is either $$wp(x = E , Post) := Post[x \leftarrow E]$$ or $$wp(x = E , P) := P[x \leftarrow E]$$. Here, I first talk about Post, and then explain what this notation means for any property P.

alexioslyrakis commented 3 years ago

Oh I see, so the latter example P = wp(x = 43 * c, {x = 258}) could also be written as {x = 258}[x <- 43 * c] ?

AllanBlanchard commented 3 years ago

Exactly

alexioslyrakis commented 3 years ago

Thanks, all this notation is new to me and it's a bit tricky :) I close the request