-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
299 lines (247 loc) · 11.3 KB
/
Makefile.am
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
AM_CPPFLAGS = -I$(srcdir)/src
# unused private field warnings are only supported in clang, so get rid
# of them for consistency
AM_CXXFLAGS = -Wall -Wpedantic -Werror -Wno-unused-private-field
# No pedantic for CFLAGS because aiger has some mixed code and declarations
# that gcc4 errors about
AM_CFLAGS = -Wall -Werror
ACLOCAL_AMFLAGS = -I m4
bin_SCRIPTS = scripts/pme-canonicalize
noinst_SCRIPTS = scripts/run-integration scripts/make-golden scripts/make-golden-ivcs
noinst_LIBRARIES = libpme.a libsat.a
libpme_a_SOURCES = src/aiger/aiger.h \
src/aiger/aiger.c \
src/pme/pme.h \
src/pme/pme.cpp \
src/pme/id.h \
src/pme/id.cpp \
src/pme/cpme.cpp \
src/pme/safety.h \
src/pme/engine/engine.h \
src/pme/engine/engine.cpp \
src/pme/engine/options.h \
src/pme/engine/options.cpp \
src/pme/engine/transition_relation.h \
src/pme/engine/transition_relation.cpp \
src/pme/engine/debug_transition_relation.h \
src/pme/engine/debug_transition_relation.cpp \
src/pme/engine/sat_adaptor.h \
src/pme/engine/sat_adaptor.cpp \
src/pme/engine/variable_manager.h \
src/pme/engine/variable_manager.cpp \
src/pme/engine/consecution_checker.h \
src/pme/engine/consecution_checker.cpp \
src/pme/engine/collapse_set_finder.h \
src/pme/engine/collapse_set_finder.cpp \
src/pme/engine/global_state.h \
src/pme/engine/global_state.cpp \
src/pme/engine/logger.h \
src/pme/engine/logger.cpp \
src/pme/util/cardinality_constraint.h \
src/pme/util/cardinality_constraint.cpp \
src/pme/util/sorting_network.h \
src/pme/util/sorting_network.cpp \
src/pme/util/clause_database.h \
src/pme/util/clause_database.cpp \
src/pme/util/proof_checker.h \
src/pme/util/proof_checker.cpp \
src/pme/util/ivc_checker.h \
src/pme/util/ivc_checker.cpp \
src/pme/util/maxsat_solver.h \
src/pme/util/maxsat_solver.cpp \
src/pme/util/mus_finder.h \
src/pme/util/mus_finder.cpp \
src/pme/util/find_safe_mis.h \
src/pme/util/find_safe_mis.cpp \
src/pme/util/find_minimal_support.h \
src/pme/util/find_minimal_support.cpp \
src/pme/util/simplify_tr.h \
src/pme/util/simplify_tr.cpp \
src/pme/util/debugger.h \
src/pme/util/debugger.cpp \
src/pme/util/ic3_debugger.h \
src/pme/util/ic3_debugger.cpp \
src/pme/util/bmc_debugger.h \
src/pme/util/bmc_debugger.cpp \
src/pme/util/hybrid_debugger.h \
src/pme/util/hybrid_debugger.cpp \
src/pme/util/hybrid_safety_checker.h \
src/pme/util/hybrid_safety_checker.cpp \
src/pme/util/timer.h \
src/pme/util/timer.cpp \
src/pme/util/hitting_set_finder.h \
src/pme/util/hitting_set_finder.cpp \
src/pme/util/check_cex.h \
src/pme/util/check_cex.cpp \
src/pme/util/map_solver.h \
src/pme/util/map_solver.cpp \
src/pme/minimization/marco.h \
src/pme/minimization/marco.cpp \
src/pme/minimization/camsis.h \
src/pme/minimization/camsis.cpp \
src/pme/minimization/brute_force.h \
src/pme/minimization/brute_force.cpp \
src/pme/minimization/sisi.h \
src/pme/minimization/sisi.cpp \
src/pme/minimization/minimization.h \
src/pme/minimization/minimization.cpp \
src/pme/minimization/simple.h \
src/pme/minimization/simple.cpp \
src/pme/ic3/ic3.h \
src/pme/ic3/ic3.cpp \
src/pme/ic3/ic3_solver.h \
src/pme/ic3/ic3_solver.cpp \
src/pme/ic3/inductive_trace.h \
src/pme/ic3/inductive_trace.cpp \
src/pme/ic3/frame_solver.h \
src/pme/ic3/frame_solver.cpp \
src/pme/ic3/transition_relation_solver.h \
src/pme/ic3/transition_relation_solver.cpp \
src/pme/ic3/unsat_core_lifter.h \
src/pme/ic3/unsat_core_lifter.cpp \
src/pme/bmc/bmc_solver.h \
src/pme/bmc/bmc_solver.cpp \
src/pme/ivc/ivc.h \
src/pme/ivc/ivc.cpp \
src/pme/ivc/unified_ivc.h \
src/pme/ivc/unified_ivc.cpp \
src/pme/ivc/correction_set_finder.h \
src/pme/ivc/correction_set_finder.cpp \
src/pme/ivc/caivc.h \
src/pme/ivc/caivc.cpp \
src/pme/ivc/ivc_bf.h \
src/pme/ivc/ivc_bf.cpp \
src/pme/ivc/ivc_ucbf.h \
src/pme/ivc/ivc_ucbf.cpp \
src/pme/ivc/marco_ivc.h \
src/pme/ivc/marco_ivc.cpp
libpme_a_LIBADD = $(SAT_LIBS)
libsat_a_SOURCES = src/sat/sat.h \
src/sat/sat.cpp \
src/sat/minisat_style_solver.cpp \
src/sat/glucose.cpp \
src/sat/minisat.cpp
libsat_a_LIBADD = src/sat/solvers/glucose/libglucose.a \
src/sat/solvers/minisat/libminisat.a
SAT_LIBS = libsat.a \
src/sat/solvers/glucose/libglucose.a \
src/sat/solvers/minisat/libminisat.a
PME_TEST_LIBS = libpme.a \
$(SAT_LIBS) \
-lboost_unit_test_framework
# No Werror because glucose and minisat headers cause several warnings
libsat_a_CPPFLAGS = -I$(srcdir)/src \
-I$(srcdir)/src/sat/solvers/glucose/src \
-I$(srcdir)/src/sat/solvers/minisat/
libsat_a_CXXFLAGS = -Wall -Wpedantic
bin_PROGRAMS = pme parseproof
pme_SOURCES = src/main/main.c \
src/aiger/aiger.h \
src/aiger/aiger.c
pme_LDADD = libpme.a \
$(SAT_LIBS) \
-lstdc++ -lm
parseproof_SOURCES = src/parseproof/main.cpp \
src/aiger/aiger.h \
src/aiger/aiger.c
TESTS = test_sat_adaptor \
test_sat \
test_transition_relation \
test_debug_transition_relation \
test_variable_manager \
test_cardinality_constraint \
test_sorting_network \
test_proof_checker \
test_proof_minimizer \
test_maxsat_solver \
test_consecution_checker \
test_find_safe_mis \
test_find_minimal_support \
test_mus_finder \
test_logger \
test_clause_database \
test_collapse_set_finder \
test_inductive_trace \
test_frame_solver \
test_unsat_core_lifter \
test_ic3_solver \
test_debugger \
test_bmc_solver \
test_basics \
test_correction_set_finder \
test_ivc \
test_ivc_checker \
test_hybrid_safety_checker \
test_hitting_set_finder \
test_check_cex \
test_map_solver
check_PROGRAMS = $(TESTS)
test_variable_manager_SOURCES = tests/test_variable_manager.cpp
test_variable_manager_LDADD = libpme.a \
-lboost_unit_test_framework
test_sat_adaptor_SOURCES = tests/test_sat_adaptor.cpp
test_sat_adaptor_LDADD = $(PME_TEST_LIBS)
test_sat_SOURCES = tests/test_sat.cpp
test_sat_LDADD = $(SAT_LIBS) \
-lboost_unit_test_framework
test_transition_relation_SOURCES = tests/test_transition_relation.cpp
test_transition_relation_LDADD = $(PME_TEST_LIBS)
test_debug_transition_relation_SOURCES = tests/test_debug_transition_relation.cpp
test_debug_transition_relation_LDADD = $(PME_TEST_LIBS)
test_cardinality_constraint_SOURCES = tests/test_cardinality_constraint.cpp
test_cardinality_constraint_LDADD = $(PME_TEST_LIBS)
test_sorting_network_SOURCES = tests/test_sorting_network.cpp
test_sorting_network_LDADD = $(PME_TEST_LIBS)
test_proof_checker_SOURCES = tests/test_proof_checker.cpp
test_proof_checker_LDADD = $(PME_TEST_LIBS)
test_proof_minimizer_SOURCES = tests/test_proof_minimizer.cpp
test_proof_minimizer_LDADD = $(PME_TEST_LIBS)
test_maxsat_solver_SOURCES = tests/test_maxsat_solver.cpp
test_maxsat_solver_LDADD = $(PME_TEST_LIBS)
test_consecution_checker_SOURCES = tests/test_consecution_checker.cpp
test_consecution_checker_LDADD = $(PME_TEST_LIBS)
test_find_safe_mis_SOURCES = tests/test_find_safe_mis.cpp
test_find_safe_mis_LDADD = $(PME_TEST_LIBS)
test_find_minimal_support_SOURCES = tests/test_find_minimal_support.cpp
test_find_minimal_support_LDADD = $(PME_TEST_LIBS)
test_mus_finder_SOURCES = tests/test_mus_finder.cpp
test_mus_finder_LDADD = $(PME_TEST_LIBS)
test_logger_SOURCES = tests/test_logger.cpp
test_logger_LDADD = $(PME_TEST_LIBS)
test_clause_database_SOURCES = tests/test_clause_database.cpp
test_clause_database_LDADD = $(PME_TEST_LIBS)
test_collapse_set_finder_SOURCES = tests/test_collapse_set_finder.cpp
test_collapse_set_finder_LDADD = $(PME_TEST_LIBS)
test_inductive_trace_SOURCES = tests/test_inductive_trace.cpp
test_inductive_trace_LDADD = $(PME_TEST_LIBS)
test_frame_solver_SOURCES = tests/test_frame_solver.cpp
test_frame_solver_LDADD = $(PME_TEST_LIBS)
test_unsat_core_lifter_SOURCES = tests/test_unsat_core_lifter.cpp
test_unsat_core_lifter_LDADD = $(PME_TEST_LIBS)
test_ic3_solver_SOURCES = tests/test_ic3_solver.cpp
test_ic3_solver_LDADD = $(PME_TEST_LIBS)
test_debugger_SOURCES = tests/test_debugger.cpp
test_debugger_LDADD = $(PME_TEST_LIBS)
test_bmc_solver_SOURCES = tests/test_bmc_solver.cpp
test_bmc_solver_LDADD = $(PME_TEST_LIBS)
test_basics_SOURCES = tests/test_basics.cpp
test_basics_LDADD = $(PME_TEST_LIBS)
test_ivc_SOURCES = tests/test_ivc.cpp
test_ivc_LDADD = $(PME_TEST_LIBS)
test_ivc_checker_SOURCES = tests/test_ivc_checker.cpp
test_ivc_checker_LDADD = $(PME_TEST_LIBS)
test_correction_set_finder_SOURCES = tests/test_correction_set_finder.cpp
test_correction_set_finder_LDADD = $(PME_TEST_LIBS)
test_hybrid_safety_checker_SOURCES = tests/test_hybrid_safety_checker.cpp
test_hybrid_safety_checker_LDADD = $(PME_TEST_LIBS)
test_hitting_set_finder_SOURCES = tests/test_hitting_set_finder.cpp
test_hitting_set_finder_LDADD = $(PME_TEST_LIBS)
test_check_cex_SOURCES = tests/test_check_cex.cpp
test_check_cex_LDADD = $(PME_TEST_LIBS)
test_map_solver_SOURCES = tests/test_map_solver.cpp
test_map_solver_LDADD = $(PME_TEST_LIBS)
SUBDIRS = src/sat/solvers/glucose src/sat/solvers/minisat
EXTRA_DIST = LICENSE README.md glucose.supp
# Glucose can generate memcheck errors with certain compilers and flags
@VALGRIND_CHECK_RULES@
VALGRIND_SUPPRESSIONS_FILES = glucose.supp