Assignment wp
wp( x := E,Q(x)) = Q(E)
For a condition Q(X) to be true after execution of x := E, the condition Q(E) must hold beforehand
wp( j := j+1, j <= 1) = (j <= 0)
What about side effects?
Previous slide
Next slide
Back to first slide
View graphic version