diff options
| author | KyleMiles <krm504@nyu.edu> | 2024-05-07 12:15:08 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2024-05-07 12:15:08 -0400 |
| commit | a0c388f5a8beb0c0485deed3070d97b3a78f3990 (patch) | |
| tree | f6d31d6ba04795f31941af6f9dd10bf97bde3214 /python | |
| parent | d051a46dde98c1d9c86c4c5865a672ae2a221243 (diff) | |
Add SetVar commonil class to appropriate HLIL instruction
Diffstat (limited to 'python')
| -rw-r--r-- | python/highlevelil.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/highlevelil.py b/python/highlevelil.py index afdc2b2e..93e3c3b9 100644 --- a/python/highlevelil.py +++ b/python/highlevelil.py @@ -43,7 +43,7 @@ from .interaction import show_graph_report from .commonil import ( BaseILInstruction, Tailcall, Syscall, Localcall, Comparison, Signed, UnaryOperation, BinaryOperation, SSA, Phi, Loop, ControlFlow, Memory, Constant, Arithmetic, DoublePrecision, Terminal, FloatingPoint, Intrinsic, Return, - VariableInstruction, SSAVariableInstruction + VariableInstruction, SSAVariableInstruction, SetVar ) from . import deprecation @@ -1267,7 +1267,7 @@ class HighLevelILVarDeclare(HighLevelILInstruction): @dataclass(frozen=True, repr=False, eq=False) -class HighLevelILVarInit(HighLevelILInstruction): +class HighLevelILVarInit(HighLevelILInstruction, SetVar): @property def dest(self) -> 'variable.Variable': return self.get_var(0) @@ -1289,7 +1289,7 @@ class HighLevelILVarInit(HighLevelILInstruction): @dataclass(frozen=True, repr=False, eq=False) -class HighLevelILVarInitSsa(HighLevelILInstruction, SSA): +class HighLevelILVarInitSsa(HighLevelILInstruction, SetVar, SSA): @property def dest(self) -> 'mediumlevelil.SSAVariable': return self.get_var_ssa(0, 1) @@ -1311,7 +1311,7 @@ class HighLevelILVarInitSsa(HighLevelILInstruction, SSA): @dataclass(frozen=True, repr=False, eq=False) -class HighLevelILAssign(HighLevelILInstruction): +class HighLevelILAssign(HighLevelILInstruction, SetVar): @property def dest(self) -> HighLevelILInstruction: return self.get_expr(0) @@ -1338,7 +1338,7 @@ class HighLevelILAssign(HighLevelILInstruction): @dataclass(frozen=True, repr=False, eq=False) -class HighLevelILAssignUnpack(HighLevelILInstruction): +class HighLevelILAssignUnpack(HighLevelILInstruction, SetVar): @property def dest(self) -> List[HighLevelILInstruction]: return self.get_expr_list(0, 1) @@ -1448,7 +1448,7 @@ class HighLevelILVarSsa(HighLevelILInstruction, SSAVariableInstruction): @dataclass(frozen=True, repr=False, eq=False) -class HighLevelILVarPhi(HighLevelILInstruction, Phi): +class HighLevelILVarPhi(HighLevelILInstruction, Phi, SetVar): @property def dest(self) -> 'mediumlevelil.SSAVariable': return self.get_var_ssa(0, 1) |
