Merge branch '863-forward-propagation-strategy-accept-optionnal-arguments' into ...
[why3.git] / examples / incremental.mlw
blobdbe780d28143a697c2b7b29489d9c2fec2dcd34f
1 module Ce_int32
3   use ref.Ref
4   use export mach.int.Int32
6   meta "meta_incremental" ""
8   let dummy_update (r: ref int32)
9     requires { to_int !r = 22}
10     ensures {to_int !r = 42} =
11     r := of_int 42;
12     r := !r + !r;
14 end
17 module Ce_interesting
19   use int.Int
20   use ref.Ref
21   use export mach.int.Int32
23   meta "meta_incremental" ""
25   let dummy_update (r: ref int32)
26     requires { to_int !r > 22}
27     ensures {to_int !r <= 42} =
28     r := of_int 42;
29     r := !r + !r;
31 end