diff options
author | Rustan Leino <leino@microsoft.com> | 2011-10-24 13:51:47 -0700 |
---|---|---|
committer | Rustan Leino <leino@microsoft.com> | 2011-10-24 13:51:47 -0700 |
commit | b0970a64f59da200f1cb61c3a912c19d02785672 (patch) | |
tree | b7ad8b64dae8a82031e0b35298588208f54ea394 /Test/dafny1 | |
parent | 00532f53208f3f3d302ac20651baaf05d9e953fd (diff) |
Dafny: continued translation of "parallel" statements (Assign and Proof forms are mostly there, Call is missing and so is compilation)
Dafny: included some test cases for the "parallel" statement
Dafny: starting changing old "foreach" statements to the new "parallel" statement
Diffstat (limited to 'Test/dafny1')
-rw-r--r-- | Test/dafny1/Queue.dfy | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/dafny1/Queue.dfy b/Test/dafny1/Queue.dfy index bfb588be..0edfab81 100644 --- a/Test/dafny1/Queue.dfy +++ b/Test/dafny1/Queue.dfy @@ -85,12 +85,12 @@ class Queue<T> { tail.next := n;
tail := n;
- foreach (m in spine) {
+ parallel (m | m in spine) {
m.tailContents := m.tailContents + [t];
}
contents := head.tailContents;
- foreach (m in spine) {
+ parallel (m | m in spine) {
m.footprint := m.footprint + n.footprint;
}
footprint := footprint + n.footprint;
|