3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-07 12:13:43 +01:00
parent f501380e89
commit bdd66e1fa0
7 changed files with 60 additions and 32 deletions

View file

@ -1676,6 +1676,16 @@ void ast_manager::set_next_expr_id(unsigned id) {
unsigned ast_manager::get_node_size(ast const * n) { return ::get_node_size(n); }
std::ostream& ast_manager::display(std::ostream& out) const {
for (ast * a : m_ast_table) {
if (is_func_decl(a)) {
out << to_func_decl(a)->get_name() << " " << a->get_id() << "\n";
}
}
return out;
}
void ast_manager::register_plugin(symbol const & s, decl_plugin * plugin) {
family_id id = m_family_manager.mk_family_id(s);
SASSERT(is_format_manager() || s != symbol("format"));

View file

@ -1713,6 +1713,8 @@ public:
return m_alloc.get_allocation_size();
}
std::ostream& display(std::ostream& out) const;
protected:
ast * register_node_core(ast * n);

View file

@ -168,7 +168,7 @@ void ast_translation::mk_func_decl(func_decl * f, frame & fr) {
new_fi.set_chainable(fi->is_chainable());
new_fi.set_pairwise(fi->is_pairwise());
new_fi.set_injective(fi->is_injective());
/// TBD new_fi.set_skolem(fi->is_skolem());
new_fi.set_skolem(fi->is_skolem());
new_fi.set_idempotent(fi->is_idempotent());
new_f = m_to_manager.mk_func_decl(f->get_name(),