3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-15 05:11:49 +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

@ -957,7 +957,7 @@ namespace lp {
for (auto& [v, c] : coeffs)
if (!is_zero(c))
left_side.push_back(std::make_pair(c, v));
left_side.push_back(std::move(std::make_pair(c, v)));
}
void lar_solver::add_touched_row(unsigned rid) {
@ -2731,8 +2731,8 @@ namespace lp {
bool lar_solver::are_equal(lpvar j, lpvar k) {
vector<std::pair<mpq, lpvar>> coeffs;
coeffs.push_back(std::make_pair(mpq(1), j));
coeffs.push_back(std::make_pair(mpq(-1), k));
coeffs.push_back(std::move(std::make_pair(mpq(1), j)));
coeffs.push_back(std::move(std::make_pair(mpq(-1), k)));
lar_term t(coeffs);
subst_known_terms(&t);
return t.is_empty();
@ -2741,8 +2741,8 @@ namespace lp {
std::pair<constraint_index, constraint_index> lar_solver::add_equality(lpvar j, lpvar k) {
vector<std::pair<mpq, lpvar>> coeffs;
coeffs.push_back(std::make_pair(mpq(1), j));
coeffs.push_back(std::make_pair(mpq(-1), k));
coeffs.push_back(std::move(std::make_pair(mpq(1), j)));
coeffs.push_back(std::move(std::make_pair(mpq(-1), k)));
unsigned ej = add_term(coeffs, UINT_MAX); // UINT_MAX is the external null var