mirror of
https://github.com/Z3Prover/z3
synced 2026-08-14 09:45:36 +00:00
Move nonlinear parameter check into monomial bounds
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
953f85e1ab
commit
e7b7d85d23
2 changed files with 3 additions and 2 deletions
|
|
@ -293,6 +293,8 @@ namespace nla {
|
|||
the pass to violated monomials keeps the wins without that regression.
|
||||
*/
|
||||
bool monomial_bounds::propagate_violated_linear_monomials() {
|
||||
if (!c().params().arith_nl_linearize_violated_monomials())
|
||||
return false;
|
||||
if (!c().lra.is_feasible())
|
||||
return false;
|
||||
bool propagated = false;
|
||||
|
|
|
|||
|
|
@ -1547,8 +1547,7 @@ bool core::propagate() {
|
|||
propagated = true;
|
||||
if (m_monomial_bounds.propagate_changed_bounds())
|
||||
propagated = true;
|
||||
if (params().arith_nl_linearize_violated_monomials() &&
|
||||
m_monomial_bounds.propagate_violated_linear_monomials())
|
||||
if (m_monomial_bounds.propagate_violated_linear_monomials())
|
||||
propagated = true;
|
||||
m_monics_with_changed_bounds.reset();
|
||||
if (propagated)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue