In particular, detect equalities before checking whether the input is empty.
Otherwise, we could be accessing the first element of an empty list.
struct isl_basic_map *hull = NULL;
struct isl_set *set;
+ map = isl_map_detect_equalities(map);
+ map = isl_map_align_divs(map);
+
if (!map)
return NULL;
return hull;
}
- map = isl_map_detect_equalities(map);
- map = isl_map_align_divs(map);
- if (!map)
- return NULL;
model = isl_basic_map_copy(map->p[0]);
set = isl_map_underlying_set(map);
set = isl_set_cow(set);