void tarjan_print_stats (run_t *run, wctx_t *ctx) { counter_t *reduced = (counter_t *) run->reduced; // print SCC statistics Warning(info, "unique states count: %zu", ctx->counters->explored); Warning(info, "unique transitions count: %zu", ctx->counters->trans); Warning(info, "total scc count: %d", reduced->scc_count); Warning(info, " "); run_report_total (run); }
void ndfs_print_stats (run_t *run, wctx_t *ctx) { size_t db_elts = global->stats.elts; size_t accepting = run->reduced->blue.accepting / W; run_report_total (run); Warning (info, " "); Warning (info, "State space has %zu states, %zu are accepting", db_elts, accepting); run->total.explored /= W; run->total.trans /= W; run->reduced->red_work.trans /= W; run->reduced->red_work.explored /= W; run->reduced->red.bogus_red /= W; run->reduced->blue.allred /= W; run->reduced->red.allred /= W; ndfs_print_state_stats (run, ctx, 0, 0); }
void cndfs_print_stats (run_t *run, wctx_t *ctx) { size_t db_elts = global->stats.elts; size_t accepting = run->reduced->blue.accepting; run_report_total (run); Warning (info, " "); Warning (info, "State space has %zu states, %zu are accepting", db_elts, accepting); wctx_t *cur = ctx; int index = 1; while (cur != NULL) { cndfs_reduced_t *creduced = (cndfs_reduced_t *) cur->run->reduced; alg_reduced_t *reduced = cur->run->reduced; ctx->counters->explored /= W; ctx->counters->trans /= W; reduced->red_work.explored /= W; reduced->red_work.trans /= W; reduced->red.bogus_red /= W; ndfs_print_state_stats (cur->run, cur, index, creduced->waittime); if (cur->local->strat & Strat_ENDFS) { Warning (infoLong, " "); Warning (infoLong, "ENDFS recursive calls:"); Warning (infoLong, "Calls: %zu", creduced->rec); Warning (infoLong, "Waits: %zu", reduced->blue.waits); } cur = cur->global != NULL ? cur->global->rec : NULL; index++; } cndfs_reduced_t *cred = (cndfs_reduced_t *) run->reduced; double mem3 = ((double)((cred->max_load * sizeof(ref_t[2])))) / (1ULL<<20); Warning (info, " "); Warning (info, "Total memory used for local state coloring: %.1fMB", mem3); }