mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
check for null before debug assertions
This commit is contained in:
parent
d8741b4aec
commit
4773bec975
|
@ -465,11 +465,12 @@ namespace sls {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool bv_lookahead::apply_update(expr* e, bvect const& new_value, char const* reason) {
|
bool bv_lookahead::apply_update(expr* e, bvect const& new_value, char const* reason) {
|
||||||
|
if (!e || !wval(e).can_set(new_value))
|
||||||
|
return false;
|
||||||
SASSERT(bv.is_bv(e));
|
SASSERT(bv.is_bv(e));
|
||||||
SASSERT(is_uninterp(e));
|
SASSERT(is_uninterp(e));
|
||||||
SASSERT(m_restore.empty());
|
SASSERT(m_restore.empty());
|
||||||
if (!e || !wval(e).can_set(new_value))
|
|
||||||
return false;
|
|
||||||
wval(e).eval = new_value;
|
wval(e).eval = new_value;
|
||||||
double old_top_score = m_top_score;
|
double old_top_score = m_top_score;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue