-
Notifications
You must be signed in to change notification settings - Fork 102
190 lines (184 loc) · 6.91 KB
/
benchexec.yml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
name: Run Benchexec
on:
workflow_dispatch:
inputs:
timeout:
description: 'Timeout for each benchmarks (in seconds)'
required: true
default: '30'
options:
description: 'Command-line flags to pass via ESBMC_OPTS'
required: false
default: ''
output:
description: 'File output name (to keep the logs)'
required: false
default: ''
svbenchmarks:
description: 'Git branch, tag, or commit of SV-Benchmarks to use'
required: true
default: 'main'
mode:
type: choice
description: Benchexec run mode
options:
- Full
- Task
- RunSet
runset:
type: choice
description: Run-set to use (be sure to set mode to "RunSet")
options:
- SV-COMP25_unreach-call
- SV-COMP25_no-data-race
- SV-COMP25_valid-memcleanup
- SV-COMP25_valid-memsafety
- SV-COMP25_termination
- SV-COMP25_no-overflow
- SV-COMP25_ConcurrencySafety
- Custom
task:
type: choice
description: Task to use Run-set to use (be sure to set mode to "Task")
options:
- ReachSafety-Arrays
- ReachSafety-BitVectors
- ReachSafety-ControlFlow
- ReachSafety-ECA
- ReachSafety-Floats
- ReachSafety-Heap
- ReachSafety-Loops
- ReachSafety-ProductLines
- ReachSafety-Recursive
- ReachSafety-Sequentialized
- ReachSafety-XCSP
- ReachSafety-Combinations
- ReachSafety-Hardware
- ReachSafety-Hardness
- ReachSafety-Fuzzle
- ConcurrencySafety-Main
- SoftwareSystems-AWS-C-Common-ReachSafety
- SoftwareSystems-DeviceDriversLinux64-ReachSafety
- SoftwareSystems-DeviceDriversLinux64Large-ReachSafety
- SoftwareSystems-Other-ReachSafety
- SoftwareSystems-uthash-ReachSafety
- SoftwareSystems-Intel-TDX-Module-ReachSafety
- NoDataRace-Main
- MemSafety-MemCleanup
- SoftwareSystems-uthash-MemCleanup
- MemSafety-Arrays
- MemSafety-Heap
- MemSafety-LinkedLists
- MemSafety-Other
- MemSafety-Juliet
- SoftwareSystems-coreutils-MemSafety
- SoftwareSystems-DeviceDriversLinux64-MemSafety
- SoftwareSystems-Other-MemSafety
- SoftwareSystems-uthash-MemSafety
- ConcurrencySafety-MemSafety
- NoOverflows-Main
- NoOverflows-Juliet
- SoftwareSystems-BusyBox-NoOverflows
- SoftwareSystems-coreutils-NoOverflows
- SoftwareSystems-uthash-NoOverflows
- ConcurrencySafety-NoOverflows
- Termination-BitVectors
- Termination-MainControlFlow
- Termination-MainHeap
- Termination-Other
- SoftwareSystems-DeviceDriversLinux64-Termination
cpachecker:
description: "Run CPAChecker for violation witness validation"
required: true
type: boolean
jobs:
build-unix:
uses: ./.github/workflows/build.yml
with:
operating-system: ubuntu-22.04
build-flags: '-b Release -e Off -C'
testing: false
run-benchexec:
runs-on: ['self-hosted', 'Linux', 'x64', 'benchexec']
timeout-minutes: 12000
needs: build-unix
steps:
- name: Setup SV-Benchmarks version
run: cd $HOME/sv-benchmarks && git fetch --all --tags --force && git checkout ${{ inputs.svbenchmarks }} && if [ "${{ inputs.svbenchmarks }}" == "main" ]; then git reset --hard origin/main; fi
- name: Download Linux Build
uses: actions/download-artifact@v4
with:
name: 'release-ubuntu-22.04--b Release -e Off -C'
path: ./
- name: Checkout code
uses: actions/checkout@v4
with:
path: esbmc-src
- name: Set up the custom runset
if: ${{ inputs.mode == 'RunSet' && inputs.runset == 'Custom' }}
run: cp ./esbmc-src/scripts/competitions/svcomp/custom-reach.set $HOME/sv-benchmarks/c/ && mv ./esbmc-src/scripts/competitions/svcomp/custom.xml ./esbmc-src/scripts/competitions/svcomp/esbmc.xml
- name: Set up the Concurrency runset
if: ${{ inputs.mode == 'RunSet' && inputs.runset == 'SV-COMP25_ConcurrencySafety' }}
run: mv ./esbmc-src/scripts/competitions/svcomp/ConcurrencySafety.xml ./esbmc-src/scripts/competitions/svcomp/esbmc.xml
- name: Run Benchexec (Full)
if: ${{ inputs.mode == 'Full' }}
run: ./esbmc-src/scripts/benchexec.sh -f
env:
TIMEOUT: ${{ inputs.timeout }}
ESBMC_OPTS: ${{ inputs.options }}
- name: Run Benchexec (ConcurrencyRunSet)
if: ${{ inputs.mode == 'RunSet' && inputs.runset == 'SV-COMP25_ConcurrencySafety' }}
run: ./esbmc-src/scripts/benchexec.sh -f
env:
TIMEOUT: ${{ inputs.timeout }}
ESBMC_OPTS: ${{ inputs.options }}
- name: Run Benchexec (RunSet)
if: ${{ inputs.mode == 'RunSet' && inputs.runset != 'SV-COMP25_ConcurrencySafety'}}
run: ./esbmc-src/scripts/benchexec.sh -r ${{ inputs.runset }}
env:
TIMEOUT: ${{ inputs.timeout }}
ESBMC_OPTS: ${{ inputs.options }}
- name: Run Benchexec (Task)
if: ${{ inputs.mode == 'Task' }}
run: ./esbmc-src/scripts/benchexec.sh -t ${{ inputs.task }}
env:
TIMEOUT: ${{ inputs.timeout }}
ESBMC_OPTS: ${{ inputs.options }}
- name: Show summary (ESBMC)
run: tail $HOME/esbmc-output/*results*.txt
- name: Save logs
if: ${{ inputs.output != '' }}
run: cp $HOME/output.zip $HOME/${{ inputs.output }}
- name: Move output
run: mv $HOME/output.zip ./output.zip
- name: Debug Info
run: ls
- uses: actions/upload-artifact@v4
with:
name: esbmc-result
path: output.zip
- name: Checkout code
if: ${{ inputs.cpachecker == true }}
uses: actions/checkout@v4
with:
path: esbmc-src
- name: Run Validation (Full)
if: ${{ inputs.cpachecker == true && inputs.mode == 'Full' }}
run: ./esbmc-src/scripts/witness.sh -f
- name: Run Validation (RunSet)
if: ${{ inputs.cpachecker == true && inputs.mode == 'RunSet' }}
run: ./esbmc-src/scripts/witness.sh -r ${{ inputs.runset }}
- name: Run Validation (Task)
if: ${{ inputs.cpachecker == true && inputs.mode == 'Task' }}
run: ./esbmc-src/scripts/witness.sh -t ${{ inputs.task }}
- name: Move output
if: ${{ inputs.cpachecker == true }}
run: mv $HOME/witness-output.zip ./witness-output.zip
- name: Show summary (CPAChecker)
if: ${{ inputs.cpachecker == true }}
run: tail $HOME/witness-output/*results*.txt
- uses: actions/upload-artifact@v4
if: ${{ inputs.cpachecker == true }}
with:
name: witness-result
path: witness-output.zip