blob: 023a9adbfb45ed9c0e3cf54922c84654a0fb4060 (
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
43
|
// RUN: %boogie -stratifiedInline:1 -extractLoops -removeEmptyBlocks:0 -coalesceBlocks:0 -recursionBound:2 "%s" > "%t"
// RUN: %diff "%s.rb2.expect" "%t"
// RUN: %boogie -stratifiedInline:1 -extractLoops -removeEmptyBlocks:0 -coalesceBlocks:0 -recursionBound:4 "%s" > "%t"
// RUN: %diff "%s.rb4.expect" "%t"
var g: int;
procedure foo()
{
var t: int;
t := 0;
}
procedure {:entrypoint} A()
modifies g;
{
var x: int;
var y: int;
anon0:
assume g == 0;
x := 4;
goto anon3_LoopHead, anon3_LoopBody;
anon3_LoopHead:
call foo();
goto anon3_LoopDone, anon3_LoopBody;
anon3_LoopBody:
assume g < x;
g := g + 1;
x := x - 1;
goto anon3_LoopHead;
anon3_LoopDone:
assume g >= x;
goto anon2;
anon2:
assume x != 1;
return;
}
|