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

Method expr

python/mediumlevelil.py:3500–3524  ·  view source on GitHub ↗
(
	    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
	)

Source from the content-addressed store, hash-verified

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

Callers 15

copy_exprMethod · 0.95
nopMethod · 0.95
set_varMethod · 0.95
set_var_fieldMethod · 0.95
set_var_splitMethod · 0.95
loadMethod · 0.95
load_structMethod · 0.95
storeMethod · 0.95
store_structMethod · 0.95
varMethod · 0.95
var_fieldMethod · 0.95
var_splitMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_bitMethod · 0.76