mirror of
https://github.com/Z3Prover/z3
synced 2026-07-17 04:25:44 +00:00
fix: add dedicated lim_svector<sort*> m_type_vars to decl_collector and emit declare-type-var in display_decls
- decl_collector.h: add m_type_vars lim_svector, get_type_vars() getter, update reset() - decl_collector.cpp: push poly_family_id sorts to m_type_vars instead of m_sorts; push_scope/pop_scope m_type_vars in push()/pop() - ast_pp_util.h: add stacked_value<unsigned> m_type_vars counter - ast_pp_util.cpp: emit (declare-type-var <name>) before other sort declarations in display_decls(); reset/push/pop the new m_type_vars counter
This commit is contained in:
parent
638e7b7bce
commit
1e07ca76af
4 changed files with 20 additions and 5 deletions
|
|
@ -30,6 +30,7 @@ class ast_pp_util {
|
|||
stacked_value<unsigned> m_rec_decls;
|
||||
stacked_value<unsigned> m_decls;
|
||||
stacked_value<unsigned> m_sorts;
|
||||
stacked_value<unsigned> m_type_vars;
|
||||
expr_mark m_is_defined;
|
||||
expr_ref_vector m_defined;
|
||||
unsigned_vector m_defined_lim;
|
||||
|
|
@ -38,7 +39,7 @@ class ast_pp_util {
|
|||
|
||||
decl_collector coll;
|
||||
|
||||
ast_pp_util(ast_manager& m): m(m), m_env(m), m_rec_decls(0), m_decls(0), m_sorts(0), m_defined(m), coll(m) {}
|
||||
ast_pp_util(ast_manager& m): m(m), m_env(m), m_rec_decls(0), m_decls(0), m_sorts(0), m_type_vars(0), m_defined(m), coll(m) {}
|
||||
|
||||
void reset();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue