diff options
Diffstat (limited to 'Test/AbsHoudini')
-rw-r--r-- | Test/AbsHoudini/pred4.bpl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Test/AbsHoudini/pred4.bpl b/Test/AbsHoudini/pred4.bpl new file mode 100644 index 00000000..d4741720 --- /dev/null +++ b/Test/AbsHoudini/pred4.bpl @@ -0,0 +1,21 @@ +function {:existential true} b1(x:bool, y:bool): bool;
+function {:existential true} {:absdomain "Intervals"} b3(x:int): bool;
+
+var g: int;
+
+procedure main()
+modifies g;
+{
+ g := 0;
+ if(*) { g := 5; }
+ call foo();
+}
+
+procedure foo()
+ modifies g;
+ requires b1(g == 0, g == 5);
+ ensures b3(g);
+{
+ assume g != 5;
+}
+
|