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

Method indented_output

src/FunctionInvocationUnary.cpp:263–290  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

261 *
262 */
263void
264FunctionInvocationUnary::indented_output(std::ostream &out, int indent) const
265{
266 out << "(";
267 switch (eFunc) {
268 default:
269 assert(!"invalid operator in FunctionInvocationUnary::Output()");
270 break;
271
272 case eMinus:
273 if (CGOptions::avoid_signed_overflow()) {
274 out << op_flags->to_string(eFunc);
275 output_open_encloser("(", out, indent);
276 param_value[0]->indented_output(out, indent);
277 output_close_encloser(")", out, indent);
278 break;
279 }
280 // Fallthrough!
281
282 case ePlus:
283 case eNot:
284 case eBitNot:
285 OutputStandardFuncName(eFunc, out);
286 param_value[0]->indented_output(out, indent);
287 break;
288 }
289 out << ")";
290}
291
292///////////////////////////////////////////////////////////////////////////////
293

Callers

nothing calls this directly

Calls 4

output_open_encloserFunction · 0.85
output_close_encloserFunction · 0.85
OutputStandardFuncNameFunction · 0.70
to_stringMethod · 0.45

Tested by

no test coverage detected