Files
why3/bench/infer/while_loop_ref.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
183 B
Plaintext

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