mirror of
https://github.com/Z3Prover/z3
synced 2025-08-02 01:13:18 +00:00
make visited_helper independent of literals
re-introduce shorthands in sat::solver for visited and have them convert literals to unsigned.
This commit is contained in:
parent
070c5c624a
commit
90490cb22f
7 changed files with 53 additions and 39 deletions
|
@ -406,9 +406,9 @@ namespace sat {
|
|||
auto gc_watch = [&](literal lit) {
|
||||
auto& wl1 = get_wlist(lit);
|
||||
for (auto w : get_wlist(lit)) {
|
||||
if (w.is_binary_clause() && w.get_literal().var() < max_var && !m_visited.is_visited(w.get_literal())) {
|
||||
if (w.is_binary_clause() && w.get_literal().var() < max_var && !is_visited(w.get_literal())) {
|
||||
m_aux_literals.push_back(w.get_literal());
|
||||
m_visited.mark_visited(w.get_literal());
|
||||
mark_visited(w.get_literal());
|
||||
}
|
||||
}
|
||||
wl1.reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue