summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.hgignore1
-rw-r--r--Source/Dafny/DafnyOptions.cs2
-rw-r--r--Source/Dafny/Resolver.cs5
3 files changed, 6 insertions, 2 deletions
diff --git a/.hgignore b/.hgignore
index ab08971d..a1219ed2 100644
--- a/.hgignore
+++ b/.hgignore
@@ -4,6 +4,7 @@ syntax: regexp
^Source/.*\.(smt2|bpl)$
^.*(bin|obj)/([^/]*/)?(Debug|Release|Checked|Debug All|DEBUG ALL)/.*$
Test/.*/Output
+Test/desktop/.*
Test/([^/]*)/([^/]*)\.sx
syntax: glob
*.exe
diff --git a/Source/Dafny/DafnyOptions.cs b/Source/Dafny/DafnyOptions.cs
index 753fbb32..b69a9536 100644
--- a/Source/Dafny/DafnyOptions.cs
+++ b/Source/Dafny/DafnyOptions.cs
@@ -97,7 +97,7 @@ namespace Microsoft.Dafny
ps.GetNumericArgument(ref InductionHeuristic, 7);
return true;
- case "noInclude":
+ case "noIncludes":
DisallowIncludes = true;
return true;
diff --git a/Source/Dafny/Resolver.cs b/Source/Dafny/Resolver.cs
index 2e4c0c00..4c354e6a 100644
--- a/Source/Dafny/Resolver.cs
+++ b/Source/Dafny/Resolver.cs
@@ -1560,7 +1560,10 @@ namespace Microsoft.Dafny
var status = CheckTailRecursive(m.Body.Body, m, ref tailCall, hasTailRecursionPreference);
if (status != TailRecursionStatus.NotTailRecursive) {
m.IsTailRecursive = true;
- ReportAdditionalInformation(m.tok, "tail recursive", m.Name.Length);
+ if (tailCall != null) {
+ // this means there was at least one recursive call
+ ReportAdditionalInformation(m.tok, "tail recursive", m.Name.Length);
+ }
}
}
}