MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / get_expr_count

Method get_expr_count

python/highlevelil.py:2882–2893  ·  view source on GitHub ↗

``get_expr_count`` gives a the total number of expressions in this IL function You can use this to enumerate all expressions in conjunction with :py:func:`get_expr` .. warning :: Not all IL expressions are valid, even if their index is within the bounds of the function, they

(self)

Source from the content-addressed store, hash-verified

2880 return ExpressionIndex(core.BNHighLevelILAddExpr(self.handle, operation_value, size, a, b, c, d, e))
2881
2882 def get_expr_count(self) -> int:
2883 """
2884 ``get_expr_count`` gives a the total number of expressions in this IL function
2885
2886 You can use this to enumerate all expressions in conjunction with :py:func:`get_expr`
2887
2888 .. warning :: Not all IL expressions are valid, even if their index is within the bounds of the function,
2889 they might not be used by the function and might not contain properly structured data.
2890
2891 :return: The number of expressions in the function
2892 """
2893 return core.BNGetHighLevelILExprCount(self.handle)
2894
2895 def get_expr(self, index: ExpressionIndex, as_ast: bool = True) -> Optional[HighLevelILInstruction]:
2896 """

Callers 1

get_exprMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected