summaryrefslogtreecommitdiff
path: root/Test/AbsHoudini
diff options
context:
space:
mode:
authorGravatar akashlal <unknown>2013-04-19 11:49:06 +0530
committerGravatar akashlal <unknown>2013-04-19 11:49:06 +0530
commit1b72b2e6f79400161ec9bdd71566cc9c41bb93ae (patch)
tree63d232756dac63b7174fe53ff4f7455dd7927f78 /Test/AbsHoudini
parent84cf46b2fdca50fcc038420c78985887dda4409e (diff)
Added a test case
Diffstat (limited to 'Test/AbsHoudini')
-rw-r--r--Test/AbsHoudini/int1.bpl26
1 files changed, 26 insertions, 0 deletions
diff --git a/Test/AbsHoudini/int1.bpl b/Test/AbsHoudini/int1.bpl
new file mode 100644
index 00000000..0ee0f1b9
--- /dev/null
+++ b/Test/AbsHoudini/int1.bpl
@@ -0,0 +1,26 @@
+function {:existential true} b0(x:int): bool;
+function {:existential true} b1(x:int): bool;
+
+var g: int;
+
+procedure foo()
+modifies g;
+requires b0(g);
+ensures b1(g);
+{
+ if(*) {
+ g := g + 1;
+ call foo();
+ }
+}
+
+procedure main()
+modifies g;
+{
+ g := 0;
+ if(*) { g := 5; }
+ call foo();
+}
+
+
+// Expected: b0(x) = [0,\infty], b1(x) = [0, \infty]