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

adding SMT2 log file for solver interaction #867

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-10-08 11:44:47 -07:00
parent b6c13340bd
commit f6f3ca1507
9 changed files with 159 additions and 28 deletions

View file

@ -27,11 +27,13 @@ class ast_pp_util {
ast_manager& m;
obj_hashtable<func_decl> m_removed;
smt2_pp_environment_dbg m_env;
unsigned m_num_sorts, m_num_decls;
public:
decl_collector coll;
ast_pp_util(ast_manager& m): m(m), m_env(m), coll(m) {}
ast_pp_util(ast_manager& m): m(m), m_env(m), coll(m), m_num_sorts(0), m_num_decls(0) {}
void collect(expr* e);
@ -45,6 +47,12 @@ class ast_pp_util {
void display_asserts(std::ostream& out, expr_ref_vector const& fmls, bool neat = true);
void display_assert(std::ostream& out, expr* f, bool neat = true);
void display_assert_and_track(std::ostream& out, expr* f, expr* t, bool neat = true);
std::ostream& display_expr(std::ostream& out, expr* f, bool neat = true);
smt2_pp_environment& env() { return m_env; }
};