| CS 3304: Comparative Languages |
| Semantics |
| [ Course Documents ] : [ Semantics ] | ||||||||
|
P => I (the loop invariant must be true initially)
{I} B {I} (evaluation of the Boolean must not change the validity of I)
{I and B} S {I} (I is not changed by executing the body of the loop)
(I and (not B)) => Q (if I is true and B is false, Q is implied)