CS 3304: Comparative Languages |
Semantics |
[ Course Documents ] : [ Semantics ] | ||||||||
|
while y <> x do y:= y+1 {y = x} {P?} y := y + 1 {y = x} P = {y = x}y -> y + 1 = {y = x-1} --last iteration {P?} y := y + 1 {y = x-1} P = {y = x-1}y -> y + 1 = {y = x-2} --next to last