From 54a23d9e1ae34936427461b2807e3d5980e17486 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Thu, 2 Nov 2017 11:30:12 -0500 Subject: Make SSAVariables unique between functions (#855) This helps a ton with inter-function analysis. --- python/mediumlevelil.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index 9167212a..333a6c4d 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -39,12 +39,12 @@ class SSAVariable(object): def __eq__(self, other): return ( - (self.var.identifier, self.version) == - (other.var.identifier, other.version) + (self.var.identifier, self.var.function, self.version) == + (other.var.identifier, other.var.function, other.version) ) def __hash__(self): - return hash((self.var.identifier, self.version)) + return hash((self.var.identifier, self.var.function, self.version)) class MediumLevelILLabel(object): -- cgit v1.3.1