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

Function cx_emit_go

tests/test_complexity.c:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141static 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
151static void cx_emit_ts(FILE *f, int m, int j) {
152 (void)m;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected