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

make smt2 log scope aware

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-10-08 18:14:32 -07:00
parent 01f085ab53
commit 8bb2442a3f
5 changed files with 48 additions and 1 deletions

View file

@ -28,6 +28,7 @@ class ast_pp_util {
obj_hashtable<func_decl> m_removed;
smt2_pp_environment_dbg m_env;
unsigned m_num_sorts, m_num_decls;
unsigned_vector m_num_sorts_trail, m_num_decls_trail;
public:
@ -37,6 +38,7 @@ class ast_pp_util {
void reset() { coll.reset(); m_removed.reset(); m_num_sorts = 0; m_num_decls = 0; }
void collect(expr* e);
void collect(unsigned n, expr* const* es);
@ -55,6 +57,10 @@ class ast_pp_util {
std::ostream& display_expr(std::ostream& out, expr* f, bool neat = true);
void push();
void pop(unsigned n);
smt2_pp_environment& env() { return m_env; }
};