summaryrefslogtreecommitdiff
path: root/Test/lazyinline/fooret.bpl
blob: c81baaf1231c1e93ee382aacd9e892e71bae0e0a (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

procedure A()
{
  var x : int;
  var y : int;
  var nondet: bool;

start:
  x := 0;
  assume y == 2;
  goto lh;

lh:
  goto lab1, lab2;

lab1:
   assume x < y;
   x := x + 1;
   havoc nondet;
   goto lab3, lab4;

lab3:
   assume !nondet;
   goto lh;

lab4:
   assume nondet;
   return;

lab2: 
   assume x >= y;
   assert false;

}