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

Method RandomOutputFuncDefs

src/DefaultOutputMgr.cpp:173–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void
174DefaultOutputMgr::RandomOutputFuncDefs()
175{
176 const vector<Function*> &funcs = get_all_functions();
177 size_t size = outs.size();
178 vector<Function*>::const_iterator i;
179 for (i = funcs.begin(); i != funcs.end(); ++i) {
180 if ((*i)->is_builtin)
181 continue;
182 int index = pure_rnd_upto(size);
183 (*i)->Output(*outs[index]);
184 }
185}
186
187void
188DefaultOutputMgr::RandomOutputDefs()

Callers

nothing calls this directly

Calls 5

pure_rnd_uptoFunction · 0.85
sizeMethod · 0.80
beginMethod · 0.80
endMethod · 0.80
OutputMethod · 0.45

Tested by

no test coverage detected