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

Method RandomOutputVarDefs

src/DefaultOutputMgr.cpp:160–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void
161DefaultOutputMgr::RandomOutputVarDefs()
162{
163 vector<Variable*> *globals = VariableSelector::GetGlobalVariables();
164 size_t size = outs.size();
165 vector<Variable*>::iterator i;
166 for (i = globals->begin(); i != globals->end(); ++i) {
167 int index = pure_rnd_upto(size);
168 ostream *out = outs[index];
169 (*i)->OutputDef(*out, 0);
170 }
171}
172
173void
174DefaultOutputMgr::RandomOutputFuncDefs()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected