blob: baad27a1df0e84e4d23f46fb7110c478c8334cfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
var x: int;
var y: int;
procedure boogie_si_record_int(x:int);
procedure {:inline 1} bar()
modifies y;
{
y := y + 1;
call boogie_si_record_int(y);
}
procedure {:inline 1} foo()
modifies x, y;
{
call boogie_si_record_int(x);
x := x + 1;
call bar();
call bar();
x := x + 1;
call boogie_si_record_int(x);
}
procedure main()
requires x == 0;
requires x == y;
ensures x != y;
modifies x, y;
{
call foo();
}
|