mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 10:52:02 +00:00
fix weak hash function
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2920ee56e9
commit
685138e43f
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ namespace sat {
|
||||||
}
|
}
|
||||||
binary():x(null_literal), y(null_literal), use_list(nullptr) {}
|
binary():x(null_literal), y(null_literal), use_list(nullptr) {}
|
||||||
struct hash {
|
struct hash {
|
||||||
unsigned operator()(binary const& t) const { return t.x.hash() + 2* t.y.hash(); }
|
unsigned operator()(binary const& t) const { return mk_mix(t.x.index(), t.y.index(), 3); }
|
||||||
};
|
};
|
||||||
struct eq {
|
struct eq {
|
||||||
bool operator()(binary const& a, binary const& b) const {
|
bool operator()(binary const& a, binary const& b) const {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue