isl_input.c: extract out common is_start_of_div