summaryrefslogtreecommitdiff
path: root/Test/dafny1/Rippling.dfy
diff options
context:
space:
mode:
authorGravatar Unknown <t-jasonk@Z3507288.redmond.corp.microsoft.com>2012-05-29 14:56:35 -0700
committerGravatar Unknown <t-jasonk@Z3507288.redmond.corp.microsoft.com>2012-05-29 14:56:35 -0700
commit33be652b4db584a8441f7b1006ceed73eb091be6 (patch)
tree6050f3143e35fed1b1053e9c9044a516a539d5da /Test/dafny1/Rippling.dfy
parent2e43fe69d087fb75213f67f735a3e85e0278a29f (diff)
Dafny: fixed regression tests
Diffstat (limited to 'Test/dafny1/Rippling.dfy')
-rw-r--r--Test/dafny1/Rippling.dfy8
1 files changed, 4 insertions, 4 deletions
diff --git a/Test/dafny1/Rippling.dfy b/Test/dafny1/Rippling.dfy
index 8bed7545..835c3043 100644
--- a/Test/dafny1/Rippling.dfy
+++ b/Test/dafny1/Rippling.dfy
@@ -157,11 +157,11 @@ function last(xs: List): Nat
case Cons(z, zs) => last(ys)
}
-function map(f: FunctionValue, xs: List): List
+function apply(f: FunctionValue, xs: List): List
{
match xs
case Nil => Nil
- case Cons(y, ys) => Cons(Apply(f, y), map(f, ys))
+ case Cons(y, ys) => Cons(Apply(f, y), apply(f, ys))
}
// In the following two functions, parameter "p" stands for a predicate: applying p and
@@ -355,7 +355,7 @@ ghost method P11()
}
ghost method P12()
- ensures forall n, xs, f :: drop(n, map(f, xs)) == map(f, drop(n, xs));
+ ensures forall n, xs, f :: drop(n, apply(f, xs)) == apply(f, drop(n, xs));
{
}
@@ -506,7 +506,7 @@ ghost method P40()
}
ghost method P41()
- ensures forall n, xs, f :: take(n, map(f, xs)) == map(f, take(n, xs));
+ ensures forall n, xs, f :: take(n, apply(f, xs)) == apply(f, take(n, xs));
{
}