mirror of
https://github.com/AdaCore/why3.git
synced 2026-02-12 12:34:55 -08:00
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
15 lines
178 B
Plaintext
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 }
|