| 63 | class ReduceGNode : public GNode { |
| 64 | public: |
| 65 | CStatus run() override { |
| 66 | int total = 0; |
| 67 | auto param = CGRAPH_GET_GPARAM_WITH_NO_EMPTY(NumsGParam, PARAM_KEY); |
| 68 | for (int j = 0; j < MAX_NUM; j++) { |
| 69 | int num = 0; |
| 70 | for (int i = 0; i < MAP_SIZE; i++) { |
| 71 | num += param->map_results_[i][j]; |
| 72 | } |
| 73 | total += num; |
| 74 | printf(" num [%d] appear [%d] times\n", j, num); |
| 75 | } |
| 76 | |
| 77 | printf("total num is [%d]. \n", total); |
| 78 | return CStatus(); |
| 79 | } |
| 80 | }; |
| 81 | |
| 82 |
nothing calls this directly
no outgoing calls
no test coverage detected