3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-04 04:30:23 +00:00

replace some copies with moves

This commit is contained in:
Nuno Lopes 2026-02-09 22:45:13 +00:00
parent 73844f9a7f
commit 617c621cc0
8 changed files with 27 additions and 13 deletions

View file

@ -1953,8 +1953,8 @@ namespace nlarith {
for (; i + 1 < mat.size(); i += 2) {
if (mat[i+1].contains(Zero)) {
if (i != j) {
mat[j] = mat[i];
mat[j+1] = mat[i+1];
mat[j] = std::move(mat[i]);
mat[j+1] = std::move(mat[i+1]);
}
j += 2;
}