extract out shared isl_*_check_match_range_multi_val