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

Function OutputArrayInitializers

src/Variable.cpp:881–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879}
880
881void
882OutputArrayInitializers(const vector<Variable*>& vars, std::ostream &out, int indent)
883{
884 size_t i, dimen;
885 dimen = Variable::GetMaxArrayDimension(vars);
886 if (dimen) {
887 vector <const Variable*> &ctrl_vars = Variable::get_new_ctrl_vars();
888 OutputArrayCtrlVars(ctrl_vars, out, dimen, indent);
889 for (i=0; i<vars.size(); i++) {
890 if (vars[i]->isArray) {
891 ArrayVariable* av = (ArrayVariable*)(vars[i]);
892 if (!av->no_loop_initializer()) {
893 av->output_init(out, av->init, ctrl_vars, indent);
894 }
895 }
896 }
897 }
898}
899
900void OutputVolatileAddress(const vector<Variable*> &vars, std::ostream &out, int indent, const string &fp_string)
901{

Callers 2

OutputMainMethod · 0.85
OutputVariableListFunction · 0.85

Calls 4

OutputArrayCtrlVarsFunction · 0.85
sizeMethod · 0.80
no_loop_initializerMethod · 0.80
output_initMethod · 0.80

Tested by

no test coverage detected