diff options
| author | Glenn Smith <glenn@vector35.com> | 2025-06-28 15:23:06 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2025-07-01 12:52:08 -0400 |
| commit | be5901611829ea635053db4a3482cb122735e013 (patch) | |
| tree | ba22bda0813cf22f892b4a652d4558d54912d6d9 /python/lowlevelil.py | |
| parent | 2ae357a4fffd81763e24a0c10dc3736ed8d387dd (diff) | |
Python: Update IL Function repr()s
Diffstat (limited to 'python/lowlevelil.py')
| -rw-r--r-- | python/lowlevelil.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py index 79919efe..c9c478dd 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -3311,12 +3311,17 @@ class LowLevelILFunction: core.BNFreeLowLevelILFunction(self.handle) def __repr__(self): + form = "" + if self.il_form == FunctionGraphType.LiftedILFunctionGraph: + form += " lifted il" + if self.il_form == FunctionGraphType.LowLevelILSSAFormFunctionGraph: + form += " ssa form" if self.source_function is not None and self.source_function.arch is not None: - return f"<{self.__class__.__name__}: {self.source_function.arch.name}@{self.source_function.start:#x}>" + return f"<{self.__class__.__name__}{form}: {self.source_function.arch.name}@{self.source_function.start:#x}>" elif self.source_function is not None: - return f"<{self.__class__.__name__}: {self.source_function.start:#x}>" + return f"<{self.__class__.__name__}{form}: {self.source_function.start:#x}>" else: - return f"<{self.__class__.__name__}: anonymous>" + return f"<{self.__class__.__name__}{form}: anonymous>" def __len__(self): return int(core.BNGetLowLevelILInstructionCount(self.handle)) |
