Skip to content

Commit a92c82d

Browse files
na
Signed-off-by: Nikolaj Bjorner <[email protected]>
1 parent f645f8d commit a92c82d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/smt/theory_pb.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,7 @@ namespace smt {
971971
//
972972

973973
void theory_pb::collect_statistics(::statistics& st) const {
974+
st.update("pb resolves", m_stats.m_num_resolves);
974975
st.update("pb conflicts", m_stats.m_num_conflicts);
975976
st.update("pb propagations", m_stats.m_num_propagations);
976977
st.update("pb predicates", m_stats.m_num_predicates);
@@ -1829,6 +1830,8 @@ namespace smt {
18291830

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

1833+
return false;
1834+
18321835
bool_var v;
18331836
context& ctx = get_context();
18341837
ast_manager& m = get_manager();
@@ -2025,6 +2028,8 @@ namespace smt {
20252028
}
20262029
SASSERT(slack < 0);
20272030

2031+
++m_stats.m_num_resolves;
2032+
20282033
SASSERT(validate_antecedents(m_antecedents));
20292034
TRACE("pb", tout << "assign " << m_antecedents << " ==> " << alit << "\n";);
20302035
ctx.assign(alit, ctx.mk_justification(theory_propagation_justification(get_id(), ctx.get_region(), m_antecedents.size(), m_antecedents.c_ptr(), alit, 0, nullptr)));

src/smt/theory_pb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ namespace smt {
9797
unsigned m_num_conflicts;
9898
unsigned m_num_propagations;
9999
unsigned m_num_predicates;
100+
unsigned m_num_resolves;
100101
void reset() { memset(this, 0, sizeof(*this)); }
101102
stats() { reset(); }
102103
};

0 commit comments

Comments
 (0)