3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 09:35:32 +00:00

weaken assertion, remove dependency on hash_compare in unittest for hashtables

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-11-09 09:28:49 -08:00
parent 4b146a61ff
commit a98502b62f
2 changed files with 2 additions and 2 deletions

View file

@ -659,7 +659,7 @@ namespace polysat {
LOG(assignment_pp(*this, v, val) << " by " << j);
SASSERT(m_viable.is_viable(v, val));
SASSERT(j.is_decision() || j.is_propagation());
SASSERT(j.level() == m_level);
SASSERT(j.level() <= m_level);
SASSERT(!is_assigned(v));
SASSERT(all_of(assignment(), [v](auto p) { return p.first != v; }));
m_value[v] = val;

View file

@ -26,7 +26,7 @@ Revision History:
struct int_hash_proc { unsigned operator()(int x) const { return x * 3; } };
typedef int_hashtable<int_hash_proc, default_eq<int> > int_set;
typedef std::unordered_set<int, std::hash_compare<int, std::less<int> > > safe_int_set;
typedef std::unordered_set<int> safe_int_set;
// typedef safe_int_set int_set;
inline bool contains(int_set & h, int i) {