struct isl_div *isl_div_alloc(struct isl_dim *dim);
struct isl_div *isl_basic_map_div(struct isl_basic_map *bmap, int pos);
struct isl_div *isl_basic_set_div(struct isl_basic_set *bset, int pos);
+__isl_give isl_div *isl_div_copy(__isl_keep isl_div *div);
void isl_div_free(struct isl_div *c);
void isl_div_get_constant(__isl_keep isl_div *div, isl_int *v);
return isl_basic_map_div(bmap, 0);
}
+__isl_give isl_div *isl_div_copy(__isl_keep isl_div *div)
+{
+ if (!div)
+ return NULL;
+
+ div->ref++;
+ return div;
+}
+
void isl_div_free(struct isl_div *c)
{
if (!c)