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

Method OutputHeader

src/ReducerOutputMgr.cpp:102–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void
103ReducerOutputMgr::OutputHeader(int argc, char *argv[], unsigned long /*seed*/)
104{
105 // output shortened header: csmith options + random_inc.h include
106 ostream& out = get_main_out();
107 out << "// Options: ";
108 if (argc <= 1) {
109 out << " (none)";
110 } else {
111 for (int i = 1; i < argc; ++i) {
112 out << " " << argv[i];
113 }
114 }
115 out << endl;
116 out << "#include \"csmith.h\"" << endl << endl;
117}
118
119void
120ReducerOutputMgr::output_var(const Variable* v, std::ostream &out, int indent)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected