3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 12:08:18 +00:00

remove redundant data-type function declarations from pretty-printed output. #1034

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-05-22 14:40:42 -07:00
parent cfd598fabb
commit 622d8c951c

View file

@ -44,8 +44,11 @@ void ast_pp_util::display_decls(std::ostream& out) {
} }
n = coll.get_num_decls(); n = coll.get_num_decls();
for (unsigned i = 0; i < n; ++i) { for (unsigned i = 0; i < n; ++i) {
ast_smt2_pp(out, coll.get_func_decls()[i], env); func_decl* f = coll.get_func_decls()[i];
out << "\n"; if (f->get_family_id() == null_family_id) {
ast_smt2_pp(out, f, env);
out << "\n";
}
} }
} }