mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
fix regression from Grobner port
- scan_for_linear returns true if it finds a new linear equation. It then should break GB. - if scan_for_linear returns false, it should still allow try_modify_eqs. This behavior was masked by requiring scan_for_linear to always be true before allowing try_to_modify_eqs. based on repro from Guido Martinez @mtzguido
This commit is contained in:
parent
479f844200
commit
f8242c58dd
|
@ -2264,8 +2264,10 @@ typename theory_arith<Ext>::gb_result theory_arith<Ext>::compute_grobner(svector
|
|||
return GB_FAIL;
|
||||
if (get_gb_eqs_and_look_for_conflict(eqs, gb))
|
||||
return GB_PROGRESS;
|
||||
if (scan_for_linear(eqs, gb))
|
||||
return GB_NEW_EQ;
|
||||
}
|
||||
while(scan_for_linear(eqs, gb) && m_params.m_nl_arith_gb_perturbate &&
|
||||
while(m_params.m_nl_arith_gb_perturbate &&
|
||||
(!m_nl_gb_exhausted) && try_to_modify_eqs(eqs, gb, next_weight));
|
||||
return GB_FAIL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue