-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
387 lines (295 loc) · 13.8 KB
/
Makefile
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
#tool versions
aiger_version=1.9.9
bloqqer_version=037-8660cb9-151127
caqe_version=4.0.2
cms_version=5.8.0
cvc_major_ver=5
cvc_minor_ver=1.8
depqbf_version=6.03
eprover_version=V_2.5
spot_version=2.9.7
ltl3ba_version=1.1.3
idq_version=1.0
nuSMV_version=v1.2#prebuild file version
pico_version=965
rareqs_version=1.1
z3_version=4.8.10
.PHONY: default debug release test tools required-tools optional-tools all clean distclean
.INTERMEDIATE: Tools/ltl3ba-$(ltl3ba_version).tar.gz Tools/bloqqer-$(bloqqer_version).tar.gz Tools/bloqqer-031-7a176af-110509.tar.gz Tools/cadet-bin.tar.gz Tools/caqe-bin.tar.gz Tools/cryptominisat-$(cms_version).tar.gz Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver).tar.gz Tools/depqbf-$(depqbf_version).tar.gz Tools/spot-$(spot_version).tar.gz Tools/z3-$(z3_version).tar.gz Tools/rareqs-$(rareqs_version).src.tgz Tools/picosat-$(pico_version).tar.gz Tools/idq-$(idq_version).tar.gz Tools/vampire.zip Tools/E.tgz Tools/aiger-$(aiger_version).tar.gz
.SECONDARY: Tools/abc-hg/abc Tools/abc-hg Tools/bloqqer-031-7a176af-110509 Tools/bloqqer-031-7a176af-110509/bloqqer Tools/bloqqer-$(bloqqer_version) Tools/bloqqer-$(bloqqer_version)/bloqqer Tools/ltl3ba Tools/ltl3ba-$(ltl3ba_version) Tools/ltl3ba-$(ltl3ba_version)/ltl3ba Tools/cryptominisat-$(cms_version) Tools/cryptominisat-$(cms_version)/build Tools/depqbf-version-$(depqbf_version)/depqbf Tools/depqbf-version-$(depqbf_version) Tools/quabs-git Tools/spot-$(spot_version) Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver) Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver)/builds/bin/cvc4 Tools/z3-$(z3_version)/build/z3 Tools/z3-$(z3_version) Tools/rareqs-$(rareqs_version) Tools/syfco-git Tools/syfco-git/syfco Tools/picosat-$(pico_version) Tools/picosat Tools/idq-$(idq_version) Tools/idq-$(idq_version)/idq Tools/aiger-$(aiger_version) Tools/aiger-$(aiger_version)/aigbmc Tools/aiger-$(aiger_version)/smvtoaig Tools/aiger-ltl-model-checker Tools/aiger-ltl-model-checker/combine-aiger
default: release
debug: required-tools
swift build
release: required-tools
swift build --configuration release -Xcc -O3 -Xcc -DNDEBUG -Xswiftc -Ounchecked
all: tools release
test:
swift test
clean:
swift package clean
clean-source-tools:
rm -rf Tools/aiger-$(aiger_version)
rm -rf Tools/abc-hg
rm -rf Tools/ltl3ba-$(ltl3ba_version)
rm -rf Tools/bloqqer-$(bloqqer_version)
rm -rf Tools/bloqqer-031-7a176af-110509
rm -rf Tools/cryptominisat-$(cms_version)
rm -rf Tools/depqbf-version-$(depqbf_version)
rm -rf Tools/spot-$(spot_version)
rm -rf Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver)
rm -rf Tools/z3-$(z3_version)
rm -rf Tools/rareqs-$(rareqs_version)
rm -rf Tools/quabs-git
rm -rf Tools/syfco-git
rm -rf Tools/picosat-$(pico_version)
rm -rf Tools/picosat
rm -rf Tools/idq-$(idq_version)
rm -rf Tools/NuSMV-$(nuSMV_version)
rm -rf Tools/aiger-ltl-model-checker
distclean:
swift package reset
rm -rf Tools
tools: required-tools optional-tools
required-tools: \
Tools/abc \
Tools/bloqqer \
Tools/bloqqer-031 \
Tools/cadet \
Tools/cryptominisat5 \
Tools/ltl2tgba \
Tools/ltl3ba \
Tools/idq \
Tools/quabs \
Tools/rareqs \
Tools/syfco \
Tools/z3
optional-tools: \
Tools/aigbmc \
Tools/smvtoaig \
Tools/caqe \
Tools/combine-aiger \
Tools/cvc4 \
Tools/depqbf \
Tools/eprover \
Tools/picosat-solver \
Tools/vampire \
Tools/hqs \
Tools/NuSMV \
Tools/ltl2smv
Tools/.f:
mkdir -p Tools
touch Tools/.f
# abc
Tools/abc: Tools/abc-hg/abc
cp Tools/abc-hg/abc Tools/abc
Tools/abc-hg/abc: Tools/abc-hg
make -C Tools/abc-hg
Tools/abc-hg: Tools/.f
cd Tools ; git clone https://github.com/berkeley-abc/abc.git abc-hg
# aiger
Tools/smvtoaig: Tools/aiger-$(aiger_version)/smvtoaig
cp Tools/aiger-$(aiger_version)/smvtoaig Tools/smvtoaig
Tools/aiger-$(aiger_version)/smvtoaig: Tools/aiger-$(aiger_version)
cd Tools/aiger-$(aiger_version) ; ./configure.sh
make -C Tools/aiger-$(aiger_version) smvtoaig
Tools/aigbmc: Tools/aiger-$(aiger_version)/aigbmc
cp Tools/aiger-$(aiger_version)/aigbmc Tools/aigbmc
Tools/aiger-$(aiger_version)/aigbmc: Tools/aiger-$(aiger_version) Tools/picosat/picosat.o
cd Tools/aiger-$(aiger_version) ; ./configure.sh
make -C Tools/aiger-$(aiger_version) aigbmc
Tools/aiger-$(aiger_version): Tools/aiger-$(aiger_version).tar.gz
cd Tools ; tar xzf aiger-$(aiger_version).tar.gz
Tools/aiger-$(aiger_version).tar.gz: Tools/.f
cd Tools ; curl -OL http://fmv.jku.at/aiger/aiger-$(aiger_version).tar.gz
# bloqqer
Tools/bloqqer: Tools/bloqqer-$(bloqqer_version)/bloqqer
cp Tools/bloqqer-$(bloqqer_version)/bloqqer Tools/bloqqer
Tools/bloqqer-$(bloqqer_version)/bloqqer: Tools/bloqqer-$(bloqqer_version)
cd Tools/bloqqer-$(bloqqer_version) ; ./configure
make -C Tools/bloqqer-$(bloqqer_version)
Tools/bloqqer-$(bloqqer_version): Tools/bloqqer-$(bloqqer_version).tar.gz
cd Tools ; tar xzf bloqqer-$(bloqqer_version).tar.gz
Tools/bloqqer-$(bloqqer_version).tar.gz: Tools/.f
cd Tools ; curl -OL http://fmv.jku.at/bloqqer/bloqqer-$(bloqqer_version).tar.gz
Tools/bloqqer-031: Tools/bloqqer-031-7a176af-110509/bloqqer
cp Tools/bloqqer-031-7a176af-110509/bloqqer Tools/bloqqer-031
Tools/bloqqer-031-7a176af-110509/bloqqer: Tools/bloqqer-031-7a176af-110509
cd Tools/bloqqer-031-7a176af-110509 ; ./configure
make -C Tools/bloqqer-031-7a176af-110509
Tools/bloqqer-031-7a176af-110509: Tools/bloqqer-031-7a176af-110509.tar.gz
cd Tools ; tar xzf bloqqer-031-7a176af-110509.tar.gz
Tools/bloqqer-031-7a176af-110509.tar.gz: Tools/.f
cd Tools ; curl -OL http://fmv.jku.at/bloqqer/bloqqer-031-7a176af-110509.tar.gz
# cadet
Tools/cadet: Tools/cadet-git/cadet
cp Tools/cadet-git/cadet Tools/
Tools/cadet-git/cadet: Tools/cadet-git
cd Tools/cadet-git ; ./configure
make -C Tools/cadet-git
Tools/cadet-git: Tools/.f
cd Tools ; git clone https://github.com/MarkusRabe/cadet.git cadet-git
# caqe
Tools/caqe: Tools/caqe-src/target/release/caqe
cp Tools/caqe-$(caqe_version)/target/release/caqe Tools/caqe
Tools/caqe-src/target/release/caqe: Tools/caqe-src
cd Tools/caqe-$(caqe_version) && cargo build --release
Tools/caqe-src: Tools/caqe-src.tar.gz
cd Tools && tar xzf caqe-src.tar.gz
Tools/caqe-src.tar.gz:
cd Tools && curl -L -G -o caqe-src.tar.gz https://github.com/ltentrup/caqe/archive/$(caqe_version).tar.gz
# combine-aiger
Tools/combine-aiger: Tools/aiger-ltl-model-checker/combine-aiger
cp Tools/aiger-ltl-model-checker/combine-aiger Tools/combine-aiger
Tools/aiger-ltl-model-checker/combine-aiger: Tools/aiger-ltl-model-checker
make -C Tools/aiger-ltl-model-checker
Tools/aiger-ltl-model-checker:
cd Tools ; git clone https://github.com/reactive-systems/aiger-ltl-model-checker.git
# cryptominisat
Tools/cryptominisat5: Tools/cryptominisat-$(cms_version)/build
cp Tools/cryptominisat-$(cms_version)/build/cryptominisat5_simple Tools/cryptominisat5
Tools/cryptominisat-$(cms_version)/build: Tools/cryptominisat-$(cms_version)
mkdir Tools/cryptominisat-$(cms_version)/build
cd Tools/cryptominisat-$(cms_version)/build ; cmake -DCMAKE_BUILD_TYPE=Release -DSTATICCOMPILE=ON -DENABLE_PYTHON_INTERFACE=OFF ..
cd Tools/cryptominisat-$(cms_version)/build ; make -j4
Tools/cryptominisat-$(cms_version): Tools/cryptominisat-$(cms_version).tar.gz
cd Tools ; tar xzf cryptominisat-$(cms_version).tar.gz
Tools/cryptominisat-$(cms_version).tar.gz: Tools/.f
cd Tools ; curl -OL https://github.com/msoos/cryptominisat/archive/$(cms_version).tar.gz
mv Tools/$(cms_version).tar.gz Tools/cryptominisat-$(cms_version).tar.gz
# cvc4
Tools/cvc4: Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver)/builds/bin/cvc4
cp Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver)/build/bin/cvc4 Tools/cvc4
Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver)/builds/bin/cvc4: Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver)
cd Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver) ; ./contrib/get-antlr-3.4
cd Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver) ; ./configure.sh production --static --static-binary #--best --enable-gpl
make -j4 -C Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver)/build
Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver): Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver).tar.gz
cd Tools ; tar xzf cvc$(cvc_major_ver)-$(cvc_minor_ver).tar.gz
Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver).tar.gz: Tools/.f
cd Tools ; curl -OL https://github.com/cvc5/cvc5/archive/refs/tags/$(cvc_minor_ver).tar.gz
mv Tools/$(cvc_minor_ver).tar.gz Tools/cvc$(cvc_major_ver)-$(cvc_minor_ver).tar.gz
# depqbf
Tools/depqbf: Tools/depqbf-version-$(depqbf_version)/depqbf
cp Tools/depqbf-version-$(depqbf_version)/depqbf Tools/depqbf
Tools/depqbf-version-$(depqbf_version)/depqbf: Tools/depqbf-version-$(depqbf_version)
cd Tools/depqbf-version-$(depqbf_version); ./compile.sh
Tools/depqbf-version-$(depqbf_version): Tools/depqbf-$(depqbf_version).tar.gz
cd Tools ; tar xzf depqbf-$(depqbf_version).tar.gz
Tools/depqbf-$(depqbf_version).tar.gz: Tools/.f
cd Tools ; curl -OL https://github.com/lonsing/depqbf/archive/version-$(depqbf_version).tar.gz
mv Tools/version-$(depqbf_version).tar.gz Tools/depqbf-$(depqbf_version).tar.gz
# eprover
Tools/eprover: Tools/E
cd Tools/E ; ./configure
make -C Tools/E
cp Tools/E/PROVER/eprover Tools/
Tools/E: Tools/E.tgz
cd Tools ; tar xzf E.tgz
Tools/E.tgz: Tools/.f
cd Tools ; curl -OL http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/$(eprover_version)/E.tgz
# vampire
Tools/vampire: Tools/Vampires
cp Tools/Vampires/vampire_x86_64 Tools/vampire
Tools/Vampires: Tools/vampire.zip
cd Tools ; unzip -D vampire.zip
Tools/vampire.zip: Tools/.f
cd Tools ; curl -OL http://forsyte.at/wp-content/uploads/vampire.zip
# spot/ltl2tgba
Tools/ltl2tgba: Tools/spot-$(spot_version)
cd Tools/spot-$(spot_version); ./configure --disable-python --enable-static --disable-shared
cd Tools/spot-$(spot_version); make
cp Tools/spot-$(spot_version)/bin/ltl2tgba Tools/
Tools/spot-$(spot_version): Tools/spot-$(spot_version).tar.gz
cd Tools; tar xzf spot-$(spot_version).tar.gz
Tools/spot-$(spot_version).tar.gz: Tools/.f
cd Tools; curl -OL http://www.lrde.epita.fr/dload/spot/spot-$(spot_version).tar.gz
# ltl3ba
Tools/ltl3ba: Tools/ltl3ba-$(ltl3ba_version)/ltl3ba
cp Tools/ltl3ba-$(ltl3ba_version)/ltl3ba Tools/ltl3ba
Tools/ltl3ba-$(ltl3ba_version)/ltl3ba: Tools/ltl3ba-$(ltl3ba_version)
cd Tools ; make -C ltl3ba-$(ltl3ba_version)
Tools/ltl3ba-$(ltl3ba_version): Tools/ltl3ba-$(ltl3ba_version).tar.gz
cd Tools ; tar xzf ltl3ba-$(ltl3ba_version).tar.gz
Tools/ltl3ba-$(ltl3ba_version).tar.gz: Tools/.f
cd Tools ; curl -OL https://sourceforge.net/projects/ltl3ba/files/ltl3ba/1.1/ltl3ba-$(ltl3ba_version).tar.gz
# idq
Tools/idq: Tools/idq-$(idq_version)/idq
cp Tools/idq-$(idq_version)/idq Tools/idq
Tools/idq-$(idq_version)/idq: Tools/idq-$(idq_version)
# patch makefile
cd Tools/idq-$(idq_version) ; sed -i -e 's/-static//g' makefile
# build
make -C Tools/idq-$(idq_version)
Tools/idq-$(idq_version): Tools/idq-$(idq_version).tar.gz
cd Tools ; tar xzf idq-$(idq_version).tar.gz
Tools/idq-$(idq_version).tar.gz: Tools/.f
cd Tools ; curl -OL http://fmv.jku.at/idq/idq-$(idq_version).tar.gz
# hqs
Tools/hqs: Tools/hqs-bin/hqs
cp Tools/hqs-bin/hqs Tools/hqs-linux
cp Tools/hqs-bin/preprocess Tools/hqspre-linux
Tools/hqs-bin/hqs: Tools/hqs-bin.tar.gz
cd Tools ; tar xzf hqs-bin.tar.gz
Tools/hqs-bin.tar.gz: Tools/.f
cd Tools ; curl -OL -G -d dl=1 https://www.dropbox.com/s/cdesqq4ckh96x2i/hqs-bin.tar.gz
# NuSMV
Tools/NuSMV: Tools/NuSMV-$(nuSMV_version)/dl
mv Tools/NuSMVa_linux64 Tools/NuSMV
chmod +x Tools/NuSMV
Tools/ltl2smv:
cd Tools ; curl -OL https://github.com/hklarner/NuSMV-a/releases/download/v1.2/ltl2smv
chmod +x Tools/ltl2smv
Tools/NuSMV-$(nuSMV_version)/dl: Tools/.f
cd Tools ; curl -OL https://github.com/hklarner/NuSMV-a/releases/download/v1.2/NuSMVa_linux64
# picosat
Tools/picosat-solver: Tools/picosat-$(pico_version)
cd Tools/picosat-$(pico_version) ; ./configure.sh
make -C Tools/picosat-$(pico_version) picosat
cp Tools/picosat-$(pico_version)/picosat Tools/picosat-solver
Tools/picosat-$(pico_version): Tools/picosat-$(pico_version).tar.gz
cd Tools ; tar xzf picosat-$(pico_version).tar.gz
Tools/picosat: Tools/picosat-$(pico_version)
cd Tools ; ln -sf picosat-$(pico_version) picosat
Tools/picosat/picosat.o: Tools/picosat
cd Tools/picosat ; ./configure.sh
make -C Tools/picosat picosat.o
Tools/picosat-$(pico_version).tar.gz: Tools/.f
cd Tools ; curl -OL http://fmv.jku.at/picosat/picosat-$(pico_version).tar.gz
# QuAbS
Tools/quabs: Tools/quabs-git/release/quabs
cp Tools/quabs-git/release/quabs Tools/quabs
Tools/quabs-git/release/quabs: Tools/quabs-git
cd Tools/quabs-git; mkdir -p release
cd Tools/quabs-git/release ; cmake -DCMAKE_BUILD_TYPE=Release .. && make
Tools/quabs-git: Tools/.f
cd Tools ; git clone --recurse-submodules https://github.com/reactive-systems/quabs.git quabs-git
# rareqs
Tools/rareqs: Tools/rareqs-$(rareqs_version)
# apply patches
patch -p1 --directory=Tools/rareqs-$(rareqs_version) -i ../../rareqs.patch
# build
make -C Tools/rareqs-$(rareqs_version)
cp Tools/rareqs-$(rareqs_version)/rareqs Tools/rareqs
Tools/rareqs-$(rareqs_version): Tools/rareqs-$(rareqs_version).src.tgz
cd Tools ; tar xzf rareqs-$(rareqs_version).src.tgz
Tools/rareqs-$(rareqs_version).src.tgz: Tools/.f
cd Tools ; curl -OL http://sat.inesc-id.pt/~mikolas/sw/areqs/rareqs-$(rareqs_version).src.tgz
# syfco
Tools/syfco: Tools/syfco-git/syfco
cp Tools/syfco-git/syfco Tools/syfco
Tools/syfco-git/syfco: Tools/syfco-git
cd Tools/syfco-git ; stack setup
cd Tools/syfco-git ; make
Tools/syfco-git: Tools/.f
cd Tools ; git clone https://github.com/reactive-systems/syfco.git syfco-git
# z3
Tools/z3: Tools/z3-$(z3_version)/build/z3
cp Tools/z3-$(z3_version)/build/z3 Tools/z3
Tools/z3-$(z3_version)/build/z3: Tools/z3-$(z3_version)
cd Tools/z3-$(z3_version) ; ./configure
make -C Tools/z3-$(z3_version)/build
Tools/z3-$(z3_version): Tools/z3-$(z3_version).tar.gz
cd Tools ; tar xzf z3-$(z3_version).tar.gz
cd Tools ; mv z3-z3-$(z3_version) z3-$(z3_version)
Tools/z3-$(z3_version).tar.gz: Tools/.f
cd Tools ; curl -OL https://github.com/Z3Prover/z3/archive/z3-$(z3_version).tar.gz