AllanBlanchard / tutoriel_wp

Frama-C and WP tutorial
Other
55 stars 16 forks source link

typo in ch4, Section 4.1.1. first formula #23

Closed alexioslyrakis closed 4 years ago

alexioslyrakis commented 4 years ago

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

AllanBlanchard commented 4 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 4 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 4 years ago

Exactly

alexioslyrakis commented 4 years ago

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