3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-08-03 11:17:23 -07:00
parent 60a25053c6
commit 202ed79a24
3 changed files with 8 additions and 7 deletions

View file

@ -1227,6 +1227,8 @@ namespace opt {
if (m_var2is_int[x] && !a.is_one()) {
row& r1 = m_rows[row_id1];
r1.m_coeff -= r1.m_value;
r1.m_value = 0;
vector<var> coeffs;
mk_coeffs_without(coeffs, r1.m_vars, x);
rational c = mod(-eval(coeffs), a);