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

Method output_func_header

src/ReducerOutputMgr.cpp:224–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224int
225ReducerOutputMgr::output_func_header(const Function* f, std::ostream& out)
226{
227 // output function header
228 out << "static ";
229 f->rv->qfer.output_qualified_type(f->return_type, out);
230 out << " " << f->name << "(";
231 size_t i;
232 bool first = true;
233 for (i=0; i<f->param.size(); i++) {
234 const Variable* var = f->param[i];
235 if (!reducer->is_param_dropped(f, i)) {
236 if (!first) {
237 out << ", ";
238 }
239 var->output_qualified_type(out);
240 out << " " << var->name;
241 first = false;
242 }
243 }
244 out << ")";
245 return 0;
246}
247
248void
249ReducerOutputMgr::output_crc_lines(std::ostream& out)

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
is_param_droppedMethod · 0.80
output_qualified_typeMethod · 0.45

Tested by

no test coverage detected