3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-11 11:24:31 +00:00

add placeholder for simplification

This commit is contained in:
Nikolaj Bjorner 2021-12-12 14:52:09 -08:00
parent d80b375ac3
commit 30a2c32c3b
7 changed files with 96 additions and 20 deletions

View file

@ -34,6 +34,7 @@ namespace polysat {
m_viable(*this),
m_linear_solver(*this),
m_conflict(*this),
m_simplify(*this),
m_forbidden_intervals(*this),
m_bvars(),
m_free_pvars(m_activity),
@ -73,7 +74,7 @@ namespace polysat {
else if (can_propagate()) propagate();
else if (!can_decide()) { LOG_H2("SAT"); SASSERT(verify_sat()); return l_true; }
else if (m_constraints.should_gc()) m_constraints.gc(*this);
else if (should_simplify()) simplify();
else if (m_simplify.should_apply()) m_simplify();
else if (should_restart()) restart();
else decide();
}
@ -251,17 +252,6 @@ namespace polysat {
#endif
}
/*
* This is a place holder for in-processing simplification
*/
bool solver::should_simplify() {
return false;
}
void solver::simplify() {
}
/*
* Basic restart functionality.
* restarts make more sense when the order of variable