blob: fdd961c38357398010d95c3ad38a13a96b54d01a (
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
|
// 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 -1 <= x;
goto B, E;
B:
assume x < y;
goto C, E;
C:
x := x*x;
goto D, E;
D:
x := y;
return;
E:
return;
}
|