3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

Avoid unnecessary copies in for-range loops.

This commit is contained in:
Bruce Mitchener 2018-10-02 10:38:41 +07:00
parent b0dac346dc
commit 7bc283b84e
4 changed files with 14 additions and 14 deletions

View file

@ -458,7 +458,7 @@ struct pb2bv_rewriter::imp {
result = m.mk_true();
expr_ref_vector carry(m), new_carry(m);
m_base.push_back(bound + rational::one());
for (rational b_i : m_base) {
for (const rational& b_i : m_base) {
unsigned B = b_i.get_unsigned();
unsigned d_i = (bound % b_i).get_unsigned();
bound = div(bound, b_i);