3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 00:55:31 +00:00

fix comparison of pdds with different bit-widths

This commit is contained in:
Jakob Rath 2023-02-21 13:01:15 +01:00
parent 8347c043e1
commit e3b3cd58ea

View file

@ -481,8 +481,8 @@ namespace dd {
pdd subst_pdd(unsigned v, pdd const& r) const;
std::ostream& display(std::ostream& out) const { return m.display(out, *this); }
bool operator==(pdd const& other) const { return root == other.root; }
bool operator!=(pdd const& other) const { return root != other.root; }
bool operator==(pdd const& other) const { return root == other.root && (&m == &other.m); }
bool operator!=(pdd const& other) const { return !operator==(other); }
unsigned hash() const { return root; }
unsigned power_of_2() const { return m.power_of_2(); }