| 924 | } |
| 925 | |
| 926 | void |
| 927 | ReducerOutputMgr::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 | |
| 948 | void |
| 949 | ReducerOutputMgr::OutputStructUnions(ostream& out) |
nothing calls this directly
no test coverage detected