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 'fix_another_sessions' into 'master'
[why3.git]
/
tests
/
old.mlw
blob
08b81e71ddfe97fd6535bc316a9a1ed784dac98a
1
2
3
module T
4
5
use int.Int
6
use module ref.Ref
7
8
val x : ref int
9
10
val f () : { } unit writes x { !x = !(old x) + 1 }
11
12
let t () =
13
x := 3;
14
f ();
15
assert { !x = 5 }
16
17
18
end
19