3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

improved diagnostics

This commit is contained in:
Nikolaj Bjorner 2024-01-22 16:23:47 -08:00
parent 8d4e7fac6b
commit 125a82bea5
3 changed files with 43 additions and 29 deletions

View file

@ -158,6 +158,8 @@ struct solver::imp {
for (unsigned i : m_term_set)
add_term(i);
TRACE("nra", m_nlsat->display(tout));
lbool r = l_undef;
try {
r = m_nlsat->check();
@ -200,7 +202,7 @@ struct solver::imp {
for (auto c : core) {
unsigned idx = static_cast<unsigned>(static_cast<imp*>(c) - this);
ex.push_back(idx);
TRACE("arith", tout << "ex: " << idx << "\n";);
TRACE("nra", lra.display_constraint(tout << "ex: " << idx << ": ", idx) << "\n";);
}
nla::new_lemma lemma(m_nla_core, __FUNCTION__);
lemma &= ex;

View file

@ -1285,10 +1285,7 @@ namespace polynomial {
}
});
monomial_table new_table;
monomial_table::iterator it = m_monomials.begin();
monomial_table::iterator end = m_monomials.end();
for (; it != end; ++it) {
monomial * m = *it;
for (monomial * m : m_monomials) {
m->rename(sz, xs);
SASSERT(!new_table.contains(m));
new_table.insert(m);