summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2017-11-02 11:30:12 -0500
committerplafosse <peter@vector35.com>2017-11-02 12:30:12 -0400
commit54a23d9e1ae34936427461b2807e3d5980e17486 (patch)
treecb8aec1fbc50d1bab7327047ea14956a7db4094c /python
parent9a70f039ffd68190a3a6efc53a4fab3cf20b7963 (diff)
Make SSAVariables unique between functions (#855)
This helps a ton with inter-function analysis.
Diffstat (limited to 'python')
-rw-r--r--python/mediumlevelil.py6
1 files changed, 3 insertions, 3 deletions
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):