summaryrefslogtreecommitdiff
path: root/Test/dafny0/LoopModifies.dfy
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2013-03-27 13:51:16 -0700
committerGravatar Rustan Leino <unknown>2013-03-27 13:51:16 -0700
commit5296b17758c3e27bf551e9a322323a37983d7abb (patch)
treea7c818eedf1608eec0e59ff73ac3ee8356939751 /Test/dafny0/LoopModifies.dfy
parent5f05e3a1c194dcda48115d7b6a1c5777bd2d5287 (diff)
The "choose" statement, hacky and specialized as it was, is now gone. Use the assign-such-that statement instead. For example: x :| x in S;
Diffstat (limited to 'Test/dafny0/LoopModifies.dfy')
-rw-r--r--Test/dafny0/LoopModifies.dfy2
1 files changed, 1 insertions, 1 deletions
diff --git a/Test/dafny0/LoopModifies.dfy b/Test/dafny0/LoopModifies.dfy
index c9d87f86..1757836f 100644
--- a/Test/dafny0/LoopModifies.dfy
+++ b/Test/dafny0/LoopModifies.dfy
@@ -307,7 +307,7 @@ method Testing12(a: Elem, b: Elem, c: Elem)
modifies S;
decreases S;
{
- var j := choose S;
+ var j :| j in S;
// these still good, even though S shrinks to not include them.
a.i := i;
b.i := i;