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

Method output_post_stm_values

src/ReducerOutputMgr.cpp:376–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376void
377ReducerOutputMgr::output_post_stm_values(const Statement* stm, std::ostream &out, FactMgr* fm, int indent)
378{
379 // print value of variables that may have been written by the statement
380 if (find_stm_in_set(reducer->dump_value_after, stm) != -1) {
381 assert(stm->parent);
382 string blkid = StringUtils::int2str(stm->parent->stm_id);
383 string id = StringUtils::int2str(stm->stm_id);
384 out << "/* replacing " << blkid << " " << id << " after" << endl;
385 output_write_var_values("values after " + id + "...\\n", stm, out, fm, indent, true);
386 output_memory_addrs(stm, out, indent);
387 out << "*/" << endl;
388 }
389}
390
391/*
392 * compute the real "meaningful" length of statement or expression

Callers

nothing calls this directly

Calls 1

find_stm_in_setFunction · 0.85

Tested by

no test coverage detected