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

Method make_random

src/ExpressionAssign.cpp:51–64  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

49 *
50 */
51Expression *
52ExpressionAssign::make_random(CGContext &cg_context, const Type* type, const CVQualifiers* qfer)
53{
54 CVQualifiers qf;
55 if (qfer == NULL) {
56 qf = CVQualifiers::random_qualifiers(type, Effect::WRITE, cg_context, true);
57 qfer = &qf;
58 }
59 StatementAssign* sa = StatementAssign::make_random(cg_context, type, qfer);
60 FactMgr* fm = get_fact_mgr(&cg_context);
61 FactMgr::update_fact_for_assign(sa, fm->global_facts);
62 ExpressionAssign* ea = new ExpressionAssign(sa);
63 return ea;
64}
65
66ExpressionAssign::ExpressionAssign(const StatementAssign* sa)
67: Expression(eAssignment),

Callers

nothing calls this directly

Calls 1

get_fact_mgrFunction · 0.85

Tested by

no test coverage detected