3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-12-30 15:59:52 +00:00

Revert "make normalize optional"

This reverts commit c80cfb0b8e.
This commit is contained in:
Lev Nachmanson 2025-12-18 10:47:40 -10:00
parent c80cfb0b8e
commit 89f35c95c8
4 changed files with 0 additions and 7 deletions

View file

@ -508,8 +508,6 @@ namespace nlsat {
}
void normalize(polynomial_ref & p) {
if (!m_solver.lws_norm())
return;
unsigned level = max_var(p);
if (find_in_Q(p, level)) return;
TRACE(lws_norm, tout << "p:" << p << std::endl;);

View file

@ -24,6 +24,5 @@ def_module_params('nlsat',
('zero_disc', BOOL, False, "add_zero_assumption to the vanishing discriminant."),
('known_sat_assignment_file_name', STRING, "", "the file name of a known solution: used for debugging only"),
('apply_levelwise', BOOL, True, "apply levelwise."),
('lws_norm', BOOL, True, "normalize polynomials in levelwise."),
('canonicalize', BOOL, True, "canonicalize polynomials.")
))

View file

@ -248,7 +248,6 @@ namespace nlsat {
stats m_stats;
std::string m_debug_known_solution_file_name;
bool m_apply_lws;
bool m_lws_norm;
imp(solver& s, ctx& c):
m_ctx(c),
m_solver(s),
@ -309,7 +308,6 @@ namespace nlsat {
m_variable_ordering_strategy = p.variable_ordering_strategy();
m_debug_known_solution_file_name = p.known_sat_assignment_file_name();
m_apply_lws = p.apply_levelwise();
m_lws_norm = p.lws_norm();
m_check_lemmas |= !(m_debug_known_solution_file_name.empty());
m_cell_sample = p.cell_sample();
@ -4637,7 +4635,6 @@ namespace nlsat {
}
bool solver::apply_levelwise() const { return m_imp->m_apply_lws; }
bool solver::lws_norm() const { return m_imp->m_lws_norm; }
};

View file

@ -248,7 +248,6 @@ namespace nlsat {
const assignment& sample() const;
assignment& sample();
bool apply_levelwise() const;
bool lws_norm() const;
void reset();
void collect_statistics(statistics & st);
void reset_statistics();