summaryrefslogtreecommitdiff
path: root/python/highlevelil.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-06-28 15:23:06 -0400
committerGlenn Smith <glenn@vector35.com>2025-07-01 12:52:08 -0400
commitbe5901611829ea635053db4a3482cb122735e013 (patch)
treeba22bda0813cf22f892b4a652d4558d54912d6d9 /python/highlevelil.py
parent2ae357a4fffd81763e24a0c10dc3736ed8d387dd (diff)
Python: Update IL Function repr()s
Diffstat (limited to 'python/highlevelil.py')
-rw-r--r--python/highlevelil.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/highlevelil.py b/python/highlevelil.py
index 1ac81617..6398bc26 100644
--- a/python/highlevelil.py
+++ b/python/highlevelil.py
@@ -2552,10 +2552,13 @@ class HighLevelILFunction:
def __repr__(self):
arch = self.source_function.arch
+ form = ""
+ if self.il_form == FunctionGraphType.HighLevelILSSAFormFunctionGraph:
+ form += " ssa form"
if arch:
- return "<hlil func: %s@%#x>" % (arch.name, self.source_function.start)
+ return f"<HighLevelILFunction{form}: {arch.name}@{self.source_function.start:#x}>"
else:
- return "<hlil func: %#x>" % self.source_function.start
+ return f"<HighLevelILFunction{form}: {self.source_function.start:#x}>"
def __eq__(self, other):
if not isinstance(other, self.__class__):