| 126 | } |
| 127 | |
| 128 | static void cx_emit_python(FILE *f, int m, int j) { |
| 129 | (void)m; |
| 130 | if (j > 0) { |
| 131 | fprintf(f, "import f%d\n\n", j - 1); |
| 132 | } |
| 133 | fprintf(f, "def val%d(x):\n return x + %d\n\n", j, j); |
| 134 | if (j > 0) { |
| 135 | fprintf(f, "def chain%d():\n return f%d.val%d(1) + val%d(2)\n", j, j - 1, j - 1, j); |
| 136 | } else { |
| 137 | fprintf(f, "def chain0():\n return val0(2)\n"); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | static void cx_emit_go(FILE *f, int m, int j) { |
| 142 | fprintf(f, "package mod%d\n\n", m); |
nothing calls this directly
no outgoing calls
no test coverage detected