return NULL;
}
-__isl_give isl_map *isl_map_insert(__isl_take isl_map *map,
+ static __isl_give isl_map *map_space_reset(__isl_take isl_map *map,
+ enum isl_dim_type type)
+ {
+ isl_dim *space;
+
+ if (!isl_dim_is_named_or_nested(map->dim, type))
+ return map;
+
+ space = isl_map_get_dim(map);
+ space = isl_dim_reset(space, type);
+ map = isl_map_reset_dim(map, space);
+ return map;
+ }
+
+__isl_give isl_map *isl_map_insert_dims(__isl_take isl_map *map,
enum isl_dim_type type, unsigned pos, unsigned n)
{
int i;