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

Method create_array_and_itemize

src/VariableSelector.cpp:1305–1313  ·  view source on GitHub ↗

* create an array, and return an itemized member */

Source from the content-addressed store, hash-verified

1303 * create an array, and return an itemized member
1304 */
1305ArrayVariable*
1306VariableSelector::create_array_and_itemize(Block* blk, string name, const CGContext& cg_context,
1307 const Type* t, const Expression* init, const CVQualifiers* qfer)
1308{
1309 ArrayVariable* av = ArrayVariable::CreateArrayVariable(cg_context, blk, name, t, init, qfer, NULL);
1310 ERROR_GUARD(NULL);
1311 AllVars.push_back(av);
1312 return av->itemize();
1313}
1314
1315/*
1316 * create an array of random type, non-qualifier, with random initial value, in a random block (or as global)

Callers

nothing calls this directly

Calls 1

itemizeMethod · 0.80

Tested by

no test coverage detected