Skip to content

Commit

Permalink
update ignore-int handling #6429
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Jan 4, 2023
1 parent 8d0d6d8 commit aa080a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sat/smt/arith_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,7 @@ namespace arith {
}

auto st = sat::check_result::CR_DONE;
bool int_undef = false;

TRACE("arith", ctx.display(tout););

Expand All @@ -984,9 +985,7 @@ namespace arith {
return sat::check_result::CR_CONTINUE;
case l_undef:
TRACE("arith", tout << "check-lia giveup\n";);
if (ctx.get_config().m_arith_ignore_int)
return sat::check_result::CR_GIVEUP;

int_undef = true;
st = sat::check_result::CR_CONTINUE;
break;
}
Expand All @@ -1012,6 +1011,8 @@ namespace arith {
}
if (!check_delayed_eqs())
return sat::check_result::CR_CONTINUE;
if (ctx.get_config().m_arith_ignore_int && int_undef)
return sat::check_result::CR_GIVEUP;
if (m_not_handled != nullptr) {
TRACE("arith", tout << "unhandled operator " << mk_pp(m_not_handled, m) << "\n";);
return sat::check_result::CR_GIVEUP;
Expand Down

0 comments on commit aa080a6

Please sign in to comment.