mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
use new hashtable implementation in windows
This commit is contained in:
parent
4f06b347b3
commit
acf4ad0ab6
15 changed files with 4 additions and 114 deletions
|
@ -25,9 +25,7 @@ Revision History:
|
|||
#include <map>
|
||||
|
||||
// make hash_map and hash_set available
|
||||
#ifndef WIN32
|
||||
using namespace stl_ext;
|
||||
#endif
|
||||
|
||||
namespace Duality {
|
||||
|
||||
|
|
|
@ -1955,7 +1955,7 @@ namespace Duality {
|
|||
}
|
||||
if(update_count == 0){
|
||||
if(was_sat)
|
||||
throw Incompleteness();
|
||||
throw "Help!";
|
||||
reporter->Message("backtracked without learning");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1401,14 +1401,6 @@ namespace hash_space {
|
|||
};
|
||||
}
|
||||
|
||||
// to make Duality::ast hashable in windows
|
||||
#ifdef WIN32
|
||||
template <> inline
|
||||
size_t stdext::hash_value<Duality::ast >(const Duality::ast& s)
|
||||
{
|
||||
return s.raw()->get_id();
|
||||
}
|
||||
#endif
|
||||
|
||||
// to make Duality::ast usable in ordered collections
|
||||
namespace std {
|
||||
|
@ -1445,14 +1437,6 @@ namespace hash_space {
|
|||
};
|
||||
}
|
||||
|
||||
// to make Duality::func_decl hashable in windows
|
||||
#ifdef WIN32
|
||||
template <> inline
|
||||
size_t stdext::hash_value<Duality::func_decl >(const Duality::func_decl& s)
|
||||
{
|
||||
return s.raw()->get_id();
|
||||
}
|
||||
#endif
|
||||
|
||||
// to make Duality::func_decl usable in ordered collections
|
||||
namespace std {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue