mirror of
https://github.com/AdaCore/why3.git
synced 2026-02-12 12:34:55 -08:00
17 lines
211 B
Plaintext
17 lines
211 B
Plaintext
module Bad
|
|
|
|
use int.Int
|
|
use ref.Ref
|
|
|
|
let f (x y : ref int) : unit
|
|
requires { !x = !y }
|
|
ensures { !x = !y + 1 }
|
|
= x := !x + 1
|
|
|
|
let g () : unit =
|
|
let r = ref 0 in
|
|
f r r;
|
|
absurd
|
|
|
|
end
|