mirror of
https://github.com/Z3Prover/z3
synced 2025-10-11 10:18:06 +00:00
adding ema
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
96914d8578
commit
43403fafcd
5 changed files with 55 additions and 3 deletions
|
@ -1415,7 +1415,7 @@ namespace sat {
|
|||
return l_false;
|
||||
if (m_conflicts_since_init > m_config.m_max_conflicts)
|
||||
return l_undef;
|
||||
if (m_conflicts_since_restart > m_restart_threshold)
|
||||
if (should_restart())
|
||||
return l_undef;
|
||||
if (at_base_lvl()) {
|
||||
cleanup(); // cleaner may propagate frozen clauses
|
||||
|
@ -1828,6 +1828,10 @@ namespace sat {
|
|||
return ok;
|
||||
}
|
||||
|
||||
bool solver::should_restart() const {
|
||||
return m_conflicts_since_restart > m_restart_threshold;
|
||||
}
|
||||
|
||||
void solver::restart(bool to_base) {
|
||||
m_stats.m_restart++;
|
||||
m_restarts++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue