Skip to content

Commit

Permalink
update add_lemmas to use check-feasible
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Oct 22, 2023
1 parent c9d298e commit 4e21e12
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sat/smt/arith_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1484,6 +1484,13 @@ namespace arith {
}

void solver::add_lemmas() {
if (m_nla->check_feasible()) {
auto is_sat = make_feasible();
if (l_false == is_sat) {
get_infeasibility_explanation_and_set_conflict();
return;
}
}
for (auto const& ineq : m_nla->literals()) {
auto lit = mk_ineq_literal(ineq);
ctx.mark_relevant(lit);
Expand Down

0 comments on commit 4e21e12

Please sign in to comment.