mirror of
https://github.com/Z3Prover/z3
synced 2025-08-06 19:21:22 +00:00
fix #4895
This commit is contained in:
parent
7fe8298479
commit
0ef8ebe89f
2 changed files with 19 additions and 12 deletions
|
@ -231,7 +231,8 @@ struct purify_arith_proc {
|
|||
void operator()(app* a) {
|
||||
for (expr* arg : *a) {
|
||||
if (!is_ground(arg)) {
|
||||
o.m_cannot_purify.insert(a->get_decl());
|
||||
auto* f = a->get_decl();
|
||||
o.m_cannot_purify.insert(f);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -694,9 +695,13 @@ struct purify_arith_proc {
|
|||
process_div(f, num, args, result, result_pr);
|
||||
return BR_DONE;
|
||||
case OP_IDIV:
|
||||
if (!m_cannot_purify.empty())
|
||||
return BR_FAILED;
|
||||
process_idiv(f, num, args, result, result_pr);
|
||||
return BR_DONE;
|
||||
case OP_MOD:
|
||||
if (!m_cannot_purify.empty())
|
||||
return BR_FAILED;
|
||||
process_mod(f, num, args, result, result_pr);
|
||||
return BR_DONE;
|
||||
case OP_TO_INT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue