3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 09:05:31 +00:00

reworking pd-maxres

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-08-20 12:20:30 -07:00
parent e3cb0e2d8b
commit a9807878ea
7 changed files with 23 additions and 18 deletions

View file

@ -925,6 +925,7 @@ namespace sat {
else {
svector<literal> blocker;
if (!init_weighted_assumptions(num_lits, lits, weights, max_weight, blocker)) {
++m_stats.m_blocked_corr_sets;
pop_to_base_level();
mk_clause(blocker.size(), blocker.c_ptr());
goto retry_init_assumptions;
@ -2811,6 +2812,7 @@ namespace sat {
st.update("restarts", m_restart);
st.update("minimized lits", m_minimized_lits);
st.update("dyn subsumption resolution", m_dyn_sub_res);
st.update("blocked correction sets", m_blocked_corr_sets);
}
void stats::reset() {
@ -2829,6 +2831,7 @@ namespace sat {
m_minimized_lits = 0;
m_dyn_sub_res = 0;
m_non_learned_generation = 0;
m_blocked_corr_sets = 0;
}
void mk_stat::display(std::ostream & out) const {

View file

@ -60,6 +60,7 @@ namespace sat {
unsigned m_minimized_lits;
unsigned m_dyn_sub_res;
unsigned m_non_learned_generation;
unsigned m_blocked_corr_sets;
stats() { reset(); }
void reset();
void collect_statistics(statistics & st) const;