3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-15 13:21:50 +00:00

Apply std::move to all remaining push_back/insert with std::make_pair (~100+ files)

Co-authored-by: nunoplopes <2998477+nunoplopes@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-11 21:50:38 +00:00
parent 6bad27a56b
commit 2d9d91c5cc
32 changed files with 68 additions and 68 deletions

View file

@ -107,7 +107,7 @@ namespace datalog {
for (unsigned k = 1; k < premises1.size(); ++k) {
if (m.get_fact(premises1[k].get()) == lit) {
premises2.push_back(premises1[k].get());
positions2.push_back(std::make_pair(j+1,0));
positions2.push_back(std::move(std::make_pair(j+1,0)));
substs2.push_back(expr_ref_vector(m));
break;
}
@ -220,7 +220,7 @@ namespace datalog {
unsigned sz = sub.size();
SASSERT(sz == q->get_num_decls());
for (unsigned i = 0; i < sz; ++i) {
s.push_back(std::make_pair(q->get_decl_name(sz-1-i), sub[i]));
s.push_back(std::move(std::make_pair(q->get_decl_name(sz-1-i), sub[i])));
}
return;
}