diff options
Diffstat (limited to 'Test/AbsHoudini/fail1.bpl')
-rw-r--r-- | Test/AbsHoudini/fail1.bpl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Test/AbsHoudini/fail1.bpl b/Test/AbsHoudini/fail1.bpl new file mode 100644 index 00000000..abbd015b --- /dev/null +++ b/Test/AbsHoudini/fail1.bpl @@ -0,0 +1,16 @@ +function {:existential true} b1(x: bool) : bool;
+
+var myVar: int;
+
+procedure foo (i:int)
+modifies myVar;
+ensures b1(myVar>0);
+{
+ if (i>0) {
+ myVar := 5;
+ } else {
+ myVar := 0;
+ }
+ assert false;
+}
+
|