constant: equality
This commit is contained in:
parent
7b395b565e
commit
b6763c28ea
|
@ -122,6 +122,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):
|
||||
return Constant(x)
|
||||
|
|
Loading…
Reference in New Issue