blob: 4d507c1e31ca9ec0f60668b8c2f696d8336b8680 (
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
36
37
38
39
40
41
42
|
// RUN: %boogie -noinfer "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
procedure Test()
{
var i: int;
entry:
i := 0;
goto block850;
block850:
assert i == 0;
havoc i;
goto block850;
}
// The following procedure once exhibited a bug in Boogie's DAG manipulations
procedure TightLoop0()
{
L:
assert !true; // error
goto L;
}
procedure TightLoop1()
{
L:
assert false; // error
goto L;
}
procedure TightLoop2()
{
L:
assert true; // cool
goto L;
}
procedure TightLoop3(b: bool)
{
L:
assert b; // error
goto L;
}
|