3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-08-09 23:42:21 +00:00
z3/src/test
Nikolaj Bjorner 2999517d51
Reject declarations that clash with built-in signatures (#10411)
## Summary
- reject declarations and definitions whose argument sorts collide with
a built-in signature
- preserve overloads whose argument sorts remain distinguishable
- add SMT-LIB parser regression coverage

Fixes #10404

## Testing
- `test-z3 smt2print_parse`
- `test-z3 /a` (94 passed)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a8f87ede-b718-4fe9-9839-cc9eaaf9c3a7
2026-08-05 17:08:31 -07:00
..
fuzzing test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
lp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
ackermannize.cpp fix build warnings 2026-06-22 18:20:23 -07:00
algebraic.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
algebraic_numbers.cpp fix edge case in algebraic number comparison (#9498) 2026-05-27 05:01:47 -07:00
api.cpp opt: don't stop the search on a stalled delta-rational objective (#10412) 2026-08-05 12:35:32 -07:00
api_algebraic.cpp Add tests for ackermannization module and Z3_algebraic_eval 2026-02-19 18:18:19 +00:00
api_ast_map.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
api_bug.cpp
api_datalog.cpp Fix api_datalog test: reuse of Z3_context across set-logic calls (#10101) 2026-07-12 20:32:02 -07:00
api_pb.cpp
api_polynomial.cpp preserve the initial state of the solver with push/pop for multiple objectives (#8264) 2026-02-18 20:57:53 -08:00
api_special_relations.cpp
arith_rewriter.cpp Fix non-termination in mod rewriter for symbolic modulus (#10105) 2026-07-13 09:20:03 -07:00
arith_simplifier_plugin.cpp
ast.cpp
bdd.cpp
bit_blaster.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
bit_vector.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
bits.cpp [WIP] Update code base to use std::span (#8269) 2026-02-18 20:57:51 -08:00
buffer.cpp
chashtable.cpp Improve hash mixing to eliminate bitvector-expression hash-table clustering (#10120) 2026-07-14 11:51:49 -07:00
check_assumptions.cpp
CMakeLists.txt Add seq monadic benchmark harness (#10330) 2026-07-31 14:03:21 -07:00
cnf_backbones.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
cube_clause.cpp
datalog_parser.cpp
ddnf.cpp
deep_api_bugs.cpp fix build warnings 2026-06-22 18:20:23 -07:00
diff_logic.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
distribution.cpp
dl_context.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
dl_product_relation.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
dl_query.cpp Adopt std::optional for try_get_value and try_get_size functions (#8268) 2026-02-18 20:57:50 -08:00
dl_relation.cpp fix: fix memory leaks detected by ASan in test code 2026-03-09 16:48:17 +00:00
dl_table.cpp ensure engine is datalog for dl_table and dl_util tests 2026-05-31 15:32:23 -07:00
dl_util.cpp add include directive 2026-06-01 11:39:18 -07:00
dlist.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
doc.cpp fix build warnings 2026-06-22 18:20:23 -07:00
egraph.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
escaped.cpp
euf_arith_plugin.cpp euf_arith_plugin: implement uminus instead of NOT_IMPLEMENTED_YET (#10243) 2026-07-27 08:21:56 -07:00
euf_bv_plugin.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
ex.cpp
expr_rand.cpp
expr_substitution.cpp Add std::initializer_list overloads for BV and arith operations (#8467) 2026-02-18 20:58:02 -08:00
ext_numeral.cpp
f2n.cpp
factor_rewriter.cpp
finder.cpp
finite_set.cpp
finite_set_rewriter.cpp
fixed_bit_vector.cpp
for_each_file.cpp
for_each_file.h
get_consequences.cpp
get_implied_equalities.cpp
hashtable.cpp fix build warnings 2026-06-22 18:20:23 -07:00
heap.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
heap_trie.cpp
hilbert_basis.cpp fix build warnings 2026-06-22 18:20:23 -07:00
ho_matcher.cpp bugfixes to front-end and matcher 2026-07-06 17:14:41 -07:00
horn_subsume_model_converter.cpp
horner.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
hwf.cpp ci: add MinGW build/test job to Windows.yml (#10211) 2026-07-24 13:11:08 -07:00
im_float_config.h
inf_rational.cpp
interval.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
karr.cpp
lcube.cpp Lcube (#9858) 2026-06-14 16:25:21 -07:00
list.cpp
main.cpp Add seq monadic benchmark harness (#10330) 2026-07-31 14:03:21 -07:00
map.cpp
matcher.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
mbp_qel.cpp Cleanup thanks to Copilot (#9709) 2026-06-04 10:46:33 -07:00
memory.cpp Prevent Z3_solver_reset abort after memory_max_size OOM by making reset memory-limit-safe (#10254) 2026-07-27 12:46:32 -07:00
mod_factor.cpp Move SMTLIB2 verdict unit tests to z3test regressions 2026-07-23 09:39:21 -07:00
model2expr.cpp
model_based_opt.cpp
model_evaluator.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
model_retrieval.cpp
monomial_bounds.cpp
mpbq.cpp
mpf.cpp
mpff.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
mpfx.cpp
mpq.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
mpz.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
nla_intervals.cpp Fixes for lar_term== operator (#9284) 2026-04-12 14:31:18 -07:00
nlarith_util.cpp
nlsat.cpp Strengthen historical nlsat regression tests (#9857) 2026-06-16 11:36:13 -06:00
no_overflow.cpp Modernize C++ patterns: range-based for loops and nullptr (#8167) 2026-02-18 20:57:10 -08:00
object_allocator.cpp fix build warnings 2026-06-22 18:20:23 -07:00
old_interval.cpp
optional.cpp Adopt std::optional for try_get_value and try_get_size functions (#8268) 2026-02-18 20:57:50 -08:00
parametric_datatype.cpp fix build warnings 2026-06-22 18:20:23 -07:00
parray.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
pb2bv.cpp
pdd.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
pdd_solver.cpp Refactor mk_and/mk_or call sites to use vector overloads (#8286) 2026-02-18 20:57:52 -08:00
permutation.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
polynomial.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
polynomial_factorization.cpp Implement multivariate polynomial factorization via Hensel lifting 2026-03-24 06:25:29 -10:00
polynorm.cpp
prime_generator.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
proof_checker.cpp Improve test validation for mk_transitivity 2026-02-18 21:02:26 -08:00
psmt.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
qe_arith.cpp Refactor mk_and and mk_app to use std::span API (#8285) 2026-02-18 20:57:52 -08:00
quant_elim.cpp ci: add MinGW build/test job to Windows.yml (#10211) 2026-07-24 13:11:08 -07:00
quant_solve.cpp Add QE regression for unsound check-sat-using qe result on quantified reals (#10097) 2026-07-12 18:53:15 -07:00
random.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
range_predicate.cpp Derive with ranges (#9965) 2026-06-26 08:44:13 -06:00
rational.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
rcf.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
regex_range_collapse.cpp disabling newly failing tests 2026-07-16 09:00:50 -07:00
region.cpp
sat_local_search.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
sat_lookahead.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
sat_user_scope.cpp
scanner_io.cpp scanner: emit ERROR_TOKEN on I/O failure instead of silent EOF (#10294) 2026-07-29 14:00:42 -07:00
scoped_timer.cpp
scoped_vector.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
seq_monadic.cpp Add readable seq_monadic state display (#10415) 2026-08-05 17:07:19 -07:00
seq_monadic_bench.cpp [code-simplifier] seq_monadic_bench: replace comma-operator chains with explicit statements (#10408) 2026-08-05 09:00:28 -07:00
seq_regex_bisim.cpp Derive with ranges (#9965) 2026-06-26 08:44:13 -06:00
seq_rewriter.cpp Track maximum regex lengths 2026-08-05 12:15:55 -07:00
simple_parser.cpp
simplex.cpp
simplifier.cpp Move SMTLIB2 verdict unit tests to z3test regressions 2026-07-23 09:39:21 -07:00
sls_seq_plugin.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
sls_test.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
small_object_allocator.cpp
smt2print_parse.cpp Reject declarations that clash with built-in signatures (#10411) 2026-08-05 17:08:31 -07:00
smt_context.cpp Fix qe-lite de Bruijn reindexing after bounded quantifier expansion (#9996) 2026-06-29 09:53:02 -07:00
solver_pool.cpp
sorting_network.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
stack.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
string_buffer.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
substitution.cpp
symbol.cpp
symbol_table.cpp
tbv.cpp test: replace SASSERT with ENSURE, remove Windows-only guards (#10086) 2026-07-11 21:14:59 -07:00
term_enumeration.cpp term_enumeration: add tuple iterator over a vector of sorts 2026-07-28 14:48:17 -07:00
test_util.h
theory_dl.cpp
theory_pb.cpp
timeout.cpp
total_order.cpp Address high-confidence clang analyzer findings from warning report (#10355) 2026-08-01 15:30:26 -07:00
totalizer.cpp
tptp.cpp Fix TPTP front-end precedence and Int/Real coercion bugs 2026-06-29 15:00:56 -07:00
trigo.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
udoc_relation.cpp set up udoc relation to use datalog engine 2026-06-01 19:06:25 -07:00
uint_set.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
upolynomial.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00
value_generator.cpp
value_sweep.cpp
var_subst.cpp Address high-confidence clang analyzer findings from warning report (#10355) 2026-08-01 15:30:26 -07:00
vector.cpp Add vector::resize tests including vector<rational> 2026-03-11 23:54:01 +00:00
zstring.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-02-18 20:57:29 -08:00