(self)
| 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): |
nothing calls this directly
no test coverage detected