mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
fix missing removal of x in solve_mod
This commit is contained in:
parent
b3f4d3fdc7
commit
cb272bd7a8
|
@ -1256,6 +1256,8 @@ namespace opt {
|
|||
|
||||
for (unsigned ri : mod_rows) {
|
||||
rational a = get_coefficient(ri, x);
|
||||
replace_var(ri, x, rational::zero());
|
||||
|
||||
// add w = b mod K
|
||||
vector<var> coeffs = m_rows[ri].m_vars;
|
||||
rational coeff = m_rows[ri].m_coeff;
|
||||
|
|
Loading…
Reference in a new issue