diff options
author | wuestholz <unknown> | 2014-11-06 13:08:02 +0100 |
---|---|---|
committer | wuestholz <unknown> | 2014-11-06 13:08:02 +0100 |
commit | 053ec97ade4f70f1b66346582150cceb97c50ce4 (patch) | |
tree | f5fef9b6f32d7ea7bcd9c2f982e5a674222b6780 /Test/VSI-Benchmarks | |
parent | 9c93b9d2fb4ec533dace4d6851ceb38d87778549 (diff) |
Extracted a separate class to generate fresh variable names.
Diffstat (limited to 'Test/VSI-Benchmarks')
-rw-r--r-- | Test/VSI-Benchmarks/b3.dfy | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Test/VSI-Benchmarks/b3.dfy b/Test/VSI-Benchmarks/b3.dfy index 91044397..5a2b6e13 100644 --- a/Test/VSI-Benchmarks/b3.dfy +++ b/Test/VSI-Benchmarks/b3.dfy @@ -86,8 +86,8 @@ class Benchmark3 { while (j < n)
invariant j <= n;
+ invariant 0 <= k < n && old(q.contents)[k] == m;
invariant q.contents == old(q.contents)[j..] + old(q.contents)[..j]; //i.e. rotated
- invariant 0 <= k < |old(q.contents)| && old(q.contents)[k] == m;
invariant forall i :: 0 <= i < j ==> m <= old(q.contents)[i]; //m is min so far
{
var x := q.Dequeue();
@@ -104,7 +104,6 @@ class Benchmark3 { var x := q.Dequeue();
q.Enqueue(x);
j := j+1;
- assert q.contents == old(q.contents)[j..] + old(q.contents)[..j];
}
m := q.Dequeue();
|