















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















8
1 2
2
1
10
p condition S q
p condition q
p condition S q
{if then }
if x > y then y:=x is correct w.r.t the initial assertion T and the final assertion y≥x
13
p condition S S q
p condition S q
p condition S q
{if then else }
1 2
2
1
if x < 0 then abs:=-x else abs:=x is correct w.r.t. the initial assertion T and the final assertion abs=|x|
17
{while }( )
( ){ } p condition S condition p
p condition S p ∴ ¬ ∧
∧