Skip to content

Commit

Permalink
fix #6693
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Apr 18, 2023
1 parent cb041c1 commit ec1480b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/smt/theory_arith_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,15 @@ namespace smt {
else if (m_util.is_idiv(n)) {
e = m_util.mk_idiv0(n->get_arg(0), n->get_arg(1));
}
else if (m_util.is_rem(n)) {
e = m_util.mk_rem0(n->get_arg(0), n->get_arg(1));
}
else if (m_util.is_mod(n)) {
e = m_util.mk_mod0(n->get_arg(0), n->get_arg(1));
else if (m_util.is_rem(n)) {
expr* z = m_util.mk_int(0);
e = m_util.mk_rem0(n->get_arg(0), z);
n = m_util.mk_rem(n->get_arg(0), z);
}
else if (m_util.is_mod(n)) {
expr* z = m_util.mk_int(0);
e = m_util.mk_mod0(n->get_arg(0), z);
n = m_util.mk_mod(n->get_arg(0), z);
}
else if (m_util.is_power(n)) {
e = m_util.mk_power0(n->get_arg(0), n->get_arg(1));
Expand Down

0 comments on commit ec1480b

Please sign in to comment.