3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-22 16:27:37 +00:00
z3/src/tactic/arith
Copilot ebc0688470
Refactor mk_and/mk_or call sites to use vector overloads (#8286)
* Initial plan

* Refactor mk_and and mk_or call sites to use overloaded methods

Changed 130 call sites across 64 files to use vector overloads directly instead of manually passing .size() and .data()/.c_ptr()

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

* Revert mk_or changes for ptr_buffer/ptr_vector (no overload exists in ast_util.h)

* Fix compilation errors from mk_and/mk_or refactoring

Fixed type mismatches by:
- Removing m parameter for expr_ref_vector (ast_util.h has mk_and/mk_or(expr_ref_vector) overloads)
- Reverting changes for ref_buffer types (no overload exists in ast_util.h, only in ast.h for m.mk_and)
- Verified build succeeds and Z3 works correctly

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

* Fix test files to use correct mk_and/mk_or overloads

Changed test/doc.cpp and test/udoc_relation.cpp to use mk_and(expr_ref_vector) and mk_or(expr_ref_vector) without m parameter

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>
2026-01-22 13:21:22 -08:00
..
add_bounds_tactic.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
add_bounds_tactic.h bugfix to flatten-clases simplifier 2023-01-05 20:59:28 -08:00
arith_bounds_tactic.cpp Centralize and document TRACE tags using X-macros (#7657) 2025-05-28 14:31:25 +01:00
arith_bounds_tactic.h increase build version, better propagation in euf-egraph, handle assumptions in sat.smt 2023-01-17 14:07:07 -08:00
bv2int_rewriter.cpp Centralize and document TRACE tags using X-macros (#7657) 2025-05-28 14:31:25 +01:00
bv2int_rewriter.h fix #7572 and fix #7574 2025-03-07 10:46:29 -08:00
bv2real_rewriter.cpp Centralize and document TRACE tags using X-macros (#7657) 2025-05-28 14:31:25 +01:00
bv2real_rewriter.h Migrate codebase to std::string_view (except z3++.h) (#8266) 2026-01-21 09:30:41 -08:00
card2bv_tactic.h update release notes 2023-01-31 12:19:33 -08:00
CMakeLists.txt use intervals for tracking bounds on arithmetic variables 2023-01-23 14:13:03 -08:00
degree_shift_tactic.cpp Centralize and document TRACE tags using X-macros (#7657) 2025-05-28 14:31:25 +01:00
degree_shift_tactic.h add quasi macro detection 2023-01-06 19:53:55 -08:00
diff_neq_tactic.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
diff_neq_tactic.h add doc 2022-12-12 17:29:58 -08:00
eq2bv_tactic.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
eq2bv_tactic.h update doc 2022-12-12 18:56:21 -08:00
factor_tactic.cpp Refactor mk_and/mk_or call sites to use vector overloads (#8286) 2026-01-22 13:21:22 -08:00
factor_tactic.h update doc 2022-12-12 18:56:21 -08:00
fix_dl_var_tactic.cpp Centralize and document TRACE tags using X-macros (#7657) 2025-05-28 14:31:25 +01:00
fix_dl_var_tactic.h update doc 2022-12-12 18:56:21 -08:00
fm_tactic.cpp Refactor mk_and/mk_or call sites to use vector overloads (#8286) 2026-01-22 13:21:22 -08:00
fm_tactic.h fix tactic name in docs 2023-01-20 17:30:40 +00:00
lia2card_tactic.cpp Refactor mk_and/mk_or call sites to use vector overloads (#8286) 2026-01-22 13:21:22 -08:00
lia2card_tactic.h add doc 2022-12-14 16:45:58 -08:00
lia2pb_tactic.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
lia2pb_tactic.h bugfix to flatten-clases simplifier 2023-01-05 20:59:28 -08:00
nla2bv_tactic.cpp Replace custom util/optional with std::optional (#8162) 2026-01-11 19:47:39 -08:00
nla2bv_tactic.h add doc 2022-12-14 16:45:58 -08:00
normalize_bounds_tactic.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
normalize_bounds_tactic.h add doc 2022-12-14 16:45:58 -08:00
pb2bv_model_converter.cpp Centralize and document TRACE tags using X-macros (#7657) 2025-05-28 14:31:25 +01:00
pb2bv_model_converter.h move bound_manager to simplifiers, add bound manager to extract_eqs for solve-eqs #6532 2023-01-12 12:42:28 -08:00
pb2bv_tactic.cpp Refactor mk_and/mk_or call sites to use vector overloads (#8286) 2026-01-22 13:21:22 -08:00
pb2bv_tactic.h add tactic descriptions 2022-12-14 20:38:28 -08:00
probe_arith.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
probe_arith.h booyah 2020-07-04 15:56:30 -07:00
propagate_ineqs_tactic.h update release notes 2023-01-31 12:19:33 -08:00
purify_arith_tactic.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
purify_arith_tactic.h add tactic descriptions 2022-12-14 20:38:28 -08:00
recover_01_tactic.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
recover_01_tactic.h add doc 2022-12-14 16:45:58 -08:00