mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 17:45:32 +00:00
logging sorts of quantified variables
logging proof objects seperately form regular terms renaming inst-possible -> inst-discovered
This commit is contained in:
parent
3620dfee5e
commit
bfb554c0b8
2 changed files with 10 additions and 3 deletions
|
@ -2202,7 +2202,14 @@ app * ast_manager::mk_app_core(func_decl * decl, unsigned num_args, expr * const
|
|||
}
|
||||
|
||||
if (m_trace_stream && r == new_node) {
|
||||
*m_trace_stream << "[mk-app] #" << r->get_id() << " ";
|
||||
if (is_proof(r)) {
|
||||
if (decl == mk_func_decl(m_basic_family_id, PR_UNDEF, 0, nullptr, 0, static_cast<expr * const *>(nullptr)))
|
||||
return r;
|
||||
*m_trace_stream << "[mk-proof] #";
|
||||
} else {
|
||||
*m_trace_stream << "[mk-app] #";
|
||||
}
|
||||
*m_trace_stream << r->get_id() << " ";
|
||||
if (r->get_num_args() == 0 && r->get_decl()->get_name() == "int") {
|
||||
ast_ll_pp(*m_trace_stream, *this, r);
|
||||
}
|
||||
|
@ -2479,7 +2486,7 @@ quantifier * ast_manager::mk_quantifier(quantifier_kind k, unsigned num_decls, s
|
|||
trace_quant(*m_trace_stream, r);
|
||||
*m_trace_stream << "[attach-var-names] #" << r->get_id();
|
||||
for (unsigned i = 0; i < num_decls; ++i) {
|
||||
*m_trace_stream << " " << decl_names[num_decls - i - 1].str();
|
||||
*m_trace_stream << " (" << decl_names[num_decls - i - 1].str() << " ; " << decl_sorts[num_decls - i -1]->get_name().str() << ")";
|
||||
}
|
||||
*m_trace_stream << "\n";
|
||||
}
|
||||
|
|
|
@ -212,7 +212,7 @@ namespace smt {
|
|||
if (f) {
|
||||
if (has_trace_stream()) {
|
||||
if (pat == nullptr) {
|
||||
trace_stream() << "[inst-possible] MBQI " << static_cast<void*>(f) << " #" << q->get_id();
|
||||
trace_stream() << "[inst-discovered] MBQI " << static_cast<void*>(f) << " #" << q->get_id();
|
||||
for (unsigned i = 0; i < num_bindings; ++i) {
|
||||
trace_stream() << " #" << bindings[num_bindings - i - 1]->get_owner_id();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue