Skip to content

Commit a225a98

Browse files
committed
Add testcase for irreducible and extractLoops
1 parent 24ae8e1 commit a225a98

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// RUN: %parallel-boogie -extractLoops "%s" > "%t"
2+
// RUN: %OutputCheck --file-to-check "%t" "%s"
3+
// CHECK-L: Boogie program verifier finished with 2 verified, 0 errors
4+
5+
procedure {:entrypoint} simple_irreducible() {
6+
var x: int;
7+
x := 0;
8+
A:
9+
assume x == 0;
10+
x := x + 1;
11+
goto B, C;
12+
13+
B:
14+
assume x <= 2;
15+
x := x - 1;
16+
goto C, D;
17+
C:
18+
x := x + 1;
19+
goto B;
20+
D:
21+
assume x <= 1;
22+
}

0 commit comments

Comments
 (0)