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

Method _high_level_il_instruction_action

python/plugin.py:230–238  ·  view source on GitHub ↗
(view, func, instr, action)

Source from the content-addressed store, hash-verified

228
229 @staticmethod
230 def _high_level_il_instruction_action(view, func, instr, action):
231 try:
232 file_metadata = filemetadata.FileMetadata(handle=core.BNGetFileForView(view))
233 view_obj = binaryview.BinaryView(file_metadata=file_metadata, handle=core.BNNewViewReference(view))
234 owner = function.Function(view_obj, core.BNGetHighLevelILOwnerFunction(func))
235 func_obj = highlevelil.HighLevelILFunction(owner.arch, core.BNNewHighLevelILFunctionReference(func), owner)
236 action(view_obj, func_obj[instr])
237 except:
238 log_error(traceback.format_exc())
239
240 @staticmethod
241 def _default_is_valid(view, is_valid):

Calls 5

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

Tested by

no test coverage detected