summaryrefslogtreecommitdiff
path: root/Test/aitest1/Linear4.bpl
blob: 6cd4a947f89ff248a73360b8f75547e43341c23b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %boogie -infer:j -instrumentInfer:e -printInstrumented -noVerify "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
// Simple test file for checking the inference of linear constraints.

var x: int;
var y: int;

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