summaryrefslogtreecommitdiff
path: root/Source/BoogieDriver/BoogieDriver.cs
diff options
context:
space:
mode:
authorGravatar Unknown <qadeer@FAIZ-AHMED-FAIZ.redmond.corp.microsoft.com>2013-03-03 22:43:56 -0800
committerGravatar Unknown <qadeer@FAIZ-AHMED-FAIZ.redmond.corp.microsoft.com>2013-03-03 22:43:56 -0800
commit68a39909f93535ad4d091fce647d8a0e8539508f (patch)
tree2b1f666381bcb13849cdc3797b4d36cf9a84a47f /Source/BoogieDriver/BoogieDriver.cs
parent8f5515633b1273670a96a2c6b961317293d07ebf (diff)
fixed bugs in both parallel calls and linear stuff (reported by Chris)
also added improved error reporting suggested by Chris
Diffstat (limited to 'Source/BoogieDriver/BoogieDriver.cs')
-rw-r--r--Source/BoogieDriver/BoogieDriver.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/BoogieDriver/BoogieDriver.cs b/Source/BoogieDriver/BoogieDriver.cs
index c4db46f4..9d1038f5 100644
--- a/Source/BoogieDriver/BoogieDriver.cs
+++ b/Source/BoogieDriver/BoogieDriver.cs
@@ -192,7 +192,7 @@ namespace Microsoft.Boogie {
ogTransform.Transform();
int oldPrintUnstructured = CommandLineOptions.Clo.PrintUnstructured;
CommandLineOptions.Clo.PrintUnstructured = 1;
- PrintBplFile(CommandLineOptions.Clo.OwickiGriesDesugaredOutputFile, program, false);
+ PrintBplFile(CommandLineOptions.Clo.OwickiGriesDesugaredOutputFile, program, false, false);
CommandLineOptions.Clo.PrintUnstructured = oldPrintUnstructured;
}
LinearSetTransform linearTransform = new LinearSetTransform(program);
@@ -213,7 +213,7 @@ namespace Microsoft.Boogie {
}
}
- static void PrintBplFile(string filename, Program program, bool allowPrintDesugaring) {
+ static void PrintBplFile(string filename, Program program, bool allowPrintDesugaring, bool setTokens = true) {
Contract.Requires(program != null);
Contract.Requires(filename != null);
bool oldPrintDesugaring = CommandLineOptions.Clo.PrintDesugarings;
@@ -221,8 +221,8 @@ namespace Microsoft.Boogie {
CommandLineOptions.Clo.PrintDesugarings = false;
}
using (TokenTextWriter writer = filename == "-" ?
- new TokenTextWriter("<console>", Console.Out) :
- new TokenTextWriter(filename)) {
+ new TokenTextWriter("<console>", Console.Out, setTokens) :
+ new TokenTextWriter(filename, setTokens)) {
if (CommandLineOptions.Clo.ShowEnv != CommandLineOptions.ShowEnvironment.Never) {
writer.WriteLine("// " + CommandLineOptions.Clo.Version);
writer.WriteLine("// " + CommandLineOptions.Clo.Environment);