mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
add is_considered_uninterpreted checks into acker_helper
This commit is contained in:
parent
0597b579b1
commit
bd0bd08ecf
|
@ -33,19 +33,8 @@ class ackr_helper {
|
|||
which are not marked as uninterpreted but effectively are.
|
||||
*/
|
||||
inline bool should_ackermannize(app const * a) const {
|
||||
if (a->get_family_id() == m_bvutil.get_family_id()) {
|
||||
switch (a->get_decl_kind()) {
|
||||
case OP_BSDIV0:
|
||||
case OP_BUDIV0:
|
||||
case OP_BSREM0:
|
||||
case OP_BUREM0:
|
||||
case OP_BSMOD0:
|
||||
return true;
|
||||
default:
|
||||
return is_uninterp(a);
|
||||
}
|
||||
}
|
||||
return (is_uninterp(a));
|
||||
decl_plugin * p = m_bvutil.get_manager().get_plugin(a->get_family_id());
|
||||
return p->is_considered_uninterpreted(a->get_decl());
|
||||
}
|
||||
|
||||
inline bv_util& bvutil() { return m_bvutil; }
|
||||
|
|
Loading…
Reference in a new issue