diff options
author | Bryan Parno <parno@microsoft.com> | 2014-10-28 16:48:55 -0700 |
---|---|---|
committer | Bryan Parno <parno@microsoft.com> | 2014-10-28 16:48:55 -0700 |
commit | 0699647f477f0cbe83daffdbc1b5009a6f34cb64 (patch) | |
tree | b44ce3c529b004dd3089f3e54b5a05055cec64be /Source/DafnyDriver | |
parent | 6c9a50e81dbdb791c558ac0a3463f01ee6a7f580 (diff) |
Create large stack in DafnyDriver.cs, before calling main,
just in case Boogie needs more room
Diffstat (limited to 'Source/DafnyDriver')
-rw-r--r-- | Source/DafnyDriver/DafnyDriver.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/DafnyDriver/DafnyDriver.cs b/Source/DafnyDriver/DafnyDriver.cs index 8046a7ac..2bda7cf0 100644 --- a/Source/DafnyDriver/DafnyDriver.cs +++ b/Source/DafnyDriver/DafnyDriver.cs @@ -26,6 +26,18 @@ namespace Microsoft.Dafny public static int Main(string[] args)
{
+ int ret = 0;
+ var thread = new System.Threading.Thread(
+ new System.Threading.ThreadStart(() =>
+ { ret = ThreadMain(args); }),
+ 0x10000000); // 256MB stack size to prevent stack overflow
+ thread.Start();
+ thread.Join();
+ return ret;
+ }
+
+ public static int ThreadMain(string[] args)
+ {
Contract.Requires(cce.NonNullElements(args));
printer = new DafnyConsolePrinter();
|