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

Method OutputFirstFunInvocation

src/CoverageTestExtension.cpp:112–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void
113CoverageTestExtension::OutputFirstFunInvocation(std::ostream &out, FunctionInvocation *invoke)
114{
115 out << AbsExtension::tab_ << "for(" << array_index_ << " = 0; ";
116 out << array_index_ << " < " << inputs_size_ << "; " << array_index_ << "++) {" << std::endl;
117 vector<ExtensionValue *>::iterator i;
118 int count = 0;
119 for (i = values_.begin(); i != values_.end(); ++i) {
120 out << AbsExtension::tab_ << AbsExtension::tab_;
121 out << (*i)->get_name() << " = ";
122 out << CoverageTestExtension::array_base_name_ << count;
123 out << "[" << array_index_ << "];" << std::endl;
124 count++;
125 }
126 assert(invoke);
127 out << AbsExtension::tab_ << AbsExtension::tab_;
128 invoke->Output(out);
129 out << ";" << std::endl;
130 out << AbsExtension::tab_ << "}" << std::endl;
131}
132
133void
134CoverageTestExtension::OutputInit(std::ostream &out)

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
OutputMethod · 0.45

Tested by

no test coverage detected