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

Function fl_candidate_cmp

src/ui/atlas_flows.c:178–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176} fl_candidate_t;
177
178static int fl_candidate_cmp(const void *a, const void *b) {
179 const fl_candidate_t *ca = a, *cb = b;
180 if (cb->score != ca->score)
181 return cb->score - ca->score;
182 return ca->node - cb->node; /* deterministic tie-break */
183}
184
185/* Rank comparator: sink-terminated first, then longer, then entry order. */
186static int fl_flow_cmp(const void *a, const void *b) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected