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

Function label_count

src/pipeline/pass_complexity.c:309–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309static int label_count(const cbm_gbuf_t *gb, const char *label) {
310 const cbm_gbuf_node_t **nodes = NULL;
311 int count = 0;
312 if (cbm_gbuf_find_by_label(gb, label, &nodes, &count) != 0) {
313 return 0;
314 }
315 return count;
316}
317
318/* Gathers the graph buffer: every Function/Method node as a seed, every CALLS
319 * edge, and the key of every node a CALLS edge targets. */

Callers 1

tld_gather_gbufFunction · 0.85

Calls 1

cbm_gbuf_find_by_labelFunction · 0.85

Tested by

no test coverage detected