repo.or.cz
/
why3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'upgrade_proofs_coq_8_11_to_8_16' into 'master'
[why3.git]
/
bench
/
check-ce
/
result.mlw
blob
92d91cb685f4c206240c6df5dc0cfcfcb4f574ed
1
2
module M
3
4
use int.Int
5
use ref.Ref
6
7
val a : ref int
8
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
14
15
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
22
23
end