Skip to content

Commit

Permalink
fix example of abrupt termination
Browse files Browse the repository at this point in the history
  • Loading branch information
Laplace-Demon committed Jul 4, 2024
1 parent de635e6 commit aa20817
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ int main(void) {
owi_assume(x >= 0);
owi_assume(x <= 20);
while (x > 0) {
/*@ returns \result % 5 == 0 && (\result + 1) % 7 != 0 && (\result + 2) % 11 != 0 && \result == \at(x, Pre) - 2;
/*@ returns \result % 5 == 0 && (\result + 1) % 7 != 0 && (\result + 2) % 11 != 0 && \result == \old(x) - 2;
@ ensures (x + 1) % 5 != 0 && (x + 2) % 7 != 0 && (x + 3) % 11 != 0 && x == \old(x) - 3;
*/
{
Expand Down

0 comments on commit aa20817

Please sign in to comment.