From cdefc951832b6efc455ce3070e6fab470bd602f1 Mon Sep 17 00:00:00 2001 From: Rustan Leino Date: Tue, 22 Nov 2011 18:33:22 -0800 Subject: Dafny: call C# compiler directly from inside Dafny, and optionally produce a .cs file with the new /spillTargetCode switch --- Test/VSComp2010/Answer | 5 ----- Test/VSComp2010/runtest.bat | 4 +--- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'Test/VSComp2010') diff --git a/Test/VSComp2010/Answer b/Test/VSComp2010/Answer index dc523fdf..9a083fa3 100644 --- a/Test/VSComp2010/Answer +++ b/Test/VSComp2010/Answer @@ -2,24 +2,19 @@ -------------------- Problem1-SumMax.dfy -------------------- Dafny program verifier finished with 4 verified, 0 errors -Compiled program written to out.cs -------------------- Problem2-Invert.dfy -------------------- Dafny program verifier finished with 7 verified, 0 errors -Compiled program written to out.cs -------------------- Problem3-FindZero.dfy -------------------- Dafny program verifier finished with 7 verified, 0 errors -Compiled program written to out.cs -------------------- Problem4-Queens.dfy -------------------- Dafny program verifier finished with 9 verified, 0 errors -Compiled program written to out.cs -------------------- Problem5-DoubleEndedQueue.dfy -------------------- Dafny program verifier finished with 21 verified, 0 errors -Compiled program written to out.cs diff --git a/Test/VSComp2010/runtest.bat b/Test/VSComp2010/runtest.bat index e16eda13..9535d677 100644 --- a/Test/VSComp2010/runtest.bat +++ b/Test/VSComp2010/runtest.bat @@ -11,7 +11,5 @@ for %%f in (Problem1-SumMax.dfy Problem2-Invert.dfy Problem5-DoubleEndedQueue.dfy) do ( echo. echo -------------------- %%f -------------------- - %DAFNY_EXE% %* %%f - - IF NOT "%COMPILEDAFNY%"=="" %CSC% /nologo /debug /t:library /out:out.dll /r:System.Numerics.dll out.cs + %DAFNY_EXE% /compile:0 %* %%f ) -- cgit v1.2.3