mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
log
This commit is contained in:
parent
abed6fa6e1
commit
618b3945c1
3 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -49,7 +49,8 @@ namespace polysat {
|
|||
}
|
||||
|
||||
void simplify::operator()() {
|
||||
(void)s; // silence warning
|
||||
LOG_H2("Simplify");
|
||||
(void)s; // silence warning
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue