3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-07 06:33:23 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-12-26 15:24:03 -08:00
parent 0bd6725711
commit d88f125818
2 changed files with 3 additions and 7 deletions

View file

@ -149,7 +149,7 @@ namespace sat {
for (literal lit : m_solver.get_core()) for (literal lit : m_solver.get_core())
m_core.push_back(lit2ext(lit)); m_core.push_back(lit2ext(lit));
if (is_sat == l_true) { if (is_sat == l_true) {
TRACE("dual", display(s, tout); s.display(tout);); TRACE("dual", display(tout); s.display(tout););
IF_VERBOSE(0, verbose_stream() << "unexpected SAT\n"); IF_VERBOSE(0, verbose_stream() << "unexpected SAT\n");
IF_VERBOSE(0, verbose_stream() << "assumptions: " << m_lits << "\n"); IF_VERBOSE(0, verbose_stream() << "assumptions: " << m_lits << "\n");
IF_VERBOSE(0, display(verbose_stream()); s.display(verbose_stream());); IF_VERBOSE(0, display(verbose_stream()); s.display(verbose_stream()););

View file

@ -378,9 +378,7 @@ namespace smt {
break; break;
case l_true: { case l_true: {
expr * true_arg = nullptr; expr * true_arg = nullptr;
unsigned num_args = n->get_num_args(); for (expr* arg : *n) {
for (unsigned i = 0; i < num_args; i++) {
expr * arg = n->get_arg(i);
if (m_context.find_assignment(arg) == l_true) { if (m_context.find_assignment(arg) == l_true) {
if (is_relevant_core(arg)) if (is_relevant_core(arg))
return; return;
@ -402,9 +400,7 @@ namespace smt {
switch (val) { switch (val) {
case l_false: { case l_false: {
expr * false_arg = nullptr; expr * false_arg = nullptr;
unsigned num_args = n->get_num_args(); for (expr* arg : *n) {
for (unsigned i = 0; i < num_args; i++) {
expr * arg = n->get_arg(i);
if (m_context.find_assignment(arg) == l_false) { if (m_context.find_assignment(arg) == l_false) {
if (is_relevant_core(arg)) if (is_relevant_core(arg))
return; return;