3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-12 05:36:16 +00:00

fix a bug with non-adding ldcf

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2026-01-11 16:15:42 -10:00
parent 66ef878162
commit 9bf3ed0e7f
2 changed files with 683 additions and 692 deletions

File diff suppressed because it is too large Load diff

View file

@ -240,7 +240,8 @@ namespace nlsat {
unsigned m_stages;
unsigned m_irrational_assignments; // number of irrational witnesses
unsigned m_levelwise_calls;
unsigned m_levelwise_successes;
unsigned m_levelwise_failures;
unsigned m_lws_initial_fail;
void reset() { memset(this, 0, sizeof(*this)); }
stats() { reset(); }
};
@ -2754,7 +2755,7 @@ namespace nlsat {
st.update("nlsat simplifications", m_stats.m_simplifications);
st.update("nlsat irrational assignments", m_stats.m_irrational_assignments);
st.update("levelwise calls", m_stats.m_levelwise_calls);
st.update("levelwise successes", m_stats.m_levelwise_successes);
st.update("levelwise failures", m_stats.m_levelwise_failures);
}
void reset_statistics() {
@ -4620,8 +4621,8 @@ namespace nlsat {
void solver::record_levelwise_result(bool success) {
m_imp->m_stats.m_levelwise_calls++;
if (success)
m_imp->m_stats.m_levelwise_successes++;
if (!success)
m_imp->m_stats.m_levelwise_failures++;
}
bool solver::has_root_atom(clause const& c) const {