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

Method make_random

src/ExpressionComma.cpp:59–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59ExpressionComma*
60ExpressionComma::make_random(CGContext &cg_context, const Type* type, const CVQualifiers* qfer)
61{
62 Expression* lhs = Expression::make_random(cg_context, NULL, NULL, false, true);
63 Expression* rhs = Expression::make_random(cg_context, type, qfer, false, false);
64 // typecast, if needed.
65 if(CGOptions::lang_cpp())
66 cast_if_needed(rhs);
67 ExpressionComma* ec = new ExpressionComma(*lhs, *rhs);
68 return ec;
69}
70
71ExpressionComma::ExpressionComma(const Expression& l, const Expression& r)
72 : Expression(eCommaExpr),

Callers

nothing calls this directly

Calls 1

cast_if_neededFunction · 0.85

Tested by

no test coverage detected