Skip to content

Commit 8b657f2

Browse files
add shortcut to retrieve kind of application
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent 78d1139 commit 8b657f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/python/z3/z3.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1400,7 +1400,7 @@ def is_app_of(a, k):
14001400
>>> is_app_of(n, Z3_OP_MUL)
14011401
False
14021402
"""
1403-
return is_app(a) and a.decl().kind() == k
1403+
return is_app(a) and a.kind() == k
14041404

14051405

14061406
def If(a, b, c, ctx=None):
@@ -9454,7 +9454,7 @@ def get_default_rounding_mode(ctx=None):
94549454
def set_default_rounding_mode(rm, ctx=None):
94559455
global _dflt_rounding_mode
94569456
if is_fprm_value(rm):
9457-
_dflt_rounding_mode = rm.decl().kind()
9457+
_dflt_rounding_mode = rm.kind()
94589458
else:
94599459
_z3_assert(_dflt_rounding_mode in _ROUNDING_MODES, "illegal rounding mode")
94609460
_dflt_rounding_mode = rm

0 commit comments

Comments
 (0)