binaryninja.mediumlevelil.MediumLevelILFunction¶
-
class
binaryninja.mediumlevelil.MediumLevelILFunction(arch, handle=None, source_func=None)[source]¶ class MediumLevelILFunctioncontains the list of MediumLevelILExpr objects that make up a binaryninja.function. MediumLevelILExpr objects can be added to the MediumLevelILFunction by callingappendand passing the result of the various class methods which return MediumLevelILExpr objects.Methods
__init__(arch[, handle, source_func])add_label_list(labels)add_label_listreturns a label list expression for the given list of MediumLevelILLabel objects.add_operand_list(operands)add_operand_listreturns an operand list expression for the given list of integer operands.append(expr)appendadds the MediumLevelILExprexprto the current MediumLevelILFunction.expr(operation[, a, b, c, d, e, size])finalize()finalizeends the function and computes the list of basic blocks.get_instruction_start(addr[, arch])get_low_level_il_expr_index(expr)get_low_level_il_instruction_index(instr)get_non_ssa_instruction_index(instr)get_ssa_instruction_index(instr)get_ssa_memory_definition(version)get_ssa_memory_uses(version)get_ssa_var_definition(ssa_var)get_ssa_var_uses(ssa_var)get_ssa_var_value(ssa_var)get_var_definitions(var)get_var_uses(var)goto(label)gotoreturns a goto expression which jumps to the provided MediumLevelILLabel.if_expr(operand, t, f)if_exprreturns theifexpression which depending on conditionoperandjumps to the MediumLevelILLabelis_ssa_var_live(ssa_var)is_ssa_var_livedetermines ifssa_varis live at any point in the functionmark_label(label)mark_labelassigns a MediumLevelILLabel to the current IL address.operand(n, expr)operandsets the operand number of the expressionexprand passes backexprwithout modification.set_current_address(value[, arch])Attributes
basic_blockslist of MediumLevelILBasicBlock objects (read-only) current_addressCurrent IL Address (read/write) low_level_ilLow level IL for this function non_ssa_formMedium level IL in non-SSA (default) form (read-only) ssa_formMedium level IL in SSA form (read-only)