3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-10 17:58:06 +00:00

coordinate drat with clause removal

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-01-16 02:29:33 -08:00
parent b33f5f879e
commit e01a668da0
5 changed files with 82 additions and 83 deletions

View file

@ -303,14 +303,14 @@ namespace sat {
mk_clause(3, ls, learned);
}
void solver::del_clause(clause& c, bool enable_drat) {
void solver::del_clause(clause& c) {
if (!c.is_learned()) {
m_stats.m_non_learned_generation++;
}
if (c.frozen()) {
--m_num_frozen;
}
if (enable_drat && m_config.m_drat && !m_drat.is_cleaned(c)) {
if (!c.was_removed() && m_config.m_drat && !m_drat.is_cleaned(c)) {
m_drat.del(c);
}
dealloc_clause(&c);