MCPcopy Create free account
hub / github.com/csmith-project/csmith / output_counters

Method output_counters

src/Bookkeeper.cpp:533–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533void
534Bookkeeper::output_counters(std::ostream &out, const char* prefix_msg,
535 const char* breakdown_msg, const std::vector<int> &counters, int starting_pos)
536{
537 assert(prefix_msg && breakdown_msg);
538 formated_output(out, prefix_msg, calc_total(counters));
539 out << "breakdown:" << std::endl;
540 for (size_t i=starting_pos; i<counters.size(); i++) {
541 out << " " << breakdown_msg << ": " << i << ", occurrence: " << counters[i] << endl;
542 }
543}
544
545void incr_counter(std::vector<int>& counters, int pos)
546{

Callers

nothing calls this directly

Calls 3

formated_outputFunction · 0.85
calc_totalFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected