3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-26 07:29:33 +00:00

optionally limit linearization

This commit is contained in:
Arie Gurfinkel 2025-10-06 16:40:06 -04:00
parent 5846570012
commit 599e9da8a9
4 changed files with 26 additions and 21 deletions

View file

@ -187,11 +187,11 @@ public:
// returns true if the combination of the Horner's schema and Grobner Basis should be called
bool need_run_horner() const {
return params().arith_nl_horner() && lp_settings().stats().m_nla_calls % params().arith_nl_horner_frequency() == 0;
return params().arith_nl_linearize() && params().arith_nl_horner() && lp_settings().stats().m_nla_calls % params().arith_nl_horner_frequency() == 0;
}
bool need_run_grobner() const {
return params().arith_nl_grobner();
return params().arith_nl_linearize() && params().arith_nl_grobner();
}
void set_active_vars_weights(nex_creator&);