3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-30 04:15:51 +00:00

replace graph by a tree in cheap_eqs

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2020-06-03 17:15:15 -07:00
parent 5d3070bc2d
commit 62bd19242e
5 changed files with 169 additions and 135 deletions

View file

@ -147,6 +147,8 @@ struct numeric_pair {
template <typename X, typename Y>
numeric_pair(X xp, Y yp) : x(convert_struct<T, X>::convert(xp)), y(convert_struct<T, Y>::convert(yp)) {}
unsigned hash() const { return combine_hash(x.hash(), y.hash()); }
bool operator<(const T& a) const {
return x < a || (x == a && y < 0);
}