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

Function cp_index_parallel

tests/test_convergence_probe.c:305–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303enum { CP_PARALLEL_PAD = 52, CP_PAD_MAX = 80 };
304
305static cbm_store_t *cp_index_parallel(CP_Proj *lp, const CP_File *meaningful, int n_mean) {
306 static char pad_name[CP_PARALLEL_PAD][48];
307 static char pad_body[CP_PARALLEL_PAD][64];
308 CP_File files[CP_PAD_MAX] = {{0}};
309 int n = 0;
310 for (int i = 0; i < n_mean; i++) files[n++] = meaningful[i];
311 for (int i = 0; i < CP_PARALLEL_PAD; i++) {
312 snprintf(pad_name[i], sizeof(pad_name[i]), "pad/pad_%02d.py", i);
313 snprintf(pad_body[i], sizeof(pad_body[i]), "def pad_%02d():\n return %d\n", i, i);
314 files[n].name = pad_name[i];
315 files[n].content = pad_body[i];
316 n++;
317 }
318 return cp_index_files(lp, files, n);
319}
320
321/* ══════════════════════════════════════════════════════════════════
322 * AREA A — CONFIGURES edges

Callers 1

Calls 1

cp_index_filesFunction · 0.85

Tested by

no test coverage detected