3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

Merge pull request #1432 from waywardmonkeys/remove-copy-of-coeff

Remove unnecessary copy of coeff in iteration.
This commit is contained in:
Nikolaj Bjorner 2018-01-02 08:16:01 -08:00 committed by GitHub
commit 714b086ced
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1916,7 +1916,7 @@ namespace smt {
lp::var_index vi = m_theory_var2var_index[v];
SASSERT(m_solver->is_term(vi));
lp::lar_term const& term = m_solver->get_term(vi);
for (auto const coeff : term.m_coeffs) {
for (auto const& coeff : term.m_coeffs) {
lp::var_index wi = coeff.first;
lp::constraint_index ci;
rational value;