summaryrefslogtreecommitdiff
path: root/Test/VSI-Benchmarks/b2.dfy
diff options
context:
space:
mode:
Diffstat (limited to 'Test/VSI-Benchmarks/b2.dfy')
-rw-r--r--Test/VSI-Benchmarks/b2.dfy7
1 files changed, 1 insertions, 6 deletions
diff --git a/Test/VSI-Benchmarks/b2.dfy b/Test/VSI-Benchmarks/b2.dfy
index 0cae993a..86c12854 100644
--- a/Test/VSI-Benchmarks/b2.dfy
+++ b/Test/VSI-Benchmarks/b2.dfy
@@ -63,16 +63,12 @@ class Array {
method Set(i: int, x: int)
requires 0 <= i && i < |contents|;
modifies this;
- ensures |contents| == |old(contents)|;
- ensures contents[..i] == old(contents[..i]);
- ensures contents[i] == x;
- ensures contents[i+1..] == old(contents[i+1..]);
+ ensures contents == old(contents)[i := x];
{
contents := contents[i := x];
}
}
-/******
method Main() {
var a := new Array;
call a.Init(5);
@@ -103,4 +99,3 @@ method TestSearch(a: Array, key: int)
call r := b.BinarySearch(a, key);
print "Looking for key=", key, ", result=", r, "\n";
}
-******/