/* Written by Sven Verdoolaege, INRIA Saclay - Ile-de-France, Parc Club Orsay Universite, ZAC des vignes, 4 rue Jacques Monod, 91893 Orsay, France  */
__isl_give isl_reordering* isl_reordering_alloc(isl_ctx *ctx, int len)
/* Written by Sven Verdoolaege, INRIA Saclay - Ile-de-France, Parc Club Orsay Universite, ZAC des vignes, 4 rue Jacques Monod, 91893 Orsay, France  */
__isl_give isl_reordering* isl_reordering_alloc(isl_ctx *ctx, int len)
{
	isl_reordering *exp;
	exp = isl_alloc(ctx, struct isl_reordering,
			sizeof(struct isl_reordering) + (len - 1) * sizeof(int));
	if (!exp)
		return NULL;
	exp->ref = 1;
	exp->len = len;
	exp->dim = NULL;
	return exp;
}