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

Method get_binop_string

src/FunctionInvocationBinary.cpp:299–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299std::string
300FunctionInvocationBinary::get_binop_string(eBinaryOps bop)
301{
302 string op_string;
303 switch (bop)
304 {
305 case eAdd: op_string = "+"; break;
306 case eSub: op_string = "-"; break;
307 case eMul: op_string = "*"; break;
308 case eDiv: op_string = "/"; break;
309 case eMod: op_string = "%"; break;
310 case eBitAnd: op_string = "&"; break;
311 case eBitXor: op_string = "^"; break;
312 case eBitOr: op_string = "|"; break;
313 default: assert(0); break;
314 }
315 return op_string;
316}
317
318/*
319 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected