Merge branch 'upgrade_proofs_coq_8_11_to_8_16' into 'master'
[why3.git] / bench / check-ce / result.mlw
blob92d91cb685f4c206240c6df5dc0cfcfcb4f574ed
2 module M
4   use int.Int
5   use ref.Ref
7   val a : ref int
9   let p1 (b : ref int) : int
10     requires { 0 <= !a <= 10 /\ 3 <= !b <= 17 }
11     ensures  { 17 <= !a + result <= 42 }
12   = a := !a + !b;
13     !a + 1
16 let f (a [@model] [@model_trace:A]: ref int)
17   requires { !a = 42 }
18   ensures { !a = 2 + old !a + result } =
19   a := 0;
20   a := 1;
21   !a+1
23 end