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

Method OutputHashFuncDef

src/OutputMgr.cpp:226–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void
227OutputMgr::OutputHashFuncDef(std::ostream &out)
228{
229 out << "void " << OutputMgr::hash_func_name << "(void)" << std::endl;
230 out << "{" << std::endl;
231
232 size_t dimen = Variable::GetMaxArrayDimension(*VariableSelector::GetGlobalVariables());
233 if (dimen) {
234 vector <const Variable*> &ctrl_vars = Variable::get_new_ctrl_vars();
235 OutputArrayCtrlVars(ctrl_vars, out, dimen, 1);
236 }
237 HashGlobalVariables(out);
238 out << "}" << std::endl;
239}
240
241void
242OutputMgr::OutputTail(std::ostream &out)

Callers

nothing calls this directly

Calls 2

OutputArrayCtrlVarsFunction · 0.85
HashGlobalVariablesFunction · 0.85

Tested by

no test coverage detected