Skip to content

Commit

Permalink
add if_minus_plus_reloaded exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
kamalfarahani committed Jun 20, 2021
1 parent 106fe81 commit b3cd5da
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plf/Hoare2.v
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,15 @@ These decorations were constructed as follows:
{{ True }}
if X <= Y then
{{ }} ->>
{{ }}
{{ True /\ X <= Y }} ->>
{{ Y = X + (Y - X) }}
Z := Y - X
{{ }}
{{ Y = X + Z }}
else
{{ }} ->>
{{ }}
{{ True /\ ~(X <= Y) }} ->>
{{ X + Z = X + Z }}
Y := X + Z
{{ }}
{{ Y = X + Z }}
end
{{ Y = X + Z }}
Expand Down

0 comments on commit b3cd5da

Please sign in to comment.