mirror of
https://github.com/AdaCore/why3.git
synced 2026-02-12 12:34:55 -08:00
13 lines
165 B
Plaintext
13 lines
165 B
Plaintext
|
|
use int.Int
|
|
|
|
val ref x : int
|
|
|
|
let main [@infer] [@bddinfer] () diverges
|
|
=
|
|
x <- 0;
|
|
while x <= 100 do
|
|
x <- x + 1;
|
|
done;
|
|
[@bddinfer:check0] assert { x = 101 }
|