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

Function OutputVariableList

src/Variable.cpp:911–922  ·  view source on GitHub ↗

--------------------------------------------------------------

Source from the content-addressed store, hash-verified

909
910// --------------------------------------------------------------
911void
912OutputVariableList(const vector<Variable*> &vars, std::ostream &out, int indent)
913{
914 size_t i;
915 // have to use iterator instead of map because we need indent as paramter
916 for (i=0; i<vars.size(); i++) {
917 vars[i]->OutputDef(out, indent);
918 }
919 if (!vars.empty() && !vars[0]->is_global()) {
920 OutputArrayInitializers(vars, out, indent);
921 }
922}
923
924void
925OutputVariableDeclList(const vector<Variable*> &var, std::ostream &out, std::string prefix, int indent)

Callers 2

OutputMethod · 0.85
OutputGlobalVariablesFunction · 0.85

Calls 4

OutputArrayInitializersFunction · 0.85
sizeMethod · 0.80
OutputDefMethod · 0.45
is_globalMethod · 0.45

Tested by

no test coverage detected