3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-15 21:38:44 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-01-24 17:56:23 -06:00
parent 3efe311c25
commit 5497022f5c
2 changed files with 5 additions and 1 deletions

View file

@ -287,6 +287,8 @@ public:
bool is_idiv0(expr const * n) const { return is_app_of(n, m_afid, OP_IDIV0); }
bool is_mod(expr const * n) const { return is_app_of(n, m_afid, OP_MOD); }
bool is_rem(expr const * n) const { return is_app_of(n, m_afid, OP_REM); }
bool is_mod0(expr const * n) const { return is_app_of(n, m_afid, OP_MOD0); }
bool is_rem0(expr const * n) const { return is_app_of(n, m_afid, OP_REM0); }
bool is_to_real(expr const * n) const { return is_app_of(n, m_afid, OP_TO_REAL); }
bool is_to_int(expr const * n) const { return is_app_of(n, m_afid, OP_TO_INT); }
bool is_is_int(expr const * n) const { return is_app_of(n, m_afid, OP_IS_INT); }

View file

@ -848,7 +848,9 @@ namespace smt {
return mk_var(e);
}
if (m_util.get_family_id() == n->get_family_id()) {
found_unsupported_op(n);
if (!m_util.is_div0(n) && !m_util.is_mod0(n) && !m_util.is_idiv0(n) && !m_util.is_rem0(n)) {
found_unsupported_op(n);
}
if (ctx.e_internalized(n))
return expr2var(n);
for (unsigned i = 0; i < n->get_num_args(); ++i) {