OVERRIDE edges leaving `method`; *only_target receives the single target (or 0). */
| 13615 | |
| 13616 | /* OVERRIDE edges leaving `method`; *only_target receives the single target (or 0). */ |
| 13617 | static int ovr_out(cbm_gbuf_t *gb, int64_t method, int64_t *only_target) { |
| 13618 | const cbm_gbuf_edge_t **edges = NULL; |
| 13619 | int count = 0; |
| 13620 | cbm_gbuf_find_edges_by_source_type(gb, method, "OVERRIDE", &edges, &count); |
| 13621 | *only_target = count == 1 ? edges[0]->target_id : 0; |
| 13622 | return count; |
| 13623 | } |
| 13624 | |
| 13625 | /* Exactly two different targets, each once, independent of edge order. */ |
| 13626 | static bool ovr_two_targets(cbm_gbuf_t *gb, int64_t method, int64_t first, int64_t second) { |
no test coverage detected