3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-14 12:51:48 +00:00

Apply std::move to expr_ref variables not used after push_back (3 files)

Co-authored-by: nunoplopes <2998477+nunoplopes@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-12 08:24:14 +00:00
parent a2f3d647e1
commit 018bb83ea1
3 changed files with 5 additions and 5 deletions

View file

@ -247,7 +247,7 @@ private:
);
m_app2val.insert(a, result.get()); // memoize
m_pinned.push_back(a);
m_pinned.push_back(result);
m_pinned.push_back(std::move(result));
return true;
}

View file

@ -96,7 +96,7 @@ struct macro_replacer::macro_replacer_cfg : public default_rewriter_cfg {
var_subst s(m);
expr_ref rr = s(def, num, subst_args.data());
r = rr;
m_trail.push_back(rr);
m_trail.push_back(std::move(rr));
m_used_macro_dependencies = m.mk_join(m_used_macro_dependencies, dep);
// skip proof terms for simplifiers
return true;

View file

@ -278,9 +278,9 @@ bool naive_convex_closure::compute_closure(anti_unifier& au, ast_manager& m,
substitute_vars_by_const(m, au.get_generalization(), const_ref, lit3);
expr_ref_vector args(m);
args.push_back(lit1);
args.push_back(lit2);
args.push_back(lit3);
args.push_back(std::move(lit1));
args.push_back(std::move(lit2));
args.push_back(std::move(lit3));
expr_ref body_with_consts = mk_and(args);
// 3. replace const by var