mirror of
https://github.com/Z3Prover/z3
synced 2025-06-19 12:23:38 +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:
parent
4b146a61ff
commit
a98502b62f
2 changed files with 2 additions and 2 deletions
|
@ -659,7 +659,7 @@ namespace polysat {
|
||||||
LOG(assignment_pp(*this, v, val) << " by " << j);
|
LOG(assignment_pp(*this, v, val) << " by " << j);
|
||||||
SASSERT(m_viable.is_viable(v, val));
|
SASSERT(m_viable.is_viable(v, val));
|
||||||
SASSERT(j.is_decision() || j.is_propagation());
|
SASSERT(j.is_decision() || j.is_propagation());
|
||||||
SASSERT(j.level() == m_level);
|
SASSERT(j.level() <= m_level);
|
||||||
SASSERT(!is_assigned(v));
|
SASSERT(!is_assigned(v));
|
||||||
SASSERT(all_of(assignment(), [v](auto p) { return p.first != v; }));
|
SASSERT(all_of(assignment(), [v](auto p) { return p.first != v; }));
|
||||||
m_value[v] = val;
|
m_value[v] = val;
|
||||||
|
|
|
@ -26,7 +26,7 @@ Revision History:
|
||||||
|
|
||||||
struct int_hash_proc { unsigned operator()(int x) const { return x * 3; } };
|
struct int_hash_proc { unsigned operator()(int x) const { return x * 3; } };
|
||||||
typedef int_hashtable<int_hash_proc, default_eq<int> > int_set;
|
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;
|
// typedef safe_int_set int_set;
|
||||||
|
|
||||||
inline bool contains(int_set & h, int i) {
|
inline bool contains(int_set & h, int i) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue