Skip to content

Commit b9bc697

Browse files
committed
fix crash in BV internalizer due to unknown bv_neg symbol
1 parent cb600a9 commit b9bc697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ast/rewriter/fpa_rewriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ br_status fpa_rewriter::mk_to_ieee_bv(func_decl * f, expr * arg, expr_ref & resu
773773
if (m_fm.is_nan(v)) {
774774
if (m_hi_fp_unspecified) {
775775
expr * args[4] = { bu.mk_numeral(0, 1),
776-
bu.mk_bv_neg(bu.mk_numeral(1, x.get_ebits())),
776+
bu.mk_numeral(rational::minus_one(), x.get_ebits()),
777777
bu.mk_numeral(0, x.get_sbits() - 2),
778778
bu.mk_numeral(1, 1) };
779779
result = bu.mk_concat(4, args);

0 commit comments

Comments
 (0)