mirror of
https://github.com/Z3Prover/z3
synced 2025-05-11 09:44:43 +00:00
record simplified input clauses as lemmas
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
247980c5a2
commit
f2e636c598
7 changed files with 54 additions and 23 deletions
|
@ -17,7 +17,7 @@ Revision History:
|
|||
|
||||
--*/
|
||||
#include "ast/ast_pp.h"
|
||||
#include "ast/ast_smt2_pp.h"
|
||||
#include "ast/ast_ll_pp.h"
|
||||
#include "smt/smt_quantifier.h"
|
||||
#include "smt/smt_context.h"
|
||||
#include "smt/smt_quantifier_stat.h"
|
||||
|
@ -260,13 +260,20 @@ namespace smt {
|
|||
m_qi_queue.insert(f, pat, max_generation, min_top_generation, max_top_generation); // TODO
|
||||
m_num_instances++;
|
||||
}
|
||||
TRACE("quantifier",
|
||||
tout << mk_pp(q, m()) << " ";
|
||||
static unsigned count = 0;
|
||||
CTRACE("quantifier", f != nullptr,
|
||||
tout << (count++) << " " << q->get_id() << "\n";
|
||||
if (q->get_id() == 28 || true) {
|
||||
tout << mk_ll_pp(q, m()) << "\n";
|
||||
}
|
||||
);
|
||||
|
||||
CTRACE("quantifier_", f != nullptr,
|
||||
tout << expr_ref(q, m()) << " ";
|
||||
for (unsigned i = 0; i < num_bindings; ++i) {
|
||||
tout << mk_pp(bindings[i]->get_owner(), m()) << " ";
|
||||
tout << expr_ref(bindings[i]->get_owner(), m()) << " ";
|
||||
}
|
||||
tout << "\n";
|
||||
tout << "inserted: " << (f != nullptr) << "\n";
|
||||
);
|
||||
|
||||
return f != nullptr;
|
||||
|
@ -646,7 +653,7 @@ namespace smt {
|
|||
m_lazy_mam->add_pattern(q, mp);
|
||||
}
|
||||
else {
|
||||
TRACE("quantifier", tout << "adding:\n" << mk_ismt2_pp(mp, m) << "\n";);
|
||||
TRACE("quantifier", tout << "adding:\n" << expr_ref(mp, m) << "\n";);
|
||||
m_mam->add_pattern(q, mp);
|
||||
}
|
||||
if (!unary)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue