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

Function fl_flow_cmp

src/ui/atlas_flows.c:186–193  ·  view source on GitHub ↗

Rank comparator: sink-terminated first, then longer, then entry order. */

Source from the content-addressed store, hash-verified

184
185/* Rank comparator: sink-terminated first, then longer, then entry order. */
186static int fl_flow_cmp(const void *a, const void *b) {
187 const flow_t *fa = a, *fb = b;
188 if (fa->sink_terminated != fb->sink_terminated)
189 return fb->sink_terminated - fa->sink_terminated;
190 if (fb->step_count != fa->step_count)
191 return fb->step_count - fa->step_count;
192 return fa->entry - fb->entry;
193}
194
195/* ── Build ────────────────────────────────────────────────────── */
196

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected