mirror of
https://github.com/Z3Prover/z3
synced 2025-08-22 02:57:50 +00:00
parent
a6fcdecfd7
commit
825fbf1832
5 changed files with 31 additions and 8 deletions
|
@ -393,6 +393,20 @@ void goal::display_with_dependencies(std::ostream & out) const {
|
|||
out << "\n :precision " << prec() << " :depth " << depth() << ")" << std::endl;
|
||||
}
|
||||
|
||||
|
||||
void goal::display_with_proofs(std::ostream& out) const {
|
||||
out << "(goal";
|
||||
unsigned sz = size();
|
||||
for (unsigned i = 0; i < sz; i++) {
|
||||
out << "\n |-";
|
||||
if (pr(i)) {
|
||||
out << mk_ismt2_pp(pr(i), m(), 4);
|
||||
}
|
||||
out << "\n " << mk_ismt2_pp(form(i), m(), 2);
|
||||
}
|
||||
out << "\n :precision " << prec() << " :depth " << depth() << ")" << std::endl;
|
||||
}
|
||||
|
||||
void goal::display(ast_printer_context & ctx) const {
|
||||
display(ctx, ctx.regular_stream());
|
||||
}
|
||||
|
|
|
@ -141,6 +141,7 @@ public:
|
|||
void display_with_dependencies(ast_printer & prn, std::ostream & out) const;
|
||||
void display_with_dependencies(ast_printer_context & ctx) const;
|
||||
void display_with_dependencies(std::ostream & out) const;
|
||||
void display_with_proofs(std::ostream& out) const;
|
||||
|
||||
bool sat_preserved() const;
|
||||
bool unsat_preserved() const;
|
||||
|
|
|
@ -34,7 +34,7 @@ struct tactic_report::imp {
|
|||
m_goal(g),
|
||||
m_start_memory(static_cast<double>(memory::get_allocation_size())/static_cast<double>(1024*1024)) {
|
||||
m_watch.start();
|
||||
TRACE("tactic", g.display(tout << id << "\n"););
|
||||
TRACE("tactic", g.display_with_proofs(tout << id << "\n"););
|
||||
}
|
||||
|
||||
~imp() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue