diff options
author | stefanheule <unknown> | 2012-02-25 03:33:02 -0800 |
---|---|---|
committer | stefanheule <unknown> | 2012-02-25 03:33:02 -0800 |
commit | e3662fe7db0f677d3497cc81286e93516f09ba73 (patch) | |
tree | 09b4079d46a6291c8311bb92072548561f3a5681 /Chalice/tests | |
parent | 2d09a06067320fc7c01d4b6f41a68ac41ddbebe0 (diff) |
Chalice: New regression test case.
Diffstat (limited to 'Chalice/tests')
-rw-r--r-- | Chalice/tests/regressions/internal-bug-1.chalice | 16 | ||||
-rw-r--r-- | Chalice/tests/regressions/internal-bug-1.output.txt | 4 |
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.
|