reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
896 if (!space) 898 if (space->nparam == nparam && 899 space->n_in == n_in && space->n_out == n_out) 899 space->n_in == n_in && space->n_out == n_out) 900 return space; 902 isl_assert(space->ctx, space->nparam <= nparam, goto error); 902 isl_assert(space->ctx, space->nparam <= nparam, goto error); 903 isl_assert(space->ctx, space->n_in <= n_in, goto error); 903 isl_assert(space->ctx, space->n_in <= n_in, goto error); 904 isl_assert(space->ctx, space->n_out <= n_out, goto error); 904 isl_assert(space->ctx, space->n_out <= n_out, goto error); 906 space = isl_space_cow(space); 906 space = isl_space_cow(space); 907 if (!space) 910 if (space->ids) { 914 isl_die(isl_space_get_ctx(space), isl_error_invalid, 917 ids = isl_calloc_array(space->ctx, isl_id *, n); 920 get_ids(space, isl_dim_param, 0, space->nparam, ids); 920 get_ids(space, isl_dim_param, 0, space->nparam, ids); 921 get_ids(space, isl_dim_in, 0, space->n_in, ids + nparam); 921 get_ids(space, isl_dim_in, 0, space->n_in, ids + nparam); 922 get_ids(space, isl_dim_out, 0, space->n_out, 922 get_ids(space, isl_dim_out, 0, space->n_out, 924 free(space->ids); 925 space->ids = ids; 926 space->n_id = nparam + n_in + n_out; 928 space->nparam = nparam; 929 space->n_in = n_in; 930 space->n_out = n_out; 932 return space; 935 isl_space_free(space);