diff options
author | akashlal <unknown> | 2013-04-18 17:50:18 +0530 |
---|---|---|
committer | akashlal <unknown> | 2013-04-18 17:50:18 +0530 |
commit | a2fcc9e7617800e2139a9cbbfa720222e4c1b6f5 (patch) | |
tree | 48d4d5b6d86968a058ffbbe9661518ec763b9204 /Test/AbsHoudini/houd1.bpl | |
parent | 308a4d37f063384cb8de166b248d9377c904e77c (diff) |
Nice clean re-implementation of AbstractHoudini. And tests
Diffstat (limited to 'Test/AbsHoudini/houd1.bpl')
-rw-r--r-- | Test/AbsHoudini/houd1.bpl | 18 |
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
|