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

Function cp_index_parallel

tests/test_convergence_probe.c:327–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325enum { CP_PARALLEL_PAD = 52, CP_PAD_MAX = 80 };
326
327static cbm_store_t *cp_index_parallel(CP_Proj *lp, const CP_File *meaningful, int n_mean) {
328 static char pad_name[CP_PARALLEL_PAD][48];
329 static char pad_body[CP_PARALLEL_PAD][64];
330 CP_File files[CP_PAD_MAX] = {{0}};
331 int n = 0;
332 for (int i = 0; i < n_mean; i++) files[n++] = meaningful[i];
333 for (int i = 0; i < CP_PARALLEL_PAD; i++) {
334 snprintf(pad_name[i], sizeof(pad_name[i]), "pad/pad_%02d.py", i);
335 snprintf(pad_body[i], sizeof(pad_body[i]), "def pad_%02d():\n return %d\n", i, i);
336 files[n].name = pad_name[i];
337 files[n].content = pad_body[i];
338 n++;
339 }
340 return cp_index_files(lp, files, n);
341}
342
343/* ══════════════════════════════════════════════════════════════════
344 * AREA A — CONFIGURES edges

Callers 1

Calls 1

cp_index_filesFunction · 0.85

Tested by

no test coverage detected