mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
change default behavior of solver pretty printer to include declarations
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
6780784bcf
commit
a3c43c34fb
6 changed files with 110 additions and 97 deletions
|
@ -22,6 +22,7 @@ Notes:
|
|||
#include"solver_na2as.h"
|
||||
#include"tactic.h"
|
||||
#include"ast_smt2_pp.h"
|
||||
#include"ast_pp_util.h"
|
||||
|
||||
/**
|
||||
\brief Simulates the incremental solver interface using a tactic.
|
||||
|
@ -221,6 +222,11 @@ expr * tactic2solver::get_assertion(unsigned idx) const {
|
|||
}
|
||||
|
||||
void tactic2solver::display(std::ostream & out) const {
|
||||
ast_pp_util visitor(m_assertions.m());
|
||||
visitor.collect(m_assertions);
|
||||
visitor.display_decls(out);
|
||||
visitor.display_asserts(out, m_assertions, true);
|
||||
#if 0
|
||||
ast_manager & m = m_assertions.m();
|
||||
unsigned num = m_assertions.size();
|
||||
out << "(solver";
|
||||
|
@ -228,6 +234,7 @@ void tactic2solver::display(std::ostream & out) const {
|
|||
out << "\n " << mk_ismt2_pp(m_assertions.get(i), m, 2);
|
||||
}
|
||||
out << ")";
|
||||
#endif
|
||||
}
|
||||
|
||||
solver * mk_tactic2solver(ast_manager & m,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue