3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-10 19:27:06 +00:00

return l_undef in get_phase() if lpvar is not available

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2020-01-28 12:06:56 -08:00
parent 8b7426f5ad
commit 75d1e8e929

View file

@ -1075,6 +1075,8 @@ public:
break;
}
auto vi = get_lpvar(b->get_var());
if (vi == lp::null_lpvar)
return l_undef;
return m_solver->compare_values(vi, k, b->get_value()) ? l_true : l_false;
}