3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-05 17:14:07 +00:00

avoid iterations on std::unordered_set

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2020-05-16 08:55:15 -07:00
parent ce07138008
commit cd833e892f

View file

@ -47,7 +47,11 @@ public:
push_justification(j);
}
void add(const explanation& e) { for (auto j: e.m_set_of_ci) add(j); }
void add(const explanation& e) {
for (const auto& p: e.m_explanation) {
add(p.second);
}
}
template <typename T>
void add_expl(const T& e) { for (auto j: e) add(j); }
void add(unsigned ci) { push_justification(ci); }