summaryrefslogtreecommitdiff
path: root/Test/stratifiedinline/bar1.bpl
blob: bd210f70f5ad5476f6339a236ee3baa21fab7c55 (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
var x: int;
var y: int;

procedure bar()
modifies y;
{
  y := y + 1;
}

procedure foo() 
modifies x, y;
{
  x := x + 1;
  call bar();
  call bar();
  x := x + 1;
}

procedure {:entrypoint} main()
modifies x, y;
{
  assume x == y;
  call foo();
  assume x == y;
}