mirror of
https://github.com/Z3Prover/z3
synced 2026-02-14 04:41:48 +00:00
Revert std::move on returned local variables - prevents copy elision
Co-authored-by: nunoplopes <2998477+nunoplopes@users.noreply.github.com>
This commit is contained in:
parent
eec9cb7a4b
commit
a9628780b5
6 changed files with 7 additions and 7 deletions
|
|
@ -169,9 +169,9 @@ namespace datalog {
|
|||
dst_vector.push_back(new_rule.get());
|
||||
}
|
||||
}
|
||||
result.push_back(std::move(dst_vector));
|
||||
result.push_back(dst_vector);
|
||||
}
|
||||
return std::move(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void mk_synchronize::add_rec_tail(vector< ptr_vector<app> > & recursive_calls,
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ namespace opt {
|
|||
for (expr* f : fmls)
|
||||
fmls[i++] = mk_not(m, f);
|
||||
|
||||
return std::move(new_soft);
|
||||
return new_soft;
|
||||
}
|
||||
|
||||
bool preprocess::find_mutexes(vector<soft>& softs, rational& lower) {
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ namespace qe {
|
|||
(void)ok;
|
||||
CTRACE(qe, !ok, tout << "projection failure ignored!!!!\n");
|
||||
fix_non_shared(*mdl, lits);
|
||||
return std::move(defs);
|
||||
return defs;
|
||||
}
|
||||
|
||||
mbi_result uflia_mbi::operator()(expr_ref_vector& lits, model_ref& mdl) {
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ namespace fpa {
|
|||
conds.push_back(mk_literal(t));
|
||||
}
|
||||
m_converter.m_extra_assertions.reset();
|
||||
return std::move(conds);
|
||||
return conds;
|
||||
}
|
||||
|
||||
sat::check_result solver::check() {
|
||||
|
|
|
|||
|
|
@ -695,7 +695,7 @@ namespace smt {
|
|||
for (enode* n : f)
|
||||
result.push_back(n);
|
||||
f.reset();
|
||||
return std::move(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
void theory_datatype::relevant_eh(app * n) {
|
||||
|
|
|
|||
|
|
@ -351,7 +351,7 @@ ptr_vector<solver> solver_pool::get_base_solvers() const {
|
|||
solvers.push_back(s->base_solver());
|
||||
}
|
||||
}
|
||||
return std::move(solvers);
|
||||
return solvers;
|
||||
}
|
||||
|
||||
void solver_pool::updt_params(const params_ref &p) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue