45 void dbg_prt_all_cho(
brain& brn);
47 bool dbg_check_lev(solver* slv,
long lev);
48 bj_ostream& dbg_get_out_stm(solver* slv);
56 #define REL_PRT(pt_brn, comms1) 74 #define DBG_ALL_LVS -1 75 #define INVALID_DBG_LV -123 77 #define DBG_BR_COND(pt_slv, lev, cond) (dbg_check_lev(pt_slv, lev) && (cond)) 79 #define DBG_COND(lev, cond) DBG_BR_COND(get_dbg_slv(), lev, cond) 81 #define DBG_COMMAND(lev, comm) \ 83 if(DBG_COND(lev, true)){ \ 90 #define DBG_COMM_WITH(lev, obj, comm) \ 92 if(DBG_BR_COND((obj).get_dbg_slv(), lev, true)){ \ 99 void dbg_print_left_margin(solver* pt_slv, bj_ostream& os,
long dbg_lv);
104 #define DBG_PRT_SLV(pt_slv, o_stm, lev, cond, comm) \ 106 if(DBG_BR_COND(pt_slv, lev, cond)){ \ 107 bj_ostream& os = dbg_get_out_stm(pt_slv); \ 108 bool is_htm_1 = false; \ 109 if(is_htm_1){ os << bj_eol << "<pre>"; } \ 110 dbg_print_left_margin(pt_slv, os, lev); \ 112 if(is_htm_1){ os << "</pre>" << bj_eol; } \ 120 #define DBG_PRT_COND(lev, cond, comm) \ 121 DBG_PRT_SLV(get_dbg_slv(), bj_dbg, lev, cond, comm) 123 #define DBG_PRT_COND_WITH(lev, obj, cond, comm) \ 124 DBG_PRT_SLV((obj).get_dbg_slv(), bj_dbg, lev, cond, comm) 126 #define DBG_PRT_WITH(lev, obj, comm) \ 127 DBG_PRT_SLV((obj).get_dbg_slv(), bj_dbg, lev, true, comm) 129 #define DBG_PRT(lev, comm) DBG_PRT_COND(lev, true, comm) 131 #define DBG_BJ_LIB_CK(prm) DBG_CK(prm) 133 #define DBG_SLOW(prm) 136 #define DBG_PRT_ABORT(brn) \ 137 os << "\n________________\n ABORT_DATA\n"; \ 138 brn.dbg_prt_margin(os); \ 143 ch_string get_cy_dir(
brain& brn);
146 void dbg_prt_open(ch_string& path, bj_ofstream& stm,
bool append =
false);
149 #endif // DBG_PRINT_H Class that holds all data used to solve a particular CNF instance.
Definition: brain.h:3085