summaryrefslogtreecommitdiff
path: root/Test/dafny0/Coinductive.dfy
diff options
context:
space:
mode:
authorGravatar Rustan Leino <leino@microsoft.com>2013-01-18 22:45:50 -0800
committerGravatar Rustan Leino <leino@microsoft.com>2013-01-18 22:45:50 -0800
commitd2d89cd3ce7fabaa597ada1a7749944353e46d0a (patch)
treed83a57de4c3c5aabce391fc6a2ca9e894eabf295 /Test/dafny0/Coinductive.dfy
parent772b311455896739adbba462fdcc9a530eb69711 (diff)
Fixed the problem with the previous check-in.
Diffstat (limited to 'Test/dafny0/Coinductive.dfy')
-rw-r--r--Test/dafny0/Coinductive.dfy10
1 files changed, 5 insertions, 5 deletions
diff --git a/Test/dafny0/Coinductive.dfy b/Test/dafny0/Coinductive.dfy
index cab0637d..4d197dd7 100644
--- a/Test/dafny0/Coinductive.dfy
+++ b/Test/dafny0/Coinductive.dfy
@@ -105,7 +105,7 @@ module CoPredicateResolutionErrors {
// --------------------------------------------------
-module InvalidCoMethodConclusions {
+module UnfruitfulCoMethodConclusions {
codatatype Stream<T> = Cons(head: T, tail: Stream);
copredicate Positive(s: Stream<int>)
@@ -114,7 +114,7 @@ module InvalidCoMethodConclusions {
}
comethod BadTheorem(s: Stream)
- ensures false; // error: invalid comethod conclusion
+ ensures false;
{
BadTheorem(s.tail);
}
@@ -123,12 +123,12 @@ module InvalidCoMethodConclusions {
ensures true && !false;
ensures s.head == 8 ==> Positive(s);
ensures s.tail == s;
- ensures s.head < 100; // error: invalid comethod conclusion
+ ensures s.head < 100;
ensures Positive(s) ==> s.tail == s;
- ensures Positive(s) ==> s.head > 88; // error: bad RHS of implication
+ ensures Positive(s) ==> s.head > 88;
ensures !Positive(s) ==> s.tail == s;
ensures !(true && !false ==> Positive(s) && !Positive(s));
- ensures !(false && !true ==> Positive(s) && !Positive(s)); // error: bad LHS of implication
+ ensures !(false && !true ==> Positive(s) && !Positive(s));
{
}
}