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

Method make_binary

src/FunctionInvocation.cpp:559–571  ·  view source on GitHub ↗

* Build an "invocation" of a binary operation. */

Source from the content-addressed store, hash-verified

557 * Build an "invocation" of a binary operation.
558 */
559FunctionInvocation *
560FunctionInvocation::make_binary(CGContext &cg_context, eBinaryOps op,
561 Expression *lhs, Expression *rhs)
562{
563 DEPTH_GUARD_BY_TYPE_RETURN(dtFunctionInvocationBinary, NULL);
564 SafeOpFlags *flags = SafeOpFlags::make_random_binary(NULL, &(lhs->get_type()), &(rhs->get_type()), sOpBinary, op);
565 ERROR_GUARD(NULL);
566 FunctionInvocation *fi = FunctionInvocationBinary::CreateFunctionInvocationBinary(cg_context, op, flags);
567 fi->param_value.push_back(lhs);
568 fi->param_value.push_back(rhs);
569
570 return fi;
571}
572
573/*
574 *

Callers

nothing calls this directly

Calls 1

get_typeMethod · 0.45

Tested by

no test coverage detected