mirror of
https://github.com/Z3Prover/z3
synced 2025-06-21 21:33:39 +00:00
merge
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
commit
178211d091
4 changed files with 6 additions and 5 deletions
|
@ -2294,8 +2294,8 @@ namespace sat {
|
||||||
// literal is no longer watched.
|
// literal is no longer watched.
|
||||||
return l_undef;
|
return l_undef;
|
||||||
}
|
}
|
||||||
SASSERT(index <= bound);
|
VERIFY(index <= bound);
|
||||||
SASSERT(c[index] == alit);
|
VERIFY(c[index] == alit);
|
||||||
|
|
||||||
// find a literal to swap with:
|
// find a literal to swap with:
|
||||||
for (unsigned i = bound + 1; i < sz; ++i) {
|
for (unsigned i = bound + 1; i < sz; ++i) {
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace sat {
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
throw solver_exception("flipping assumption");
|
throw solver_exception("flipping assumption");
|
||||||
}
|
}
|
||||||
if (m_solver && m_solver->is_external(v)) {
|
if (m_solver && m_solver->is_external(v) && m_solver->is_incremental()) {
|
||||||
std::cout << "flipping external v" << v << "\n";
|
std::cout << "flipping external v" << v << "\n";
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
throw solver_exception("flipping external");
|
throw solver_exception("flipping external");
|
||||||
|
|
|
@ -970,11 +970,12 @@ namespace sat {
|
||||||
}
|
}
|
||||||
|
|
||||||
void insert(literal l) {
|
void insert(literal l) {
|
||||||
|
VERIFY(process_var(l.var()));
|
||||||
m_queue.insert(l);
|
m_queue.insert(l);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool process_var(bool_var v) {
|
bool process_var(bool_var v) {
|
||||||
return !s.s.is_assumption(v) && !s.was_eliminated(v) && !s.is_external(v);
|
return !s.s.is_assumption(v) && !s.was_eliminated(v) && !s.is_external(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
void operator()() {
|
void operator()() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue