mirror of
https://github.com/Z3Prover/z3
synced 2025-05-14 03:04:44 +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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue