diff options
author | Unknown <leino@LEINO6.redmond.corp.microsoft.com> | 2012-03-15 18:44:52 -0700 |
---|---|---|
committer | Unknown <leino@LEINO6.redmond.corp.microsoft.com> | 2012-03-15 18:44:52 -0700 |
commit | 811efa1a56080a8f5c652352a384ae2dea4616ee (patch) | |
tree | 96ef1be443d10fb6cca1f9b578aea195d164deda /Test | |
parent | 46b31d5f040c6849bf9053a97e1c9f2041070cea (diff) |
Dafny: support assign-such-that in var declarations in refinements
Diffstat (limited to 'Test')
-rw-r--r-- | Test/dafny2/StoreAndRetrieve.dfy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/dafny2/StoreAndRetrieve.dfy b/Test/dafny2/StoreAndRetrieve.dfy index 1357b65c..ea26a234 100644 --- a/Test/dafny2/StoreAndRetrieve.dfy +++ b/Test/dafny2/StoreAndRetrieve.dfy @@ -18,7 +18,7 @@ module A imports Library { ensures Contents == old(Contents);
ensures thing in Contents && Function.Apply(matchCriterion, thing);
{
- var k; assume k in Contents && Function.Apply(matchCriterion, k);
+ var k :| k in Contents && Function.Apply(matchCriterion, k);
thing := k;
}
}
@@ -49,7 +49,7 @@ module B refines A { if (Function.Apply(matchCriterion, arr[i])) { break; }
i := i + 1;
}
- var k := arr[i]; assert ...;
+ var k := arr[i];
}
}
}
|