summaryrefslogtreecommitdiff
path: root/Test/dafnyRuntimeChecking/runtest.bat
blob: 3e434f49f49e732e86f6a1087f64b1fe8dd15e7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@echo off
setlocal

set BOOGIEDIR=..\..\Binaries
set DAFNY_EXE=%BOOGIEDIR%\Dafny.exe
set BPLEXE=%BOOGIEDIR%\Boogie.exe

for %%f in (AssumeStmt0 AssumeStmt1 AssertStmt0 AssertStmt1
    Precondition0 Precondition1 Postcondition0 Postcondition1) do (
  echo.
  echo -------------------- %%f --------------------
  %DAFNY_EXE% /nologo /errorTrace:0 /verification:0 /runtimeChecking:1 /compile:2 /spillTargetCode:1 %* %%f.dfy
  if exist %%f.cs. (
    type %%f.cs
    del %%f.cs
  )
  if exist %%f.exe. (
    del %%f.exe
  )
  if exist %%f.pdb. (
    del %%f.pdb
  )
  if exist %%f.pdb.original. (
    del %%f.pdb.original
  )
)