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
/
func_call1_mono.mlw
blob
3af7ada0222c0796bbc1701798a92b362be7ef2f
1
2
use int.Int
3
4
type t = { mutable c : int }
5
6
val z: t
7
8
let g (x: int)
9
writes { z.c }
10
ensures { z.c > old z.c }
11
ensures { result = x + 1 }
12
= z.c <- z.c + 1;
13
x + 1
14
15
let f () =
16
z.c <- 0;
17
let w = g 2 + 3 in
18
assert { z.c = 1 }