@@ -46,6 +46,8 @@ void CompAnalyzer::calc_blocked(
4646{
4747 const uint32_t n = max_var+1 ;
4848 clid_to_blocking_lits.resize (long_irred_cls.size ()+1 );
49+ if (!conf.do_blocked_clauses ) return ;
50+
4951 if (counter->get_opt_indep_support_end () >= max_var+1 ) {
5052 verb_print (1 , " No need to calculate blocked clauses, as all vars are opt independent" );
5153 return ;
@@ -232,6 +234,7 @@ void CompAnalyzer::initialize(
232234 auto long_irred_cls = _long_irred_cls;
233235 std::stable_sort (long_irred_cls.begin (), long_irred_cls.end (), mysorter);
234236 calc_blocked (watches, alloc, long_irred_cls);
237+ uint32_t example_blocked_cls = 0 ;
235238
236239 max_clid = 1 ;
237240 max_tri_clid = 1 ;
@@ -252,6 +255,8 @@ void CompAnalyzer::initialize(
252255 if (!blk_lits.empty ()) {
253256 std::shuffle (blk_lits.begin (), blk_lits.end (), mtrand);
254257 example_blocking = blk_lits[0 ];
258+ verb_print (5 , " Example blocking: " << example_blocking << " for cl: " << cl);
259+ example_blocked_cls++;
255260 }
256261
257262 if (cl.size () > 3 ) {
@@ -290,6 +295,8 @@ void CompAnalyzer::initialize(
290295 /* cout << endl; */
291296 max_clid++;
292297 }
298+ verb_print (1 , " Example blocked cls: " << example_blocked_cls << " / " << long_irred_cls.size ()
299+ << " = " << (double )example_blocked_cls/(double )long_irred_cls.size ()*100 << " %" );
293300 /* cout << "max clid: " << max_clid << " max_tri_clid: " << max_tri_clid << endl;; */
294301 debug_print (COLBLBACK " Built occ list in CompAnalyzer::initialize." );
295302
0 commit comments