| 139 | } |
| 140 | |
| 141 | static void cx_emit_go(FILE *f, int m, int j) { |
| 142 | fprintf(f, "package mod%d\n\n", m); |
| 143 | fprintf(f, "func Val%d(x int) int {\n\treturn x + %d\n}\n\n", j, j); |
| 144 | if (j > 0) { |
| 145 | fprintf(f, "func Chain%d() int {\n\treturn Val%d(1) + Val%d(2)\n}\n", j, j - 1, j); |
| 146 | } else { |
| 147 | fprintf(f, "func Chain0() int {\n\treturn Val0(2)\n}\n"); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | static void cx_emit_ts(FILE *f, int m, int j) { |
| 152 | (void)m; |
nothing calls this directly
no outgoing calls
no test coverage detected