``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)
| 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 | """ |