summaryrefslogtreecommitdiff
path: root/Test/dafny1
diff options
context:
space:
mode:
authorGravatar Rustan Leino <unknown>2014-02-24 15:16:57 -0800
committerGravatar Rustan Leino <unknown>2014-02-24 15:16:57 -0800
commitec90ed7e102dfc76bc3677f0241494bad4c16c6f (patch)
tree173a0f5bc1bdea27bfffaf0f3b2483b01f615bda /Test/dafny1
parent92b39104cfc64750e79db1344836a71334c67939 (diff)
Minor clean-up in a couple of test files.
Diffstat (limited to 'Test/dafny1')
-rw-r--r--Test/dafny1/pow2.dfy8
1 files changed, 4 insertions, 4 deletions
diff --git a/Test/dafny1/pow2.dfy b/Test/dafny1/pow2.dfy
index c7e4bc63..bc23fb0b 100644
--- a/Test/dafny1/pow2.dfy
+++ b/Test/dafny1/pow2.dfy
@@ -31,20 +31,20 @@ function pow2_slow(n: int): int
2*pow2_slow(n-1)
}
-ghost method Lemma(n: int)
+lemma Lemma(n: int)
requires 0 <= n && IsEven(n);
ensures pow2_slow(n) == Square(pow2_slow(n/2));
{
- if (n != 0) {
+ if n != 0 {
Lemma(n-2);
}
}
-ghost method Theorem(n: int)
+lemma Theorem(n: int)
requires 0 <= n;
ensures pow2(n) == pow2_slow(n);
{
- if (n == 0) {
+ if n == 0 {
} else if (IsEven(n)) {
Lemma(n);
Theorem(n/2);