Skip to content

Commit

Permalink
na
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Sep 6, 2019
1 parent f645f8d commit a92c82d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/smt/theory_pb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,7 @@ namespace smt {
//

void theory_pb::collect_statistics(::statistics& st) const {
st.update("pb resolves", m_stats.m_num_resolves);
st.update("pb conflicts", m_stats.m_num_conflicts);
st.update("pb propagations", m_stats.m_num_propagations);
st.update("pb predicates", m_stats.m_num_predicates);
Expand Down Expand Up @@ -1829,6 +1830,8 @@ namespace smt {

TRACE("pb", display(tout, c, true); );

return false;

bool_var v;
context& ctx = get_context();
ast_manager& m = get_manager();
Expand Down Expand Up @@ -2025,6 +2028,8 @@ namespace smt {
}
SASSERT(slack < 0);

++m_stats.m_num_resolves;

SASSERT(validate_antecedents(m_antecedents));
TRACE("pb", tout << "assign " << m_antecedents << " ==> " << alit << "\n";);
ctx.assign(alit, ctx.mk_justification(theory_propagation_justification(get_id(), ctx.get_region(), m_antecedents.size(), m_antecedents.c_ptr(), alit, 0, nullptr)));
Expand Down
1 change: 1 addition & 0 deletions src/smt/theory_pb.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ namespace smt {
unsigned m_num_conflicts;
unsigned m_num_propagations;
unsigned m_num_predicates;
unsigned m_num_resolves;
void reset() { memset(this, 0, sizeof(*this)); }
stats() { reset(); }
};
Expand Down

0 comments on commit a92c82d

Please sign in to comment.