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

fix crash on delete clauses

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-08-19 19:36:15 -07:00
parent a47f3df703
commit 78c03ed835

View file

@ -169,9 +169,9 @@ namespace sat {
}
void solver::del_clause(clause& c) {
if (!c.is_learned()) m_stats.m_non_learned_generation++;
m_cls_allocator.del_clause(&c);
m_stats.m_del_clause++;
if (!c.is_learned()) m_stats.m_non_learned_generation++;
}
clause * solver::mk_clause_core(unsigned num_lits, literal * lits, bool learned) {