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

Method get_expr_count

python/mediumlevelil.py:3526–3537  ·  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

3524 return ExpressionIndex(core.BNMediumLevelILAddExpr(self.handle, _operation, size, a, b, c, d, e))
3525
3526 def get_expr_count(self) -> int:
3527 """
3528 ``get_expr_count`` gives a the total number of expressions in this IL function
3529
3530 You can use this to enumerate all expressions in conjunction with :py:func:`get_expr`
3531
3532 .. warning :: Not all IL expressions are valid, even if their index is within the bounds of the function,
3533 they might not be used by the function and might not contain properly structured data.
3534
3535 :return: The number of expressions in the function
3536 """
3537 return core.BNGetMediumLevelILExprCount(self.handle)
3538
3539 def get_expr(self, index: ExpressionIndex) -> Optional[MediumLevelILInstruction]:
3540 """

Callers 1

get_exprMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected