3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-25 09:41:19 +00:00

fix nlsat.cpp and enable control over what added in handle_nullified_poly

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2026-02-18 12:02:56 -10:00
parent 799fc9e8c4
commit d1461de8a7
4 changed files with 50 additions and 30 deletions

View file

@ -251,6 +251,8 @@ namespace nlsat {
bool m_apply_lws;
bool m_last_conflict_used_lws = false; // Track if last conflict explanation used levelwise
unsigned m_lws_spt_threshold = 3;
bool m_lws_null_coeffs = true;
bool m_lws_null_derivs = true;
imp(solver& s, ctx& c):
m_ctx(c),
m_solver(s),
@ -312,6 +314,8 @@ namespace nlsat {
m_debug_known_solution_file_name = p.known_sat_assignment_file_name();
m_apply_lws = p.lws();
m_lws_spt_threshold = p.lws_spt_threshold(); // 0 disables spanning tree
m_lws_null_coeffs = p.lws_null_coeffs();
m_lws_null_derivs = p.lws_null_derivs();
m_check_lemmas |= !(m_debug_known_solution_file_name.empty());
m_ism.set_seed(m_random_seed);
@ -4721,4 +4725,8 @@ namespace nlsat {
unsigned solver::lws_spt_threshold() const { return m_imp->m_lws_spt_threshold; }
bool solver::lws_null_coeffs() const { return m_imp->m_lws_null_coeffs; }
bool solver::lws_null_derivs() const { return m_imp->m_lws_null_derivs; }
};