mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
fixing templates for broken windows hash functions
This commit is contained in:
parent
852f53d6a6
commit
1e8c04be8e
5 changed files with 16 additions and 21 deletions
|
@ -1011,7 +1011,7 @@ private:
|
|||
|
||||
// Allow to hash on nodes and edges in deterministic way
|
||||
|
||||
namespace stl_ext {
|
||||
namespace hash_space {
|
||||
template <>
|
||||
class hash<Duality::RPFP::Node *> {
|
||||
public:
|
||||
|
@ -1021,7 +1021,7 @@ namespace stl_ext {
|
|||
};
|
||||
}
|
||||
|
||||
namespace stl_ext {
|
||||
namespace hash_space {
|
||||
template <>
|
||||
class hash<Duality::RPFP::Edge *> {
|
||||
public:
|
||||
|
|
|
@ -606,7 +606,7 @@ expr context::make_quant(decl_kind op, const std::vector<sort> &_sorts, const st
|
|||
void model::show_hash() const {
|
||||
std::ostringstream ss;
|
||||
model_smt2_pp(ss, m(), *m_model, 0);
|
||||
stl_ext::hash<std::string> hasher;
|
||||
hash_space::hash<std::string> hasher;
|
||||
unsigned h = hasher(ss.str());
|
||||
std::cout << "model hash: " << h << "\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue