Add rewrites for div/mod in the arithmetic rewriter (#5352)
[cvc5.git] / src / CMakeLists.txt
1 #####################
2 ## CMakeLists.txt
3 ## Top contributors (to current version):
4 ## Mathias Preiner, Andrew Reynolds, Gereon Kremer
5 ## This file is part of the CVC4 project.
6 ## Copyright (c) 2009-2020 by the authors listed in the file AUTHORS
7 ## in the top-level source directory and their institutional affiliations.
8 ## All rights reserved. See the file COPYING in the top-level source
9 ## directory for licensing information.
10 ##
11 #-----------------------------------------------------------------------------#
12 # Collect libcvc4 source files
13
14 libcvc4_add_sources(
15 api/cvc4cpp.cpp
16 api/cvc4cpp.h
17 api/cvc4cppkind.h
18 context/backtrackable.h
19 context/cddense_set.h
20 context/cdhashmap.h
21 context/cdhashmap_forward.h
22 context/cdhashset.h
23 context/cdhashset_forward.h
24 context/cdinsert_hashmap.h
25 context/cdinsert_hashmap_forward.h
26 context/cdlist.h
27 context/cdlist_forward.h
28 context/cdmaybe.h
29 context/cdo.h
30 context/cdqueue.h
31 context/cdtrail_queue.h
32 context/context.cpp
33 context/context.h
34 context/context_mm.cpp
35 context/context_mm.h
36 decision/decision_attributes.h
37 decision/decision_engine.cpp
38 decision/decision_engine.h
39 decision/decision_strategy.h
40 decision/justification_heuristic.cpp
41 decision/justification_heuristic.h
42 lib/clock_gettime.c
43 lib/clock_gettime.h
44 lib/ffs.c
45 lib/ffs.h
46 lib/replacements.h
47 lib/strtok_r.c
48 lib/strtok_r.h
49 preprocessing/assertion_pipeline.cpp
50 preprocessing/assertion_pipeline.h
51 preprocessing/passes/ackermann.cpp
52 preprocessing/passes/ackermann.h
53 preprocessing/passes/apply_substs.cpp
54 preprocessing/passes/apply_substs.h
55 preprocessing/passes/bool_to_bv.cpp
56 preprocessing/passes/bool_to_bv.h
57 preprocessing/passes/bv_abstraction.cpp
58 preprocessing/passes/bv_abstraction.h
59 preprocessing/passes/bv_eager_atoms.cpp
60 preprocessing/passes/bv_eager_atoms.h
61 preprocessing/passes/bv_gauss.cpp
62 preprocessing/passes/bv_gauss.h
63 preprocessing/passes/bv_intro_pow2.cpp
64 preprocessing/passes/bv_intro_pow2.h
65 preprocessing/passes/bv_to_bool.cpp
66 preprocessing/passes/bv_to_bool.h
67 preprocessing/passes/bv_to_int.cpp
68 preprocessing/passes/bv_to_int.h
69 preprocessing/passes/extended_rewriter_pass.cpp
70 preprocessing/passes/extended_rewriter_pass.h
71 preprocessing/passes/fun_def_fmf.cpp
72 preprocessing/passes/fun_def_fmf.h
73 preprocessing/passes/global_negate.cpp
74 preprocessing/passes/global_negate.h
75 preprocessing/passes/ho_elim.cpp
76 preprocessing/passes/ho_elim.h
77 preprocessing/passes/int_to_bv.cpp
78 preprocessing/passes/int_to_bv.h
79 preprocessing/passes/ite_removal.cpp
80 preprocessing/passes/ite_removal.h
81 preprocessing/passes/ite_simp.cpp
82 preprocessing/passes/ite_simp.h
83 preprocessing/passes/miplib_trick.cpp
84 preprocessing/passes/miplib_trick.h
85 preprocessing/passes/nl_ext_purify.cpp
86 preprocessing/passes/nl_ext_purify.h
87 preprocessing/passes/non_clausal_simp.cpp
88 preprocessing/passes/non_clausal_simp.h
89 preprocessing/passes/pseudo_boolean_processor.cpp
90 preprocessing/passes/pseudo_boolean_processor.h
91 preprocessing/passes/quantifier_macros.cpp
92 preprocessing/passes/quantifier_macros.h
93 preprocessing/passes/quantifiers_preprocess.cpp
94 preprocessing/passes/quantifiers_preprocess.h
95 preprocessing/passes/real_to_int.cpp
96 preprocessing/passes/real_to_int.h
97 preprocessing/passes/rewrite.cpp
98 preprocessing/passes/rewrite.h
99 preprocessing/passes/sep_skolem_emp.cpp
100 preprocessing/passes/sep_skolem_emp.h
101 preprocessing/passes/sort_infer.cpp
102 preprocessing/passes/sort_infer.h
103 preprocessing/passes/static_learning.cpp
104 preprocessing/passes/static_learning.h
105 preprocessing/passes/sygus_inference.cpp
106 preprocessing/passes/sygus_inference.h
107 preprocessing/passes/synth_rew_rules.cpp
108 preprocessing/passes/synth_rew_rules.h
109 preprocessing/passes/theory_preprocess.cpp
110 preprocessing/passes/theory_preprocess.h
111 preprocessing/passes/unconstrained_simplifier.cpp
112 preprocessing/passes/unconstrained_simplifier.h
113 preprocessing/preprocessing_pass.cpp
114 preprocessing/preprocessing_pass.h
115 preprocessing/preprocessing_pass_context.cpp
116 preprocessing/preprocessing_pass_context.h
117 preprocessing/preprocessing_pass_registry.cpp
118 preprocessing/preprocessing_pass_registry.h
119 preprocessing/util/ite_utilities.cpp
120 preprocessing/util/ite_utilities.h
121 printer/ast/ast_printer.cpp
122 printer/ast/ast_printer.h
123 printer/cvc/cvc_printer.cpp
124 printer/cvc/cvc_printer.h
125 printer/dagification_visitor.cpp
126 printer/dagification_visitor.h
127 printer/printer.cpp
128 printer/printer.h
129 printer/smt2/smt2_printer.cpp
130 printer/smt2/smt2_printer.h
131 printer/tptp/tptp_printer.cpp
132 printer/tptp/tptp_printer.h
133 proof/clause_id.h
134 proof/cnf_proof.cpp
135 proof/cnf_proof.h
136 proof/proof_manager.cpp
137 proof/proof_manager.h
138 proof/sat_proof.h
139 proof/sat_proof_implementation.h
140 proof/unsat_core.cpp
141 proof/unsat_core.h
142 prop/bv_sat_solver_notify.h
143 prop/bvminisat/bvminisat.cpp
144 prop/bvminisat/bvminisat.h
145 prop/bvminisat/core/Dimacs.h
146 prop/bvminisat/core/Solver.cc
147 prop/bvminisat/core/Solver.h
148 prop/bvminisat/core/SolverTypes.h
149 prop/bvminisat/mtl/Alg.h
150 prop/bvminisat/mtl/Alloc.h
151 prop/bvminisat/mtl/Heap.h
152 prop/bvminisat/mtl/IntTypes.h
153 prop/bvminisat/mtl/Map.h
154 prop/bvminisat/mtl/Queue.h
155 prop/bvminisat/mtl/Sort.h
156 prop/bvminisat/mtl/Vec.h
157 prop/bvminisat/mtl/XAlloc.h
158 prop/bvminisat/simp/SimpSolver.cc
159 prop/bvminisat/simp/SimpSolver.h
160 prop/bvminisat/utils/Options.h
161 prop/cadical.cpp
162 prop/cadical.h
163 prop/cnf_stream.cpp
164 prop/cnf_stream.h
165 prop/cryptominisat.cpp
166 prop/cryptominisat.h
167 prop/kissat.cpp
168 prop/kissat.h
169 prop/proof_cnf_stream.cpp
170 prop/proof_cnf_stream.h
171 prop/minisat/core/Dimacs.h
172 prop/minisat/core/Solver.cc
173 prop/minisat/core/Solver.h
174 prop/minisat/core/SolverTypes.h
175 prop/minisat/minisat.cpp
176 prop/minisat/minisat.h
177 prop/minisat/mtl/Alg.h
178 prop/minisat/mtl/Alloc.h
179 prop/minisat/mtl/Heap.h
180 prop/minisat/mtl/IntTypes.h
181 prop/minisat/mtl/Map.h
182 prop/minisat/mtl/Queue.h
183 prop/minisat/mtl/Sort.h
184 prop/minisat/mtl/Vec.h
185 prop/minisat/mtl/XAlloc.h
186 prop/minisat/simp/SimpSolver.cc
187 prop/minisat/simp/SimpSolver.h
188 prop/minisat/utils/Options.h
189 prop/proof_post_processor.cpp
190 prop/proof_post_processor.h
191 prop/prop_engine.cpp
192 prop/prop_engine.h
193 prop/prop_proof_manager.cpp
194 prop/prop_proof_manager.h
195 prop/registrar.h
196 prop/sat_solver.h
197 prop/sat_proof_manager.cpp
198 prop/sat_proof_manager.h
199 prop/sat_solver_factory.cpp
200 prop/sat_solver_factory.h
201 prop/sat_solver_types.cpp
202 prop/sat_solver_types.h
203 prop/theory_proxy.cpp
204 prop/theory_proxy.h
205 smt/abduction_solver.cpp
206 smt/abduction_solver.h
207 smt/abstract_values.cpp
208 smt/abstract_values.h
209 smt/assertions.cpp
210 smt/assertions.h
211 smt/check_models.cpp
212 smt/check_models.h
213 smt/command.cpp
214 smt/command.h
215 smt/defined_function.h
216 smt/dump.cpp
217 smt/dump.h
218 smt/dump_manager.cpp
219 smt/dump_manager.h
220 smt/expr_names.cpp
221 smt/expr_names.h
222 smt/listeners.cpp
223 smt/listeners.h
224 smt/logic_exception.h
225 smt/logic_request.cpp
226 smt/logic_request.h
227 smt/interpolation_solver.cpp
228 smt/interpolation_solver.h
229 smt/managed_ostreams.cpp
230 smt/managed_ostreams.h
231 smt/model.cpp
232 smt/model.h
233 smt/model_core_builder.cpp
234 smt/model_core_builder.h
235 smt/model_blocker.cpp
236 smt/model_blocker.h
237 smt/node_command.cpp
238 smt/node_command.h
239 smt/options_manager.cpp
240 smt/options_manager.h
241 smt/output_manager.cpp
242 smt/output_manager.h
243 smt/quant_elim_solver.cpp
244 smt/quant_elim_solver.h
245 smt/preprocessor.cpp
246 smt/preprocessor.h
247 smt/preprocess_proof_generator.cpp
248 smt/preprocess_proof_generator.h
249 smt/process_assertions.cpp
250 smt/process_assertions.h
251 smt/proof_manager.cpp
252 smt/proof_manager.h
253 smt/proof_post_processor.cpp
254 smt/proof_post_processor.h
255 smt/set_defaults.cpp
256 smt/set_defaults.h
257 smt/smt_engine.cpp
258 smt/smt_engine.h
259 smt/smt_engine_scope.cpp
260 smt/smt_engine_scope.h
261 smt/smt_engine_state.cpp
262 smt/smt_engine_state.h
263 smt/smt_engine_stats.cpp
264 smt/smt_engine_stats.h
265 smt/smt_mode.cpp
266 smt/smt_mode.h
267 smt/smt_solver.cpp
268 smt/smt_solver.h
269 smt/smt_statistics_registry.cpp
270 smt/smt_statistics_registry.h
271 smt/sygus_solver.cpp
272 smt/sygus_solver.h
273 smt/term_formula_removal.cpp
274 smt/term_formula_removal.h
275 smt/update_ostream.h
276 smt/witness_form.cpp
277 smt/witness_form.h
278 smt_util/boolean_simplification.cpp
279 smt_util/boolean_simplification.h
280 smt_util/nary_builder.cpp
281 smt_util/nary_builder.h
282 theory/arith/approx_simplex.cpp
283 theory/arith/approx_simplex.h
284 theory/arith/arith_ite_utils.cpp
285 theory/arith/arith_ite_utils.h
286 theory/arith/arith_lemma.cpp
287 theory/arith/arith_lemma.h
288 theory/arith/arith_msum.cpp
289 theory/arith/arith_msum.h
290 theory/arith/arith_preprocess.cpp
291 theory/arith/arith_preprocess.h
292 theory/arith/arith_rewriter.cpp
293 theory/arith/arith_rewriter.h
294 theory/arith/arith_state.cpp
295 theory/arith/arith_state.h
296 theory/arith/arith_static_learner.cpp
297 theory/arith/arith_static_learner.h
298 theory/arith/arith_utilities.cpp
299 theory/arith/arith_utilities.h
300 theory/arith/arithvar.cpp
301 theory/arith/arithvar.h
302 theory/arith/attempt_solution_simplex.cpp
303 theory/arith/attempt_solution_simplex.h
304 theory/arith/bound_counts.h
305 theory/arith/bound_inference.cpp
306 theory/arith/bound_inference.h
307 theory/arith/callbacks.cpp
308 theory/arith/callbacks.h
309 theory/arith/congruence_manager.cpp
310 theory/arith/congruence_manager.h
311 theory/arith/constraint.cpp
312 theory/arith/constraint.h
313 theory/arith/constraint_forward.h
314 theory/arith/cut_log.cpp
315 theory/arith/cut_log.h
316 theory/arith/delta_rational.cpp
317 theory/arith/delta_rational.h
318 theory/arith/dio_solver.cpp
319 theory/arith/dio_solver.h
320 theory/arith/dual_simplex.cpp
321 theory/arith/dual_simplex.h
322 theory/arith/error_set.cpp
323 theory/arith/error_set.h
324 theory/arith/fc_simplex.cpp
325 theory/arith/fc_simplex.h
326 theory/arith/infer_bounds.cpp
327 theory/arith/infer_bounds.h
328 theory/arith/inference_id.cpp
329 theory/arith/inference_id.h
330 theory/arith/inference_manager.cpp
331 theory/arith/inference_manager.h
332 theory/arith/linear_equality.cpp
333 theory/arith/linear_equality.h
334 theory/arith/matrix.cpp
335 theory/arith/matrix.h
336 theory/arith/nl/cad_solver.cpp
337 theory/arith/nl/cad_solver.h
338 theory/arith/nl/cad/cdcac.cpp
339 theory/arith/nl/cad/cdcac.h
340 theory/arith/nl/cad/cdcac_utils.cpp
341 theory/arith/nl/cad/cdcac_utils.h
342 theory/arith/nl/cad/constraints.cpp
343 theory/arith/nl/cad/constraints.h
344 theory/arith/nl/cad/projections.cpp
345 theory/arith/nl/cad/projections.h
346 theory/arith/nl/cad/variable_ordering.cpp
347 theory/arith/nl/cad/variable_ordering.h
348 theory/arith/nl/ext_theory_callback.cpp
349 theory/arith/nl/ext_theory_callback.h
350 theory/arith/nl/iand_solver.cpp
351 theory/arith/nl/iand_solver.h
352 theory/arith/nl/icp/candidate.cpp
353 theory/arith/nl/icp/candidate.h
354 theory/arith/nl/icp/contraction_origins.cpp
355 theory/arith/nl/icp/contraction_origins.h
356 theory/arith/nl/icp/icp_solver.cpp
357 theory/arith/nl/icp/icp_solver.h
358 theory/arith/nl/icp/intersection.cpp
359 theory/arith/nl/icp/intersection.h
360 theory/arith/nl/nl_constraint.cpp
361 theory/arith/nl/nl_constraint.h
362 theory/arith/nl/iand_table.cpp
363 theory/arith/nl/iand_table.h
364 theory/arith/nl/nl_lemma_utils.cpp
365 theory/arith/nl/nl_lemma_utils.h
366 theory/arith/nl/nl_model.cpp
367 theory/arith/nl/nl_model.h
368 theory/arith/nl/nl_monomial.cpp
369 theory/arith/nl/nl_monomial.h
370 theory/arith/nl/nl_solver.cpp
371 theory/arith/nl/nl_solver.h
372 theory/arith/nl/nonlinear_extension.cpp
373 theory/arith/nl/nonlinear_extension.h
374 theory/arith/nl/poly_conversion.cpp
375 theory/arith/nl/poly_conversion.h
376 theory/arith/nl/stats.cpp
377 theory/arith/nl/stats.h
378 theory/arith/nl/strategy.cpp
379 theory/arith/nl/strategy.h
380 theory/arith/nl/transcendental_solver.cpp
381 theory/arith/nl/transcendental_solver.h
382 theory/arith/normal_form.cpp
383 theory/arith/normal_form.h
384 theory/arith/operator_elim.cpp
385 theory/arith/operator_elim.h
386 theory/arith/partial_model.cpp
387 theory/arith/partial_model.h
388 theory/arith/proof_checker.cpp
389 theory/arith/proof_checker.h
390 theory/arith/proof_macros.h
391 theory/arith/rewrites.cpp
392 theory/arith/rewrites.h
393 theory/arith/simplex.cpp
394 theory/arith/simplex.h
395 theory/arith/simplex_update.cpp
396 theory/arith/simplex_update.h
397 theory/arith/soi_simplex.cpp
398 theory/arith/soi_simplex.h
399 theory/arith/tableau.cpp
400 theory/arith/tableau.h
401 theory/arith/tableau_sizes.cpp
402 theory/arith/tableau_sizes.h
403 theory/arith/theory_arith.cpp
404 theory/arith/theory_arith.h
405 theory/arith/theory_arith_private.cpp
406 theory/arith/theory_arith_private.h
407 theory/arith/theory_arith_type_rules.h
408 theory/arith/type_enumerator.h
409 theory/arrays/array_info.cpp
410 theory/arrays/array_info.h
411 theory/arrays/inference_manager.cpp
412 theory/arrays/inference_manager.h
413 theory/arrays/proof_checker.cpp
414 theory/arrays/proof_checker.h
415 theory/arrays/skolem_cache.cpp
416 theory/arrays/skolem_cache.h
417 theory/arrays/theory_arrays.cpp
418 theory/arrays/theory_arrays.h
419 theory/arrays/theory_arrays_rewriter.cpp
420 theory/arrays/theory_arrays_rewriter.h
421 theory/arrays/theory_arrays_type_rules.h
422 theory/arrays/type_enumerator.h
423 theory/arrays/union_find.cpp
424 theory/arrays/union_find.h
425 theory/assertion.cpp
426 theory/assertion.h
427 theory/atom_requests.cpp
428 theory/atom_requests.h
429 theory/bags/bags_rewriter.cpp
430 theory/bags/bags_rewriter.h
431 theory/bags/bags_statistics.cpp
432 theory/bags/bags_statistics.h
433 theory/bags/inference_manager.cpp
434 theory/bags/inference_manager.h
435 theory/bags/make_bag_op.cpp
436 theory/bags/make_bag_op.h
437 theory/bags/normal_form.cpp
438 theory/bags/normal_form.h
439 theory/bags/rewrites.cpp
440 theory/bags/rewrites.h
441 theory/bags/solver_state.cpp
442 theory/bags/solver_state.h
443 theory/bags/term_registry.cpp
444 theory/bags/term_registry.h
445 theory/bags/theory_bags.cpp
446 theory/bags/theory_bags.h
447 theory/bags/theory_bags_type_enumerator.cpp
448 theory/bags/theory_bags_type_enumerator.h
449 theory/bags/theory_bags_type_rules.h
450 theory/booleans/circuit_propagator.cpp
451 theory/booleans/circuit_propagator.h
452 theory/booleans/proof_circuit_propagator.cpp
453 theory/booleans/proof_circuit_propagator.h
454 theory/booleans/proof_checker.cpp
455 theory/booleans/proof_checker.h
456 theory/booleans/theory_bool.cpp
457 theory/booleans/theory_bool.h
458 theory/booleans/theory_bool_rewriter.cpp
459 theory/booleans/theory_bool_rewriter.h
460 theory/booleans/theory_bool_type_rules.h
461 theory/booleans/type_enumerator.h
462 theory/builtin/proof_checker.cpp
463 theory/builtin/proof_checker.h
464 theory/builtin/theory_builtin.cpp
465 theory/builtin/theory_builtin.h
466 theory/builtin/theory_builtin_rewriter.cpp
467 theory/builtin/theory_builtin_rewriter.h
468 theory/builtin/theory_builtin_type_rules.h
469 theory/builtin/type_enumerator.cpp
470 theory/builtin/type_enumerator.h
471 theory/bv/abstraction.cpp
472 theory/bv/abstraction.h
473 theory/bv/bitblast/aig_bitblaster.cpp
474 theory/bv/bitblast/aig_bitblaster.h
475 theory/bv/bitblast/bitblast_strategies_template.h
476 theory/bv/bitblast/bitblast_utils.h
477 theory/bv/bitblast/bitblaster.h
478 theory/bv/bitblast/eager_bitblaster.cpp
479 theory/bv/bitblast/eager_bitblaster.h
480 theory/bv/bitblast/lazy_bitblaster.cpp
481 theory/bv/bitblast/lazy_bitblaster.h
482 theory/bv/bv_eager_solver.cpp
483 theory/bv/bv_eager_solver.h
484 theory/bv/bv_inequality_graph.cpp
485 theory/bv/bv_inequality_graph.h
486 theory/bv/bv_quick_check.cpp
487 theory/bv/bv_quick_check.h
488 theory/bv/bv_solver.h
489 theory/bv/bv_solver_lazy.cpp
490 theory/bv/bv_solver_lazy.h
491 theory/bv/bv_solver_simple.cpp
492 theory/bv/bv_solver_simple.h
493 theory/bv/bv_subtheory.h
494 theory/bv/bv_subtheory_algebraic.cpp
495 theory/bv/bv_subtheory_algebraic.h
496 theory/bv/bv_subtheory_bitblast.cpp
497 theory/bv/bv_subtheory_bitblast.h
498 theory/bv/bv_subtheory_core.cpp
499 theory/bv/bv_subtheory_core.h
500 theory/bv/bv_subtheory_inequality.cpp
501 theory/bv/bv_subtheory_inequality.h
502 theory/bv/slicer.cpp
503 theory/bv/slicer.h
504 theory/bv/theory_bv.cpp
505 theory/bv/theory_bv.h
506 theory/bv/theory_bv_rewrite_rules.h
507 theory/bv/theory_bv_rewrite_rules_constant_evaluation.h
508 theory/bv/theory_bv_rewrite_rules_core.h
509 theory/bv/theory_bv_rewrite_rules_normalization.h
510 theory/bv/theory_bv_rewrite_rules_operator_elimination.h
511 theory/bv/theory_bv_rewrite_rules_simplification.h
512 theory/bv/theory_bv_rewriter.cpp
513 theory/bv/theory_bv_rewriter.h
514 theory/bv/theory_bv_type_rules.h
515 theory/bv/theory_bv_utils.cpp
516 theory/bv/theory_bv_utils.h
517 theory/bv/type_enumerator.h
518 theory/care_graph.h
519 theory/combination_care_graph.cpp
520 theory/combination_care_graph.h
521 theory/combination_engine.cpp
522 theory/combination_engine.h
523 theory/datatypes/datatypes_rewriter.cpp
524 theory/datatypes/datatypes_rewriter.h
525 theory/datatypes/inference.cpp
526 theory/datatypes/inference.h
527 theory/datatypes/inference_manager.cpp
528 theory/datatypes/inference_manager.h
529 theory/datatypes/sygus_datatype_utils.cpp
530 theory/datatypes/sygus_datatype_utils.h
531 theory/datatypes/sygus_extension.cpp
532 theory/datatypes/sygus_extension.h
533 theory/datatypes/sygus_simple_sym.cpp
534 theory/datatypes/sygus_simple_sym.h
535 theory/datatypes/theory_datatypes.cpp
536 theory/datatypes/theory_datatypes.h
537 theory/datatypes/theory_datatypes_type_rules.h
538 theory/datatypes/theory_datatypes_utils.cpp
539 theory/datatypes/theory_datatypes_utils.h
540 theory/datatypes/type_enumerator.cpp
541 theory/datatypes/type_enumerator.h
542 theory/decision_manager.cpp
543 theory/decision_manager.h
544 theory/decision_strategy.cpp
545 theory/decision_strategy.h
546 theory/eager_proof_generator.cpp
547 theory/eager_proof_generator.h
548 theory/ee_manager.cpp
549 theory/ee_manager.h
550 theory/ee_manager_distributed.cpp
551 theory/ee_manager_distributed.h
552 theory/ee_setup_info.h
553 theory/engine_output_channel.cpp
554 theory/engine_output_channel.h
555 theory/evaluator.cpp
556 theory/evaluator.h
557 theory/ext_theory.cpp
558 theory/ext_theory.h
559 theory/fp/fp_converter.cpp
560 theory/fp/fp_converter.h
561 theory/fp/theory_fp.cpp
562 theory/fp/theory_fp.h
563 theory/fp/theory_fp_rewriter.cpp
564 theory/fp/theory_fp_rewriter.h
565 theory/fp/theory_fp_type_rules.h
566 theory/fp/type_enumerator.h
567 theory/interrupted.h
568 theory/inference_manager_buffered.cpp
569 theory/inference_manager_buffered.h
570 theory/logic_info.cpp
571 theory/logic_info.h
572 theory/model_manager.cpp
573 theory/model_manager.h
574 theory/model_manager_distributed.cpp
575 theory/model_manager_distributed.h
576 theory/output_channel.cpp
577 theory/output_channel.h
578 theory/quantifiers/alpha_equivalence.cpp
579 theory/quantifiers/alpha_equivalence.h
580 theory/quantifiers/anti_skolem.cpp
581 theory/quantifiers/anti_skolem.h
582 theory/quantifiers/bv_inverter.cpp
583 theory/quantifiers/bv_inverter.h
584 theory/quantifiers/bv_inverter_utils.cpp
585 theory/quantifiers/bv_inverter_utils.h
586 theory/quantifiers/candidate_rewrite_database.cpp
587 theory/quantifiers/candidate_rewrite_database.h
588 theory/quantifiers/candidate_rewrite_filter.cpp
589 theory/quantifiers/candidate_rewrite_filter.h
590 theory/quantifiers/cegqi/ceg_arith_instantiator.cpp
591 theory/quantifiers/cegqi/ceg_arith_instantiator.h
592 theory/quantifiers/cegqi/ceg_bv_instantiator.cpp
593 theory/quantifiers/cegqi/ceg_bv_instantiator.h
594 theory/quantifiers/cegqi/ceg_bv_instantiator_utils.cpp
595 theory/quantifiers/cegqi/ceg_bv_instantiator_utils.h
596 theory/quantifiers/cegqi/ceg_dt_instantiator.cpp
597 theory/quantifiers/cegqi/ceg_dt_instantiator.h
598 theory/quantifiers/cegqi/ceg_epr_instantiator.cpp
599 theory/quantifiers/cegqi/ceg_epr_instantiator.h
600 theory/quantifiers/cegqi/ceg_instantiator.cpp
601 theory/quantifiers/cegqi/ceg_instantiator.h
602 theory/quantifiers/cegqi/inst_strategy_cegqi.cpp
603 theory/quantifiers/cegqi/inst_strategy_cegqi.h
604 theory/quantifiers/cegqi/vts_term_cache.cpp
605 theory/quantifiers/cegqi/vts_term_cache.h
606 theory/quantifiers/conjecture_generator.cpp
607 theory/quantifiers/conjecture_generator.h
608 theory/quantifiers/dynamic_rewrite.cpp
609 theory/quantifiers/dynamic_rewrite.h
610 theory/quantifiers/ematching/candidate_generator.cpp
611 theory/quantifiers/ematching/candidate_generator.h
612 theory/quantifiers/ematching/ho_trigger.cpp
613 theory/quantifiers/ematching/ho_trigger.h
614 theory/quantifiers/ematching/inst_match_generator.cpp
615 theory/quantifiers/ematching/inst_match_generator.h
616 theory/quantifiers/ematching/inst_strategy_e_matching.cpp
617 theory/quantifiers/ematching/inst_strategy_e_matching.h
618 theory/quantifiers/ematching/instantiation_engine.cpp
619 theory/quantifiers/ematching/instantiation_engine.h
620 theory/quantifiers/ematching/trigger.cpp
621 theory/quantifiers/ematching/trigger.h
622 theory/quantifiers/equality_infer.cpp
623 theory/quantifiers/equality_infer.h
624 theory/quantifiers/equality_query.cpp
625 theory/quantifiers/equality_query.h
626 theory/quantifiers/expr_miner.cpp
627 theory/quantifiers/expr_miner.h
628 theory/quantifiers/expr_miner_manager.cpp
629 theory/quantifiers/expr_miner_manager.h
630 theory/quantifiers/extended_rewrite.cpp
631 theory/quantifiers/extended_rewrite.h
632 theory/quantifiers/first_order_model.cpp
633 theory/quantifiers/first_order_model.h
634 theory/quantifiers/fmf/bounded_integers.cpp
635 theory/quantifiers/fmf/bounded_integers.h
636 theory/quantifiers/fmf/full_model_check.cpp
637 theory/quantifiers/fmf/full_model_check.h
638 theory/quantifiers/fmf/model_builder.cpp
639 theory/quantifiers/fmf/model_builder.h
640 theory/quantifiers/fmf/model_engine.cpp
641 theory/quantifiers/fmf/model_engine.h
642 theory/quantifiers/fun_def_evaluator.cpp
643 theory/quantifiers/fun_def_evaluator.h
644 theory/quantifiers/inst_match.cpp
645 theory/quantifiers/inst_match.h
646 theory/quantifiers/inst_match_trie.cpp
647 theory/quantifiers/inst_match_trie.h
648 theory/quantifiers/inst_strategy_enumerative.cpp
649 theory/quantifiers/inst_strategy_enumerative.h
650 theory/quantifiers/sygus_inst.cpp
651 theory/quantifiers/sygus_inst.h
652 theory/quantifiers/instantiate.cpp
653 theory/quantifiers/instantiate.h
654 theory/quantifiers/lazy_trie.cpp
655 theory/quantifiers/lazy_trie.h
656 theory/quantifiers/proof_checker.cpp
657 theory/quantifiers/proof_checker.h
658 theory/quantifiers/quant_conflict_find.cpp
659 theory/quantifiers/quant_conflict_find.h
660 theory/quantifiers/quant_epr.cpp
661 theory/quantifiers/quant_epr.h
662 theory/quantifiers/quant_relevance.cpp
663 theory/quantifiers/quant_relevance.h
664 theory/quantifiers/quant_rep_bound_ext.cpp
665 theory/quantifiers/quant_rep_bound_ext.h
666 theory/quantifiers/quant_split.cpp
667 theory/quantifiers/quant_split.h
668 theory/quantifiers/quant_util.cpp
669 theory/quantifiers/quant_util.h
670 theory/quantifiers/quantifiers_attributes.cpp
671 theory/quantifiers/quantifiers_attributes.h
672 theory/quantifiers/quantifiers_modules.cpp
673 theory/quantifiers/quantifiers_modules.h
674 theory/quantifiers/quantifiers_rewriter.cpp
675 theory/quantifiers/quantifiers_rewriter.h
676 theory/quantifiers/quantifiers_state.cpp
677 theory/quantifiers/quantifiers_state.h
678 theory/quantifiers/query_generator.cpp
679 theory/quantifiers/query_generator.h
680 theory/quantifiers/relevant_domain.cpp
681 theory/quantifiers/relevant_domain.h
682 theory/quantifiers/single_inv_partition.cpp
683 theory/quantifiers/single_inv_partition.h
684 theory/quantifiers/skolemize.cpp
685 theory/quantifiers/skolemize.h
686 theory/quantifiers/solution_filter.cpp
687 theory/quantifiers/solution_filter.h
688 theory/quantifiers/sygus/ce_guided_single_inv.cpp
689 theory/quantifiers/sygus/ce_guided_single_inv.h
690 theory/quantifiers/sygus/ce_guided_single_inv_sol.cpp
691 theory/quantifiers/sygus/ce_guided_single_inv_sol.h
692 theory/quantifiers/sygus/cegis.cpp
693 theory/quantifiers/sygus/cegis.h
694 theory/quantifiers/sygus/cegis_core_connective.cpp
695 theory/quantifiers/sygus/cegis_core_connective.h
696 theory/quantifiers/sygus/cegis_unif.cpp
697 theory/quantifiers/sygus/cegis_unif.h
698 theory/quantifiers/sygus/example_eval_cache.cpp
699 theory/quantifiers/sygus/example_eval_cache.h
700 theory/quantifiers/sygus/example_infer.cpp
701 theory/quantifiers/sygus/example_infer.h
702 theory/quantifiers/sygus/example_min_eval.cpp
703 theory/quantifiers/sygus/example_min_eval.h
704 theory/quantifiers/sygus/enum_stream_substitution.cpp
705 theory/quantifiers/sygus/enum_stream_substitution.h
706 theory/quantifiers/sygus/example_infer.cpp
707 theory/quantifiers/sygus/example_infer.h
708 theory/quantifiers/sygus/example_min_eval.cpp
709 theory/quantifiers/sygus/example_min_eval.h
710 theory/quantifiers/sygus/sygus_abduct.cpp
711 theory/quantifiers/sygus/sygus_abduct.h
712 theory/quantifiers/sygus/sygus_enumerator.cpp
713 theory/quantifiers/sygus/sygus_enumerator.h
714 theory/quantifiers/sygus/sygus_enumerator_basic.cpp
715 theory/quantifiers/sygus/sygus_enumerator_basic.h
716 theory/quantifiers/sygus/sygus_eval_unfold.cpp
717 theory/quantifiers/sygus/sygus_eval_unfold.h
718 theory/quantifiers/sygus/sygus_explain.cpp
719 theory/quantifiers/sygus/sygus_explain.h
720 theory/quantifiers/sygus/sygus_grammar_cons.cpp
721 theory/quantifiers/sygus/sygus_grammar_cons.h
722 theory/quantifiers/sygus/sygus_grammar_norm.cpp
723 theory/quantifiers/sygus/sygus_grammar_norm.h
724 theory/quantifiers/sygus/sygus_grammar_red.cpp
725 theory/quantifiers/sygus/sygus_grammar_red.h
726 theory/quantifiers/sygus/sygus_interpol.cpp
727 theory/quantifiers/sygus/sygus_interpol.h
728 theory/quantifiers/sygus/sygus_invariance.cpp
729 theory/quantifiers/sygus/sygus_invariance.h
730 theory/quantifiers/sygus/sygus_module.cpp
731 theory/quantifiers/sygus/sygus_module.h
732 theory/quantifiers/sygus/sygus_pbe.cpp
733 theory/quantifiers/sygus/sygus_pbe.h
734 theory/quantifiers/sygus/sygus_process_conj.cpp
735 theory/quantifiers/sygus/sygus_process_conj.h
736 theory/quantifiers/sygus/sygus_repair_const.cpp
737 theory/quantifiers/sygus/sygus_repair_const.h
738 theory/quantifiers/sygus/sygus_stats.cpp
739 theory/quantifiers/sygus/sygus_stats.h
740 theory/quantifiers/sygus/sygus_unif.cpp
741 theory/quantifiers/sygus/sygus_unif.h
742 theory/quantifiers/sygus/sygus_unif_io.cpp
743 theory/quantifiers/sygus/sygus_unif_io.h
744 theory/quantifiers/sygus/sygus_unif_rl.cpp
745 theory/quantifiers/sygus/sygus_unif_rl.h
746 theory/quantifiers/sygus/sygus_unif_strat.cpp
747 theory/quantifiers/sygus/sygus_unif_strat.h
748 theory/quantifiers/sygus/synth_conjecture.cpp
749 theory/quantifiers/sygus/synth_conjecture.h
750 theory/quantifiers/sygus/synth_engine.cpp
751 theory/quantifiers/sygus/synth_engine.h
752 theory/quantifiers/sygus/term_database_sygus.cpp
753 theory/quantifiers/sygus/term_database_sygus.h
754 theory/quantifiers/sygus/type_info.cpp
755 theory/quantifiers/sygus/type_info.h
756 theory/quantifiers/sygus/type_node_id_trie.cpp
757 theory/quantifiers/sygus/type_node_id_trie.h
758 theory/quantifiers/sygus/transition_inference.cpp
759 theory/quantifiers/sygus/transition_inference.h
760 theory/quantifiers/sygus_sampler.cpp
761 theory/quantifiers/sygus_sampler.h
762 theory/quantifiers/term_database.cpp
763 theory/quantifiers/term_database.h
764 theory/quantifiers/term_enumeration.cpp
765 theory/quantifiers/term_enumeration.h
766 theory/quantifiers/term_util.cpp
767 theory/quantifiers/term_util.h
768 theory/quantifiers/theory_quantifiers.cpp
769 theory/quantifiers/theory_quantifiers.h
770 theory/quantifiers/theory_quantifiers_type_rules.h
771 theory/quantifiers_engine.cpp
772 theory/quantifiers_engine.h
773 theory/relevance_manager.cpp
774 theory/relevance_manager.h
775 theory/rep_set.cpp
776 theory/rep_set.h
777 theory/rewriter.cpp
778 theory/rewriter.h
779 theory/rewriter_attributes.h
780 theory/sep/theory_sep.cpp
781 theory/sep/theory_sep.h
782 theory/sep/theory_sep_rewriter.cpp
783 theory/sep/theory_sep_rewriter.h
784 theory/sep/theory_sep_type_rules.h
785 theory/sets/cardinality_extension.cpp
786 theory/sets/cardinality_extension.h
787 theory/sets/inference_manager.cpp
788 theory/sets/inference_manager.h
789 theory/sets/normal_form.h
790 theory/sets/rels_utils.h
791 theory/sets/singleton_op.cpp
792 theory/sets/singleton_op.h
793 theory/sets/skolem_cache.cpp
794 theory/sets/skolem_cache.h
795 theory/sets/solver_state.cpp
796 theory/sets/solver_state.h
797 theory/sets/term_registry.cpp
798 theory/sets/term_registry.h
799 theory/sets/theory_sets.cpp
800 theory/sets/theory_sets.h
801 theory/sets/theory_sets_private.cpp
802 theory/sets/theory_sets_private.h
803 theory/sets/theory_sets_rels.cpp
804 theory/sets/theory_sets_rels.h
805 theory/sets/theory_sets_rewriter.cpp
806 theory/sets/theory_sets_rewriter.h
807 theory/sets/theory_sets_type_enumerator.cpp
808 theory/sets/theory_sets_type_enumerator.h
809 theory/sets/theory_sets_type_rules.h
810 theory/shared_solver.cpp
811 theory/shared_solver.h
812 theory/shared_solver_distributed.cpp
813 theory/shared_solver_distributed.h
814 theory/shared_terms_database.cpp
815 theory/shared_terms_database.h
816 theory/smt_engine_subsolver.cpp
817 theory/smt_engine_subsolver.h
818 theory/sort_inference.cpp
819 theory/sort_inference.h
820 theory/strings/arith_entail.cpp
821 theory/strings/arith_entail.h
822 theory/strings/base_solver.cpp
823 theory/strings/base_solver.h
824 theory/strings/core_solver.cpp
825 theory/strings/core_solver.h
826 theory/strings/extf_solver.cpp
827 theory/strings/extf_solver.h
828 theory/strings/eqc_info.cpp
829 theory/strings/eqc_info.h
830 theory/strings/infer_info.cpp
831 theory/strings/infer_info.h
832 theory/strings/infer_proof_cons.cpp
833 theory/strings/infer_proof_cons.h
834 theory/strings/inference_manager.cpp
835 theory/strings/inference_manager.h
836 theory/strings/normal_form.cpp
837 theory/strings/normal_form.h
838 theory/strings/proof_checker.cpp
839 theory/strings/proof_checker.h
840 theory/strings/regexp_elim.cpp
841 theory/strings/regexp_elim.h
842 theory/strings/regexp_entail.cpp
843 theory/strings/regexp_entail.h
844 theory/strings/regexp_operation.cpp
845 theory/strings/regexp_operation.h
846 theory/strings/regexp_solver.cpp
847 theory/strings/regexp_solver.h
848 theory/strings/rewrites.cpp
849 theory/strings/rewrites.h
850 theory/strings/sequences_rewriter.cpp
851 theory/strings/sequences_rewriter.h
852 theory/strings/sequences_stats.cpp
853 theory/strings/sequences_stats.h
854 theory/strings/skolem_cache.cpp
855 theory/strings/skolem_cache.h
856 theory/strings/solver_state.cpp
857 theory/strings/solver_state.h
858 theory/strings/strategy.cpp
859 theory/strings/strategy.h
860 theory/strings/strings_entail.cpp
861 theory/strings/strings_entail.h
862 theory/strings/strings_fmf.cpp
863 theory/strings/strings_fmf.h
864 theory/strings/strings_rewriter.cpp
865 theory/strings/strings_rewriter.h
866 theory/strings/theory_strings.cpp
867 theory/strings/theory_strings.h
868 theory/strings/theory_strings_preprocess.cpp
869 theory/strings/theory_strings_preprocess.h
870 theory/strings/theory_strings_type_rules.h
871 theory/strings/theory_strings_utils.cpp
872 theory/strings/theory_strings_utils.h
873 theory/strings/term_registry.cpp
874 theory/strings/term_registry.h
875 theory/strings/type_enumerator.cpp
876 theory/strings/type_enumerator.h
877 theory/strings/word.cpp
878 theory/strings/word.h
879 theory/subs_minimize.cpp
880 theory/subs_minimize.h
881 theory/substitutions.cpp
882 theory/substitutions.h
883 theory/term_registration_visitor.cpp
884 theory/term_registration_visitor.h
885 theory/theory.cpp
886 theory/theory.h
887 theory/theory_engine.cpp
888 theory/theory_engine.h
889 theory/theory_engine_proof_generator.cpp
890 theory/theory_engine_proof_generator.h
891 theory/theory_id.cpp
892 theory/theory_id.h
893 theory/theory_eq_notify.h
894 theory/theory_inference.cpp
895 theory/theory_inference.h
896 theory/theory_inference_manager.cpp
897 theory/theory_inference_manager.h
898 theory/theory_model.cpp
899 theory/theory_model.h
900 theory/theory_model_builder.cpp
901 theory/theory_model_builder.h
902 theory/theory_preprocessor.cpp
903 theory/theory_preprocessor.h
904 theory/theory_proof_step_buffer.cpp
905 theory/theory_proof_step_buffer.h
906 theory/theory_rewriter.cpp
907 theory/theory_rewriter.h
908 theory/theory_registrar.h
909 theory/theory_state.cpp
910 theory/theory_state.h
911 theory/theory_test_utils.h
912 theory/trust_node.cpp
913 theory/trust_node.h
914 theory/trust_substitutions.cpp
915 theory/trust_substitutions.h
916 theory/type_enumerator.h
917 theory/type_set.cpp
918 theory/type_set.h
919 theory/uf/cardinality_extension.cpp
920 theory/uf/cardinality_extension.h
921 theory/uf/equality_engine.cpp
922 theory/uf/equality_engine.h
923 theory/uf/equality_engine_iterator.cpp
924 theory/uf/equality_engine_iterator.h
925 theory/uf/equality_engine_notify.h
926 theory/uf/equality_engine_types.h
927 theory/uf/eq_proof.cpp
928 theory/uf/eq_proof.h
929 theory/uf/proof_checker.cpp
930 theory/uf/proof_checker.h
931 theory/uf/proof_equality_engine.cpp
932 theory/uf/proof_equality_engine.h
933 theory/uf/ho_extension.cpp
934 theory/uf/ho_extension.h
935 theory/uf/symmetry_breaker.cpp
936 theory/uf/symmetry_breaker.h
937 theory/uf/theory_uf.cpp
938 theory/uf/theory_uf.h
939 theory/uf/theory_uf_model.cpp
940 theory/uf/theory_uf_model.h
941 theory/uf/theory_uf_rewriter.h
942 theory/uf/theory_uf_type_rules.h
943 theory/valuation.cpp
944 theory/valuation.h
945 )
946
947 #-----------------------------------------------------------------------------#
948 # Add required include paths for this and all subdirectories.
949
950 include_directories(include)
951 include_directories(. ${CMAKE_CURRENT_BINARY_DIR})
952
953 #-----------------------------------------------------------------------------#
954
955 set(KINDS_FILES
956 ${PROJECT_SOURCE_DIR}/src/theory/builtin/kinds
957 ${PROJECT_SOURCE_DIR}/src/theory/booleans/kinds
958 ${PROJECT_SOURCE_DIR}/src/theory/uf/kinds
959 ${PROJECT_SOURCE_DIR}/src/theory/arith/kinds
960 ${PROJECT_SOURCE_DIR}/src/theory/bv/kinds
961 ${PROJECT_SOURCE_DIR}/src/theory/fp/kinds
962 ${PROJECT_SOURCE_DIR}/src/theory/arrays/kinds
963 ${PROJECT_SOURCE_DIR}/src/theory/datatypes/kinds
964 ${PROJECT_SOURCE_DIR}/src/theory/sep/kinds
965 ${PROJECT_SOURCE_DIR}/src/theory/sets/kinds
966 ${PROJECT_SOURCE_DIR}/src/theory/bags/kinds
967 ${PROJECT_SOURCE_DIR}/src/theory/strings/kinds
968 ${PROJECT_SOURCE_DIR}/src/theory/quantifiers/kinds)
969
970 #-----------------------------------------------------------------------------#
971 # Add subdirectories
972
973 add_subdirectory(base)
974 add_subdirectory(expr)
975 add_subdirectory(options)
976 if (NOT BUILD_LIB_ONLY)
977 add_subdirectory(parser)
978 endif()
979 add_subdirectory(theory)
980 add_subdirectory(util)
981
982 #-----------------------------------------------------------------------------#
983 # All sources for libcvc4 are now collected in LIBCVC4_SRCS and (if generated)
984 # LIBCVC4_GEN_SRCS (via libcvc4_add_sources). We can now build libcvc4.
985
986 set_source_files_properties(${LIBCVC4_GEN_SRCS} PROPERTIES GENERATED TRUE)
987 add_library(cvc4 ${LIBCVC4_SRCS} ${LIBCVC4_GEN_SRCS})
988 target_include_directories(cvc4
989 PUBLIC
990 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
991 $<INSTALL_INTERFACE:include>
992 )
993
994 install(TARGETS cvc4
995 EXPORT cvc4-targets
996 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
997 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
998
999 set_target_properties(cvc4 PROPERTIES SOVERSION ${CVC4_SOVERSION})
1000 target_compile_definitions(cvc4
1001 PRIVATE
1002 -D__BUILDING_CVC4LIB
1003 -D__STDC_LIMIT_MACROS
1004 -D__STDC_FORMAT_MACROS
1005 )
1006 # Add libcvc4 dependencies for generated sources.
1007 add_dependencies(cvc4 gen-expr gen-gitinfo gen-options gen-tags gen-theory)
1008
1009 # Add library/include dependencies
1010 if(ENABLE_VALGRIND)
1011 target_include_directories(cvc4 PRIVATE ${Valgrind_INCLUDE_DIR})
1012 endif()
1013 if(USE_ABC)
1014 target_link_libraries(cvc4 ${ABC_LIBRARIES})
1015 target_include_directories(cvc4 PRIVATE ${ABC_INCLUDE_DIR})
1016 endif()
1017 if(USE_CADICAL)
1018 target_link_libraries(cvc4 ${CaDiCaL_LIBRARIES})
1019 target_include_directories(cvc4 PRIVATE ${CaDiCaL_INCLUDE_DIR})
1020 endif()
1021 if(USE_CLN)
1022 target_link_libraries(cvc4 ${CLN_LIBRARIES})
1023 target_include_directories(cvc4 PUBLIC $<BUILD_INTERFACE:${CLN_INCLUDE_DIR}>)
1024 endif()
1025 if(USE_CRYPTOMINISAT)
1026 target_link_libraries(cvc4 ${CryptoMiniSat_LIBRARIES})
1027 target_include_directories(cvc4 PRIVATE ${CryptoMiniSat_INCLUDE_DIR})
1028 endif()
1029 if(USE_KISSAT)
1030 target_link_libraries(cvc4 ${Kissat_LIBRARIES})
1031 target_include_directories(cvc4 PRIVATE ${Kissat_INCLUDE_DIR})
1032 endif()
1033 if(USE_DRAT2ER)
1034 target_link_libraries(cvc4 ${Drat2Er_LIBRARIES})
1035 target_include_directories(cvc4 PRIVATE ${Drat2Er_INCLUDE_DIR})
1036 endif()
1037 if(USE_GLPK)
1038 target_link_libraries(cvc4 ${GLPK_LIBRARIES})
1039 target_include_directories(cvc4 PRIVATE ${GLPK_INCLUDE_DIR})
1040 endif()
1041 if(USE_LFSC)
1042 target_link_libraries(cvc4 ${LFSC_LIBRARIES})
1043 target_include_directories(cvc4 PRIVATE ${LFSC_INCLUDE_DIR})
1044 endif()
1045 if(USE_POLY)
1046 target_link_libraries(cvc4 ${POLY_LIBRARIES})
1047 target_include_directories(cvc4 PRIVATE ${POLY_INCLUDE_DIR})
1048 endif()
1049 if(USE_SYMFPU)
1050 target_include_directories(cvc4
1051 PUBLIC $<BUILD_INTERFACE:${SymFPU_INCLUDE_DIR}>)
1052 endif()
1053
1054 # Note: When linked statically GMP needs to be linked after CLN since CLN
1055 # depends on GMP.
1056 target_link_libraries(cvc4 ${GMP_LIBRARIES})
1057 target_include_directories(cvc4 PUBLIC $<BUILD_INTERFACE:${GMP_INCLUDE_DIR}>)
1058
1059 # Add rt library
1060 # Note: For glibc < 2.17 we have to additionally link against rt (man clock_gettime).
1061 # RT_LIBRARIES should be empty for glibc >= 2.17
1062 target_link_libraries(cvc4 ${RT_LIBRARIES})
1063
1064 #-----------------------------------------------------------------------------#
1065 # Visit main subdirectory after creating target cvc4. For target main, we have
1066 # to manually add library dependencies since we can't use
1067 # target_link_libraries(...) with object libraries for cmake versions <= 3.12.
1068 # Thus, we can only visit main as soon as all dependencies for cvc4 are set up.
1069
1070 if (NOT BUILD_LIB_ONLY)
1071 add_subdirectory(main)
1072 endif()
1073
1074 #-----------------------------------------------------------------------------#
1075 # Note:
1076 # We define all install commands for all public headers here in one
1077 # place so that we can easily remove them as soon as we enforce the new
1078 # C++ API.
1079 #
1080 # All (generated) headers that either include cvc4_public.h or
1081 # cvc4parser_public.h need to be listed explicitly here.
1082 #
1083 install(FILES
1084 api/cvc4cpp.h
1085 api/cvc4cppkind.h
1086 DESTINATION
1087 ${CMAKE_INSTALL_INCLUDEDIR}/cvc4/api)
1088 install(FILES
1089 base/configuration.h
1090 base/exception.h
1091 base/listener.h
1092 base/modal_exception.h
1093 DESTINATION
1094 ${CMAKE_INSTALL_INCLUDEDIR}/cvc4/base)
1095 install(FILES
1096 context/cdhashmap_forward.h
1097 context/cdhashset_forward.h
1098 context/cdinsert_hashmap_forward.h
1099 context/cdlist_forward.h
1100 DESTINATION
1101 ${CMAKE_INSTALL_INCLUDEDIR}/cvc4/context)
1102 install(FILES
1103 include/cvc4.h
1104 include/cvc4_public.h
1105 include/cvc4parser_public.h
1106 DESTINATION
1107 ${CMAKE_INSTALL_INCLUDEDIR}/cvc4)
1108 install(FILES
1109 expr/array.h
1110 expr/array_store_all.h
1111 expr/ascription_type.h
1112 expr/emptyset.h
1113 expr/expr_iomanip.h
1114 expr/record.h
1115 expr/sequence.h
1116 expr/symbol_table.h
1117 expr/type.h
1118 expr/uninterpreted_constant.h
1119 expr/variable_type_map.h
1120 ${CMAKE_CURRENT_BINARY_DIR}/expr/expr.h
1121 ${CMAKE_CURRENT_BINARY_DIR}/expr/kind.h
1122 ${CMAKE_CURRENT_BINARY_DIR}/expr/expr_manager.h
1123 DESTINATION
1124 ${CMAKE_INSTALL_INCLUDEDIR}/cvc4/expr)
1125 install(FILES
1126 options/language.h
1127 options/option_exception.h
1128 options/options.h
1129 options/printer_modes.h
1130 options/set_language.h
1131 DESTINATION
1132 ${CMAKE_INSTALL_INCLUDEDIR}/cvc4/options)
1133 install(FILES
1134 parser/input.h
1135 parser/parser.h
1136 parser/parser_builder.h
1137 parser/parser_exception.h
1138 parser/parse_op.h
1139 DESTINATION
1140 ${CMAKE_INSTALL_INCLUDEDIR}/cvc4/parser)
1141 install(FILES
1142 DESTINATION
1143 ${CMAKE_INSTALL_INCLUDEDIR}/cvc4/printer)
1144 install(FILES
1145 proof/unsat_core.h
1146 DESTINATION
1147 ${CMAKE_INSTALL_INCLUDEDIR}/cvc4/proof)
1148 install(FILES
1149 smt/command.h
1150 smt/logic_exception.h
1151 smt/smt_engine.h
1152 DESTINATION
1153 ${CMAKE_INSTALL_INCLUDEDIR}/cvc4/smt)
1154 install(FILES
1155 theory/logic_info.h
1156 theory/theory_id.h
1157 DESTINATION
1158 ${CMAKE_INSTALL_INCLUDEDIR}/cvc4/theory)
1159 install(FILES
1160 util/abstract_value.h
1161 util/bitvector.h
1162 util/bool.h
1163 util/cardinality.h
1164 util/divisible.h
1165 util/gmp_util.h
1166 util/hash.h
1167 util/iand.h
1168 util/integer_cln_imp.h
1169 util/integer_gmp_imp.h
1170 util/maybe.h
1171 util/poly_util.h
1172 util/rational_cln_imp.h
1173 util/rational_gmp_imp.h
1174 util/real_algebraic_number_poly_imp.h
1175 util/regexp.h
1176 util/resource_manager.h
1177 util/result.h
1178 util/sexpr.h
1179 util/statistics.h
1180 util/string.h
1181 util/tuple.h
1182 util/unsafe_interrupt_exception.h
1183 ${CMAKE_CURRENT_BINARY_DIR}/util/floatingpoint.h
1184 ${CMAKE_CURRENT_BINARY_DIR}/util/integer.h
1185 ${CMAKE_CURRENT_BINARY_DIR}/util/rational.h
1186 ${CMAKE_CURRENT_BINARY_DIR}/util/real_algebraic_number.h
1187 DESTINATION
1188 ${CMAKE_INSTALL_INCLUDEDIR}/cvc4/util)
1189
1190 # Fix include paths for all public headers.
1191 # Note: This is a temporary fix until the new C++ API is in place.
1192 install(CODE "execute_process(COMMAND
1193 ${CMAKE_CURRENT_LIST_DIR}/fix-install-headers.sh
1194 ${CMAKE_INSTALL_PREFIX})")