reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
410 if (!pw1 || !pw2) 413 ctx = isl_space_get_ctx(pw1->dim); 415 if (pw1->type != pw2->type) 419 isl_assert(ctx, isl_space_is_equal(pw1->dim, pw2->dim), goto error); 421 if (FN(PW,IS_ZERO)(pw1)) { 422 FN(PW,free)(pw1); 428 return pw1; 431 n = (pw1->n + 1) * (pw2->n + 1); 433 res = FN(PW,alloc_size)(isl_space_copy(pw1->dim), pw1->type, n); 433 res = FN(PW,alloc_size)(isl_space_copy(pw1->dim), pw1->type, n); 435 res = FN(PW,alloc_size)(isl_space_copy(pw1->dim), n); 438 for (i = 0; i < pw1->n; ++i) { 439 set = isl_set_copy(pw1->p[i].set); 443 common = isl_set_intersect(isl_set_copy(pw1->p[i].set), 453 FN(EL,copy)(pw1->p[i].FIELD), 458 res = FN(PW,add_piece)(res, set, FN(EL,copy)(pw1->p[i].FIELD)); 463 for (i = 0; i < pw1->n; ++i) 465 isl_set_copy(pw1->p[i].set)); 469 FN(PW,free)(pw1); 474 FN(PW,free)(pw1);