Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner authored and hgvk94 committed May 7, 2020
1 parent f1df619 commit 3ddde66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tactic/arith/bv2int_rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ br_status bv2int_rewriter::mk_idiv(expr * arg1, expr * arg2, expr_ref & result)

br_status bv2int_rewriter::mk_mod(expr * s, expr * t, expr_ref & result) {
expr_ref s1(m()), s2(m()), t1(m());
rational r;
if (!m_arith.is_numeral(t, r) || !r.is_pos())
return BR_FAILED;
if (is_bv2int(s, s1) && is_bv2int(t, t1)) {
align_sizes(s1, t1, false);
result = m_bv.mk_bv2int(m_bv.mk_bv_urem(s1, t1));
Expand Down

0 comments on commit 3ddde66

Please sign in to comment.