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

Method __repr__

python/highlevelil.py:350–363  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

348 return '\n'.join(result)
349
350 def __repr__(self):
351 settings = function.DisassemblySettings.default_settings()
352 settings.set_option(DisassemblyOption.DisableLineFormatting)
353 lines = self.get_lines(settings)
354 continuation = ""
355 if lines is None:
356 first_line = "<invalid>"
357 else:
358 first_line = ""
359 for token in next(lines).tokens:
360 first_line += token.text
361 if len(list(lines)) > 1:
362 continuation = "..."
363 return f"<{self.__class__.__name__}: {first_line}{continuation}>"
364
365 def __eq__(self, other: 'HighLevelILInstruction'):
366 if not isinstance(other, HighLevelILInstruction):

Callers

nothing calls this directly

Calls 3

get_linesMethod · 0.95
default_settingsMethod · 0.80
set_optionMethod · 0.45

Tested by

no test coverage detected