( self, operation: MediumLevelILOperation, a: int = 0, b: int = 0, c: int = 0, d: int = 0, e: int = 0, size: int = 0, source_location: Optional['ILSourceLocation'] = None )
| 3498 | return result |
| 3499 | |
| 3500 | def expr( |
| 3501 | self, operation: MediumLevelILOperation, a: int = 0, b: int = 0, c: int = 0, d: int = 0, e: int = 0, |
| 3502 | size: int = 0, |
| 3503 | source_location: Optional['ILSourceLocation'] = None |
| 3504 | ) -> ExpressionIndex: |
| 3505 | _operation = operation |
| 3506 | if isinstance(operation, str): |
| 3507 | _operation = MediumLevelILOperation[operation] |
| 3508 | elif isinstance(operation, MediumLevelILOperation): |
| 3509 | _operation = operation.value |
| 3510 | if source_location is not None: |
| 3511 | return ExpressionIndex(core.BNMediumLevelILAddExprWithLocation( |
| 3512 | self.handle, |
| 3513 | _operation, |
| 3514 | source_location.address, |
| 3515 | source_location.source_operand, |
| 3516 | size, |
| 3517 | a, |
| 3518 | b, |
| 3519 | c, |
| 3520 | d, |
| 3521 | e |
| 3522 | )) |
| 3523 | else: |
| 3524 | return ExpressionIndex(core.BNMediumLevelILAddExpr(self.handle, _operation, size, a, b, c, d, e)) |
| 3525 | |
| 3526 | def get_expr_count(self) -> int: |
| 3527 | """ |
no outgoing calls