Skip to content

Commit

Permalink
fix to_app crash
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Oct 13, 2019
1 parent a921b4f commit f18b443
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ast/fpa/bv2fpa_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,9 @@ func_interp * bv2fpa_converter::convert_func_interp(model_core * mc, func_decl *
}
}

app_ref bv_els(m);
bv_els = to_app(bv_fi->get_else());
if (bv_els != nullptr) {
expr_ref bv_els(m);
bv_els = bv_fi->get_else();
if (bv_els) {
expr_ref ft_els = rebuild_floats(mc, rng, bv_els);
m_th_rw(ft_els);
result->set_else(ft_els);
Expand Down

0 comments on commit f18b443

Please sign in to comment.