mirror of
https://github.com/Z3Prover/z3
synced 2026-02-20 07:24:40 +00:00
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>
This commit is contained in:
parent
21f10f0a5c
commit
1d417e3a0f
61 changed files with 118 additions and 118 deletions
|
|
@ -202,7 +202,7 @@ namespace datalog {
|
|||
m_terms.reset();
|
||||
m_var2cnst.reset();
|
||||
m_cnst2var.reset();
|
||||
fml = m.mk_and(conjs.size(), conjs.data());
|
||||
fml = m.mk_and(conjs);
|
||||
|
||||
for (unsigned i = 0; i < sorts.size(); ++i) {
|
||||
var = m.mk_var(i, sorts[i]);
|
||||
|
|
@ -211,7 +211,7 @@ namespace datalog {
|
|||
m_cnst2var.insert(cnst, var);
|
||||
}
|
||||
|
||||
fml = m.mk_and(conjs.size(), conjs.data());
|
||||
fml = m.mk_and(conjs);
|
||||
m_var2cnst(fml);
|
||||
collect_egraph(fml);
|
||||
|
||||
|
|
@ -221,7 +221,7 @@ namespace datalog {
|
|||
for (auto & kv : m_funs) dealloc(kv.m_value);
|
||||
m_funs.reset();
|
||||
|
||||
fml = m.mk_and(conjs.size(), conjs.data());
|
||||
fml = m.mk_and(conjs);
|
||||
fml = m.mk_implies(fml, r.get_head());
|
||||
TRACE(dl, r.display(m_ctx, tout); tout << mk_pp(fml, m) << "\n";);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue