summaryrefslogtreecommitdiff
path: root/Test/VSComp2010
diff options
context:
space:
mode:
Diffstat (limited to 'Test/VSComp2010')
-rw-r--r--Test/VSComp2010/AnswerNoRuntimeChecking15
-rw-r--r--Test/VSComp2010/AnswerRuntimeChecking4
-rw-r--r--Test/VSComp2010/runtestNoRuntimeChecking.bat28
-rw-r--r--Test/VSComp2010/runtestRuntimeChecking.bat33
4 files changed, 80 insertions, 0 deletions
diff --git a/Test/VSComp2010/AnswerNoRuntimeChecking b/Test/VSComp2010/AnswerNoRuntimeChecking
new file mode 100644
index 00000000..d0492caf
--- /dev/null
+++ b/Test/VSComp2010/AnswerNoRuntimeChecking
@@ -0,0 +1,15 @@
+
+-------------------- Problem1-SumMax --------------------
+Compiled assembly into Problem1-SumMax.exe
+
+-------------------- Problem2-Invert --------------------
+Compiled assembly into Problem2-Invert.exe
+
+-------------------- Problem3-FindZero --------------------
+Compiled assembly into Problem3-FindZero.exe
+
+-------------------- Problem4-Queens --------------------
+Compiled assembly into Problem4-Queens.exe
+
+-------------------- Problem5-DoubleEndedQueue --------------------
+Compiled assembly into Problem5-DoubleEndedQueue.dll
diff --git a/Test/VSComp2010/AnswerRuntimeChecking b/Test/VSComp2010/AnswerRuntimeChecking
new file mode 100644
index 00000000..858b6370
--- /dev/null
+++ b/Test/VSComp2010/AnswerRuntimeChecking
@@ -0,0 +1,4 @@
+
+-------------------- Problem1-SumMax --------------------
+Compiled assembly into Problem1-SumMax.exe
+Rewrote assembly into Problem1-SumMax.exe
diff --git a/Test/VSComp2010/runtestNoRuntimeChecking.bat b/Test/VSComp2010/runtestNoRuntimeChecking.bat
new file mode 100644
index 00000000..4efd244a
--- /dev/null
+++ b/Test/VSComp2010/runtestNoRuntimeChecking.bat
@@ -0,0 +1,28 @@
+@echo off
+setlocal
+
+set BOOGIEDIR=..\..\Binaries
+set DAFNY_EXE=%BOOGIEDIR%\Dafny.exe
+set BPLEXE=%BOOGIEDIR%\Boogie.exe
+
+for %%f in (Problem1-SumMax Problem2-Invert Problem3-FindZero
+ Problem4-Queens Problem5-DoubleEndedQueue) do (
+ echo.
+ echo -------------------- %%f --------------------
+ %DAFNY_EXE% /nologo /errorTrace:0 /verification:0 /runtimeChecking:0 /compile:2 %* %%f.dfy
+ if exist %%f.cs. (
+ del %%f.cs
+ )
+ if exist %%f.exe. (
+ del %%f.exe
+ )
+ if exist %%f.dll. (
+ del %%f.dll
+ )
+ if exist %%f.pdb. (
+ del %%f.pdb
+ )
+ if exist %%f.pdb.original. (
+ del %%f.pdb.original
+ )
+)
diff --git a/Test/VSComp2010/runtestRuntimeChecking.bat b/Test/VSComp2010/runtestRuntimeChecking.bat
new file mode 100644
index 00000000..d3b8a733
--- /dev/null
+++ b/Test/VSComp2010/runtestRuntimeChecking.bat
@@ -0,0 +1,33 @@
+@echo off
+setlocal
+
+set BOOGIEDIR=..\..\Binaries
+set DAFNY_EXE=%BOOGIEDIR%\Dafny.exe
+set BPLEXE=%BOOGIEDIR%\Boogie.exe
+
+REM to implement:
+REM Problem2-Invert : quantifiers
+REM Problem3-FindZero : ghost state
+REM Problem4-Queens : quantifiers
+REM Problem5-DoubleEndedQueue: ghost state
+
+for %%f in (Problem1-SumMax) do (
+ echo.
+ echo -------------------- %%f --------------------
+ %DAFNY_EXE% /nologo /errorTrace:0 /verification:0 /runtimeChecking:1 /compile:2 %* %%f.dfy
+ if exist %%f.cs. (
+ del %%f.cs
+ )
+ if exist %%f.exe. (
+ del %%f.exe
+ )
+ if exist %%f.dll. (
+ del %%f.dll
+ )
+ if exist %%f.pdb. (
+ del %%f.pdb
+ )
+ if exist %%f.pdb.original. (
+ del %%f.pdb.original
+ )
+)