mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
bcd
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ea3b149575
commit
93d1091ad9
10 changed files with 452 additions and 12 deletions
|
@ -277,6 +277,11 @@ struct u_hash { unsigned operator()(unsigned u) const { return u; } };
|
|||
|
||||
struct u_eq { bool operator()(unsigned u1, unsigned u2) const { return u1 == u2; } };
|
||||
|
||||
|
||||
struct u64_hash { unsigned operator()(uint64_t u) const { return mk_mix((unsigned)u, (unsigned)(u >> 32ull), 0); } };
|
||||
|
||||
struct u64_eq { bool operator()(uint64_t u1, uint64_t u2) const { return u1 == u2; } };
|
||||
|
||||
struct size_t_eq { bool operator()(size_t u1, size_t u2) const { return u1 == u2; } };
|
||||
|
||||
struct int_eq { bool operator()(int u1, int u2) const { return u1 == u2; } };
|
||||
|
@ -287,4 +292,7 @@ class u_map : public map<unsigned, Value, u_hash, u_eq> {};
|
|||
template<typename Value>
|
||||
class size_t_map : public map<size_t, Value, size_t_hash, size_t_eq> {};
|
||||
|
||||
template<typename Value>
|
||||
class u64_map : public map<uint64_t, Value, u64_hash, u64_eq> {};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue