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

Method output_global_values

src/ReducerOutputMgr.cpp:926–946  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

924}
925
926void
927ReducerOutputMgr::output_global_values(string header, std::ostream& out, int indent)
928{
929 size_t i;
930 // dump values of global variables
931 // "begin global vars entering main \\n"
932 output_print_str(out, header, "", indent);
933 outputln(out);
934 for (i=0; i<reducer->used_vars.size(); i++) {
935 const Variable* v = reducer->used_vars[i];
936 if (v->is_global()) {
937 ostringstream oss;
938 string dimen = StringUtils::int2str(v->get_dimension());
939 oss << "<" << v->get_actual_name() << "(" << dimen << ")" << " = ";
940 v->output_runtime_value(out, oss.str(), ">\\n", indent);
941 outputln(out);
942 }
943 }
944 output_print_str(out, "end of values\\n", "", indent);
945 outputln(out);
946}
947
948void
949ReducerOutputMgr::OutputStructUnions(ostream& out)

Callers

nothing calls this directly

Calls 7

output_print_strFunction · 0.85
outputlnFunction · 0.85
sizeMethod · 0.80
get_actual_nameMethod · 0.80
output_runtime_valueMethod · 0.80
is_globalMethod · 0.45
get_dimensionMethod · 0.45

Tested by

no test coverage detected