Update gen_brackets.c