Rank comparator: sink-terminated first, then longer, then entry order. */
| 184 | |
| 185 | /* Rank comparator: sink-terminated first, then longer, then entry order. */ |
| 186 | static 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 |
nothing calls this directly
no outgoing calls
no test coverage detected