summaryrefslogtreecommitdiff
path: root/Test/stratifiedinline/bar1.bpl
blob: 48cef01fe37878ff048ad432ae64bf0477d4c91c (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;
}