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

Method new_variable

src/VariableSelector.cpp:164–171  ·  view source on GitHub ↗

------------------------------------------------------------- * generate a new variable and store into AllVars */

Source from the content-addressed store, hash-verified

162 * generate a new variable and store into AllVars
163 */
164Variable *
165VariableSelector::new_variable(const std::string &name, const Type *type, const Expression* init, const CVQualifiers* qfer)
166{
167 Variable *var = Variable::CreateVariable(name, type, init, qfer);
168 ERROR_GUARD(NULL);
169 AllVars.push_back(var);
170 return var;
171}
172
173/*
174 *expand each struct/union field to a single variable

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected