summaryrefslogtreecommitdiff
path: root/Test/AbsHoudini/test2.bpl
diff options
context:
space:
mode:
authorGravatar akashlal <unknown>2013-04-18 22:29:51 +0530
committerGravatar akashlal <unknown>2013-04-18 22:29:51 +0530
commit2afe289c11d78711d4483e1ed36346998689668c (patch)
tree2d09536f42cfcd000aeeeeef00b8365ae1ef0928 /Test/AbsHoudini/test2.bpl
parenta2fcc9e7617800e2139a9cbbfa720222e4c1b6f5 (diff)
AbsHoudini: Added support for /inlineDepth, and fixed the regression tests
(all pass)
Diffstat (limited to 'Test/AbsHoudini/test2.bpl')
-rw-r--r--Test/AbsHoudini/test2.bpl16
1 files changed, 9 insertions, 7 deletions
diff --git a/Test/AbsHoudini/test2.bpl b/Test/AbsHoudini/test2.bpl
index febb28e6..bfd78363 100644
--- a/Test/AbsHoudini/test2.bpl
+++ b/Test/AbsHoudini/test2.bpl
@@ -3,7 +3,7 @@ var h: int;
procedure foo()
modifies g, h;
-ensures b0 ==> old(g) == g;
+ensures b0() || old(g) == g;
{
call AcquireLock();
call ReleaseLock();
@@ -11,7 +11,7 @@ ensures b0 ==> old(g) == g;
procedure AcquireLock()
modifies g, h;
-ensures b1 ==> old(g) == g;
+ensures b1() || old(g) == g;
{
h := g;
g := 1;
@@ -19,7 +19,7 @@ ensures b1 ==> old(g) == g;
procedure ReleaseLock()
modifies g, h;
-ensures b2 ==> old(g) == g;
+ensures b2() || old(g) == g;
{
g := h;
}
@@ -29,10 +29,12 @@ modifies g, h;
{
g := 0;
call foo();
- assert g == 0;
+ assert Assert() || g == 0;
}
-const {:existential true} b0: bool;
-const {:existential true} b1: bool;
-const {:existential true } b2: bool;
+function {:existential true} b0(): bool;
+function {:existential true} b1(): bool;
+function {:existential true} b2(): bool;
+function {:existential true} Assert(): bool;
+// Expected: Assert = false, b0 = false, b1 = true, b2 = true