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

Method _high_level_il_function_action

python/plugin.py:219–227  ·  view source on GitHub ↗
(view, func, action)

Source from the content-addressed store, hash-verified

217
218 @staticmethod
219 def _high_level_il_function_action(view, func, action):
220 try:
221 file_metadata = filemetadata.FileMetadata(handle=core.BNGetFileForView(view))
222 view_obj = binaryview.BinaryView(file_metadata=file_metadata, handle=core.BNNewViewReference(view))
223 owner = function.Function(view_obj, core.BNGetHighLevelILOwnerFunction(func))
224 func_obj = highlevelil.HighLevelILFunction(owner.arch, core.BNNewHighLevelILFunctionReference(func), owner)
225 action(view_obj, func_obj)
226 except:
227 log_error(traceback.format_exc())
228
229 @staticmethod
230 def _high_level_il_instruction_action(view, func, instr, action):

Calls 5

log_errorFunction · 0.85
FileMetadataMethod · 0.80
BinaryViewMethod · 0.80
FunctionMethod · 0.80
HighLevelILFunctionMethod · 0.80

Tested by

no test coverage detected