summaryrefslogtreecommitdiff
path: root/Source/DafnyServer/Utilities.cs
diff options
context:
space:
mode:
authorGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-18 16:41:10 -0700
committerGravatar Clément Pit--Claudel <clement.pitclaudel@live.com>2015-08-18 16:41:10 -0700
commita019d797bd42866242e48ef00850f74e3bdc9241 (patch)
tree5ff143def292fcf8190c2613fb675fa19692ab81 /Source/DafnyServer/Utilities.cs
parentac137091eac412d2ea8a79ac1c05d161db3365f2 (diff)
Server: disable tracing when running tests, and fix an encoding issue.
z3 doesn't support byte-order marks; thus using the default UTF8Encoding object (to allow printing nice warning signs) causes issues, as it sends a BOM before anything else.
Diffstat (limited to 'Source/DafnyServer/Utilities.cs')
-rw-r--r--Source/DafnyServer/Utilities.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/DafnyServer/Utilities.cs b/Source/DafnyServer/Utilities.cs
index 4b06e9f5..96254a3d 100644
--- a/Source/DafnyServer/Utilities.cs
+++ b/Source/DafnyServer/Utilities.cs
@@ -43,7 +43,7 @@ namespace Microsoft.Dafny {
}
}
- internal static void ApplyArgs(string[] args) {
+ internal static void ApplyArgs(string[] args, bool trace) {
Dafny.DafnyOptions.Install(new Dafny.DafnyOptions());
Dafny.DafnyOptions.O.ProverKillTime = 10;
@@ -53,6 +53,7 @@ namespace Microsoft.Dafny {
Dafny.DafnyOptions.O.UnicodeOutput = true;
Dafny.DafnyOptions.O.VerifySnapshots = 2;
Dafny.DafnyOptions.O.VcsCores = Math.Max(1, System.Environment.ProcessorCount - 1);
+ Dafny.DafnyOptions.Clo.Trace = trace;
} else {
throw new ServerException("Invalid command line options");
}