mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
remove Z3_bool_opt #5757
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
7baa4f88b0
commit
199daead50
7 changed files with 37 additions and 24 deletions
|
@ -424,15 +424,19 @@ namespace q {
|
|||
friend class compiler;
|
||||
friend class code_tree_manager;
|
||||
|
||||
void display_seq(std::ostream & out, instruction * head, unsigned indent) const {
|
||||
for (unsigned i = 0; i < indent; i++) {
|
||||
void spaces(std::ostream& out, unsigned indent) const {
|
||||
for (unsigned i = 0; i < indent; i++)
|
||||
out << " ";
|
||||
}
|
||||
}
|
||||
|
||||
void display_seq(std::ostream & out, instruction * head, unsigned indent) const {
|
||||
spaces(out, indent);
|
||||
instruction * curr = head;
|
||||
out << *curr;
|
||||
curr = curr->m_next;
|
||||
while (curr != nullptr && curr->m_opcode != CHOOSE && curr->m_opcode != NOOP) {
|
||||
out << "\n";
|
||||
spaces(out, indent);
|
||||
out << *curr;
|
||||
curr = curr->m_next;
|
||||
}
|
||||
|
@ -598,7 +602,7 @@ namespace q {
|
|||
ast_manager & m = m_egraph->get_manager();
|
||||
out << "patterns:\n";
|
||||
for (auto [q, a] : m_patterns)
|
||||
out << mk_pp(q, m) << " " << mk_pp(a, m) << "\n";
|
||||
out << q->get_id() << ": " << mk_pp(q, m) << " " << mk_pp(a, m) << "\n";
|
||||
}
|
||||
#endif
|
||||
out << "function: " << m_root_lbl->get_name();
|
||||
|
@ -2878,8 +2882,10 @@ namespace q {
|
|||
if (tree->expected_num_args() == p->get_num_args())
|
||||
m_compiler.insert(tree, qa, mp, first_idx, false);
|
||||
}
|
||||
DEBUG_CODE(m_trees[lbl_id]->get_patterns().push_back(std::make_pair(qa, mp));
|
||||
ctx.push(push_back_trail<std::pair<quantifier*,app*>, false>(m_trees[lbl_id]->get_patterns())););
|
||||
DEBUG_CODE(if (first_idx == 0) {
|
||||
m_trees[lbl_id]->get_patterns().push_back(std::make_pair(qa, mp));
|
||||
ctx.push(push_back_trail<std::pair<quantifier*, app*>, false>(m_trees[lbl_id]->get_patterns()));
|
||||
});
|
||||
TRACE("trigger_bug", tout << "after add_pattern, first_idx: " << first_idx << "\n"; m_trees[lbl_id]->display(tout););
|
||||
}
|
||||
|
||||
|
|
|
@ -149,12 +149,7 @@ namespace q {
|
|||
if (false && em.propagate(true, f.nodes(), gen, *f.c, new_propagation))
|
||||
return;
|
||||
|
||||
#if 0
|
||||
std::cout << mk_pp(q, m) << "\n";
|
||||
std::cout << num_bindings << "\n";
|
||||
for (unsigned i = 0; i < num_bindings; ++i)
|
||||
std::cout << mk_pp(f[i]->get_expr(), m) << " " << mk_pp(f[i]->get_sort(), m) << "\n";
|
||||
#endif
|
||||
|
||||
auto* ebindings = m_subst(q, num_bindings);
|
||||
for (unsigned i = 0; i < num_bindings; ++i)
|
||||
ebindings[i] = f[i]->get_expr();
|
||||
|
@ -168,7 +163,14 @@ namespace q {
|
|||
|
||||
m_stats.m_num_instances++;
|
||||
|
||||
// f.display(ctx, std::cout << mk_pp(f.q(), m) << "\n" << instance << "\n") << "\n";
|
||||
std::cout << "instantiate\n";
|
||||
for (unsigned i = 0; i < num_bindings; ++i)
|
||||
std::cout << ctx.bpp(f[i]) << " ";
|
||||
std::cout << "\n";
|
||||
std::cout << mk_pp(q, m) << "\n";
|
||||
|
||||
|
||||
// f.display(ctx, std::cout << mk_pp(f.q(), m) << "\n" << instance << "\n") << "\n";
|
||||
|
||||
|
||||
euf::solver::scoped_generation _sg(ctx, gen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue