mirror of
https://github.com/Z3Prover/z3
synced 2025-06-20 04:43:39 +00:00
fix #6693
This commit is contained in:
parent
cb041c1b6d
commit
ec1480b12a
1 changed files with 8 additions and 4 deletions
|
@ -47,11 +47,15 @@ namespace smt {
|
||||||
else if (m_util.is_idiv(n)) {
|
else if (m_util.is_idiv(n)) {
|
||||||
e = m_util.mk_idiv0(n->get_arg(0), n->get_arg(1));
|
e = m_util.mk_idiv0(n->get_arg(0), n->get_arg(1));
|
||||||
}
|
}
|
||||||
else if (m_util.is_rem(n)) {
|
else if (m_util.is_rem(n)) {
|
||||||
e = m_util.mk_rem0(n->get_arg(0), n->get_arg(1));
|
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)) {
|
else if (m_util.is_mod(n)) {
|
||||||
e = m_util.mk_mod0(n->get_arg(0), n->get_arg(1));
|
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)) {
|
else if (m_util.is_power(n)) {
|
||||||
e = m_util.mk_power0(n->get_arg(0), n->get_arg(1));
|
e = m_util.mk_power0(n->get_arg(0), n->get_arg(1));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue