diff options
author | rustanleino <unknown> | 2010-05-21 18:38:47 +0000 |
---|---|---|
committer | rustanleino <unknown> | 2010-05-21 18:38:47 +0000 |
commit | 572b11dddba3bfbdc4e90beb4d7f2e076878f717 (patch) | |
tree | 421f92d259589f7711ee1a13b58529dd59d066c6 /Test/dafny0/TypeTests.dfy | |
parent | 425a4c8ff53eb2196e684b6843016baadfe60835 (diff) |
Dafny:
* Added arrays
* Beefed up set axiomatization to know more things about set displays
* Added a simple heuristic that can infer some simple decreases clauses for loops
* Added Dafny solutions to a couple of VACID benchmarks
Diffstat (limited to 'Test/dafny0/TypeTests.dfy')
-rw-r--r-- | Test/dafny0/TypeTests.dfy | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/dafny0/TypeTests.dfy b/Test/dafny0/TypeTests.dfy index 1616234e..fe8644be 100644 --- a/Test/dafny0/TypeTests.dfy +++ b/Test/dafny0/TypeTests.dfy @@ -45,3 +45,13 @@ datatype ReverseOrder_TheCounterpart<T> { More(ReverseOrder_MutuallyRecursiveDataType<T>);
}
+// ---------------------
+
+class ArrayTests {
+ ghost method G(a: array<int>)
+ requires a != null && 10 <= |a|;
+ modifies a;
+ {
+ a[7] := 13; // error: array elements are not ghost locations
+ }
+}
|