(view, func, instr, action)
| 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): |
no test coverage detected