summaryrefslogtreecommitdiff
path: root/Test/aitest1/Linear6.bpl
blob: 83e52a9ae5539e9dd3a63da91ece0edd23791833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Simple test file for checking the inference of linear constraints.

var x: int;
var y: int;
var z: int;

procedure p()
  modifies x;
{
A:
    x := 8;
    goto B, C;
B:
    x := 9;
    goto D;
C:
    x := 10;
    goto D;
D:
    return;
}