mirror of
https://github.com/Z3Prover/z3
synced 2025-08-08 04:01:22 +00:00
differentiate fixed from offset-eq in statistics
This commit is contained in:
parent
ec1480b12a
commit
a2bac119d3
2 changed files with 8 additions and 2 deletions
|
@ -578,8 +578,12 @@ public:
|
||||||
);
|
);
|
||||||
|
|
||||||
bool added = m_imp.add_eq(je, ke, exp, is_fixed);
|
bool added = m_imp.add_eq(je, ke, exp, is_fixed);
|
||||||
if (added)
|
if (added) {
|
||||||
|
if (is_fixed)
|
||||||
|
lp().stats().m_fixed_eqs++;
|
||||||
|
else
|
||||||
lp().stats().m_offset_eqs++;
|
lp().stats().m_offset_eqs++;
|
||||||
|
}
|
||||||
return added;
|
return added;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,6 +121,7 @@ struct statistics {
|
||||||
unsigned m_grobner_calls;
|
unsigned m_grobner_calls;
|
||||||
unsigned m_grobner_conflicts;
|
unsigned m_grobner_conflicts;
|
||||||
unsigned m_offset_eqs;
|
unsigned m_offset_eqs;
|
||||||
|
unsigned m_fixed_eqs;
|
||||||
statistics() { reset(); }
|
statistics() { reset(); }
|
||||||
void reset() { memset(this, 0, sizeof(*this)); }
|
void reset() { memset(this, 0, sizeof(*this)); }
|
||||||
void collect_statistics(::statistics& st) const {
|
void collect_statistics(::statistics& st) const {
|
||||||
|
@ -142,6 +143,7 @@ struct statistics {
|
||||||
st.update("arith-grobner-calls", m_grobner_calls);
|
st.update("arith-grobner-calls", m_grobner_calls);
|
||||||
st.update("arith-grobner-conflicts", m_grobner_conflicts);
|
st.update("arith-grobner-conflicts", m_grobner_conflicts);
|
||||||
st.update("arith-offset-eqs", m_offset_eqs);
|
st.update("arith-offset-eqs", m_offset_eqs);
|
||||||
|
st.update("arith-fixed-eqs", m_fixed_eqs);
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue