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

Method safe_float_func_string

src/SafeOpFlags.cpp:307–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307std::string
308SafeOpFlags::safe_float_func_string(enum eBinaryOps op) const
309{
310 string s;
311 switch (op) {
312 case eAdd: s = "safe_add_"; break;
313 case eSub: s = "safe_sub_"; break;
314 case eMul: s = "safe_mul_"; break;
315 case eDiv: s = "safe_div_"; break;
316 default: assert(0); break;
317 }
318 s += "func_float_f_f";
319 return s;
320
321}
322
323/* find the safe math function/macro name */
324std::string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected