summaryrefslogtreecommitdiff
path: root/Source/GPUVerify/Scripts/GPUVerifyDriver.bat
blob: 959a326b066fc68b3b7092f8173d85c86de858ba (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@ECHO OFF

set InputFile=""
set SkeletonFile=""

set ScriptDir=%~p0

:Loop
IF "%1"=="" GOTO Continue

set temp=%1

IF %temp:~0,26%==/generateFormulaSkeletons: GOTO SetSkeletonFile

set InputFile=%1

GOTO LastPartOfLoop

:SetSkeletonFile

set SkeletonFile=%temp:~26%

:LastPartOfLoop

SHIFT
GOTO Loop
:Continue

IF %InputFile%=="" GOTO Error

echo Preprocess
Boogie /noVerify /printUnstructured /print:temp_unstructured.bpl %InputFile% %ScriptDir%..\BoogieLibrary\GPUVerifyLibrary.bpl

IF %SkeletonFile%=="" GOTO Verify

GOTO Generate




:Verify
echo Verify
GPUVerify temp_unstructured.bpl /print:temp_ready_to_verify.bpl /newRaceDetectionMethod
Boogie temp_ready_to_verify.bpl formulas.bpl /prover:smtlib
del temp_unstructured.bpl
GOTO End

:Generate
echo Generate
GPUVerify temp_unstructured.bpl /generateFormulaSkeletons:%SkeletonFile%
del temp_unstructured.bpl
GOTO End

:Error
echo Error: Bad command line specified for GPUVerify
GOTO End




:End