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

Method call

python/mediumlevelil.py:4385–4409  ·  view source on GitHub ↗

``call`` returns an expression which calls the function in the expression ``dest`` with the parameters defined in ``params`` returning values in the variables in ``output``. :param List['variable.Variable'] output: output variables :param ExpressionIndex dest: the expression to call :par

(
		self, output: List['variable.Variable'], dest: ExpressionIndex, params: List[ExpressionIndex],
		loc: Optional['ILSourceLocation'] = None
	)

Source from the content-addressed store, hash-verified

4383 return self.expr(MediumLevelILOperation.MLIL_JUMP_TO, dest, len(targets) * 2, self.add_label_map(targets), size=0, source_location=loc)
4384
4385 def call(
4386 self, output: List['variable.Variable'], dest: ExpressionIndex, params: List[ExpressionIndex],
4387 loc: Optional['ILSourceLocation'] = None
4388 ) -> ExpressionIndex:
4389 """
4390 ``call`` returns an expression which calls the function in the expression ``dest``
4391 with the parameters defined in ``params`` returning values in the variables in ``output``.
4392
4393 :param List['variable.Variable'] output: output variables
4394 :param ExpressionIndex dest: the expression to call
4395 :param List[ExpressionIndex] params: parameter variables
4396 :param ILSourceLocation loc: location of returned expression
4397 :return: The expression ``output = call(dest, params...)``
4398 :rtype: ExpressionIndex
4399 """
4400 return self.expr(
4401 MediumLevelILOperation.MLIL_CALL,
4402 len(output),
4403 self.add_variable_list(output),
4404 dest,
4405 len(params),
4406 self.add_operand_list(params),
4407 size=0,
4408 source_location=loc
4409 )
4410
4411 def call_untyped(
4412 self, output: List['variable.Variable'], dest: ExpressionIndex, params: List[ExpressionIndex],

Callers

nothing calls this directly

Calls 3

exprMethod · 0.95
add_variable_listMethod · 0.95
add_operand_listMethod · 0.95

Tested by

no test coverage detected