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