mirror of
https://github.com/Z3Prover/z3
synced 2026-02-23 00:37:36 +00:00
Eliminate unnecessary copies with std::move for ref-counted types (#8591)
This commit is contained in:
parent
83b60990b1
commit
cc7e6cd92d
9 changed files with 12 additions and 14 deletions
|
|
@ -3350,7 +3350,7 @@ void theory_seq::add_theory_assumptions(expr_ref_vector & assumptions) {
|
|||
expr_ref dlimit = m_sk.mk_max_unfolding_depth(m_max_unfolding_depth);
|
||||
m_trail_stack.push(value_trail<literal>(m_max_unfolding_lit));
|
||||
m_max_unfolding_lit = mk_literal(dlimit);
|
||||
assumptions.push_back(dlimit);
|
||||
assumptions.push_back(std::move(dlimit));
|
||||
for (auto const& kv : m_length_limit_map) {
|
||||
if (kv.m_value > 0)
|
||||
assumptions.push_back(m_sk.mk_length_limit(kv.m_key, kv.m_value));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue