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

Method expr

python/highlevelil.py:2856–2880  ·  view source on GitHub ↗
(
	    self, operation: Union[str, HighLevelILOperation], 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

2854 return result
2855
2856 def expr(
2857 self, operation: Union[str, HighLevelILOperation], a: int = 0, b: int = 0, c: int = 0, d: int = 0, e: int = 0,
2858 size: int = 0,
2859 source_location: Optional['ILSourceLocation'] = None
2860 ) -> ExpressionIndex:
2861 if isinstance(operation, str):
2862 operation_value = HighLevelILOperation[operation]
2863 else:
2864 assert isinstance(operation, HighLevelILOperation)
2865 operation_value = operation.value
2866 if source_location is not None:
2867 return ExpressionIndex(core.BNHighLevelILAddExprWithLocation(
2868 self.handle,
2869 operation_value,
2870 source_location.address,
2871 source_location.source_operand,
2872 size,
2873 a,
2874 b,
2875 c,
2876 d,
2877 e
2878 ))
2879 else:
2880 return ExpressionIndex(core.BNHighLevelILAddExpr(self.handle, operation_value, size, a, b, c, d, e))
2881
2882 def get_expr_count(self) -> int:
2883 """

Callers 15

copy_exprMethod · 0.95
nopMethod · 0.95
blockMethod · 0.95
if_exprMethod · 0.95
while_exprMethod · 0.95
do_while_exprMethod · 0.95
for_exprMethod · 0.95
switchMethod · 0.95
caseMethod · 0.95
break_exprMethod · 0.95
continue_exprMethod · 0.95
jumpMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_bitMethod · 0.76