diff options
Diffstat (limited to 'python/mediumlevelil.py')
| -rw-r--r-- | python/mediumlevelil.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index 53f87cdc..159299c7 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -3390,6 +3390,14 @@ class MediumLevelILFunction: _operation = operation.value return ExpressionIndex(core.BNMediumLevelILAddExpr(self.handle, _operation, size, a, b, c, d, e)) + def get_expr_count(self) -> int: + """ + ``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 MediumLevelILInstruction.create() + """ + return core.BNGeMediumLevelILExprCount(self.handle) + def replace_expr(self, original: InstructionOrExpression, new: InstructionOrExpression) -> None: """ ``replace_expr`` allows modification of MLIL expressions |
