From d652155ae013f36a1ee17653a8e458baad2d9c2c Mon Sep 17 00:00:00 2001 From: Checkmate50 Date: Mon, 6 Jun 2016 23:14:18 -0600 Subject: Merging complete. Everything looks good *crosses fingers* --- Test/AbsHoudini/pred3.bpl | 52 +++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'Test/AbsHoudini/pred3.bpl') diff --git a/Test/AbsHoudini/pred3.bpl b/Test/AbsHoudini/pred3.bpl index 38f42088..ef76a073 100644 --- a/Test/AbsHoudini/pred3.bpl +++ b/Test/AbsHoudini/pred3.bpl @@ -1,26 +1,26 @@ -// 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); -{ - assume 0 == old(g) || 1 == old(g); - g := 0; - if(*) { g := 5; } - call foo(); -} - -procedure foo() - modifies g; - requires b1(g == 0, g == 5); - ensures b2(old(g) == 0, old(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); +{ + assume 0 == old(g) || 1 == old(g); + g := 0; + if(*) { g := 5; } + call foo(); +} + +procedure foo() + modifies g; + requires b1(g == 0, g == 5); + ensures b2(old(g) == 0, old(g) == 5); +{ + assume g != 5; +} + -- cgit v1.2.3