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/b5.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/b5.dfy')
-rw-r--r-- | Test/VSI-Benchmarks/b5.dfy | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Test/VSI-Benchmarks/b5.dfy b/Test/VSI-Benchmarks/b5.dfy index 9d384c38..8026e60f 100644 --- a/Test/VSI-Benchmarks/b5.dfy +++ b/Test/VSI-Benchmarks/b5.dfy @@ -99,7 +99,6 @@ class Queue<T> { ensures Valid() && fresh(footprint - old(footprint));
ensures contents == old(contents)[1..] + old(contents)[..1];
{
- var t: T;
call t := Front();
call Dequeue();
call Enqueue(t);
@@ -113,7 +112,6 @@ class Queue<T> { ensures (exists i :: 0 <= i && i <= |contents| &&
contents == old(contents)[i..] + old(contents)[..i]);
{
- var t: T;
call t := Front();
call Dequeue();
call Enqueue(t);
@@ -163,7 +161,6 @@ class Main<U> { assert |q0.contents| == 2;
- var w;
call w := q0.Front();
assert w == t;
call q0.Dequeue();
@@ -191,7 +188,6 @@ class Main<U> { assert |q0.contents| == 2;
- var w;
call w := q0.Front();
assert w == t;
call q0.Dequeue();
|