summaryrefslogtreecommitdiff
path: root/Test/inline/test6.bpl
blob: 394be89e49a43af8c378c58b3d440bad790e910d (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
33
34
35
36
37
procedure {:inline 2} foo()
  modifies x;
{
  x := x + 1;
  call foo();
}

procedure {:inline 2} foo1()
  modifies x;
{
  x := x + 1;
  call foo2();
}

procedure {:inline 2} foo2()
  modifies x;
{
  x := x + 1;
  call foo3();
}

procedure {:inline 2} foo3()
  modifies x;
{
  x := x + 1;
  call foo1();
}

var x:int;

procedure  bar()
  modifies x;
{
  call foo();
  call foo1();
}