constant: equality
This commit is contained in:
parent
7b395b565e
commit
b6763c28ea
|
@ -121,6 +121,9 @@ class Constant(Value):
|
|||
|
||||
def __repr__(self):
|
||||
return str(self.bv) + str(self.n)
|
||||
|
||||
def __eq__(self, other):
|
||||
return self.bv == other.bv and self.n == other.n
|
||||
|
||||
def _cst(x):
|
||||
if isinstance(x, int):
|
||||
|
|
Loading…
Reference in New Issue