3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-17 15:39:27 +00:00

Don't add duplicate equations and membership constraints to Nielsen root

This commit is contained in:
CEisenhofer 2026-05-06 16:38:26 +02:00
parent e62ba9b60b
commit 712cd68e8c
2 changed files with 21 additions and 0 deletions

View file

@ -992,6 +992,15 @@ namespace smt {
#ifdef Z3DEBUG
std::cout << "Conflict with " << lits.size() << " literals and " << eqs.size() << " equalities" << std::endl;
std::cout << "The root node contained " << m_nielsen.root()->str_mems().size() << " memberships and " << m_nielsen.root()->str_eqs().size() << " equalities" << std::endl;
unsigned idx = 0;
for (auto& eq : m_nielsen.root()->str_eqs()) {
std::cout << "[" << (idx++) << "]: " << seq::eq_pp(eq, m);
}
idx = 0;
for (auto& mem : m_nielsen.root()->str_mems()) {
std::cout << "[" << (idx++) << "]: " << seq::mem_pp(m, mem);
}
std::flush(std::cout);
#endif
}