summaryrefslogtreecommitdiff
path: root/python/lowlevelil.py
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2021-11-01 23:37:09 -0400
committerKyleMiles <krm504@nyu.edu>2021-11-11 16:16:40 -0500
commitf80fe07a3534cf2869d616aef12681bd83a00b0e (patch)
tree68dab106570089a8cca985ea7b45395c630bc0f8 /python/lowlevelil.py
parentcf762601b42ae4365d271c3825d59720718047a2 (diff)
Resolves #2681; Return the SSAFunction's version of .ssa_vars from the non-SSA forms (pass the call from *LevelILFunction to *LevelILSSAFunction)
Diffstat (limited to 'python/lowlevelil.py')
-rw-r--r--python/lowlevelil.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index 50e058e9..4d320d18 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -3013,6 +3013,8 @@ class LowLevelILFunction:
"""This is the union `LowLevelILFunction.ssa_registers`, `LowLevelILFunction.ssa_register_stacks`, and `LowLevelILFunction.ssa_flags`"""
if self.il_form == FunctionGraphType.LowLevelILSSAFormFunctionGraph:
return self.ssa_registers + self.ssa_register_stacks + self.ssa_flags # type: ignore
+ elif self.il_form == FunctionGraphType.LowLevelILFunctionGraph:
+ return self.ssa_form.ssa_vars
return []
def get_instruction_start(self, addr:int, arch:Optional['architecture.Architecture']=None) -> Optional[int]: