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/mediumlevelil.py | |
| parent | 2ae357a4fffd81763e24a0c10dc3736ed8d387dd (diff) | |
Python: Update IL Function repr()s
Diffstat (limited to 'python/mediumlevelil.py')
| -rw-r--r-- | python/mediumlevelil.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index 6d4ae036..577a48ef 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -3283,10 +3283,21 @@ class MediumLevelILFunction: def __repr__(self): arch = self.source_function.arch + form = "" + if self.il_form in [ + FunctionGraphType.MappedMediumLevelILFunctionGraph, + FunctionGraphType.MappedMediumLevelILSSAFormFunctionGraph, + ]: + form += " mapped mlil" + if self.il_form in [ + FunctionGraphType.MediumLevelILSSAFormFunctionGraph, + FunctionGraphType.MappedMediumLevelILSSAFormFunctionGraph, + ]: + form += " ssa form" if arch: - return f"<MediumLevelILFunction: {arch.name}@{self.source_function.start:#x}>" + return f"<MediumLevelILFunction{form}: {arch.name}@{self.source_function.start:#x}>" else: - return f"<MediumLevelILFunction: {self.source_function.start:#x}>" + return f"<MediumLevelILFunction{form}: {self.source_function.start:#x}>" def __len__(self): return int(core.BNGetMediumLevelILInstructionCount(self.handle)) |
