Commit b6763c28 authored by Sebastien Bourdeauducq's avatar Sebastien Bourdeauducq
Browse files

constant: equality

parent 7b395b56
...@@ -121,6 +121,9 @@ class Constant(Value): ...@@ -121,6 +121,9 @@ class Constant(Value):
def __repr__(self): def __repr__(self):
return str(self.bv) + str(self.n) return str(self.bv) + str(self.n)
def __eq__(self, other):
return self.bv == other.bv and self.n == other.n
def _cst(x): def _cst(x):
if isinstance(x, int): if isinstance(x, int):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment