3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +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;