From e0ce605ffb6704577a5ba1be32695a3bd34f3eb9 Mon Sep 17 00:00:00 2001 From: Rustan Leino Date: Wed, 11 May 2011 17:03:02 -0700 Subject: Dafny: fixed compilation bugs, added @-signs in front of identifiers to avoid clashes with C# keywords, added switch in runtest scripts to turn on compilation --- Test/VSI-Benchmarks/runtest.bat | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Test/VSI-Benchmarks') diff --git a/Test/VSI-Benchmarks/runtest.bat b/Test/VSI-Benchmarks/runtest.bat index 0cd898c4..a733a1c0 100644 --- a/Test/VSI-Benchmarks/runtest.bat +++ b/Test/VSI-Benchmarks/runtest.bat @@ -4,12 +4,16 @@ setlocal set BOOGIEDIR=..\..\Binaries set DAFNY_EXE=%BOOGIEDIR%\Dafny.exe set BPLEXE=%BOOGIEDIR%\Boogie.exe +set CSC=c:/Windows/Microsoft.NET/Framework/v4.0.30319/csc.exe - - -for %%f in ( b1.dfy b2.dfy b3.dfy b4.dfy b5.dfy b6.dfy b7.dfy - b8.dfy ) do ( +for %%f in (b1.dfy b2.dfy b3.dfy b4.dfy b5.dfy b6.dfy b7.dfy b8.dfy) do ( echo. echo -------------------- %%f -------------------- - %DAFNY_EXE% /compile:0 %* %%f + + REM The following line will just run the verifier + IF "%COMPILEDAFNY%"=="" %DAFNY_EXE% /compile:0 %* %%f + + REM Alternatively, the following lines also produce C# code and compile it + IF NOT "%COMPILEDAFNY%"=="" %DAFNY_EXE% %* %%f + IF NOT "%COMPILEDAFNY%"=="" %CSC% /nologo /debug /t:library /out:out.dll /r:System.Numerics.dll out.cs ) -- cgit v1.2.3