3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-14 03:04:44 +00:00
This commit is contained in:
Jakob Rath 2022-08-05 11:23:02 +02:00
parent abed6fa6e1
commit 618b3945c1
3 changed files with 7 additions and 1 deletions

View file

@ -160,15 +160,18 @@ namespace polysat {
}
void constraint_manager::gc(solver& s) {
LOG_H1("gc");
gc_clauses(s);
gc_constraints(s);
}
void constraint_manager::gc_clauses(solver& s) {
LOG_H3("gc_clauses");
// place to gc redundant clauses
}
void constraint_manager::gc_constraints(solver& s) {
LOG_H3("gc_constraints");
uint_set used_vars;
for (auto const& cls : m_clauses)
for (auto const& cl : cls)
@ -184,6 +187,7 @@ namespace polysat {
continue;
if (c->is_external())
continue;
LOG("Erasing: " << show_deref(c));
erase_bvar(c);
m_constraints.swap(i, m_constraints.size() - 1);
m_constraints.pop_back();