3
0
Fork 0
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:
Ken McMillan 2013-12-15 17:31:46 -08:00
parent 852f53d6a6
commit 1e8c04be8e
5 changed files with 16 additions and 21 deletions

View file

@ -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:

View file

@ -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";
}