3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +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();

View file

@ -35,6 +35,7 @@ namespace polysat {
}
void restart::operator()() {
LOG_H2("Restarting");
++s.m_stats.m_num_restarts;
s.pop_levels(s.m_level - s.base_level());
m_conflicts_at_restart = s.m_stats.m_num_conflicts;

View file

@ -49,7 +49,8 @@ namespace polysat {
}
void simplify::operator()() {
(void)s; // silence warning
LOG_H2("Simplify");
(void)s; // silence warning
}
}