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_call5_mono.mlw
blob
2627c8e65d3f10d4f07ba487b75a307fa6a936a4
1
2
3
use int.Int
4
5
type t = { mutable c : int }
6
7
let g1 (y: int)
8
requires { y > 0 }
9
ensures { result.c >= y }
10
= { c = y }
11
12
let f1 (x : int)
13
requires { x > 0 }
14
=
15
let z = g1 x in
16
assert { z.c = x }
17
18
let g2 (y: int) = { c = y + 1 }
19
20
let f2 (x: int) =
21
let z = g2 x in
22
assert { z.c = x }