diff options
author | 2010-11-25 21:31:57 +0000 | |
---|---|---|
committer | 2010-11-25 21:31:57 +0000 | |
commit | d6bc9bf0a6eac0d8eb3b551c6da1d7754a10a6a1 (patch) | |
tree | f0d3c6e9e2ccf9725a7cde052358c9458dff575b /Test/dafny1/TerminationDemos.dfy | |
parent | 367093297e9a3ae6ac77c8d363d6fbfdf6badefb (diff) |
Dafny: Improved default decreases clauses for methods and functions
Dafny: Don't display "alloc" field in BVD
Chalice: Fixed error-message parsing error in VS mode
Diffstat (limited to 'Test/dafny1/TerminationDemos.dfy')
-rw-r--r-- | Test/dafny1/TerminationDemos.dfy | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Test/dafny1/TerminationDemos.dfy b/Test/dafny1/TerminationDemos.dfy index 6b63bfec..fb530258 100644 --- a/Test/dafny1/TerminationDemos.dfy +++ b/Test/dafny1/TerminationDemos.dfy @@ -3,7 +3,6 @@ class Example { {
var i := 0;
while (i < n)
- decreases n - i;
{
i := i + 1;
}
@@ -14,7 +13,6 @@ class Example { class Fibonacci {
function Fib(n: int): int
- decreases n;
{
if n < 2 then n else Fib(n-2) + Fib(n-1)
}
@@ -24,7 +22,6 @@ class Fibonacci { class Ackermann {
function F(m: int, n: int): int
- decreases m, n;
{
if m <= 0 then
n + 1
|