summaryrefslogtreecommitdiff
path: root/Test/AbsHoudini/test1.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/test1.bpl
parenta2fcc9e7617800e2139a9cbbfa720222e4c1b6f5 (diff)
AbsHoudini: Added support for /inlineDepth, and fixed the regression tests
(all pass)
Diffstat (limited to 'Test/AbsHoudini/test1.bpl')
-rw-r--r--Test/AbsHoudini/test1.bpl16
1 files changed, 9 insertions, 7 deletions
diff --git a/Test/AbsHoudini/test1.bpl b/Test/AbsHoudini/test1.bpl
index e6ce06c9..5884cf7b 100644
--- a/Test/AbsHoudini/test1.bpl
+++ b/Test/AbsHoudini/test1.bpl
@@ -2,7 +2,7 @@ var g: bool;
procedure foo()
modifies g;
-ensures b0 ==> (!old(g) ==> old(g) == g);
+ensures b0() || (!old(g) ==> old(g) == g);
{
call AcquireLock();
call ReleaseLock();
@@ -10,14 +10,14 @@ ensures b0 ==> (!old(g) ==> old(g) == g);
procedure AcquireLock()
modifies g;
-ensures b1 ==> old(g) == g;
+ensures b1() || old(g) == g;
{
g := true;
}
procedure ReleaseLock()
modifies g;
-ensures b2 ==> old(g) == g;
+ensures b2() || old(g) == g;
{
g := false;
}
@@ -27,10 +27,12 @@ modifies g;
{
g := false;
call foo();
- assert !g;
+ assert Assert() || !g;
}
-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: b0 = false, b1 = true, b2 = true, Assert = false