From be5901611829ea635053db4a3482cb122735e013 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Sat, 28 Jun 2025 15:23:06 -0400 Subject: Python: Update IL Function repr()s --- python/mediumlevelil.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'python/mediumlevelil.py') 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"" + return f"" else: - return f"" + return f"" def __len__(self): return int(core.BNGetMediumLevelILInstructionCount(self.handle)) -- cgit v1.3.1