2 * Copyright 2010 INRIA Saclay
4 * Use of this software is governed by the MIT license
6 * Written by Sven Verdoolaege, INRIA Saclay - Ile-de-France,
7 * Parc Club Orsay Universite, ZAC des vignes, 4 rue Jacques Monod,
11 __isl_give PW
*FN(PW
,morph_domain
)(__isl_take PW
*pw
,
12 __isl_take isl_morph
*morph
)
20 ctx
= isl_space_get_ctx(pw
->dim
);
21 isl_assert(ctx
, isl_space_is_domain_internal(morph
->dom
->dim
, pw
->dim
),
27 pw
->dim
= isl_space_extend_domain_with_range(
28 isl_space_copy(morph
->ran
->dim
), pw
->dim
);
32 for (i
= 0; i
< pw
->n
; ++i
) {
33 pw
->p
[i
].set
= isl_morph_set(isl_morph_copy(morph
), pw
->p
[i
].set
);
36 pw
->p
[i
].FIELD
= FN(EL
,morph_domain
)(pw
->p
[i
].FIELD
,
37 isl_morph_copy(morph
));
42 isl_morph_free(morph
);
47 isl_morph_free(morph
);