Files
why3/bench/programs/bad-typing/effect7.mlw
2018-06-15 17:08:09 +02:00

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