mirror of
https://github.com/Z3Prover/z3
synced 2026-05-05 18:05:15 +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:
parent
a2f3d647e1
commit
018bb83ea1
3 changed files with 5 additions and 5 deletions
|
|
@ -247,7 +247,7 @@ private:
|
||||||
);
|
);
|
||||||
m_app2val.insert(a, result.get()); // memoize
|
m_app2val.insert(a, result.get()); // memoize
|
||||||
m_pinned.push_back(a);
|
m_pinned.push_back(a);
|
||||||
m_pinned.push_back(result);
|
m_pinned.push_back(std::move(result));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ struct macro_replacer::macro_replacer_cfg : public default_rewriter_cfg {
|
||||||
var_subst s(m);
|
var_subst s(m);
|
||||||
expr_ref rr = s(def, num, subst_args.data());
|
expr_ref rr = s(def, num, subst_args.data());
|
||||||
r = rr;
|
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);
|
m_used_macro_dependencies = m.mk_join(m_used_macro_dependencies, dep);
|
||||||
// skip proof terms for simplifiers
|
// skip proof terms for simplifiers
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -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);
|
substitute_vars_by_const(m, au.get_generalization(), const_ref, lit3);
|
||||||
|
|
||||||
expr_ref_vector args(m);
|
expr_ref_vector args(m);
|
||||||
args.push_back(lit1);
|
args.push_back(std::move(lit1));
|
||||||
args.push_back(lit2);
|
args.push_back(std::move(lit2));
|
||||||
args.push_back(lit3);
|
args.push_back(std::move(lit3));
|
||||||
expr_ref body_with_consts = mk_and(args);
|
expr_ref body_with_consts = mk_and(args);
|
||||||
|
|
||||||
// 3. replace const by var
|
// 3. replace const by var
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue