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

Method Output

src/Block.cpp:289–317  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

287 *
288 */
289void
290Block::Output(std::ostream &out, FactMgr* fm, int indent) const
291{
292 output_tab(out, indent);
293 out << "{ ";
294 std::ostringstream ss;
295 ss << "block id: " << stm_id;
296 output_comment_line(out, ss.str());
297
298 if (CGOptions::depth_protect()) {
299 out << "DEPTH++;" << endl;
300 }
301
302 indent++;
303 if (CGOptions::math_notmp())
304 OutputTmpVariableList(out, indent);
305
306 OutputVariableList(local_vars, out, indent);
307 OutputStatementList(stms, out, fm, indent);
308
309 if (CGOptions::depth_protect()) {
310 out << "DEPTH--;" << endl;
311 }
312 indent--;
313
314 output_tab(out, indent);
315 out << "}";
316 outputln(out);
317}
318
319/* find the last effective statement for this block, note
320 * a return statement terminates the block before reaching the

Callers 2

OutputTmpVariableListMethod · 0.45
OutputStatementListFunction · 0.45

Calls 5

output_tabFunction · 0.85
output_comment_lineFunction · 0.85
OutputVariableListFunction · 0.85
OutputStatementListFunction · 0.85
outputlnFunction · 0.85

Tested by

no test coverage detected