MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cx_emit_python

Function cx_emit_python

tests/test_complexity.c:128–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128static 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
141static void cx_emit_go(FILE *f, int m, int j) {
142 fprintf(f, "package mod%d\n\n", m);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected