summaryrefslogtreecommitdiff
path: root/Test/dafny2
diff options
context:
space:
mode:
authorGravatar Rustan Leino <leino@microsoft.com>2012-10-05 22:11:09 -0700
committerGravatar Rustan Leino <leino@microsoft.com>2012-10-05 22:11:09 -0700
commit3feed5acae37f5cfcbb6b25d25117d70faa3e430 (patch)
treea2002813e9d362a085d1f57ab061f754b66490f6 /Test/dafny2
parentbbfefea4f221c0be1b295ba1c5ee622fda9ec0d0 (diff)
improved and fixed compilation and resolution of assign-such-that statements
Diffstat (limited to 'Test/dafny2')
-rw-r--r--Test/dafny2/StoreAndRetrieve.dfy4
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/dafny2/StoreAndRetrieve.dfy b/Test/dafny2/StoreAndRetrieve.dfy
index da62f91c..d8938aa7 100644
--- a/Test/dafny2/StoreAndRetrieve.dfy
+++ b/Test/dafny2/StoreAndRetrieve.dfy
@@ -19,7 +19,7 @@ ghost module A {
ensures Contents == old(Contents);
ensures thing in Contents && L.Function.Apply(matchCriterion, thing);
{
- var k :| k in Contents && L.Function.Apply(matchCriterion, k);
+ var k :| assume k in Contents && L.Function.Apply(matchCriterion, k);
thing := k;
}
}
@@ -52,7 +52,7 @@ module B refines A {
}
var k := arr[i];
...;
- var a :| Contents == set x | x in a;
+ var a :| assume Contents == set x | x in a;
arr := a;
}
}