3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 17:45:32 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-10-02 14:40:11 -07:00
parent a635049e23
commit feff1f7f96
3 changed files with 5 additions and 3 deletions

View file

@ -465,6 +465,7 @@ struct is_non_nira_functor {
if (!compatible_sort(n))
throw_found(n);
family_id fid = n->get_family_id();
rational r;
if (fid == m.get_basic_family_id())
return;
if (fid == u.get_family_id()) {
@ -484,6 +485,8 @@ struct is_non_nira_functor {
case OP_IDIV: case OP_DIV: case OP_REM: case OP_MOD:
if (m_linear && !u.is_numeral(n->get_arg(1)))
throw_found(n);
if (m_linear && u.is_numeral(n->get_arg(1), r) && r.is_zero())
throw_found(n);
if (!is_ground(n->get_arg(0)) || !is_ground(n->get_arg(1)))
throw_found(n);
return;