3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 02:15:19 +00:00

update add_lemmas to use check-feasible

This commit is contained in:
Nikolaj Bjorner 2023-10-21 19:58:07 -07:00
parent c9d298e57f
commit 4e21e126a8

View file

@ -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);