summaryrefslogtreecommitdiff
path: root/Test/aitest1/Linear9.bpl.expect
blob: 23ac16983a881e3f8470f2661953c1400c765d32 (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
procedure foo();



implementation foo()
{
  var i: int;
  var j: int;
  var n: int;

  entry:
    assume {:inferred} true;
    assume n >= 4;
    i := 0;
    j := i + 1;
    assume {:inferred} i == 0 && j == 1 && 4 <= n;
    goto exit, loop0;

  loop0:  // cut point
    assume {:inferred} 0 <= i && 1 <= j && 4 <= n;
    assume j <= n;
    i := i + 1;
    j := j + 1;
    assume {:inferred} 1 <= i && 2 <= j && 4 <= n;
    goto loop0, exit;

  exit:
    assume {:inferred} 0 <= i && 1 <= j && 4 <= n;
    assume {:inferred} 0 <= i && 1 <= j && 4 <= n;
    return;
}



Boogie program verifier finished with 0 verified, 0 errors