mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
parent
a635049e23
commit
feff1f7f96
|
@ -342,7 +342,6 @@ struct evaluator_cfg : public default_rewriter_cfg {
|
||||||
result = m_au.mk_int(0);
|
result = m_au.mk_int(0);
|
||||||
return BR_DONE;
|
return BR_DONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return BR_FAILED;
|
return BR_FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -503,8 +503,8 @@ namespace qe {
|
||||||
if (is_uninterp_const(a)) { // TBD generalize for uninterpreted functions.
|
if (is_uninterp_const(a)) { // TBD generalize for uninterpreted functions.
|
||||||
vars.push_back(a);
|
vars.push_back(a);
|
||||||
}
|
}
|
||||||
for (unsigned i = 0; i < a->get_num_args(); ++i) {
|
for (expr* arg : *a) {
|
||||||
todo.push_back(a->get_arg(i));
|
todo.push_back(arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -465,6 +465,7 @@ struct is_non_nira_functor {
|
||||||
if (!compatible_sort(n))
|
if (!compatible_sort(n))
|
||||||
throw_found(n);
|
throw_found(n);
|
||||||
family_id fid = n->get_family_id();
|
family_id fid = n->get_family_id();
|
||||||
|
rational r;
|
||||||
if (fid == m.get_basic_family_id())
|
if (fid == m.get_basic_family_id())
|
||||||
return;
|
return;
|
||||||
if (fid == u.get_family_id()) {
|
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:
|
case OP_IDIV: case OP_DIV: case OP_REM: case OP_MOD:
|
||||||
if (m_linear && !u.is_numeral(n->get_arg(1)))
|
if (m_linear && !u.is_numeral(n->get_arg(1)))
|
||||||
throw_found(n);
|
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)))
|
if (!is_ground(n->get_arg(0)) || !is_ground(n->get_arg(1)))
|
||||||
throw_found(n);
|
throw_found(n);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue