mirror of
https://github.com/Z3Prover/z3
synced 2025-08-07 19:51:22 +00:00
wip - bounded local search for arithmetic
This commit is contained in:
parent
4b2c166e8b
commit
5e30323b1a
8 changed files with 124 additions and 66 deletions
|
@ -148,7 +148,8 @@ namespace sat {
|
|||
m_use_list[lit.index()].pop_back();
|
||||
m_alloc.del_clause(info.m_clause);
|
||||
m_clauses.pop_back();
|
||||
m_unsat.remove(m_clauses.size());
|
||||
if (m_unsat.contains(m_clauses.size()))
|
||||
m_unsat.remove(m_clauses.size());
|
||||
}
|
||||
|
||||
void ddfw::add(solver const& s) {
|
||||
|
@ -188,12 +189,11 @@ namespace sat {
|
|||
}
|
||||
|
||||
void ddfw::remove_assumptions() {
|
||||
if (m_assumptions.empty())
|
||||
return;
|
||||
for (unsigned i = 0; i < m_assumptions.size(); ++i)
|
||||
del();
|
||||
m_unsat_vars.reset();
|
||||
for (auto idx : m_unsat)
|
||||
for (auto lit : get_clause(idx))
|
||||
m_unsat_vars.insert(lit.var());
|
||||
init(0, nullptr);
|
||||
}
|
||||
|
||||
void ddfw::init(unsigned sz, literal const* assumptions) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue