Skip to content

Commit

Permalink
avoid crash from #4772
Browse files Browse the repository at this point in the history
To take care of "When I use options fp.xform.slice=false fp.xform.inline_eager=false Z3 actually seg-faults."
  • Loading branch information
NikolajBjorner committed Nov 27, 2020
1 parent 67a8492 commit 35900ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/model/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,10 @@ expr_ref model::cleanup_expr(top_sort& ts, expr* e, unsigned current_partition)
// only expand auxiliary definitions that occur once.
if (can_inline_def(ts, f)) {
fi = get_func_interp(f);
new_t = fi->get_array_interp(f);
TRACE("model", tout << "array interpretation:" << new_t << "\n";);
if (fi) {
new_t = fi->get_array_interp(f);
TRACE("model", tout << "array interpretation:" << new_t << "\n";);
}
}
}

Expand Down

0 comments on commit 35900ee

Please # to comment.