3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-06 09:34:08 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-26 20:22:02 -07:00
parent 735888145e
commit f7a7b9e1f4

View file

@ -819,7 +819,9 @@ struct pb2bv_rewriter::imp {
return false;
}
}
if (m.is_ite(a, c, th, el) && au.is_numeral(th, r1) && au.is_numeral(el, r2)) {
if (m.is_ite(a, c, th, el) &&
au.is_numeral(th, r1) &&
au.is_numeral(el, r2)) {
r1 *= mul;
r2 *= mul;
if (r1 < r2) {
@ -832,7 +834,7 @@ struct pb2bv_rewriter::imp {
m_coeffs.push_back(r1-r2);
m_k -= r2;
}
return m_k.is_int();
return m_k.is_int() && (r1-r2).is_int();
}
return false;
}