mirror of
https://github.com/Z3Prover/z3
synced 2025-06-28 08:58:44 +00:00
succinct logging
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
74c61f49b4
commit
fb8532bf55
5 changed files with 81 additions and 18 deletions
|
@ -30,6 +30,9 @@ class ast_pp_util {
|
|||
stacked_value<unsigned> m_rec_decls;
|
||||
stacked_value<unsigned> m_decls;
|
||||
stacked_value<unsigned> m_sorts;
|
||||
expr_mark m_is_defined;
|
||||
ptr_vector<expr> m_defined;
|
||||
unsigned_vector m_defined_lim;
|
||||
|
||||
public:
|
||||
|
||||
|
@ -37,8 +40,8 @@ class ast_pp_util {
|
|||
|
||||
ast_pp_util(ast_manager& m): m(m), m_env(m), m_rec_decls(0), m_decls(0), m_sorts(0), coll(m) {}
|
||||
|
||||
void reset() { coll.reset(); m_removed.reset(); m_sorts.clear(0u); m_decls.clear(0u); m_rec_decls.clear(0u); }
|
||||
|
||||
void reset() { coll.reset(); m_removed.reset(); m_sorts.clear(0u); m_decls.clear(0u); m_rec_decls.clear(0u);
|
||||
m_is_defined.reset(); m_defined.reset(); m_defined_lim.reset(); }
|
||||
|
||||
void collect(expr* e);
|
||||
|
||||
|
@ -60,6 +63,8 @@ class ast_pp_util {
|
|||
|
||||
std::ostream& display_expr(std::ostream& out, expr* f, bool neat = true);
|
||||
|
||||
std::ostream& define_expr(std::ostream& out, expr* f);
|
||||
|
||||
void push();
|
||||
|
||||
void pop(unsigned n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue