summaryrefslogtreecommitdiff
path: root/Test/AbsHoudini/houd1.bpl
diff options
context:
space:
mode:
Diffstat (limited to 'Test/AbsHoudini/houd1.bpl')
-rw-r--r--Test/AbsHoudini/houd1.bpl18
1 files changed, 18 insertions, 0 deletions
diff --git a/Test/AbsHoudini/houd1.bpl b/Test/AbsHoudini/houd1.bpl
new file mode 100644
index 00000000..099c6f09
--- /dev/null
+++ b/Test/AbsHoudini/houd1.bpl
@@ -0,0 +1,18 @@
+function {:existential true} b1(x: bool) : bool;
+
+var myVar: int;
+
+procedure foo (i:int)
+modifies myVar;
+// comment
+ensures b1(myVar>0);
+{
+ if (i>0) {
+ myVar := 5;
+ } else {
+ myVar := 0;
+ }
+}
+
+// expected output: Correct
+// expected end assigment: b1(x) = x