diff options
author | akashlal <unknown> | 2013-05-05 14:25:09 +0530 |
---|---|---|
committer | akashlal <unknown> | 2013-05-05 14:25:09 +0530 |
commit | 1780ee94238d722401f43791736b769cead01c43 (patch) | |
tree | 065706a544cb5b4f8b4cabd026b4b0683bf630b4 /Test/AbsHoudini | |
parent | b35c3daef15cdaea422bf408c4cff62242a9fb04 (diff) |
AbsHoudini: Each function can specify its own abstract domain. Also added
typechecking
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;
+}
+
|