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

Function OutputArrayCtrlVars

src/Variable.cpp:849–861  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

847
848// --------------------------------------------------------------
849void
850OutputArrayCtrlVars(const vector <const Variable*> &ctrl_vars, std::ostream &out, size_t dimen, int indent)
851{
852 assert(dimen <= ctrl_vars.size());
853 output_tab(out, indent);
854 out << "int ";
855 for (size_t i=0; i<dimen; i++) {
856 out << ctrl_vars[i]->get_actual_name();
857 out << ((i==dimen-1) ? "" : ", ");
858 }
859 out << ";";
860 outputln(out);
861}
862
863size_t
864Variable::GetMaxArrayDimension(const vector<Variable*>& vars)

Callers 4

OutputHashFuncDefMethod · 0.85
output_varsMethod · 0.85
output_addr_checksMethod · 0.85
OutputArrayInitializersFunction · 0.85

Calls 4

output_tabFunction · 0.85
outputlnFunction · 0.85
sizeMethod · 0.80
get_actual_nameMethod · 0.80

Tested by

no test coverage detected