3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-10 11:00:52 +00:00
z3/src/muz/base
Copilot 058a8c082d
Refactor mk_and and mk_app to use std::span API (#8285)
* Initial plan

* Refactor mk_and and mk_app to use std::span

- Made mk_and(unsigned num_args, expr * const * args) private
- Added new public mk_and(std::span<expr* const> args) method
- Added new public mk_app(family_id fid, decl_kind k, std::span<expr* const> args) method
- Updated all convenience overloads to use std::span version
- Updated all external call sites to use the new std::span API

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

* Fix remaining test files to use std::span API

- Updated src/test/sorting_network.cpp
- Updated src/test/ho_matcher.cpp with explicit cast to resolve ambiguity

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

* Revert overlapping changes superseded by PR #8286

Reverted 30 files to match the state from PR #8286 (commit ebc0688) which refactored mk_and/mk_or call sites to use vector overloads. This supersedes the std::span changes in those files.

Retained std::span changes in files unique to this PR:
- Core API changes (ast.h, ast.cpp)
- Files not affected by PR #8286 (api_context.cpp, ast_util.cpp, bool_rewriter.h, datatype_rewriter.cpp, dom_simplifier.cpp, factor_rewriter.cpp, pb2bv_rewriter.cpp, quant_hoist.cpp, spacer_cluster_util.cpp, sortmax.cpp, array_axioms.cpp, smtfd_solver.cpp, goal.cpp, ho_matcher.cpp, qe_arith.cpp, sorting_network.cpp)
- Special case in hnf.cpp where both PRs modified different lines

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 16:58:38 -08:00
..
bind_variables.cpp Modernize C++ patterns: range-based for loops and nullptr (#8167) 2026-01-11 21:20:07 -08:00
bind_variables.h remove default destructors 2024-10-02 22:20:12 +01:00
CMakeLists.txt Cleanup fixedpoint options 2018-06-14 16:08:52 -07:00
dl_boogie_proof.cpp remove '#include <iostream>' from headers and from unneeded places 2022-06-17 14:10:19 +01:00
dl_boogie_proof.h Make sure all headers do #pragma once. (#6188) 2022-07-23 10:41:14 -07:00
dl_context.cpp Adopt std::optional for try_get_value and try_get_size functions (#8268) 2026-01-21 12:41:50 -08:00
dl_context.h move smt params to params directory, update release.yml 2025-06-09 10:47:22 -07:00
dl_costs.cpp Remove int64, uint64 typedefs in favor of int64_t / uint64_t. 2018-03-31 14:45:04 +07:00
dl_costs.h Use = delete to delete special methods. 2022-08-02 09:23:14 +03:00
dl_engine_base.h Use = default for virtual constructors. 2022-08-05 18:11:46 +03:00
dl_rule.cpp Refactor mk_and/mk_or call sites to use vector overloads (#8286) 2026-01-22 13:21:22 -08:00
dl_rule.h update release notes 2023-01-31 12:19:33 -08:00
dl_rule_set.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
dl_rule_set.h call it data instead of c_ptr for approaching C++11 std::vector convention. 2021-04-13 18:17:35 -07:00
dl_rule_subsumption_index.cpp make include paths uniformly use path relative to src. #534 2017-07-31 13:24:11 -07:00
dl_rule_subsumption_index.h unused variables 2022-10-20 09:09:06 -07:00
dl_rule_transformer.cpp Centralize and document TRACE tags using X-macros (#7657) 2025-05-28 14:31:25 +01:00
dl_rule_transformer.h Use = default for virtual constructors. 2022-08-05 18:11:46 +03:00
dl_util.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
dl_util.h Migrate codebase to std::string_view (except z3++.h) (#8266) 2026-01-21 09:30:41 -08:00
fp_params.pyg Spacer Global Guidance (#6026) 2022-08-30 15:47:00 -07:00
hnf.cpp Refactor mk_and and mk_app to use std::span API (#8285) 2026-01-22 16:58:38 -08:00
hnf.h move model and proof converters to self-contained module 2022-11-03 05:23:01 -07:00
rule_properties.cpp remove default destructors & some default constructors 2024-09-04 22:30:23 +01:00
rule_properties.h remove default destructors & some default constructors 2024-09-04 22:30:23 +01:00