3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

differentiate fixed from offset-eq in statistics

This commit is contained in:
Nikolaj Bjorner 2023-04-18 08:40:51 -07:00
parent ec1480b12a
commit a2bac119d3
2 changed files with 8 additions and 2 deletions

View file

@ -578,8 +578,12 @@ public:
);
bool added = m_imp.add_eq(je, ke, exp, is_fixed);
if (added)
lp().stats().m_offset_eqs++;
if (added) {
if (is_fixed)
lp().stats().m_fixed_eqs++;
else
lp().stats().m_offset_eqs++;
}
return added;
}

View file

@ -121,6 +121,7 @@ struct statistics {
unsigned m_grobner_calls;
unsigned m_grobner_conflicts;
unsigned m_offset_eqs;
unsigned m_fixed_eqs;
statistics() { reset(); }
void reset() { memset(this, 0, sizeof(*this)); }
void collect_statistics(::statistics& st) const {
@ -142,6 +143,7 @@ struct statistics {
st.update("arith-grobner-calls", m_grobner_calls);
st.update("arith-grobner-conflicts", m_grobner_conflicts);
st.update("arith-offset-eqs", m_offset_eqs);
st.update("arith-fixed-eqs", m_fixed_eqs);
}
};