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 '878-span-file-resolution-logic-different-for-module-identifiers' into...
[why3.git]
/
examples
/
bts
/
353.mlw
blob
c15f24772fe42b289aba6d548808a177e2eadd92
1
2
module M
3
4
use int.Int
5
use ref.Ref
6
7
let f (a: ref int)
8
requires { !a = 42 }
9
ensures { !a = 2 + old !a + result } =
10
a := 0;
11
a := 1;
12
!a+1
13
14
let g (a: ref int)
15
requires { !a = 42 }
16
ensures { !a = 2 + old !a + result } =
17
a := 0;
18
a := 1;
19
let b = !a + !a in
20
b+1
21
22
end