in pachi_py/pachi/board.c [679:691]
static void __attribute__((noinline))
check_libs_consistency(struct board *board, group_t g)
{
#ifdef DEBUG
if (!g) return;
struct group *gi = &board_group_info(board, g);
for (int i = 0; i < GROUP_KEEP_LIBS; i++)
if (gi->lib[i] && board_at(board, gi->lib[i]) != S_NONE) {
fprintf(stderr, "BOGUS LIBERTY %s of group %d[%s]\n", coord2sstr(gi->lib[i], board), g, coord2sstr(group_base(g), board));
assert(0);
}
#endif
}