Skip to content

Commit

Permalink
count lazy bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Sep 28, 2021
1 parent 3abecc3 commit 2e176a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sat/smt/q_ematch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ namespace q {
b->m_nodes[i] = _binding[i];
binding::push_to_front(c.m_bindings, b);
ctx.push(remove_binding(ctx, c, b));
++m_stats.m_num_delayed_bindings;
}

void ematch::on_binding(quantifier* q, app* pat, euf::enode* const* _binding, unsigned max_generation, unsigned min_gen, unsigned max_gen) {
Expand Down Expand Up @@ -612,6 +613,7 @@ namespace q {
st.update("q redundant", m_stats.m_num_redundant);
st.update("q units", m_stats.m_num_propagations);
st.update("q conflicts", m_stats.m_num_conflicts);
st.update("q delayed bindings", m_stats.m_num_delayed_bindings);
}

std::ostream& ematch::display(std::ostream& out) const {
Expand Down
1 change: 1 addition & 0 deletions src/sat/smt/q_ematch.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ namespace q {
unsigned m_num_propagations;
unsigned m_num_conflicts;
unsigned m_num_redundant;
unsigned m_num_delayed_bindings;

stats() { reset(); }

Expand Down

0 comments on commit 2e176a0

Please sign in to comment.