Skip to content

Commit

Permalink
#5797 probably still wrong wrt underflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Jan 27, 2022
1 parent 9e5b6e0 commit 5e81c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ast/rewriter/bv_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2829,7 +2829,7 @@ br_status bv_rewriter::mk_bvsmul_no_overflow(unsigned num, expr * const * args,
bool sign1 = m_util.has_sign_bit(a1_val, bv_sz);
if (sign0) a0_val = rational::power_of_two(bv_sz) - a0_val;
if (sign1) a1_val = rational::power_of_two(bv_sz) - a1_val;
rational lim = rational::power_of_two(bv_sz);
rational lim = rational::power_of_two(bv_sz-1);
rational r = a0_val * a1_val;
result = m().mk_bool_val((sign0 != sign1) || r < lim);
return BR_DONE;
Expand Down

0 comments on commit 5e81c12

Please sign in to comment.