mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 22:23:22 +00:00
feat(ast/ast_smt_pp): display quantifier QID when printing proofs, feature requested by Dan Rosen
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
1abf3beaba
commit
24961dc5f1
1 changed files with 7 additions and 3 deletions
|
@ -569,7 +569,7 @@ class smt_printer {
|
||||||
m_out << ")";
|
m_out << ")";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_is_smt2 && q->get_num_patterns() > 0) {
|
if (m_is_smt2 && (q->get_num_patterns() > 0 || q->get_qid() != symbol::null)) {
|
||||||
m_out << "(! ";
|
m_out << "(! ";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
@ -609,7 +609,11 @@ class smt_printer {
|
||||||
m_out << "}";
|
m_out << "}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (m_is_smt2 && q->get_num_patterns() > 0) {
|
|
||||||
|
if (q->get_qid() != symbol::null)
|
||||||
|
m_out << " :qid " << q->get_qid();
|
||||||
|
|
||||||
|
if (m_is_smt2 && (q->get_num_patterns() > 0 || q->get_qid() != symbol::null)) {
|
||||||
m_out << ")";
|
m_out << ")";
|
||||||
}
|
}
|
||||||
m_out << ")";
|
m_out << ")";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue