|
|
|
@ -202,6 +202,9 @@ class BitVec(Expression[z3.BitVecRef]): |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
union = self.annotations.union(other.annotations) |
|
|
|
|
# Some of the BitVecs can be 512 bit due to sha3() |
|
|
|
|
if self.raw.size() != other.raw.size(): |
|
|
|
|
return Bool(z3.BoolVal(False), annotations=union) |
|
|
|
|
# MYPY: fix complaints due to z3 overriding __eq__ |
|
|
|
|
return Bool(cast(z3.BoolRef, self.raw == other.raw), annotations=union) |
|
|
|
|
|
|
|
|
@ -220,6 +223,9 @@ class BitVec(Expression[z3.BitVecRef]): |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
union = self.annotations.union(other.annotations) |
|
|
|
|
# Some of the BitVecs can be 512 bit due to sha3() |
|
|
|
|
if self.raw.size() != other.raw.size(): |
|
|
|
|
return Bool(z3.BoolVal(True), annotations=union) |
|
|
|
|
# MYPY: fix complaints due to z3 overriding __eq__ |
|
|
|
|
return Bool(cast(z3.BoolRef, self.raw != other.raw), annotations=union) |
|
|
|
|
|
|
|
|
|