| 426 | } seen_set_t; |
| 427 | |
| 428 | static void seen_set_init(seen_set_t *s) { |
| 429 | s->slots = cbm_calloc(CBM_MEM_CLASS_SEMANTIC, (size_t)(SEEN_SET_SIZE) * (sizeof(int64_t))); |
| 430 | s->cap = SEEN_SET_SIZE; |
| 431 | /* 0 means empty — node_ids are always > 0 */ |
| 432 | } |
| 433 | |
| 434 | static bool seen_set_insert(seen_set_t *s, int64_t node_id) { |
| 435 | if (!s->slots) { |
no test coverage detected