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

Method Output

src/DefaultOutputMgr.cpp:200–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void
201DefaultOutputMgr::Output()
202{
203 std::ostream &out = get_main_out();
204 if (DeltaMonitor::is_running() && (Error::get_error() != SUCCESS)) {
205 out << "Delta reduction error!\n";
206 }
207 if (is_split()) {
208 OutputGlobals();
209 OutputAllHeaders();
210 RandomOutputDefs();
211 }
212 else {
213 OutputStructUnionDeclarations(out);
214 OutputGlobalVariables(out);
215 OutputForwardDeclarations(out);
216 OutputFunctions(out);
217 }
218 if (CGOptions::step_hash_by_stmt()) {
219 OutputMgr::OutputHashFuncDef(out);
220 OutputMgr::OutputStepHashFuncDef(out);
221 }
222
223 if (!CGOptions::nomain())
224 OutputMain(out);
225 OutputTail(out);
226 DeltaMonitor::Output(out);
227}
228
229std::ostream &
230DefaultOutputMgr::get_main_out()

Callers 1

RandomOutputFuncDefsMethod · 0.45

Calls 4

OutputGlobalVariablesFunction · 0.85
OutputFunctionsFunction · 0.85

Tested by

no test coverage detected