summaryrefslogtreecommitdiff
path: root/Test/AbsHoudini/imp1.bpl
diff options
context:
space:
mode:
authorGravatar allydonaldson <unknown>2013-06-18 17:47:31 +0100
committerGravatar allydonaldson <unknown>2013-06-18 17:47:31 +0100
commit53ad8fce7769a94426da4f42b319cb1b1007e1f4 (patch)
treebaf4cdad243b3b189a872f2dc8f2323e560ad1a1 /Test/AbsHoudini/imp1.bpl
parent471a652e56da9b8d24a72d77688c360abf613bef (diff)
parent1dbf5b70208239a9beb9c645ee0430e5438e03c5 (diff)
Merge
Diffstat (limited to 'Test/AbsHoudini/imp1.bpl')
-rw-r--r--Test/AbsHoudini/imp1.bpl21
1 files changed, 21 insertions, 0 deletions
diff --git a/Test/AbsHoudini/imp1.bpl b/Test/AbsHoudini/imp1.bpl
new file mode 100644
index 00000000..29cbf567
--- /dev/null
+++ b/Test/AbsHoudini/imp1.bpl
@@ -0,0 +1,21 @@
+function {:existential true} {:absdomain "ImplicationDomain"} b1(x1: bool, x2: bool) : bool;
+function {:existential true} {:absdomain "ImplicationDomain"} b2(x1: bool, x2: bool) : bool;
+
+var x: int;
+var flag: bool;
+
+procedure foo ()
+ modifies x, flag;
+ ensures b1(flag, x == 0);
+{
+ flag := true;
+ x := 0;
+}
+
+procedure bar()
+ modifies x, flag;
+ ensures b2(flag, x == 0);
+{
+ flag := false;
+ x := 0;
+}