Files
why3/bench/infer/while_loop_bis.mlw
Claude Marche e6a11b4b11 complements on BDDinfer
support for unary -, div and mod in logic

support for <-> in logic

support for calls inside conditions of if and while

support for `check`

fixed compilation warnings
2023-01-20 17:38:10 +01:00

15 lines
178 B
Plaintext

use int.Int
use ref.Ref
val ref x : int
let main [@bddinfer] () diverges
=
x <- 0;
while x <= 100 do
x <- x * x + 1;
done;
assert { x >= 101 };
assert { x <= 10001 }