Semantics of statements
In the example, I appealed to your intuition about what := does
But a more precise definition is needed
This is often done using weakest preconditions (wp’s) [Dijkstra]
- wp(S,Q) is the weakest condition that must be true beforehand so that S terminates in a state such that Q is true
When S is a language construct, wp defines its semantics