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/SmallTests.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/SmallTests.dfy')
-rw-r--r-- | Test/dafny0/SmallTests.dfy | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/dafny0/SmallTests.dfy b/Test/dafny0/SmallTests.dfy index ba6c8e0c..4e3fab69 100644 --- a/Test/dafny0/SmallTests.dfy +++ b/Test/dafny0/SmallTests.dfy @@ -150,4 +150,14 @@ class Modifies { m.x := m.x + 1; // error: may violate modifies clause
}
}
+
+ method SetConstruction() {
+ var s := {1};
+ assert s != {};
+ if (*) {
+ assert s != {0,1};
+ } else {
+ assert s != {1,0};
+ }
+ }
}
|