enum isl_dim_type type, int pos, isl_int v);
unsigned isl_div_dim(__isl_keep isl_div *div, enum isl_dim_type type);
+__isl_give isl_div *isl_div_div(__isl_take isl_div *div, int pos);
#if defined(__cplusplus)
}
return isl_basic_map_div((struct isl_basic_map *)bset, pos);
}
+__isl_give isl_div *isl_div_div(__isl_take isl_div *div, int pos)
+{
+ isl_basic_map *bmap;
+ if (!div)
+ return NULL;
+ bmap = isl_basic_map_copy(div->bmap);
+ isl_div_free(div);
+ return isl_basic_map_div(bmap, pos);
+}
+
struct isl_div *isl_div_alloc(struct isl_dim *dim)
{
struct isl_basic_map *bmap;