summaryrefslogtreecommitdiff
path: root/Source/DafnyDriver
diff options
context:
space:
mode:
authorGravatar Dan Rosén <danr@chalmers.se>2014-06-24 11:47:52 -0700
committerGravatar Dan Rosén <danr@chalmers.se>2014-06-24 11:47:52 -0700
commit8d3365a8183bdd36cc5c1428c9a6d434547db2b8 (patch)
tree142bc366ad90bafcdd1ad19b0207f7110e1fd76c /Source/DafnyDriver
parent83a9919ddb86a41259923871e2d1d252e1d77b50 (diff)
Use the new pretty-printing functionality in Boogie. Disable with "/pretty:0"
Diffstat (limited to 'Source/DafnyDriver')
-rw-r--r--Source/DafnyDriver/DafnyDriver.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/DafnyDriver/DafnyDriver.cs b/Source/DafnyDriver/DafnyDriver.cs
index f1eedbba..8f5b5300 100644
--- a/Source/DafnyDriver/DafnyDriver.cs
+++ b/Source/DafnyDriver/DafnyDriver.cs
@@ -131,7 +131,7 @@ namespace Microsoft.Dafny
Bpl.Program boogieProgram = translator.Translate(dafnyProgram);
if (CommandLineOptions.Clo.PrintFile != null)
{
- ExecutionEngine.PrintBplFile(CommandLineOptions.Clo.PrintFile, boogieProgram, false, false);
+ ExecutionEngine.PrintBplFile(CommandLineOptions.Clo.PrintFile, boogieProgram, false, false, CommandLineOptions.Clo.PrettyPrint);
}
string bplFilename;
@@ -194,7 +194,7 @@ namespace Microsoft.Dafny
case PipelineOutcome.ResolutionError:
case PipelineOutcome.TypeCheckingError:
{
- ExecutionEngine.PrintBplFile(bplFileName, program, false, false);
+ ExecutionEngine.PrintBplFile(bplFileName, program, false, false, CommandLineOptions.Clo.PrettyPrint);
Console.WriteLine();
Console.WriteLine("*** Encountered internal translation error - re-running Boogie to get better debug information");
Console.WriteLine();