diff options
author | rustanleino <unknown> | 2009-11-06 23:54:22 +0000 |
---|---|---|
committer | rustanleino <unknown> | 2009-11-06 23:54:22 +0000 |
commit | 8718c8de05f07ffbb3ccbceee550a9c88a599947 (patch) | |
tree | 5173a2409c40014effac527837c7b892222a988d /Test/VSI-Benchmarks/b4.dfy | |
parent | 660c22dc282ee371fdbd4c97e9289ee016a4aca8 (diff) |
Added a sequence update expression in Dafny.
Diffstat (limited to 'Test/VSI-Benchmarks/b4.dfy')
-rw-r--r-- | Test/VSI-Benchmarks/b4.dfy | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Test/VSI-Benchmarks/b4.dfy b/Test/VSI-Benchmarks/b4.dfy index e3a99884..3fa80b4c 100644 --- a/Test/VSI-Benchmarks/b4.dfy +++ b/Test/VSI-Benchmarks/b4.dfy @@ -52,10 +52,8 @@ class Map<Key,Value> { if (j == -1) {
keys := keys + [key];
values := values + [val];
- assert values[|keys|-1] == val; // lemma
} else {
- values := values[..j] + [val] + values[j+1..];
- assert values[j] == val; //lemma
+ values := values[j := val];
}
}
|