3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-28 08:58:44 +00:00

print skolem declarations only for lemma tracing

This commit is contained in:
Nikolaj Bjorner 2022-08-11 11:34:54 +03:00
parent 791ca02ab1
commit 786280c646
3 changed files with 15 additions and 2 deletions

View file

@ -64,6 +64,17 @@ void ast_pp_util::display_decls(std::ostream& out) {
m_rec_decls = n;
}
void ast_pp_util::display_skolem_decls(std::ostream& out) {
ast_smt_pp pp(m);
unsigned n = coll.get_num_decls();
for (unsigned i = m_decls; i < n; ++i) {
func_decl* f = coll.get_func_decls()[i];
if (f->get_family_id() == null_family_id && !m_removed.contains(f) && f->is_skolem())
ast_smt2_pp(out, f, m_env) << "\n";
}
m_decls = n;
}
void ast_pp_util::remove_decl(func_decl* f) {
m_removed.insert(f);
}