3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-21 02:30:23 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2023-11-20 15:54:00 -08:00
parent cbefe74219
commit 6a572543b4
2 changed files with 26 additions and 2 deletions

View file

@ -254,7 +254,7 @@ namespace euf {
sort(ml);
sort(mr);
for (unsigned i = ml.size(); i-- > 0;) {
if (ml[i] == mr[i])
if (ml[i]->root_id() == mr[i]->root_id())
continue;
if (ml[i]->root_id() < mr[i]->root_id())
std::swap(e.l, e.r);
@ -480,7 +480,7 @@ namespace euf {
bool has_two = false;
for (auto n : m)
if (n->root->eqs.size() > max_use)
max_n = n->root, max_use = n->root->eqs.size(), has_two |= max_n != nullptr;
has_two |= max_n && (max_n != n->root), max_n = n->root, max_use = n->root->eqs.size();
m_eq_occurs.reset();
for (auto n : m)
if (n->root != max_n && has_two)