diff options
author | rustanleino <unknown> | 2009-11-05 02:28:36 +0000 |
---|---|---|
committer | rustanleino <unknown> | 2009-11-05 02:28:36 +0000 |
commit | 88c490d4c929ab2815c6a33d9ba604057bdd06a0 (patch) | |
tree | d07564e6f7f29ae630097bb68dcc7655ab268709 /Test/VSI-Benchmarks/b3.dfy | |
parent | 48a417d2201f5e4151b1575d4ec011343c69e389 (diff) |
The Dafny call statement now automatically declares left-hand sides as local variables, if they were not already local variables.
Diffstat (limited to 'Test/VSI-Benchmarks/b3.dfy')
-rw-r--r-- | Test/VSI-Benchmarks/b3.dfy | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Test/VSI-Benchmarks/b3.dfy b/Test/VSI-Benchmarks/b3.dfy index a11dec52..4f717f48 100644 --- a/Test/VSI-Benchmarks/b3.dfy +++ b/Test/VSI-Benchmarks/b3.dfy @@ -94,7 +94,6 @@ class Benchmark3 { decreases |q.contents|;
{
- var m,k;
call m,k := RemoveMin(q);
perm := perm + [p[k]]; //adds index of min to perm
p := p[k+1..]+ p[..k]; //remove index of min from p
@@ -126,7 +125,6 @@ class Benchmark3 { invariant (forall i ::0<= i && i < j ==> m <= old(q.contents)[i]); //m is min so far
decreases n-j;
{
- var x;
call x:= q.Dequeue();
call q.Enqueue(x);
if ( x < m) {k := j; m := x;}
@@ -140,7 +138,6 @@ class Benchmark3 { invariant q.contents == old(q.contents)[j..] + old(q.contents)[..j];
decreases k-j;
{
- var x;
call x := q.Dequeue();
call q.Enqueue(x);
j:= j +1;
|