summaryrefslogtreecommitdiff
path: root/Test/dafny1
diff options
context:
space:
mode:
authorGravatar rustanleino <unknown>2010-06-08 20:09:12 +0000
committerGravatar rustanleino <unknown>2010-06-08 20:09:12 +0000
commit1e156f9e83cb5ace0f74330f2aa49f8ce09d0afe (patch)
tree17ec0bd23994faa50bd8a60c16defc6dc092eef8 /Test/dafny1
parent5696ff18488fac981db0310fc92f7d8fd1a8dfae (diff)
Dafny: Fix type bug in SplitExpr translation.
Diffstat (limited to 'Test/dafny1')
-rw-r--r--Test/dafny1/Celebrity.dfy3
1 files changed, 1 insertions, 2 deletions
diff --git a/Test/dafny1/Celebrity.dfy b/Test/dafny1/Celebrity.dfy
index fd267c71..eed06bb1 100644
--- a/Test/dafny1/Celebrity.dfy
+++ b/Test/dafny1/Celebrity.dfy
@@ -72,8 +72,7 @@ method FindCelebrity2<Person>(people: set<Person>, ghost c: Person) returns (r:
method FindCelebrity3(n: int, people: set<int>, ghost c: int) returns (r: int)
requires 0 < n;
requires (forall p :: p in people <==> 0 <= p && p < n);
- // requires IsCelebrity(c, people); // see next line:
- requires c in people && (forall p :: p in people && p != c ==> Knows(p, c) && !Knows(c, p)); // hack to work around bug in Dafny-to-Boogie translator
+ requires IsCelebrity(c, people);
ensures r == c;
{
r := 0;