diff options
Diffstat (limited to 'Test/AbsHoudini/pred1.bpl')
-rw-r--r-- | Test/AbsHoudini/pred1.bpl | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/Test/AbsHoudini/pred1.bpl b/Test/AbsHoudini/pred1.bpl index 4db4810e..51c310cc 100644 --- a/Test/AbsHoudini/pred1.bpl +++ b/Test/AbsHoudini/pred1.bpl @@ -1,25 +1,25 @@ -// RUN: %boogie -noinfer -contractInfer -printAssignment -inlineDepth:1 -abstractHoudini:PredicateAbs "%s" > "%t"
-// RUN: %diff "%s.expect" "%t"
-function {:existential true} b0(x:bool, y:bool): bool;
-function {:existential true} b1(x:bool, y:bool): bool;
-function {:existential true} b2(x:bool, y:bool): bool;
-
-var g: int;
-
-procedure main()
-modifies g;
-ensures b0(g == 0, g == 5);
-{
- g := 0;
- if(*) { g := 5; }
- call foo();
-}
-
-procedure foo()
- modifies g;
- requires b1(g == 0, g == 5);
- ensures b2(g == 0, g == 5);
-{
- assume g != 5;
-}
-
+// RUN: %boogie -noinfer -contractInfer -printAssignment -inlineDepth:1 -abstractHoudini:PredicateAbs "%s" > "%t" +// RUN: %diff "%s.expect" "%t" +function {:existential true} b0(x:bool, y:bool): bool; +function {:existential true} b1(x:bool, y:bool): bool; +function {:existential true} b2(x:bool, y:bool): bool; + +var g: int; + +procedure main() +modifies g; +ensures b0(g == 0, g == 5); +{ + g := 0; + if(*) { g := 5; } + call foo(); +} + +procedure foo() + modifies g; + requires b1(g == 0, g == 5); + ensures b2(g == 0, g == 5); +{ + assume g != 5; +} + |