summaryrefslogtreecommitdiff
path: root/Chalice/tests
diff options
context:
space:
mode:
authorGravatar stefanheule <unknown>2012-02-25 03:33:02 -0800
committerGravatar stefanheule <unknown>2012-02-25 03:33:02 -0800
commite3662fe7db0f677d3497cc81286e93516f09ba73 (patch)
tree09b4079d46a6291c8311bb92072548561f3a5681 /Chalice/tests
parent2d09a06067320fc7c01d4b6f41a68ac41ddbebe0 (diff)
Chalice: New regression test case.
Diffstat (limited to 'Chalice/tests')
-rw-r--r--Chalice/tests/regressions/internal-bug-1.chalice16
-rw-r--r--Chalice/tests/regressions/internal-bug-1.output.txt4
2 files changed, 20 insertions, 0 deletions
diff --git a/Chalice/tests/regressions/internal-bug-1.chalice b/Chalice/tests/regressions/internal-bug-1.chalice
new file mode 100644
index 00000000..10caeebb
--- /dev/null
+++ b/Chalice/tests/regressions/internal-bug-1.chalice
@@ -0,0 +1,16 @@
+class Test {
+ var next: Test;
+ var elem: int;
+
+ predicate valid {
+ acc(elem) && acc(next) &&
+ (next != null ==> next.valid)
+ }
+
+ function get(index:int):int
+ requires valid
+ // on 2012-02-21, a bug was reported that caused Chalice to crash with an
+ // InternalError for the following precondition.
+ requires unfolding valid in true
+ {0}
+}
diff --git a/Chalice/tests/regressions/internal-bug-1.output.txt b/Chalice/tests/regressions/internal-bug-1.output.txt
new file mode 100644
index 00000000..ea14d3e3
--- /dev/null
+++ b/Chalice/tests/regressions/internal-bug-1.output.txt
@@ -0,0 +1,4 @@
+Verification of internal-bug-1.chalice using parameters=""
+
+
+Boogie program verifier finished with 0 errors and 0 smoke test warnings.