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

Method make_random

src/StatementArrayOp.cpp:79–89  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

77 *
78 */
79Statement*
80StatementArrayOp::make_random(CGContext &cg_context)
81{
82 bool ary_init = rnd_flipcoin(5);
83 ERROR_GUARD(NULL);
84 if (ary_init) {
85 return make_random_array_init(cg_context);
86 }
87 StatementFor* sf = StatementFor::make_random_array_loop(cg_context);
88 return sf;
89}
90
91StatementArrayOp *
92StatementArrayOp::make_random_array_init(CGContext &cg_context)

Callers

nothing calls this directly

Calls 1

rnd_flipcoinFunction · 0.85

Tested by

no test coverage detected