diff options
author | leino <unknown> | 2015-08-12 22:44:50 -0700 |
---|---|---|
committer | leino <unknown> | 2015-08-12 22:44:50 -0700 |
commit | f28fa68497352ffb57ab2846da4cc1c1aeaf1968 (patch) | |
tree | 4eaf17362df86914266669a238e50028a478dc2e /Source/Dafny/Printer.cs | |
parent | 41d16e5a28b4eab7fb56f04c76759f8e24678b74 (diff) |
Change the induction heuristic for lemmas to also look in precondition for clues about which parameters to include.
As a result, improved many test cases (see, e.g., dafny4/NipkowKlein-chapter7.dfy!) and beautified some others.
Diffstat (limited to 'Source/Dafny/Printer.cs')
-rw-r--r-- | Source/Dafny/Printer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Dafny/Printer.cs b/Source/Dafny/Printer.cs index 1f63d769..6a6a76ba 100644 --- a/Source/Dafny/Printer.cs +++ b/Source/Dafny/Printer.cs @@ -438,6 +438,7 @@ namespace Microsoft.Dafny { public void PrintAttributes(Attributes a) {
if (a != null) {
PrintAttributes(a.Prev);
+ wr.Write(" ");
PrintOneAttribute(a);
}
}
@@ -445,7 +446,7 @@ namespace Microsoft.Dafny { Contract.Requires(a != null);
var name = nameSubstitution ?? a.Name;
var usAttribute = name.StartsWith("_");
- wr.Write(" {1}{{:{0}", name, usAttribute ? "/*" : "");
+ wr.Write("{1}{{:{0}", name, usAttribute ? "/*" : "");
if (a.Args != null) {
PrintAttributeArgs(a.Args, false);
}
|