mirror of
https://github.com/Z3Prover/z3
synced 2026-06-13 20:35:39 +00:00
* Add shell-integrated self-contained TPTP frontend and CLI wiring Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/ba80bc5a-d80f-4d9f-8ed4-a962f697697c Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Fix TPTP frontend build integration and validate with tests Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/ba80bc5a-d80f-4d9f-8ed4-a962f697697c Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Address review feedback and clean up TPTP/frontend readability Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/ba80bc5a-d80f-4d9f-8ed4-a962f697697c Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Refine TPTP parser semantics and keying based on review feedback Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/ba80bc5a-d80f-4d9f-8ed4-a962f697697c Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Polish TPTP frontend keys/path checks and deduplicate skip logic Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/ba80bc5a-d80f-4d9f-8ed4-a962f697697c Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Add src/api include path to shell CMake target Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/e07bbe13-16bc-4cc6-92e8-1708981b04ad Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Use internal AST/cmd_context APIs in TPTP shell frontend Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/2a6b01d0-c799-4e44-aa73-ef228cb4402e Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Harden TPTP cmd_context integration and suppress check-sat echo Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/2a6b01d0-c799-4e44-aa73-ef228cb4402e Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Make TPTP check-sat stream redirection exception-safe Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/2a6b01d0-c799-4e44-aa73-ef228cb4402e Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Address review nits in TPTP internal API frontend Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/2a6b01d0-c799-4e44-aa73-ef228cb4402e Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Refine TPTP frontend ownership and stream restoration semantics Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/2a6b01d0-c799-4e44-aa73-ef228cb4402e Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Add TPTP regression files and test-z3 tptp test Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/dc1d46fc-4b6c-4f64-91a0-9fb57c73c166 Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Adjust Agatha TPTP expectation and tidy test helper constant Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/dc1d46fc-4b6c-4f64-91a0-9fb57c73c166 Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Harden tptp test command handling and readability Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/dc1d46fc-4b6c-4f64-91a0-9fb57c73c166 Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Validate tptp test filenames against empty and traversal patterns Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/dc1d46fc-4b6c-4f64-91a0-9fb57c73c166 Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Tighten tptp filename checks and rename output buffer constant Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/dc1d46fc-4b6c-4f64-91a0-9fb57c73c166 Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Use read_tptp API directly in tptp unit test Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/f07170c1-549a-464c-89f8-fee973f9790f Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Clarify required tptp frontend extern flags in test Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/f07170c1-549a-464c-89f8-fee973f9790f Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Move tptp frontend to cmd_context and add string API Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/1be7cf7e-2747-43ba-9a33-2e71dad2d14d Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Polish tptp stream parser naming and simplify test asserts Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/1be7cf7e-2747-43ba-9a33-2e71dad2d14d Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Fix mk_make include resolution for moved tptp frontend Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/7cbce0d2-0ed9-4941-91d4-49977c0a97a1 Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Update CMakeLists.txt * Fix TPTP parsing, arithmetic builtin mapping, and timeout handling Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/f2be81f6-e506-47ea-a38a-46d1970add8c Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Polish TPTP parser diagnostics and type parsing details Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/f2be81f6-e506-47ea-a38a-46d1970add8c Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Refine digit-check helper naming in TPTP frontend Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/f2be81f6-e506-47ea-a38a-46d1970add8c Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Add rational zero-denominator regression test for TPTP Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/f2be81f6-e506-47ea-a38a-46d1970add8c Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Fix missing g_display_* symbol definitions for non-shell link targets Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/0283d958-26a8-4b1c-86be-b75a5bc26d8c Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> Co-authored-by: Nikolaj Bjorner <nbjorner@microsoft.com>
174 lines
3.7 KiB
CMake
174 lines
3.7 KiB
CMake
add_subdirectory(fuzzing)
|
|
add_subdirectory(lp)
|
|
################################################################################
|
|
# z3-test executable
|
|
################################################################################
|
|
set(z3_test_deps api fuzzing simplex)
|
|
z3_expand_dependencies(z3_test_expanded_deps ${z3_test_deps})
|
|
set (z3_test_extra_object_files "")
|
|
foreach (component ${z3_test_expanded_deps})
|
|
list(APPEND z3_test_extra_object_files $<TARGET_OBJECTS:${component}>)
|
|
endforeach()
|
|
add_executable(test-z3
|
|
EXCLUDE_FROM_ALL
|
|
ackermannize.cpp
|
|
algebraic.cpp
|
|
algebraic_numbers.cpp
|
|
api_ast_map.cpp
|
|
api_bug.cpp
|
|
api_special_relations.cpp
|
|
api.cpp
|
|
api_algebraic.cpp
|
|
api_polynomial.cpp
|
|
api_pb.cpp
|
|
api_datalog.cpp
|
|
parametric_datatype.cpp
|
|
arith_rewriter.cpp
|
|
arith_simplifier_plugin.cpp
|
|
ast.cpp
|
|
bdd.cpp
|
|
bit_blaster.cpp
|
|
bits.cpp
|
|
bit_vector.cpp
|
|
buffer.cpp
|
|
chashtable.cpp
|
|
check_assumptions.cpp
|
|
cnf_backbones.cpp
|
|
cube_clause.cpp
|
|
datalog_parser.cpp
|
|
ddnf.cpp
|
|
deep_api_bugs.cpp
|
|
diff_logic.cpp
|
|
distribution.cpp
|
|
dl_context.cpp
|
|
dl_product_relation.cpp
|
|
dl_query.cpp
|
|
dl_relation.cpp
|
|
dl_table.cpp
|
|
dl_util.cpp
|
|
doc.cpp
|
|
dlist.cpp
|
|
egraph.cpp
|
|
escaped.cpp
|
|
euf_bv_plugin.cpp
|
|
euf_arith_plugin.cpp
|
|
ex.cpp
|
|
expr_rand.cpp
|
|
expr_substitution.cpp
|
|
ext_numeral.cpp
|
|
f2n.cpp
|
|
finite_set.cpp
|
|
finite_set_rewriter.cpp
|
|
fpa.cpp
|
|
factor_rewriter.cpp
|
|
finder.cpp
|
|
fixed_bit_vector.cpp
|
|
for_each_file.cpp
|
|
get_consequences.cpp
|
|
get_implied_equalities.cpp
|
|
"${CMAKE_CURRENT_BINARY_DIR}/gparams_register_modules.cpp"
|
|
hashtable.cpp
|
|
heap.cpp
|
|
heap_trie.cpp
|
|
hilbert_basis.cpp
|
|
ho_matcher.cpp
|
|
horn_subsume_model_converter.cpp
|
|
horner.cpp
|
|
hwf.cpp
|
|
inf_rational.cpp
|
|
"${CMAKE_CURRENT_BINARY_DIR}/install_tactic.cpp"
|
|
interval.cpp
|
|
karr.cpp
|
|
list.cpp
|
|
main.cpp
|
|
map.cpp
|
|
matcher.cpp
|
|
"${CMAKE_CURRENT_BINARY_DIR}/mem_initializer.cpp"
|
|
memory.cpp
|
|
model2expr.cpp
|
|
model_based_opt.cpp
|
|
mod_factor.cpp
|
|
model_evaluator.cpp
|
|
model_retrieval.cpp
|
|
monomial_bounds.cpp
|
|
mpbq.cpp
|
|
mpf.cpp
|
|
mpff.cpp
|
|
mpfx.cpp
|
|
mpq.cpp
|
|
mpz.cpp
|
|
nlarith_util.cpp
|
|
nla_intervals.cpp
|
|
nlsat.cpp
|
|
no_overflow.cpp
|
|
object_allocator.cpp
|
|
old_interval.cpp
|
|
optional.cpp
|
|
parray.cpp
|
|
pb2bv.cpp
|
|
pdd.cpp
|
|
pdd_solver.cpp
|
|
permutation.cpp
|
|
polynomial.cpp
|
|
polynomial_factorization.cpp
|
|
polynorm.cpp
|
|
prime_generator.cpp
|
|
proof_checker.cpp
|
|
qe_arith.cpp
|
|
quant_elim.cpp
|
|
quant_solve.cpp
|
|
random.cpp
|
|
rational.cpp
|
|
rcf.cpp
|
|
region.cpp
|
|
sat_local_search.cpp
|
|
sat_lookahead.cpp
|
|
sat_user_scope.cpp
|
|
scoped_timer.cpp
|
|
scoped_vector.cpp
|
|
simple_parser.cpp
|
|
simplex.cpp
|
|
simplifier.cpp
|
|
sls_test.cpp
|
|
sls_seq_plugin.cpp
|
|
small_object_allocator.cpp
|
|
smt2print_parse.cpp
|
|
smt_context.cpp
|
|
solver_pool.cpp
|
|
sorting_network.cpp
|
|
stack.cpp
|
|
string_buffer.cpp
|
|
substitution.cpp
|
|
symbol.cpp
|
|
symbol_table.cpp
|
|
tbv.cpp
|
|
theory_dl.cpp
|
|
theory_pb.cpp
|
|
timeout.cpp
|
|
tptp.cpp
|
|
total_order.cpp
|
|
totalizer.cpp
|
|
trigo.cpp
|
|
udoc_relation.cpp
|
|
uint_set.cpp
|
|
upolynomial.cpp
|
|
value_generator.cpp
|
|
value_sweep.cpp
|
|
var_subst.cpp
|
|
vector.cpp
|
|
lp/lp.cpp
|
|
lp/nla_solver_test.cpp
|
|
zstring.cpp
|
|
${z3_test_extra_object_files}
|
|
)
|
|
z3_add_install_tactic_rule(${z3_test_deps})
|
|
z3_add_memory_initializer_rule(${z3_test_deps})
|
|
z3_add_gparams_register_modules_rule(${z3_test_deps})
|
|
target_compile_definitions(test-z3 PRIVATE
|
|
${Z3_COMPONENT_CXX_DEFINES}
|
|
)
|
|
target_compile_options(test-z3 PRIVATE ${Z3_COMPONENT_CXX_FLAGS})
|
|
target_link_libraries(test-z3 PRIVATE ${Z3_DEPENDENT_LIBS})
|
|
target_include_directories(test-z3 PRIVATE ${Z3_COMPONENT_EXTRA_INCLUDE_DIRS})
|
|
z3_append_linker_flag_list_to_target(test-z3 ${Z3_DEPENDENT_EXTRA_CXX_LINK_FLAGS})
|
|
z3_add_component_dependencies_to_target(test-z3 ${z3_test_expanded_deps})
|