summaryrefslogtreecommitdiff
path: root/Test/aitest1/Linear5.bpl
blob: 4f04999c4369133317ca27c8687e737189ca16a1 (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;

procedure p()
  modifies x;
{
  A:
    assume -1 <= x;
    goto B;
  B:
    assume x < y;
    goto C;
  C:
    x := x*x;
    goto D;
  D:
    x := y;
    return;
}