- isl_ctx *ctx;
- isl_restriction *restr;
-
- if (!source_map)
- return NULL;
-
- ctx = isl_map_get_ctx(source_map);
- restr = isl_calloc_type(ctx, struct isl_restriction);
- if (!restr)
- goto error;
-
- restr->type = isl_restriction_type_empty;
-
- isl_map_free(source_map);
- return restr;
-error:
- isl_map_free(source_map);
- return NULL;