3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-25 10:05:32 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-04-30 17:36:12 -07:00 committed by Lev Nachmanson
parent b32f2703d4
commit e234bede4c
6 changed files with 28 additions and 11 deletions

View file

@ -180,6 +180,16 @@ public:
void swap(table2map & other) {
m_table.swap(other.m_table);
}
bool operator==(table2map const& other) const {
if (size() != other.size()) return false;
for (auto const& kv : *this) {
auto* e = other.find_core(kv.m_key);
if (!e) return false;
if (e->get_data().m_value != kv.m_value) return false;
}
return true;
}
#ifdef Z3DEBUG