summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorGravatar Rustan Leino <leino@microsoft.com>2011-09-29 18:33:58 -0700
committerGravatar Rustan Leino <leino@microsoft.com>2011-09-29 18:33:58 -0700
commit2514560c58c60fa79850d12aee4cf2afeaedc5f5 (patch)
tree7fb257e36b0aa2db0d276e50e9efc34dfb016514 /Test
parent8f65d1f0ba1397b57feb11256c0dc344fee465af (diff)
Dafny: beautification in one test case, and fixed an Answer file
Diffstat (limited to 'Test')
-rw-r--r--Test/dafny1/ExtensibleArray.dfy2
-rw-r--r--Test/dafny2/Answer2
2 files changed, 1 insertions, 3 deletions
diff --git a/Test/dafny1/ExtensibleArray.dfy b/Test/dafny1/ExtensibleArray.dfy
index 2dc49cd9..405f3e15 100644
--- a/Test/dafny1/ExtensibleArray.dfy
+++ b/Test/dafny1/ExtensibleArray.dfy
@@ -34,7 +34,7 @@ class ExtensibleArray<T> {
(forall i :: M <= i && i < length ==> Contents[i] == elements[i - M])
}
- method Init()
+ constructor Init()
modifies this;
ensures Valid() && fresh(Repr - {this});
ensures Contents == [];
diff --git a/Test/dafny2/Answer b/Test/dafny2/Answer
index bef70cf1..d052c463 100644
--- a/Test/dafny2/Answer
+++ b/Test/dafny2/Answer
@@ -1,10 +1,8 @@
-------------------- SnapshotableTrees.dfy --------------------
-Dafny program verifier version 2.2.30705.1126, Copyright (c) 2003-2011, Microsoft.
Dafny program verifier finished with 37 verified, 0 errors
-------------------- TreeBarrier.dfy --------------------
-Dafny program verifier version 2.2.30705.1126, Copyright (c) 2003-2011, Microsoft.
Dafny program verifier finished with 8 verified, 0 errors