summaryrefslogtreecommitdiff
path: root/Test/AbsHoudini
diff options
context:
space:
mode:
authorGravatar akashlal <unknown>2013-05-05 14:25:09 +0530
committerGravatar akashlal <unknown>2013-05-05 14:25:09 +0530
commit1780ee94238d722401f43791736b769cead01c43 (patch)
tree065706a544cb5b4f8b4cabd026b4b0683bf630b4 /Test/AbsHoudini
parentb35c3daef15cdaea422bf408c4cff62242a9fb04 (diff)
AbsHoudini: Each function can specify its own abstract domain. Also added
typechecking
Diffstat (limited to 'Test/AbsHoudini')
-rw-r--r--Test/AbsHoudini/pred4.bpl21
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;
+}
+