summaryrefslogtreecommitdiff
path: root/Test/stratifiedinline/bar1.bpl
blob: 11256950c095e14c5028e767f61c12bd0eeff8e5 (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
// RUN: %boogie -stratifiedInline:1 -vc:i "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
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;
}