mirror of
https://github.com/Z3Prover/z3
synced 2026-03-21 12:16:20 +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
|
|
@ -139,9 +139,8 @@ namespace recfun {
|
|||
*/
|
||||
void solver::disable_guard(expr* guard, expr_ref_vector const& guards) {
|
||||
SASSERT(!is_enabled_guard(guard));
|
||||
app_ref dlimit = m_util.mk_num_rounds_pred(m_num_rounds);
|
||||
expr_ref_vector core(m);
|
||||
core.push_back(dlimit);
|
||||
core.push_back(m_util.mk_num_rounds_pred(m_num_rounds));
|
||||
core.push_back(guard);
|
||||
if (!m_guard2pending.contains(guard)) {
|
||||
m_disabled_guards.push_back(guard);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue