Coverage Report

Created: 2018-10-23 03:11

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/polly/lib/External/isl/isl_list_templ.c
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright 2008-2009 Katholieke Universiteit Leuven
3
 * Copyright 2011      INRIA Saclay
4
 * Copyright 2012-2013 Ecole Normale Superieure
5
 * Copyright 2017      Sven Verdoolaege
6
 *
7
 * Use of this software is governed by the MIT license
8
 *
9
 * Written by Sven Verdoolaege, K.U.Leuven, Departement
10
 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
11
 * and INRIA Saclay - Ile-de-France, Parc Club Orsay Universite,
12
 * ZAC des vignes, 4 rue Jacques Monod, 91893 Orsay, France
13
 * and Ecole Normale Superieure, 45 rue d’Ulm, 75230 Paris, France
14
 */
15
16
#include <isl_sort.h>
17
#include <isl_tarjan.h>
18
#include <isl/printer.h>
19
20
5.19k
#define xCAT(A,B) A ## B
21
5.19k
#define CAT(A,B) xCAT(A,B)
22
#undef EL
23
5.19k
#define EL CAT(isl_,BASE)
24
5.47M
#define xFN(TYPE,NAME) TYPE ## _ ## NAME
25
5.43M
#define FN(TYPE,NAME) xFN(TYPE,NAME)
26
631k
#define xLIST(EL) EL ## _list
27
631k
#define LIST(EL) xLIST(EL)
28
3.25k
#define xS(TYPE,NAME) struct TYPE ## _ ## NAME
29
3.25k
#define S(TYPE,NAME) xS(TYPE,NAME)
30
31
isl_ctx *FN(LIST(EL),get_ctx)(__isl_keep LIST(EL) *list)
32
99.0k
{
33
99.0k
  return list ? list->ctx : NULL;
34
99.0k
}
isl_aff_list_get_ctx
Line
Count
Source
32
20
{
33
20
  return list ? list->ctx : NULL;
34
20
}
isl_pw_aff_list_get_ctx
Line
Count
Source
32
11.7k
{
33
11.7k
  return list ? list->ctx : NULL;
34
11.7k
}
Unexecuted instantiation: isl_pw_multi_aff_list_get_ctx
isl_union_pw_aff_list_get_ctx
Line
Count
Source
32
116
{
33
116
  return list ? list->ctx : NULL;
34
116
}
Unexecuted instantiation: isl_union_pw_multi_aff_list_get_ctx
Unexecuted instantiation: isl_ast_expr_list_get_ctx
isl_ast_node_list_get_ctx
Line
Count
Source
32
538
{
33
538
  return list ? list->ctx : NULL;
34
538
}
isl_ast_graft_list_get_ctx
Line
Count
Source
32
11.9k
{
33
11.9k
  return list ? list->ctx : NULL;
34
11.9k
}
isl_constraint_list_get_ctx
Line
Count
Source
32
1.15k
{
33
1.15k
  return list ? list->ctx : NULL;
34
1.15k
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_get_ctx
isl_id_list_get_ctx
Line
Count
Source
32
668
{
33
668
  return list ? list->ctx : NULL;
34
668
}
isl_basic_map_list_get_ctx
Line
Count
Source
32
1.87k
{
33
1.87k
  return list ? list->ctx : NULL;
34
1.87k
}
isl_map_list_get_ctx
Line
Count
Source
32
870
{
33
870
  return list ? list->ctx : NULL;
34
870
}
isl_union_map_list_get_ctx
Line
Count
Source
32
1
{
33
1
  return list ? list->ctx : NULL;
34
1
}
Unexecuted instantiation: isl_pw_qpolynomial_list_get_ctx
isl_schedule_tree_list_get_ctx
Line
Count
Source
32
68.5k
{
33
68.5k
  return list ? list->ctx : NULL;
34
68.5k
}
isl_basic_set_list_get_ctx
Line
Count
Source
32
1.28k
{
33
1.28k
  return list ? list->ctx : NULL;
34
1.28k
}
isl_set_list_get_ctx
Line
Count
Source
32
20
{
33
20
  return list ? list->ctx : NULL;
34
20
}
isl_union_set_list_get_ctx
Line
Count
Source
32
263
{
33
263
  return list ? list->ctx : NULL;
34
263
}
isl_val_list_get_ctx
Line
Count
Source
32
8
{
33
8
  return list ? list->ctx : NULL;
34
8
}
35
36
__isl_give LIST(EL) *FN(LIST(EL),alloc)(isl_ctx *ctx, int n)
37
160k
{
38
160k
  LIST(EL) *list;
39
160k
40
160k
  if (n < 0)
41
160k
    
isl_die0
(ctx, isl_error_invalid,
42
160k
      "cannot create list of negative length",
43
160k
      return NULL);
44
160k
  list = isl_alloc(ctx, LIST(EL),
45
160k
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
160k
  if (!list)
47
9
    return NULL;
48
160k
49
160k
  list->ctx = ctx;
50
160k
  isl_ctx_ref(ctx);
51
160k
  list->ref = 1;
52
160k
  list->size = n;
53
160k
  list->n = 0;
54
160k
  return list;
55
160k
}
isl_aff_list_alloc
Line
Count
Source
37
8.53k
{
38
8.53k
  LIST(EL) *list;
39
8.53k
40
8.53k
  if (n < 0)
41
8.53k
    
isl_die0
(ctx, isl_error_invalid,
42
8.53k
      "cannot create list of negative length",
43
8.53k
      return NULL);
44
8.53k
  list = isl_alloc(ctx, LIST(EL),
45
8.53k
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
8.53k
  if (!list)
47
0
    return NULL;
48
8.53k
49
8.53k
  list->ctx = ctx;
50
8.53k
  isl_ctx_ref(ctx);
51
8.53k
  list->ref = 1;
52
8.53k
  list->size = n;
53
8.53k
  list->n = 0;
54
8.53k
  return list;
55
8.53k
}
isl_pw_aff_list_alloc
Line
Count
Source
37
17.3k
{
38
17.3k
  LIST(EL) *list;
39
17.3k
40
17.3k
  if (n < 0)
41
17.3k
    
isl_die0
(ctx, isl_error_invalid,
42
17.3k
      "cannot create list of negative length",
43
17.3k
      return NULL);
44
17.3k
  list = isl_alloc(ctx, LIST(EL),
45
17.3k
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
17.3k
  if (!list)
47
0
    return NULL;
48
17.3k
49
17.3k
  list->ctx = ctx;
50
17.3k
  isl_ctx_ref(ctx);
51
17.3k
  list->ref = 1;
52
17.3k
  list->size = n;
53
17.3k
  list->n = 0;
54
17.3k
  return list;
55
17.3k
}
Unexecuted instantiation: isl_pw_multi_aff_list_alloc
isl_union_pw_aff_list_alloc
Line
Count
Source
37
260
{
38
260
  LIST(EL) *list;
39
260
40
260
  if (n < 0)
41
260
    
isl_die0
(ctx, isl_error_invalid,
42
260
      "cannot create list of negative length",
43
260
      return NULL);
44
260
  list = isl_alloc(ctx, LIST(EL),
45
260
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
260
  if (!list)
47
0
    return NULL;
48
260
49
260
  list->ctx = ctx;
50
260
  isl_ctx_ref(ctx);
51
260
  list->ref = 1;
52
260
  list->size = n;
53
260
  list->n = 0;
54
260
  return list;
55
260
}
isl_union_pw_multi_aff_list_alloc
Line
Count
Source
37
8
{
38
8
  LIST(EL) *list;
39
8
40
8
  if (n < 0)
41
8
    
isl_die0
(ctx, isl_error_invalid,
42
8
      "cannot create list of negative length",
43
8
      return NULL);
44
8
  list = isl_alloc(ctx, LIST(EL),
45
8
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
8
  if (!list)
47
0
    return NULL;
48
8
49
8
  list->ctx = ctx;
50
8
  isl_ctx_ref(ctx);
51
8
  list->ref = 1;
52
8
  list->size = n;
53
8
  list->n = 0;
54
8
  return list;
55
8
}
Unexecuted instantiation: isl_ast_expr_list_alloc
isl_ast_node_list_alloc
Line
Count
Source
37
4.50k
{
38
4.50k
  LIST(EL) *list;
39
4.50k
40
4.50k
  if (n < 0)
41
4.50k
    
isl_die0
(ctx, isl_error_invalid,
42
4.50k
      "cannot create list of negative length",
43
4.50k
      return NULL);
44
4.50k
  list = isl_alloc(ctx, LIST(EL),
45
4.50k
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
4.50k
  if (!list)
47
0
    return NULL;
48
4.50k
49
4.50k
  list->ctx = ctx;
50
4.50k
  isl_ctx_ref(ctx);
51
4.50k
  list->ref = 1;
52
4.50k
  list->size = n;
53
4.50k
  list->n = 0;
54
4.50k
  return list;
55
4.50k
}
isl_ast_graft_list_alloc
Line
Count
Source
37
18.1k
{
38
18.1k
  LIST(EL) *list;
39
18.1k
40
18.1k
  if (n < 0)
41
18.1k
    
isl_die0
(ctx, isl_error_invalid,
42
18.1k
      "cannot create list of negative length",
43
18.1k
      return NULL);
44
18.1k
  list = isl_alloc(ctx, LIST(EL),
45
18.1k
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
18.1k
  if (!list)
47
0
    return NULL;
48
18.1k
49
18.1k
  list->ctx = ctx;
50
18.1k
  isl_ctx_ref(ctx);
51
18.1k
  list->ref = 1;
52
18.1k
  list->size = n;
53
18.1k
  list->n = 0;
54
18.1k
  return list;
55
18.1k
}
isl_constraint_list_alloc
Line
Count
Source
37
2.37k
{
38
2.37k
  LIST(EL) *list;
39
2.37k
40
2.37k
  if (n < 0)
41
2.37k
    
isl_die0
(ctx, isl_error_invalid,
42
2.37k
      "cannot create list of negative length",
43
2.37k
      return NULL);
44
2.37k
  list = isl_alloc(ctx, LIST(EL),
45
2.37k
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
2.37k
  if (!list)
47
0
    return NULL;
48
2.37k
49
2.37k
  list->ctx = ctx;
50
2.37k
  isl_ctx_ref(ctx);
51
2.37k
  list->ref = 1;
52
2.37k
  list->size = n;
53
2.37k
  list->n = 0;
54
2.37k
  return list;
55
2.37k
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_alloc
isl_id_list_alloc
Line
Count
Source
37
1.93k
{
38
1.93k
  LIST(EL) *list;
39
1.93k
40
1.93k
  if (n < 0)
41
1.93k
    
isl_die0
(ctx, isl_error_invalid,
42
1.93k
      "cannot create list of negative length",
43
1.93k
      return NULL);
44
1.93k
  list = isl_alloc(ctx, LIST(EL),
45
1.93k
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
1.93k
  if (!list)
47
0
    return NULL;
48
1.93k
49
1.93k
  list->ctx = ctx;
50
1.93k
  isl_ctx_ref(ctx);
51
1.93k
  list->ref = 1;
52
1.93k
  list->size = n;
53
1.93k
  list->n = 0;
54
1.93k
  return list;
55
1.93k
}
isl_basic_map_list_alloc
Line
Count
Source
37
4.90k
{
38
4.90k
  LIST(EL) *list;
39
4.90k
40
4.90k
  if (n < 0)
41
4.90k
    
isl_die0
(ctx, isl_error_invalid,
42
4.90k
      "cannot create list of negative length",
43
4.90k
      return NULL);
44
4.90k
  list = isl_alloc(ctx, LIST(EL),
45
4.90k
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
4.90k
  if (!list)
47
0
    return NULL;
48
4.90k
49
4.90k
  list->ctx = ctx;
50
4.90k
  isl_ctx_ref(ctx);
51
4.90k
  list->ref = 1;
52
4.90k
  list->size = n;
53
4.90k
  list->n = 0;
54
4.90k
  return list;
55
4.90k
}
isl_map_list_alloc
Line
Count
Source
37
7.75k
{
38
7.75k
  LIST(EL) *list;
39
7.75k
40
7.75k
  if (n < 0)
41
7.75k
    
isl_die0
(ctx, isl_error_invalid,
42
7.75k
      "cannot create list of negative length",
43
7.75k
      return NULL);
44
7.75k
  list = isl_alloc(ctx, LIST(EL),
45
7.75k
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
7.75k
  if (!list)
47
9
    return NULL;
48
7.74k
49
7.74k
  list->ctx = ctx;
50
7.74k
  isl_ctx_ref(ctx);
51
7.74k
  list->ref = 1;
52
7.74k
  list->size = n;
53
7.74k
  list->n = 0;
54
7.74k
  return list;
55
7.74k
}
isl_union_map_list_alloc
Line
Count
Source
37
1
{
38
1
  LIST(EL) *list;
39
1
40
1
  if (n < 0)
41
1
    
isl_die0
(ctx, isl_error_invalid,
42
1
      "cannot create list of negative length",
43
1
      return NULL);
44
1
  list = isl_alloc(ctx, LIST(EL),
45
1
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
1
  if (!list)
47
0
    return NULL;
48
1
49
1
  list->ctx = ctx;
50
1
  isl_ctx_ref(ctx);
51
1
  list->ref = 1;
52
1
  list->size = n;
53
1
  list->n = 0;
54
1
  return list;
55
1
}
Unexecuted instantiation: isl_pw_qpolynomial_list_alloc
isl_schedule_tree_list_alloc
Line
Count
Source
37
78.0k
{
38
78.0k
  LIST(EL) *list;
39
78.0k
40
78.0k
  if (n < 0)
41
78.0k
    
isl_die0
(ctx, isl_error_invalid,
42
78.0k
      "cannot create list of negative length",
43
78.0k
      return NULL);
44
78.0k
  list = isl_alloc(ctx, LIST(EL),
45
78.0k
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
78.0k
  if (!list)
47
0
    return NULL;
48
78.0k
49
78.0k
  list->ctx = ctx;
50
78.0k
  isl_ctx_ref(ctx);
51
78.0k
  list->ref = 1;
52
78.0k
  list->size = n;
53
78.0k
  list->n = 0;
54
78.0k
  return list;
55
78.0k
}
isl_basic_set_list_alloc
Line
Count
Source
37
4.29k
{
38
4.29k
  LIST(EL) *list;
39
4.29k
40
4.29k
  if (n < 0)
41
4.29k
    
isl_die0
(ctx, isl_error_invalid,
42
4.29k
      "cannot create list of negative length",
43
4.29k
      return NULL);
44
4.29k
  list = isl_alloc(ctx, LIST(EL),
45
4.29k
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
4.29k
  if (!list)
47
0
    return NULL;
48
4.29k
49
4.29k
  list->ctx = ctx;
50
4.29k
  isl_ctx_ref(ctx);
51
4.29k
  list->ref = 1;
52
4.29k
  list->size = n;
53
4.29k
  list->n = 0;
54
4.29k
  return list;
55
4.29k
}
isl_set_list_alloc
Line
Count
Source
37
11.5k
{
38
11.5k
  LIST(EL) *list;
39
11.5k
40
11.5k
  if (n < 0)
41
11.5k
    
isl_die0
(ctx, isl_error_invalid,
42
11.5k
      "cannot create list of negative length",
43
11.5k
      return NULL);
44
11.5k
  list = isl_alloc(ctx, LIST(EL),
45
11.5k
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
11.5k
  if (!list)
47
0
    return NULL;
48
11.5k
49
11.5k
  list->ctx = ctx;
50
11.5k
  isl_ctx_ref(ctx);
51
11.5k
  list->ref = 1;
52
11.5k
  list->size = n;
53
11.5k
  list->n = 0;
54
11.5k
  return list;
55
11.5k
}
isl_union_set_list_alloc
Line
Count
Source
37
491
{
38
491
  LIST(EL) *list;
39
491
40
491
  if (n < 0)
41
491
    
isl_die0
(ctx, isl_error_invalid,
42
491
      "cannot create list of negative length",
43
491
      return NULL);
44
491
  list = isl_alloc(ctx, LIST(EL),
45
491
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
491
  if (!list)
47
0
    return NULL;
48
491
49
491
  list->ctx = ctx;
50
491
  isl_ctx_ref(ctx);
51
491
  list->ref = 1;
52
491
  list->size = n;
53
491
  list->n = 0;
54
491
  return list;
55
491
}
isl_val_list_alloc
Line
Count
Source
37
7
{
38
7
  LIST(EL) *list;
39
7
40
7
  if (n < 0)
41
7
    
isl_die0
(ctx, isl_error_invalid,
42
7
      "cannot create list of negative length",
43
7
      return NULL);
44
7
  list = isl_alloc(ctx, LIST(EL),
45
7
       sizeof(LIST(EL)) + (n - 1) * sizeof(struct EL *));
46
7
  if (!list)
47
0
    return NULL;
48
7
49
7
  list->ctx = ctx;
50
7
  isl_ctx_ref(ctx);
51
7
  list->ref = 1;
52
7
  list->size = n;
53
7
  list->n = 0;
54
7
  return list;
55
7
}
56
57
__isl_give LIST(EL) *FN(LIST(EL),copy)(__isl_keep LIST(EL) *list)
58
110k
{
59
110k
  if (!list)
60
0
    return NULL;
61
110k
62
110k
  list->ref++;
63
110k
  return list;
64
110k
}
Unexecuted instantiation: isl_aff_list_copy
isl_pw_aff_list_copy
Line
Count
Source
58
11.8k
{
59
11.8k
  if (!list)
60
0
    return NULL;
61
11.8k
62
11.8k
  list->ref++;
63
11.8k
  return list;
64
11.8k
}
Unexecuted instantiation: isl_pw_multi_aff_list_copy
Unexecuted instantiation: isl_union_pw_aff_list_copy
Unexecuted instantiation: isl_union_pw_multi_aff_list_copy
Unexecuted instantiation: isl_ast_expr_list_copy
isl_ast_node_list_copy
Line
Count
Source
58
234
{
59
234
  if (!list)
60
0
    return NULL;
61
234
62
234
  list->ref++;
63
234
  return list;
64
234
}
Unexecuted instantiation: isl_ast_graft_list_copy
isl_constraint_list_copy
Line
Count
Source
58
730
{
59
730
  if (!list)
60
0
    return NULL;
61
730
62
730
  list->ref++;
63
730
  return list;
64
730
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_copy
isl_id_list_copy
Line
Count
Source
58
35.4k
{
59
35.4k
  if (!list)
60
0
    return NULL;
61
35.4k
62
35.4k
  list->ref++;
63
35.4k
  return list;
64
35.4k
}
Unexecuted instantiation: isl_basic_map_list_copy
Unexecuted instantiation: isl_map_list_copy
Unexecuted instantiation: isl_union_map_list_copy
Unexecuted instantiation: isl_pw_qpolynomial_list_copy
isl_schedule_tree_list_copy
Line
Count
Source
58
61.9k
{
59
61.9k
  if (!list)
60
0
    return NULL;
61
61.9k
62
61.9k
  list->ref++;
63
61.9k
  return list;
64
61.9k
}
isl_basic_set_list_copy
Line
Count
Source
58
21
{
59
21
  if (!list)
60
0
    return NULL;
61
21
62
21
  list->ref++;
63
21
  return list;
64
21
}
Unexecuted instantiation: isl_set_list_copy
Unexecuted instantiation: isl_union_set_list_copy
Unexecuted instantiation: isl_val_list_copy
65
66
__isl_give LIST(EL) *FN(LIST(EL),dup)(__isl_keep LIST(EL) *list)
67
49.8k
{
68
49.8k
  int i;
69
49.8k
  LIST(EL) *dup;
70
49.8k
71
49.8k
  if (!list)
72
0
    return NULL;
73
49.8k
74
49.8k
  dup = FN(LIST(EL),alloc)(FN(LIST(EL),get_ctx)(list), list->n);
75
49.8k
  if (!dup)
76
0
    return NULL;
77
244k
  
for (i = 0; 49.8k
i < list->n;
++i194k
)
78
194k
    dup = FN(LIST(EL),add)(dup, FN(EL,copy)(list->p[i]));
79
49.8k
  return dup;
80
49.8k
}
Unexecuted instantiation: isl_aff_list_dup
isl_pw_aff_list_dup
Line
Count
Source
67
311
{
68
311
  int i;
69
311
  LIST(EL) *dup;
70
311
71
311
  if (!list)
72
0
    return NULL;
73
311
74
311
  dup = FN(LIST(EL),alloc)(FN(LIST(EL),get_ctx)(list), list->n);
75
311
  if (!dup)
76
0
    return NULL;
77
719
  
for (i = 0; 311
i < list->n;
++i408
)
78
408
    dup = FN(LIST(EL),add)(dup, FN(EL,copy)(list->p[i]));
79
311
  return dup;
80
311
}
Unexecuted instantiation: isl_pw_multi_aff_list_dup
Unexecuted instantiation: isl_union_pw_aff_list_dup
Unexecuted instantiation: isl_union_pw_multi_aff_list_dup
Unexecuted instantiation: isl_ast_expr_list_dup
Unexecuted instantiation: isl_ast_node_list_dup
Unexecuted instantiation: isl_ast_graft_list_dup
isl_constraint_list_dup
Line
Count
Source
67
730
{
68
730
  int i;
69
730
  LIST(EL) *dup;
70
730
71
730
  if (!list)
72
0
    return NULL;
73
730
74
730
  dup = FN(LIST(EL),alloc)(FN(LIST(EL),get_ctx)(list), list->n);
75
730
  if (!dup)
76
0
    return NULL;
77
2.28k
  
for (i = 0; 730
i < list->n;
++i1.55k
)
78
1.55k
    dup = FN(LIST(EL),add)(dup, FN(EL,copy)(list->p[i]));
79
730
  return dup;
80
730
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_dup
Unexecuted instantiation: isl_id_list_dup
Unexecuted instantiation: isl_basic_map_list_dup
Unexecuted instantiation: isl_map_list_dup
Unexecuted instantiation: isl_union_map_list_dup
Unexecuted instantiation: isl_pw_qpolynomial_list_dup
isl_schedule_tree_list_dup
Line
Count
Source
67
48.7k
{
68
48.7k
  int i;
69
48.7k
  LIST(EL) *dup;
70
48.7k
71
48.7k
  if (!list)
72
0
    return NULL;
73
48.7k
74
48.7k
  dup = FN(LIST(EL),alloc)(FN(LIST(EL),get_ctx)(list), list->n);
75
48.7k
  if (!dup)
76
0
    return NULL;
77
241k
  
for (i = 0; 48.7k
i < list->n;
++i192k
)
78
192k
    dup = FN(LIST(EL),add)(dup, FN(EL,copy)(list->p[i]));
79
48.7k
  return dup;
80
48.7k
}
Unexecuted instantiation: isl_basic_set_list_dup
Unexecuted instantiation: isl_set_list_dup
Unexecuted instantiation: isl_union_set_list_dup
Unexecuted instantiation: isl_val_list_dup
81
82
__isl_give LIST(EL) *FN(LIST(EL),cow)(__isl_take LIST(EL) *list)
83
107k
{
84
107k
  if (!list)
85
0
    return NULL;
86
107k
87
107k
  if (list->ref == 1)
88
57.8k
    return list;
89
49.8k
  list->ref--;
90
49.8k
  return FN(LIST(EL),dup)(list);
91
49.8k
}
isl_aff_list_cow
Line
Count
Source
83
2
{
84
2
  if (!list)
85
0
    return NULL;
86
2
87
2
  if (list->ref == 1)
88
2
    return list;
89
0
  list->ref--;
90
0
  return FN(LIST(EL),dup)(list);
91
0
}
isl_pw_aff_list_cow
Line
Count
Source
83
3.53k
{
84
3.53k
  if (!list)
85
0
    return NULL;
86
3.53k
87
3.53k
  if (list->ref == 1)
88
3.22k
    return list;
89
311
  list->ref--;
90
311
  return FN(LIST(EL),dup)(list);
91
311
}
Unexecuted instantiation: isl_pw_multi_aff_list_cow
Unexecuted instantiation: isl_union_pw_aff_list_cow
Unexecuted instantiation: isl_union_pw_multi_aff_list_cow
Unexecuted instantiation: isl_ast_expr_list_cow
Unexecuted instantiation: isl_ast_node_list_cow
isl_ast_graft_list_cow
Line
Count
Source
83
51
{
84
51
  if (!list)
85
0
    return NULL;
86
51
87
51
  if (list->ref == 1)
88
51
    return list;
89
0
  list->ref--;
90
0
  return FN(LIST(EL),dup)(list);
91
0
}
isl_constraint_list_cow
Line
Count
Source
83
2.32k
{
84
2.32k
  if (!list)
85
0
    return NULL;
86
2.32k
87
2.32k
  if (list->ref == 1)
88
1.59k
    return list;
89
730
  list->ref--;
90
730
  return FN(LIST(EL),dup)(list);
91
730
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_cow
isl_id_list_cow
Line
Count
Source
83
1
{
84
1
  if (!list)
85
0
    return NULL;
86
1
87
1
  if (list->ref == 1)
88
1
    return list;
89
0
  list->ref--;
90
0
  return FN(LIST(EL),dup)(list);
91
0
}
isl_basic_map_list_cow
Line
Count
Source
83
558
{
84
558
  if (!list)
85
0
    return NULL;
86
558
87
558
  if (list->ref == 1)
88
558
    return list;
89
0
  list->ref--;
90
0
  return FN(LIST(EL),dup)(list);
91
0
}
Unexecuted instantiation: isl_map_list_cow
isl_union_map_list_cow
Line
Count
Source
83
6
{
84
6
  if (!list)
85
0
    return NULL;
86
6
87
6
  if (list->ref == 1)
88
6
    return list;
89
0
  list->ref--;
90
0
  return FN(LIST(EL),dup)(list);
91
0
}
Unexecuted instantiation: isl_pw_qpolynomial_list_cow
isl_schedule_tree_list_cow
Line
Count
Source
83
94.3k
{
84
94.3k
  if (!list)
85
0
    return NULL;
86
94.3k
87
94.3k
  if (list->ref == 1)
88
45.5k
    return list;
89
48.7k
  list->ref--;
90
48.7k
  return FN(LIST(EL),dup)(list);
91
48.7k
}
isl_basic_set_list_cow
Line
Count
Source
83
3.77k
{
84
3.77k
  if (!list)
85
0
    return NULL;
86
3.77k
87
3.77k
  if (list->ref == 1)
88
3.77k
    return list;
89
0
  list->ref--;
90
0
  return FN(LIST(EL),dup)(list);
91
0
}
isl_set_list_cow
Line
Count
Source
83
1.88k
{
84
1.88k
  if (!list)
85
0
    return NULL;
86
1.88k
87
1.88k
  if (list->ref == 1)
88
1.88k
    return list;
89
0
  list->ref--;
90
0
  return FN(LIST(EL),dup)(list);
91
0
}
isl_union_set_list_cow
Line
Count
Source
83
1.26k
{
84
1.26k
  if (!list)
85
0
    return NULL;
86
1.26k
87
1.26k
  if (list->ref == 1)
88
1.26k
    return list;
89
0
  list->ref--;
90
0
  return FN(LIST(EL),dup)(list);
91
0
}
Unexecuted instantiation: isl_val_list_cow
92
93
/* Make sure "list" has room for at least "n" more pieces.
94
 * Always return a list with a single reference.
95
 *
96
 * If there is only one reference to list, we extend it in place.
97
 * Otherwise, we create a new LIST(EL) and copy the elements.
98
 */
99
static __isl_give LIST(EL) *FN(LIST(EL),grow)(__isl_take LIST(EL) *list, int n)
100
381k
{
101
381k
  isl_ctx *ctx;
102
381k
  int i, new_size;
103
381k
  LIST(EL) *res;
104
381k
105
381k
  if (!list)
106
9
    return NULL;
107
381k
  if (list->ref == 1 && 
list->n + n <= list->size371k
)
108
356k
    return list;
109
24.6k
110
24.6k
  ctx = FN(LIST(EL),get_ctx)(list);
111
24.6k
  new_size = ((list->n + n + 1) * 3) / 2;
112
24.6k
  if (list->ref == 1) {
113
14.7k
    res = isl_realloc(ctx, list, LIST(EL),
114
14.7k
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
14.7k
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
14.7k
    res->size = new_size;
118
14.7k
    return res;
119
14.7k
  }
120
9.92k
121
9.92k
  if (list->n + n <= list->size && 
list->size < new_size2.81k
)
122
2.74k
    new_size = list->size;
123
9.92k
124
9.92k
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
9.92k
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
9.92k
128
38.6k
  
for (i = 0; 9.92k
i < list->n;
++i28.6k
)
129
28.6k
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
9.92k
131
9.92k
  FN(LIST(EL),free)(list);
132
9.92k
  return res;
133
9.92k
}
isl_aff.c:isl_aff_list_grow
Line
Count
Source
100
8.45k
{
101
8.45k
  isl_ctx *ctx;
102
8.45k
  int i, new_size;
103
8.45k
  LIST(EL) *res;
104
8.45k
105
8.45k
  if (!list)
106
0
    return NULL;
107
8.45k
  if (list->ref == 1 && list->n + n <= list->size)
108
8.43k
    return list;
109
20
110
20
  ctx = FN(LIST(EL),get_ctx)(list);
111
20
  new_size = ((list->n + n + 1) * 3) / 2;
112
20
  if (list->ref == 1) {
113
20
    res = isl_realloc(ctx, list, LIST(EL),
114
20
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
20
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
20
    res->size = new_size;
118
20
    return res;
119
20
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
isl_aff.c:isl_pw_aff_list_grow
Line
Count
Source
100
19.9k
{
101
19.9k
  isl_ctx *ctx;
102
19.9k
  int i, new_size;
103
19.9k
  LIST(EL) *res;
104
19.9k
105
19.9k
  if (!list)
106
0
    return NULL;
107
19.9k
  if (list->ref == 1 && list->n + n <= list->size)
108
14.3k
    return list;
109
5.61k
110
5.61k
  ctx = FN(LIST(EL),get_ctx)(list);
111
5.61k
  new_size = ((list->n + n + 1) * 3) / 2;
112
5.61k
  if (list->ref == 1) {
113
5.61k
    res = isl_realloc(ctx, list, LIST(EL),
114
5.61k
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
5.61k
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
5.61k
    res->size = new_size;
118
5.61k
    return res;
119
5.61k
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
Unexecuted instantiation: isl_aff.c:isl_pw_multi_aff_list_grow
isl_aff.c:isl_union_pw_aff_list_grow
Line
Count
Source
100
144
{
101
144
  isl_ctx *ctx;
102
144
  int i, new_size;
103
144
  LIST(EL) *res;
104
144
105
144
  if (!list)
106
0
    return NULL;
107
144
  if (list->ref == 1 && list->n + n <= list->size)
108
28
    return list;
109
116
110
116
  ctx = FN(LIST(EL),get_ctx)(list);
111
116
  new_size = ((list->n + n + 1) * 3) / 2;
112
116
  if (list->ref == 1) {
113
116
    res = isl_realloc(ctx, list, LIST(EL),
114
116
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
116
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
116
    res->size = new_size;
118
116
    return res;
119
116
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
isl_aff.c:isl_union_pw_multi_aff_list_grow
Line
Count
Source
100
8
{
101
8
  isl_ctx *ctx;
102
8
  int i, new_size;
103
8
  LIST(EL) *res;
104
8
105
8
  if (!list)
106
0
    return NULL;
107
8
  if (list->ref == 1 && list->n + n <= list->size)
108
8
    return list;
109
0
110
0
  ctx = FN(LIST(EL),get_ctx)(list);
111
0
  new_size = ((list->n + n + 1) * 3) / 2;
112
0
  if (list->ref == 1) {
113
0
    res = isl_realloc(ctx, list, LIST(EL),
114
0
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
0
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
0
    res->size = new_size;
118
0
    return res;
119
0
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
Unexecuted instantiation: isl_ast.c:isl_ast_expr_list_grow
isl_ast.c:isl_ast_node_list_grow
Line
Count
Source
100
6.19k
{
101
6.19k
  isl_ctx *ctx;
102
6.19k
  int i, new_size;
103
6.19k
  LIST(EL) *res;
104
6.19k
105
6.19k
  if (!list)
106
0
    return NULL;
107
6.19k
  if (list->ref == 1 && list->n + n <= list->size)
108
6.12k
    return list;
109
71
110
71
  ctx = FN(LIST(EL),get_ctx)(list);
111
71
  new_size = ((list->n + n + 1) * 3) / 2;
112
71
  if (list->ref == 1) {
113
71
    res = isl_realloc(ctx, list, LIST(EL),
114
71
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
71
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
71
    res->size = new_size;
118
71
    return res;
119
71
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
isl_ast_graft.c:isl_ast_graft_list_grow
Line
Count
Source
100
17.0k
{
101
17.0k
  isl_ctx *ctx;
102
17.0k
  int i, new_size;
103
17.0k
  LIST(EL) *res;
104
17.0k
105
17.0k
  if (!list)
106
0
    return NULL;
107
17.0k
  if (list->ref == 1 && list->n + n <= list->size)
108
17.0k
    return list;
109
0
110
0
  ctx = FN(LIST(EL),get_ctx)(list);
111
0
  new_size = ((list->n + n + 1) * 3) / 2;
112
0
  if (list->ref == 1) {
113
0
    res = isl_realloc(ctx, list, LIST(EL),
114
0
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
0
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
0
    res->size = new_size;
118
0
    return res;
119
0
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
isl_constraint.c:isl_constraint_list_grow
Line
Count
Source
100
3.75k
{
101
3.75k
  isl_ctx *ctx;
102
3.75k
  int i, new_size;
103
3.75k
  LIST(EL) *res;
104
3.75k
105
3.75k
  if (!list)
106
0
    return NULL;
107
3.75k
  if (list->ref == 1 && list->n + n <= list->size)
108
3.75k
    return list;
109
0
110
0
  ctx = FN(LIST(EL),get_ctx)(list);
111
0
  new_size = ((list->n + n + 1) * 3) / 2;
112
0
  if (list->ref == 1) {
113
0
    res = isl_realloc(ctx, list, LIST(EL),
114
0
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
0
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
0
    res->size = new_size;
118
0
    return res;
119
0
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
Unexecuted instantiation: isl_fold.c:isl_pw_qpolynomial_fold_list_grow
isl_id.c:isl_id_list_grow
Line
Count
Source
100
2.55k
{
101
2.55k
  isl_ctx *ctx;
102
2.55k
  int i, new_size;
103
2.55k
  LIST(EL) *res;
104
2.55k
105
2.55k
  if (!list)
106
0
    return NULL;
107
2.55k
  if (list->ref == 1 && list->n + n <= list->size)
108
2.55k
    return list;
109
0
110
0
  ctx = FN(LIST(EL),get_ctx)(list);
111
0
  new_size = ((list->n + n + 1) * 3) / 2;
112
0
  if (list->ref == 1) {
113
0
    res = isl_realloc(ctx, list, LIST(EL),
114
0
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
0
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
0
    res->size = new_size;
118
0
    return res;
119
0
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
isl_map_list.c:isl_basic_map_list_grow
Line
Count
Source
100
18.2k
{
101
18.2k
  isl_ctx *ctx;
102
18.2k
  int i, new_size;
103
18.2k
  LIST(EL) *res;
104
18.2k
105
18.2k
  if (!list)
106
0
    return NULL;
107
18.2k
  if (list->ref == 1 && list->n + n <= list->size)
108
18.2k
    return list;
109
0
110
0
  ctx = FN(LIST(EL),get_ctx)(list);
111
0
  new_size = ((list->n + n + 1) * 3) / 2;
112
0
  if (list->ref == 1) {
113
0
    res = isl_realloc(ctx, list, LIST(EL),
114
0
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
0
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
0
    res->size = new_size;
118
0
    return res;
119
0
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
isl_map_list.c:isl_map_list_grow
Line
Count
Source
100
13.1k
{
101
13.1k
  isl_ctx *ctx;
102
13.1k
  int i, new_size;
103
13.1k
  LIST(EL) *res;
104
13.1k
105
13.1k
  if (!list)
106
9
    return NULL;
107
13.1k
  if (list->ref == 1 && list->n + n <= list->size)
108
13.1k
    return list;
109
0
110
0
  ctx = FN(LIST(EL),get_ctx)(list);
111
0
  new_size = ((list->n + n + 1) * 3) / 2;
112
0
  if (list->ref == 1) {
113
0
    res = isl_realloc(ctx, list, LIST(EL),
114
0
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
0
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
0
    res->size = new_size;
118
0
    return res;
119
0
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
isl_map_list.c:isl_union_map_list_grow
Line
Count
Source
100
5
{
101
5
  isl_ctx *ctx;
102
5
  int i, new_size;
103
5
  LIST(EL) *res;
104
5
105
5
  if (!list)
106
0
    return NULL;
107
5
  if (list->ref == 1 && list->n + n <= list->size)
108
4
    return list;
109
1
110
1
  ctx = FN(LIST(EL),get_ctx)(list);
111
1
  new_size = ((list->n + n + 1) * 3) / 2;
112
1
  if (list->ref == 1) {
113
1
    res = isl_realloc(ctx, list, LIST(EL),
114
1
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
1
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
1
    res->size = new_size;
118
1
    return res;
119
1
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
Unexecuted instantiation: isl_polynomial.c:isl_pw_qpolynomial_list_grow
isl_schedule_tree.c:isl_schedule_tree_list_grow
Line
Count
Source
100
269k
{
101
269k
  isl_ctx *ctx;
102
269k
  int i, new_size;
103
269k
  LIST(EL) *res;
104
269k
105
269k
  if (!list)
106
0
    return NULL;
107
269k
  if (list->ref == 1 && 
list->n + n <= list->size259k
)
108
250k
    return list;
109
18.5k
110
18.5k
  ctx = FN(LIST(EL),get_ctx)(list);
111
18.5k
  new_size = ((list->n + n + 1) * 3) / 2;
112
18.5k
  if (list->ref == 1) {
113
8.59k
    res = isl_realloc(ctx, list, LIST(EL),
114
8.59k
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
8.59k
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
8.59k
    res->size = new_size;
118
8.59k
    return res;
119
8.59k
  }
120
9.92k
121
9.92k
  if (list->n + n <= list->size && 
list->size < new_size2.81k
)
122
2.74k
    new_size = list->size;
123
9.92k
124
9.92k
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
9.92k
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
9.92k
128
38.6k
  
for (i = 0; 9.92k
i < list->n;
++i28.6k
)
129
28.6k
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
9.92k
131
9.92k
  FN(LIST(EL),free)(list);
132
9.92k
  return res;
133
9.92k
}
isl_set_list.c:isl_basic_set_list_grow
Line
Count
Source
100
5.12k
{
101
5.12k
  isl_ctx *ctx;
102
5.12k
  int i, new_size;
103
5.12k
  LIST(EL) *res;
104
5.12k
105
5.12k
  if (!list)
106
0
    return NULL;
107
5.12k
  if (list->ref == 1 && list->n + n <= list->size)
108
5.12k
    return list;
109
2
110
2
  ctx = FN(LIST(EL),get_ctx)(list);
111
2
  new_size = ((list->n + n + 1) * 3) / 2;
112
2
  if (list->ref == 1) {
113
2
    res = isl_realloc(ctx, list, LIST(EL),
114
2
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
2
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
2
    res->size = new_size;
118
2
    return res;
119
2
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
isl_set_list.c:isl_set_list_grow
Line
Count
Source
100
14.9k
{
101
14.9k
  isl_ctx *ctx;
102
14.9k
  int i, new_size;
103
14.9k
  LIST(EL) *res;
104
14.9k
105
14.9k
  if (!list)
106
0
    return NULL;
107
14.9k
  if (list->ref == 1 && list->n + n <= list->size)
108
14.9k
    return list;
109
20
110
20
  ctx = FN(LIST(EL),get_ctx)(list);
111
20
  new_size = ((list->n + n + 1) * 3) / 2;
112
20
  if (list->ref == 1) {
113
20
    res = isl_realloc(ctx, list, LIST(EL),
114
20
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
20
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
20
    res->size = new_size;
118
20
    return res;
119
20
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
isl_set_list.c:isl_union_set_list_grow
Line
Count
Source
100
1.84k
{
101
1.84k
  isl_ctx *ctx;
102
1.84k
  int i, new_size;
103
1.84k
  LIST(EL) *res;
104
1.84k
105
1.84k
  if (!list)
106
0
    return NULL;
107
1.84k
  if (list->ref == 1 && list->n + n <= list->size)
108
1.57k
    return list;
109
263
110
263
  ctx = FN(LIST(EL),get_ctx)(list);
111
263
  new_size = ((list->n + n + 1) * 3) / 2;
112
263
  if (list->ref == 1) {
113
263
    res = isl_realloc(ctx, list, LIST(EL),
114
263
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
263
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
263
    res->size = new_size;
118
263
    return res;
119
263
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
isl_val.c:isl_val_list_grow
Line
Count
Source
100
17
{
101
17
  isl_ctx *ctx;
102
17
  int i, new_size;
103
17
  LIST(EL) *res;
104
17
105
17
  if (!list)
106
0
    return NULL;
107
17
  if (list->ref == 1 && list->n + n <= list->size)
108
9
    return list;
109
8
110
8
  ctx = FN(LIST(EL),get_ctx)(list);
111
8
  new_size = ((list->n + n + 1) * 3) / 2;
112
8
  if (list->ref == 1) {
113
8
    res = isl_realloc(ctx, list, LIST(EL),
114
8
          sizeof(LIST(EL)) + (new_size - 1) * sizeof(EL *));
115
8
    if (!res)
116
0
      return FN(LIST(EL),free)(list);
117
8
    res->size = new_size;
118
8
    return res;
119
8
  }
120
0
121
0
  if (list->n + n <= list->size && list->size < new_size)
122
0
    new_size = list->size;
123
0
124
0
  res = FN(LIST(EL),alloc)(ctx, new_size);
125
0
  if (!res)
126
0
    return FN(LIST(EL),free)(list);
127
0
128
0
  for (i = 0; i < list->n; ++i)
129
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
130
0
131
0
  FN(LIST(EL),free)(list);
132
0
  return res;
133
0
}
134
135
/* Check that "index" is a valid position in "list".
136
 */
137
static isl_stat FN(LIST(EL),check_index)(__isl_keep LIST(EL) *list, int index)
138
733k
{
139
733k
  if (!list)
140
0
    return isl_stat_error;
141
733k
  if (index < 0 || index >= list->n)
142
733k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
733k
      "index out of bounds", return isl_stat_error);
144
733k
  return isl_stat_ok;
145
733k
}
isl_aff.c:isl_aff_list_check_index
Line
Count
Source
138
8.87k
{
139
8.87k
  if (!list)
140
0
    return isl_stat_error;
141
8.87k
  if (index < 0 || index >= list->n)
142
8.87k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
8.87k
      "index out of bounds", return isl_stat_error);
144
8.87k
  return isl_stat_ok;
145
8.87k
}
isl_aff.c:isl_pw_aff_list_check_index
Line
Count
Source
138
25.7k
{
139
25.7k
  if (!list)
140
0
    return isl_stat_error;
141
25.7k
  if (index < 0 || index >= list->n)
142
25.7k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
25.7k
      "index out of bounds", return isl_stat_error);
144
25.7k
  return isl_stat_ok;
145
25.7k
}
Unexecuted instantiation: isl_aff.c:isl_pw_multi_aff_list_check_index
isl_aff.c:isl_union_pw_aff_list_check_index
Line
Count
Source
138
288
{
139
288
  if (!list)
140
0
    return isl_stat_error;
141
288
  if (index < 0 || index >= list->n)
142
288
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
288
      "index out of bounds", return isl_stat_error);
144
288
  return isl_stat_ok;
145
288
}
isl_aff.c:isl_union_pw_multi_aff_list_check_index
Line
Count
Source
138
8
{
139
8
  if (!list)
140
0
    return isl_stat_error;
141
8
  if (index < 0 || index >= list->n)
142
8
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
8
      "index out of bounds", return isl_stat_error);
144
8
  return isl_stat_ok;
145
8
}
Unexecuted instantiation: isl_ast.c:isl_ast_expr_list_check_index
isl_ast.c:isl_ast_node_list_check_index
Line
Count
Source
138
4.49k
{
139
4.49k
  if (!list)
140
0
    return isl_stat_error;
141
4.49k
  if (index < 0 || index >= list->n)
142
4.49k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
4.49k
      "index out of bounds", return isl_stat_error);
144
4.49k
  return isl_stat_ok;
145
4.49k
}
isl_ast_graft.c:isl_ast_graft_list_check_index
Line
Count
Source
138
41.0k
{
139
41.0k
  if (!list)
140
0
    return isl_stat_error;
141
41.0k
  if (index < 0 || index >= list->n)
142
41.0k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
41.0k
      "index out of bounds", return isl_stat_error);
144
41.0k
  return isl_stat_ok;
145
41.0k
}
isl_constraint.c:isl_constraint_list_check_index
Line
Count
Source
138
2.14k
{
139
2.14k
  if (!list)
140
0
    return isl_stat_error;
141
2.14k
  if (index < 0 || index >= list->n)
142
2.14k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
2.14k
      "index out of bounds", return isl_stat_error);
144
2.14k
  return isl_stat_ok;
145
2.14k
}
Unexecuted instantiation: isl_fold.c:isl_pw_qpolynomial_fold_list_check_index
isl_id.c:isl_id_list_check_index
Line
Count
Source
138
23.4k
{
139
23.4k
  if (!list)
140
0
    return isl_stat_error;
141
23.4k
  if (index < 0 || index >= list->n)
142
23.4k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
23.4k
      "index out of bounds", return isl_stat_error);
144
23.4k
  return isl_stat_ok;
145
23.4k
}
isl_map_list.c:isl_basic_map_list_check_index
Line
Count
Source
138
15.9k
{
139
15.9k
  if (!list)
140
0
    return isl_stat_error;
141
15.9k
  if (index < 0 || index >= list->n)
142
15.9k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
15.9k
      "index out of bounds", return isl_stat_error);
144
15.9k
  return isl_stat_ok;
145
15.9k
}
isl_map_list.c:isl_map_list_check_index
Line
Count
Source
138
9.48k
{
139
9.48k
  if (!list)
140
0
    return isl_stat_error;
141
9.48k
  if (index < 0 || index >= list->n)
142
9.48k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
9.48k
      "index out of bounds", return isl_stat_error);
144
9.48k
  return isl_stat_ok;
145
9.48k
}
isl_map_list.c:isl_union_map_list_check_index
Line
Count
Source
138
11
{
139
11
  if (!list)
140
0
    return isl_stat_error;
141
11
  if (index < 0 || index >= list->n)
142
11
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
11
      "index out of bounds", return isl_stat_error);
144
11
  return isl_stat_ok;
145
11
}
Unexecuted instantiation: isl_polynomial.c:isl_pw_qpolynomial_list_check_index
isl_schedule_tree.c:isl_schedule_tree_list_check_index
Line
Count
Source
138
557k
{
139
557k
  if (!list)
140
0
    return isl_stat_error;
141
557k
  if (index < 0 || index >= list->n)
142
557k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
557k
      "index out of bounds", return isl_stat_error);
144
557k
  return isl_stat_ok;
145
557k
}
isl_set_list.c:isl_basic_set_list_check_index
Line
Count
Source
138
16.0k
{
139
16.0k
  if (!list)
140
0
    return isl_stat_error;
141
16.0k
  if (index < 0 || index >= list->n)
142
16.0k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
16.0k
      "index out of bounds", return isl_stat_error);
144
16.0k
  return isl_stat_ok;
145
16.0k
}
isl_set_list.c:isl_set_list_check_index
Line
Count
Source
138
25.2k
{
139
25.2k
  if (!list)
140
0
    return isl_stat_error;
141
25.2k
  if (index < 0 || index >= list->n)
142
25.2k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
25.2k
      "index out of bounds", return isl_stat_error);
144
25.2k
  return isl_stat_ok;
145
25.2k
}
isl_set_list.c:isl_union_set_list_check_index
Line
Count
Source
138
2.88k
{
139
2.88k
  if (!list)
140
0
    return isl_stat_error;
141
2.88k
  if (index < 0 || index >= list->n)
142
2.88k
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
2.88k
      "index out of bounds", return isl_stat_error);
144
2.88k
  return isl_stat_ok;
145
2.88k
}
isl_val.c:isl_val_list_check_index
Line
Count
Source
138
34
{
139
34
  if (!list)
140
0
    return isl_stat_error;
141
34
  if (index < 0 || index >= list->n)
142
34
    
isl_die0
(FN(LIST(EL),get_ctx)(list), isl_error_invalid,
143
34
      "index out of bounds", return isl_stat_error);
144
34
  return isl_stat_ok;
145
34
}
146
147
__isl_give LIST(EL) *FN(LIST(EL),add)(__isl_take LIST(EL) *list,
148
  __isl_take struct EL *el)
149
381k
{
150
381k
  list = FN(LIST(EL),grow)(list, 1);
151
381k
  if (!list || 
!el381k
)
152
9
    goto error;
153
381k
  list->p[list->n] = el;
154
381k
  list->n++;
155
381k
  return list;
156
381k
error:
157
9
  FN(EL,free)(el);
158
9
  FN(LIST(EL),free)(list);
159
9
  return NULL;
160
381k
}
isl_aff_list_add
Line
Count
Source
149
8.45k
{
150
8.45k
  list = FN(LIST(EL),grow)(list, 1);
151
8.45k
  if (!list || !el)
152
0
    goto error;
153
8.45k
  list->p[list->n] = el;
154
8.45k
  list->n++;
155
8.45k
  return list;
156
8.45k
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
8.45k
}
isl_pw_aff_list_add
Line
Count
Source
149
19.9k
{
150
19.9k
  list = FN(LIST(EL),grow)(list, 1);
151
19.9k
  if (!list || !el)
152
0
    goto error;
153
19.9k
  list->p[list->n] = el;
154
19.9k
  list->n++;
155
19.9k
  return list;
156
19.9k
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
19.9k
}
Unexecuted instantiation: isl_pw_multi_aff_list_add
isl_union_pw_aff_list_add
Line
Count
Source
149
144
{
150
144
  list = FN(LIST(EL),grow)(list, 1);
151
144
  if (!list || !el)
152
0
    goto error;
153
144
  list->p[list->n] = el;
154
144
  list->n++;
155
144
  return list;
156
144
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
144
}
isl_union_pw_multi_aff_list_add
Line
Count
Source
149
8
{
150
8
  list = FN(LIST(EL),grow)(list, 1);
151
8
  if (!list || !el)
152
0
    goto error;
153
8
  list->p[list->n] = el;
154
8
  list->n++;
155
8
  return list;
156
8
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
8
}
Unexecuted instantiation: isl_ast_expr_list_add
isl_ast_node_list_add
Line
Count
Source
149
6.19k
{
150
6.19k
  list = FN(LIST(EL),grow)(list, 1);
151
6.19k
  if (!list || !el)
152
0
    goto error;
153
6.19k
  list->p[list->n] = el;
154
6.19k
  list->n++;
155
6.19k
  return list;
156
6.19k
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
6.19k
}
isl_ast_graft_list_add
Line
Count
Source
149
17.0k
{
150
17.0k
  list = FN(LIST(EL),grow)(list, 1);
151
17.0k
  if (!list || !el)
152
0
    goto error;
153
17.0k
  list->p[list->n] = el;
154
17.0k
  list->n++;
155
17.0k
  return list;
156
17.0k
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
17.0k
}
isl_constraint_list_add
Line
Count
Source
149
3.75k
{
150
3.75k
  list = FN(LIST(EL),grow)(list, 1);
151
3.75k
  if (!list || !el)
152
0
    goto error;
153
3.75k
  list->p[list->n] = el;
154
3.75k
  list->n++;
155
3.75k
  return list;
156
3.75k
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
3.75k
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_add
isl_id_list_add
Line
Count
Source
149
2.55k
{
150
2.55k
  list = FN(LIST(EL),grow)(list, 1);
151
2.55k
  if (!list || !el)
152
0
    goto error;
153
2.55k
  list->p[list->n] = el;
154
2.55k
  list->n++;
155
2.55k
  return list;
156
2.55k
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
2.55k
}
isl_basic_map_list_add
Line
Count
Source
149
18.2k
{
150
18.2k
  list = FN(LIST(EL),grow)(list, 1);
151
18.2k
  if (!list || !el)
152
0
    goto error;
153
18.2k
  list->p[list->n] = el;
154
18.2k
  list->n++;
155
18.2k
  return list;
156
18.2k
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
18.2k
}
isl_map_list_add
Line
Count
Source
149
13.1k
{
150
13.1k
  list = FN(LIST(EL),grow)(list, 1);
151
13.1k
  if (!list || 
!el13.1k
)
152
9
    goto error;
153
13.1k
  list->p[list->n] = el;
154
13.1k
  list->n++;
155
13.1k
  return list;
156
13.1k
error:
157
9
  FN(EL,free)(el);
158
9
  FN(LIST(EL),free)(list);
159
9
  return NULL;
160
13.1k
}
isl_union_map_list_add
Line
Count
Source
149
5
{
150
5
  list = FN(LIST(EL),grow)(list, 1);
151
5
  if (!list || !el)
152
0
    goto error;
153
5
  list->p[list->n] = el;
154
5
  list->n++;
155
5
  return list;
156
5
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
5
}
Unexecuted instantiation: isl_pw_qpolynomial_list_add
isl_schedule_tree_list_add
Line
Count
Source
149
269k
{
150
269k
  list = FN(LIST(EL),grow)(list, 1);
151
269k
  if (!list || !el)
152
0
    goto error;
153
269k
  list->p[list->n] = el;
154
269k
  list->n++;
155
269k
  return list;
156
269k
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
269k
}
isl_basic_set_list_add
Line
Count
Source
149
5.12k
{
150
5.12k
  list = FN(LIST(EL),grow)(list, 1);
151
5.12k
  if (!list || !el)
152
0
    goto error;
153
5.12k
  list->p[list->n] = el;
154
5.12k
  list->n++;
155
5.12k
  return list;
156
5.12k
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
5.12k
}
isl_set_list_add
Line
Count
Source
149
14.9k
{
150
14.9k
  list = FN(LIST(EL),grow)(list, 1);
151
14.9k
  if (!list || !el)
152
0
    goto error;
153
14.9k
  list->p[list->n] = el;
154
14.9k
  list->n++;
155
14.9k
  return list;
156
14.9k
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
14.9k
}
isl_union_set_list_add
Line
Count
Source
149
1.84k
{
150
1.84k
  list = FN(LIST(EL),grow)(list, 1);
151
1.84k
  if (!list || !el)
152
0
    goto error;
153
1.84k
  list->p[list->n] = el;
154
1.84k
  list->n++;
155
1.84k
  return list;
156
1.84k
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
1.84k
}
isl_val_list_add
Line
Count
Source
149
17
{
150
17
  list = FN(LIST(EL),grow)(list, 1);
151
17
  if (!list || !el)
152
0
    goto error;
153
17
  list->p[list->n] = el;
154
17
  list->n++;
155
17
  return list;
156
17
error:
157
0
  FN(EL,free)(el);
158
0
  FN(LIST(EL),free)(list);
159
0
  return NULL;
160
17
}
161
162
/* Remove the "n" elements starting at "first" from "list".
163
 */
164
__isl_give LIST(EL) *FN(LIST(EL),drop)(__isl_take LIST(EL) *list,
165
  unsigned first, unsigned n)
166
70.9k
{
167
70.9k
  int i;
168
70.9k
169
70.9k
  if (!list)
170
0
    return NULL;
171
70.9k
  if (first + n > list->n || first + n < first)
172
70.9k
    
isl_die0
(list->ctx, isl_error_invalid,
173
70.9k
      "index out of bounds", return FN(LIST(EL),free)(list));
174
70.9k
  if (n == 0)
175
681
    return list;
176
70.2k
  list = FN(LIST(EL),cow)(list);
177
70.2k
  if (!list)
178
0
    return NULL;
179
204k
  
for (i = 0; 70.2k
i < n;
++i134k
)
180
134k
    FN(EL,free)(list->p[first + i]);
181
72.8k
  for (i = first; i + n < list->n; 
++i2.58k
)
182
2.58k
    list->p[i] = list->p[i + n];
183
70.2k
  list->n -= n;
184
70.2k
  return list;
185
70.2k
}
Unexecuted instantiation: isl_aff_list_drop
Unexecuted instantiation: isl_pw_aff_list_drop
Unexecuted instantiation: isl_pw_multi_aff_list_drop
Unexecuted instantiation: isl_union_pw_aff_list_drop
Unexecuted instantiation: isl_union_pw_multi_aff_list_drop
Unexecuted instantiation: isl_ast_expr_list_drop
Unexecuted instantiation: isl_ast_node_list_drop
Unexecuted instantiation: isl_ast_graft_list_drop
isl_constraint_list_drop
Line
Count
Source
166
2.19k
{
167
2.19k
  int i;
168
2.19k
169
2.19k
  if (!list)
170
0
    return NULL;
171
2.19k
  if (first + n > list->n || first + n < first)
172
2.19k
    
isl_die0
(list->ctx, isl_error_invalid,
173
2.19k
      "index out of bounds", return FN(LIST(EL),free)(list));
174
2.19k
  if (n == 0)
175
681
    return list;
176
1.50k
  list = FN(LIST(EL),cow)(list);
177
1.50k
  if (!list)
178
0
    return NULL;
179
3.11k
  
for (i = 0; 1.50k
i < n;
++i1.61k
)
180
1.61k
    FN(EL,free)(list->p[first + i]);
181
2.42k
  for (i = first; i + n < list->n; 
++i911
)
182
911
    list->p[i] = list->p[i + n];
183
1.50k
  list->n -= n;
184
1.50k
  return list;
185
1.50k
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_drop
isl_id_list_drop
Line
Count
Source
166
1
{
167
1
  int i;
168
1
169
1
  if (!list)
170
0
    return NULL;
171
1
  if (first + n > list->n || first + n < first)
172
1
    
isl_die0
(list->ctx, isl_error_invalid,
173
1
      "index out of bounds", return FN(LIST(EL),free)(list));
174
1
  if (n == 0)
175
0
    return list;
176
1
  list = FN(LIST(EL),cow)(list);
177
1
  if (!list)
178
0
    return NULL;
179
2
  
for (i = 0; 1
i < n;
++i1
)
180
1
    FN(EL,free)(list->p[first + i]);
181
3
  for (i = first; i + n < list->n; 
++i2
)
182
2
    list->p[i] = list->p[i + n];
183
1
  list->n -= n;
184
1
  return list;
185
1
}
Unexecuted instantiation: isl_basic_map_list_drop
Unexecuted instantiation: isl_map_list_drop
isl_union_map_list_drop
Line
Count
Source
166
4
{
167
4
  int i;
168
4
169
4
  if (!list)
170
0
    return NULL;
171
4
  if (first + n > list->n || first + n < first)
172
4
    
isl_die0
(list->ctx, isl_error_invalid,
173
4
      "index out of bounds", return FN(LIST(EL),free)(list));
174
4
  if (n == 0)
175
0
    return list;
176
4
  list = FN(LIST(EL),cow)(list);
177
4
  if (!list)
178
0
    return NULL;
179
8
  
for (i = 0; 4
i < n;
++i4
)
180
4
    FN(EL,free)(list->p[first + i]);
181
4
  for (i = first; i + n < list->n; 
++i0
)
182
0
    list->p[i] = list->p[i + n];
183
4
  list->n -= n;
184
4
  return list;
185
4
}
Unexecuted instantiation: isl_pw_qpolynomial_list_drop
isl_schedule_tree_list_drop
Line
Count
Source
166
67.4k
{
167
67.4k
  int i;
168
67.4k
169
67.4k
  if (!list)
170
0
    return NULL;
171
67.4k
  if (first + n > list->n || first + n < first)
172
67.4k
    
isl_die0
(list->ctx, isl_error_invalid,
173
67.4k
      "index out of bounds", return FN(LIST(EL),free)(list));
174
67.4k
  if (n == 0)
175
0
    return list;
176
67.4k
  list = FN(LIST(EL),cow)(list);
177
67.4k
  if (!list)
178
0
    return NULL;
179
199k
  
for (i = 0; 67.4k
i < n;
++i131k
)
180
131k
    FN(EL,free)(list->p[first + i]);
181
69.1k
  for (i = first; i + n < list->n; 
++i1.67k
)
182
1.67k
    list->p[i] = list->p[i + n];
183
67.4k
  list->n -= n;
184
67.4k
  return list;
185
67.4k
}
isl_basic_set_list_drop
Line
Count
Source
166
4
{
167
4
  int i;
168
4
169
4
  if (!list)
170
0
    return NULL;
171
4
  if (first + n > list->n || first + n < first)
172
4
    
isl_die0
(list->ctx, isl_error_invalid,
173
4
      "index out of bounds", return FN(LIST(EL),free)(list));
174
4
  if (n == 0)
175
0
    return list;
176
4
  list = FN(LIST(EL),cow)(list);
177
4
  if (!list)
178
0
    return NULL;
179
12
  
for (i = 0; 4
i < n;
++i8
)
180
8
    FN(EL,free)(list->p[first + i]);
181
4
  for (i = first; i + n < list->n; 
++i0
)
182
0
    list->p[i] = list->p[i + n];
183
4
  list->n -= n;
184
4
  return list;
185
4
}
Unexecuted instantiation: isl_set_list_drop
isl_union_set_list_drop
Line
Count
Source
166
1.26k
{
167
1.26k
  int i;
168
1.26k
169
1.26k
  if (!list)
170
0
    return NULL;
171
1.26k
  if (first + n > list->n || first + n < first)
172
1.26k
    
isl_die0
(list->ctx, isl_error_invalid,
173
1.26k
      "index out of bounds", return FN(LIST(EL),free)(list));
174
1.26k
  if (n == 0)
175
0
    return list;
176
1.26k
  list = FN(LIST(EL),cow)(list);
177
1.26k
  if (!list)
178
0
    return NULL;
179
2.53k
  
for (i = 0; 1.26k
i < n;
++i1.26k
)
180
1.26k
    FN(EL,free)(list->p[first + i]);
181
1.26k
  for (i = first; i + n < list->n; 
++i0
)
182
0
    list->p[i] = list->p[i + n];
183
1.26k
  list->n -= n;
184
1.26k
  return list;
185
1.26k
}
Unexecuted instantiation: isl_val_list_drop
186
187
/* Insert "el" at position "pos" in "list".
188
 *
189
 * If there is only one reference to "list" and if it already has space
190
 * for one extra element, we insert it directly into "list".
191
 * Otherwise, we create a new list consisting of "el" and copied
192
 * elements from "list".
193
 */
194
__isl_give LIST(EL) *FN(LIST(EL),insert)(__isl_take LIST(EL) *list,
195
  unsigned pos, __isl_take struct EL *el)
196
30
{
197
30
  int i;
198
30
  isl_ctx *ctx;
199
30
  LIST(EL) *res;
200
30
201
30
  if (!list || !el)
202
0
    goto error;
203
30
  ctx = FN(LIST(EL),get_ctx)(list);
204
30
  if (pos > list->n)
205
30
    
isl_die0
(ctx, isl_error_invalid,
206
30
      "index out of bounds", goto error);
207
30
208
30
  if (list->ref == 1 && 
list->size > list->n27
) {
209
2
    for (i = list->n; i > pos; 
--i1
)
210
1
      list->p[i] = list->p[i - 1];
211
1
    list->n++;
212
1
    list->p[pos] = el;
213
1
    return list;
214
1
  }
215
29
216
29
  res = FN(LIST(EL),alloc)(ctx, list->n + 1);
217
68
  for (i = 0; i < pos; 
++i39
)
218
39
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
219
29
  res = FN(LIST(EL),add)(res, el);
220
31
  for (i = pos; i < list->n; 
++i2
)
221
2
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
222
29
  FN(LIST(EL),free)(list);
223
29
224
29
  return res;
225
29
error:
226
0
  FN(EL,free)(el);
227
0
  FN(LIST(EL),free)(list);
228
0
  return NULL;
229
29
}
Unexecuted instantiation: isl_aff_list_insert
Unexecuted instantiation: isl_pw_aff_list_insert
Unexecuted instantiation: isl_pw_multi_aff_list_insert
Unexecuted instantiation: isl_union_pw_aff_list_insert
Unexecuted instantiation: isl_union_pw_multi_aff_list_insert
Unexecuted instantiation: isl_ast_expr_list_insert
Unexecuted instantiation: isl_ast_node_list_insert
isl_ast_graft_list_insert
Line
Count
Source
196
26
{
197
26
  int i;
198
26
  isl_ctx *ctx;
199
26
  LIST(EL) *res;
200
26
201
26
  if (!list || !el)
202
0
    goto error;
203
26
  ctx = FN(LIST(EL),get_ctx)(list);
204
26
  if (pos > list->n)
205
26
    
isl_die0
(ctx, isl_error_invalid,
206
26
      "index out of bounds", goto error);
207
26
208
26
  if (list->ref == 1 && list->size > list->n) {
209
0
    for (i = list->n; i > pos; --i)
210
0
      list->p[i] = list->p[i - 1];
211
0
    list->n++;
212
0
    list->p[pos] = el;
213
0
    return list;
214
0
  }
215
26
216
26
  res = FN(LIST(EL),alloc)(ctx, list->n + 1);
217
62
  for (i = 0; i < pos; 
++i36
)
218
36
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
219
26
  res = FN(LIST(EL),add)(res, el);
220
28
  for (i = pos; i < list->n; 
++i2
)
221
2
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
222
26
  FN(LIST(EL),free)(list);
223
26
224
26
  return res;
225
26
error:
226
0
  FN(EL,free)(el);
227
0
  FN(LIST(EL),free)(list);
228
0
  return NULL;
229
26
}
Unexecuted instantiation: isl_constraint_list_insert
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_insert
isl_id_list_insert
Line
Count
Source
196
4
{
197
4
  int i;
198
4
  isl_ctx *ctx;
199
4
  LIST(EL) *res;
200
4
201
4
  if (!list || !el)
202
0
    goto error;
203
4
  ctx = FN(LIST(EL),get_ctx)(list);
204
4
  if (pos > list->n)
205
4
    
isl_die0
(ctx, isl_error_invalid,
206
4
      "index out of bounds", goto error);
207
4
208
4
  if (list->ref == 1 && 
list->size > list->n1
) {
209
2
    for (i = list->n; i > pos; 
--i1
)
210
1
      list->p[i] = list->p[i - 1];
211
1
    list->n++;
212
1
    list->p[pos] = el;
213
1
    return list;
214
1
  }
215
3
216
3
  res = FN(LIST(EL),alloc)(ctx, list->n + 1);
217
6
  for (i = 0; i < pos; 
++i3
)
218
3
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
219
3
  res = FN(LIST(EL),add)(res, el);
220
3
  for (i = pos; i < list->n; 
++i0
)
221
0
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list->p[i]));
222
3
  FN(LIST(EL),free)(list);
223
3
224
3
  return res;
225
3
error:
226
0
  FN(EL,free)(el);
227
0
  FN(LIST(EL),free)(list);
228
0
  return NULL;
229
3
}
Unexecuted instantiation: isl_basic_map_list_insert
Unexecuted instantiation: isl_map_list_insert
Unexecuted instantiation: isl_union_map_list_insert
Unexecuted instantiation: isl_pw_qpolynomial_list_insert
Unexecuted instantiation: isl_schedule_tree_list_insert
Unexecuted instantiation: isl_basic_set_list_insert
Unexecuted instantiation: isl_set_list_insert
Unexecuted instantiation: isl_union_set_list_insert
Unexecuted instantiation: isl_val_list_insert
230
231
__isl_null LIST(EL) *FN(LIST(EL),free)(__isl_take LIST(EL) *list)
232
259k
{
233
259k
  int i;
234
259k
235
259k
  if (!list)
236
38.5k
    return NULL;
237
220k
238
220k
  if (--list->ref > 0)
239
60.4k
    return NULL;
240
160k
241
160k
  isl_ctx_deref(list->ctx);
242
406k
  for (i = 0; i < list->n; 
++i246k
)
243
246k
    FN(EL,free)(list->p[i]);
244
160k
  free(list);
245
160k
246
160k
  return NULL;
247
160k
}
isl_aff_list_free
Line
Count
Source
232
16.6k
{
233
16.6k
  int i;
234
16.6k
235
16.6k
  if (!list)
236
8.14k
    return NULL;
237
8.53k
238
8.53k
  if (--list->ref > 0)
239
0
    return NULL;
240
8.53k
241
8.53k
  isl_ctx_deref(list->ctx);
242
16.9k
  for (i = 0; i < list->n; 
++i8.45k
)
243
8.53k
    
FN8.45k
(EL,free)(list->p[i])8.45k
;
244
8.53k
  free(list);
245
8.53k
246
8.53k
  return NULL;
247
8.53k
}
isl_pw_aff_list_free
Line
Count
Source
232
28.9k
{
233
28.9k
  int i;
234
28.9k
235
28.9k
  if (!list)
236
3
    return NULL;
237
28.9k
238
28.9k
  if (--list->ref > 0)
239
11.5k
    return NULL;
240
17.3k
241
17.3k
  isl_ctx_deref(list->ctx);
242
37.3k
  for (i = 0; i < list->n; 
++i19.9k
)
243
19.9k
    FN(EL,free)(list->p[i]);
244
17.3k
  free(list);
245
17.3k
246
17.3k
  return NULL;
247
17.3k
}
Unexecuted instantiation: isl_pw_multi_aff_list_free
isl_union_pw_aff_list_free
Line
Count
Source
232
260
{
233
260
  int i;
234
260
235
260
  if (!list)
236
0
    return NULL;
237
260
238
260
  if (--list->ref > 0)
239
0
    return NULL;
240
260
241
260
  isl_ctx_deref(list->ctx);
242
404
  for (i = 0; i < list->n; 
++i144
)
243
260
    
FN144
(EL,free)(list->p[i])144
;
244
260
  free(list);
245
260
246
260
  return NULL;
247
260
}
isl_union_pw_multi_aff_list_free
Line
Count
Source
232
8
{
233
8
  int i;
234
8
235
8
  if (!list)
236
0
    return NULL;
237
8
238
8
  if (--list->ref > 0)
239
0
    return NULL;
240
8
241
8
  isl_ctx_deref(list->ctx);
242
16
  for (i = 0; i < list->n; 
++i8
)
243
8
    FN(EL,free)(list->p[i]);
244
8
  free(list);
245
8
246
8
  return NULL;
247
8
}
Unexecuted instantiation: isl_ast_expr_list_free
isl_ast_node_list_free
Line
Count
Source
232
4.73k
{
233
4.73k
  int i;
234
4.73k
235
4.73k
  if (!list)
236
0
    return NULL;
237
4.73k
238
4.73k
  if (--list->ref > 0)
239
234
    return NULL;
240
4.50k
241
4.50k
  isl_ctx_deref(list->ctx);
242
10.7k
  for (i = 0; i < list->n; 
++i6.19k
)
243
6.19k
    FN(EL,free)(list->p[i]);
244
4.50k
  free(list);
245
4.50k
246
4.50k
  return NULL;
247
4.50k
}
isl_ast_graft_list_free
Line
Count
Source
232
18.1k
{
233
18.1k
  int i;
234
18.1k
235
18.1k
  if (!list)
236
0
    return NULL;
237
18.1k
238
18.1k
  if (--list->ref > 0)
239
0
    return NULL;
240
18.1k
241
18.1k
  isl_ctx_deref(list->ctx);
242
35.1k
  for (i = 0; i < list->n; 
++i17.0k
)
243
18.1k
    
FN17.0k
(EL,free)(list->p[i])17.0k
;
244
18.1k
  free(list);
245
18.1k
246
18.1k
  return NULL;
247
18.1k
}
isl_constraint_list_free
Line
Count
Source
232
2.37k
{
233
2.37k
  int i;
234
2.37k
235
2.37k
  if (!list)
236
0
    return NULL;
237
2.37k
238
2.37k
  if (--list->ref > 0)
239
0
    return NULL;
240
2.37k
241
2.37k
  isl_ctx_deref(list->ctx);
242
4.52k
  for (i = 0; i < list->n; 
++i2.14k
)
243
2.37k
    
FN2.14k
(EL,free)(list->p[i])2.14k
;
244
2.37k
  free(list);
245
2.37k
246
2.37k
  return NULL;
247
2.37k
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_free
isl_id_list_free
Line
Count
Source
232
37.3k
{
233
37.3k
  int i;
234
37.3k
235
37.3k
  if (!list)
236
0
    return NULL;
237
37.3k
238
37.3k
  if (--list->ref > 0)
239
35.4k
    return NULL;
240
1.93k
241
1.93k
  isl_ctx_deref(list->ctx);
242
4.48k
  for (i = 0; i < list->n; 
++i2.55k
)
243
2.55k
    FN(EL,free)(list->p[i]);
244
1.93k
  free(list);
245
1.93k
246
1.93k
  return NULL;
247
1.93k
}
isl_basic_map_list_free
Line
Count
Source
232
4.03k
{
233
4.03k
  int i;
234
4.03k
235
4.03k
  if (!list)
236
0
    return NULL;
237
4.03k
238
4.03k
  if (--list->ref > 0)
239
0
    return NULL;
240
4.03k
241
4.03k
  isl_ctx_deref(list->ctx);
242
18.6k
  for (i = 0; i < list->n; 
++i14.5k
)
243
14.5k
    FN(EL,free)(list->p[i]);
244
4.03k
  free(list);
245
4.03k
246
4.03k
  return NULL;
247
4.03k
}
isl_map_list_free
Line
Count
Source
232
5.00k
{
233
5.00k
  int i;
234
5.00k
235
5.00k
  if (!list)
236
18
    return NULL;
237
4.98k
238
4.98k
  if (--list->ref > 0)
239
0
    return NULL;
240
4.98k
241
4.98k
  isl_ctx_deref(list->ctx);
242
14.5k
  for (i = 0; i < list->n; 
++i9.59k
)
243
9.59k
    FN(EL,free)(list->p[i]);
244
4.98k
  free(list);
245
4.98k
246
4.98k
  return NULL;
247
4.98k
}
isl_union_map_list_free
Line
Count
Source
232
1
{
233
1
  int i;
234
1
235
1
  if (!list)
236
0
    return NULL;
237
1
238
1
  if (--list->ref > 0)
239
0
    return NULL;
240
1
241
1
  isl_ctx_deref(list->ctx);
242
2
  for (i = 0; i < list->n; 
++i1
)
243
1
    FN(EL,free)(list->p[i]);
244
1
  free(list);
245
1
246
1
  return NULL;
247
1
}
Unexecuted instantiation: isl_pw_qpolynomial_list_free
isl_schedule_tree_list_free
Line
Count
Source
232
113k
{
233
113k
  int i;
234
113k
235
113k
  if (!list)
236
22.2k
    return NULL;
237
91.1k
238
91.1k
  if (--list->ref > 0)
239
13.1k
    return NULL;
240
78.0k
241
78.0k
  isl_ctx_deref(list->ctx);
242
215k
  for (i = 0; i < list->n; 
++i137k
)
243
137k
    FN(EL,free)(list->p[i]);
244
78.0k
  free(list);
245
78.0k
246
78.0k
  return NULL;
247
78.0k
}
isl_basic_set_list_free
Line
Count
Source
232
5.18k
{
233
5.18k
  int i;
234
5.18k
235
5.18k
  if (!list)
236
0
    return NULL;
237
5.18k
238
5.18k
  if (--list->ref > 0)
239
21
    return NULL;
240
5.16k
241
5.16k
  isl_ctx_deref(list->ctx);
242
13.9k
  for (i = 0; i < list->n; 
++i8.83k
)
243
8.83k
    FN(EL,free)(list->p[i]);
244
5.16k
  free(list);
245
5.16k
246
5.16k
  return NULL;
247
5.16k
}
isl_set_list_free
Line
Count
Source
232
22.4k
{
233
22.4k
  int i;
234
22.4k
235
22.4k
  if (!list)
236
8.14k
    return NULL;
237
14.3k
238
14.3k
  if (--list->ref > 0)
239
0
    return NULL;
240
14.3k
241
14.3k
  isl_ctx_deref(list->ctx);
242
32.8k
  for (i = 0; i < list->n; 
++i18.5k
)
243
18.5k
    FN(EL,free)(list->p[i]);
244
14.3k
  free(list);
245
14.3k
246
14.3k
  return NULL;
247
14.3k
}
isl_union_set_list_free
Line
Count
Source
232
491
{
233
491
  int i;
234
491
235
491
  if (!list)
236
0
    return NULL;
237
491
238
491
  if (--list->ref > 0)
239
0
    return NULL;
240
491
241
491
  isl_ctx_deref(list->ctx);
242
1.06k
  for (i = 0; i < list->n; 
++i576
)
243
576
    FN(EL,free)(list->p[i]);
244
491
  free(list);
245
491
246
491
  return NULL;
247
491
}
isl_val_list_free
Line
Count
Source
232
7
{
233
7
  int i;
234
7
235
7
  if (!list)
236
0
    return NULL;
237
7
238
7
  if (--list->ref > 0)
239
0
    return NULL;
240
7
241
7
  isl_ctx_deref(list->ctx);
242
24
  for (i = 0; i < list->n; 
++i17
)
243
17
    FN(EL,free)(list->p[i]);
244
7
  free(list);
245
7
246
7
  return NULL;
247
7
}
248
249
/* Return the number of elements in "list".
250
 */
251
int FN(LIST(EL),size)(__isl_keep LIST(EL) *list)
252
968k
{
253
968k
  return list ? 
list->n953k
:
015.1k
;
254
968k
}
isl_aff_list_size
Line
Count
Source
252
1.17k
{
253
1.17k
  return list ? list->n : 
00
;
254
1.17k
}
isl_pw_aff_list_size
Line
Count
Source
252
17.6k
{
253
17.6k
  return list ? list->n : 
00
;
254
17.6k
}
Unexecuted instantiation: isl_pw_multi_aff_list_size
isl_union_pw_aff_list_size
Line
Count
Source
252
260
{
253
260
  return list ? list->n : 
00
;
254
260
}
isl_union_pw_multi_aff_list_size
Line
Count
Source
252
8
{
253
8
  return list ? list->n : 
00
;
254
8
}
Unexecuted instantiation: isl_ast_expr_list_size
isl_ast_node_list_size
Line
Count
Source
252
4.96k
{
253
4.96k
  return list ? list->n : 
00
;
254
4.96k
}
isl_ast_graft_list_size
Line
Count
Source
252
27.6k
{
253
27.6k
  return list ? list->n : 
00
;
254
27.6k
}
isl_constraint_list_size
Line
Count
Source
252
3.83k
{
253
3.83k
  return list ? list->n : 
00
;
254
3.83k
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_size
isl_id_list_size
Line
Count
Source
252
1.11k
{
253
1.11k
  return list ? list->n : 
00
;
254
1.11k
}
isl_basic_map_list_size
Line
Count
Source
252
3.70k
{
253
3.70k
  return list ? list->n : 
00
;
254
3.70k
}
isl_map_list_size
Line
Count
Source
252
5.00k
{
253
5.00k
  return list ? 
list->n4.97k
:
025
;
254
5.00k
}
isl_union_map_list_size
Line
Count
Source
252
13
{
253
13
  return list ? list->n : 
00
;
254
13
}
Unexecuted instantiation: isl_pw_qpolynomial_list_size
isl_schedule_tree_list_size
Line
Count
Source
252
882k
{
253
882k
  return list ? 
list->n867k
:
015.1k
;
254
882k
}
isl_basic_set_list_size
Line
Count
Source
252
6.84k
{
253
6.84k
  return list ? list->n : 
00
;
254
6.84k
}
isl_set_list_size
Line
Count
Source
252
11.0k
{
253
11.0k
  return list ? 
list->n11.0k
:
03
;
254
11.0k
}
isl_union_set_list_size
Line
Count
Source
252
2.79k
{
253
2.79k
  return list ? list->n : 
00
;
254
2.79k
}
isl_val_list_size
Line
Count
Source
252
7
{
253
7
  return list ? list->n : 
00
;
254
7
}
255
256
/* This is an alternative name for the function above.
257
 */
258
int FN(FN(LIST(EL),n),BASE)(__isl_keep LIST(EL) *list)
259
959k
{
260
959k
  return FN(LIST(EL),size)(list);
261
959k
}
isl_aff_list_n_aff
Line
Count
Source
259
1.17k
{
260
1.17k
  return FN(LIST(EL),size)(list);
261
1.17k
}
isl_pw_aff_list_n_pw_aff
Line
Count
Source
259
17.6k
{
260
17.6k
  return FN(LIST(EL),size)(list);
261
17.6k
}
Unexecuted instantiation: isl_pw_multi_aff_list_n_pw_multi_aff
isl_union_pw_aff_list_n_union_pw_aff
Line
Count
Source
259
260
{
260
260
  return FN(LIST(EL),size)(list);
261
260
}
isl_union_pw_multi_aff_list_n_union_pw_multi_aff
Line
Count
Source
259
8
{
260
8
  return FN(LIST(EL),size)(list);
261
8
}
Unexecuted instantiation: isl_ast_expr_list_n_ast_expr
isl_ast_node_list_n_ast_node
Line
Count
Source
259
4.96k
{
260
4.96k
  return FN(LIST(EL),size)(list);
261
4.96k
}
isl_ast_graft_list_n_ast_graft
Line
Count
Source
259
27.6k
{
260
27.6k
  return FN(LIST(EL),size)(list);
261
27.6k
}
isl_constraint_list_n_constraint
Line
Count
Source
259
3.83k
{
260
3.83k
  return FN(LIST(EL),size)(list);
261
3.83k
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_n_pw_qpolynomial_fold
isl_id_list_n_id
Line
Count
Source
259
1.11k
{
260
1.11k
  return FN(LIST(EL),size)(list);
261
1.11k
}
isl_basic_map_list_n_basic_map
Line
Count
Source
259
3.48k
{
260
3.48k
  return FN(LIST(EL),size)(list);
261
3.48k
}
isl_map_list_n_map
Line
Count
Source
259
873
{
260
873
  return FN(LIST(EL),size)(list);
261
873
}
isl_union_map_list_n_union_map
Line
Count
Source
259
13
{
260
13
  return FN(LIST(EL),size)(list);
261
13
}
Unexecuted instantiation: isl_pw_qpolynomial_list_n_pw_qpolynomial
isl_schedule_tree_list_n_schedule_tree
Line
Count
Source
259
882k
{
260
882k
  return FN(LIST(EL),size)(list);
261
882k
}
isl_basic_set_list_n_basic_set
Line
Count
Source
259
4.75k
{
260
4.75k
  return FN(LIST(EL),size)(list);
261
4.75k
}
isl_set_list_n_set
Line
Count
Source
259
8.17k
{
260
8.17k
  return FN(LIST(EL),size)(list);
261
8.17k
}
isl_union_set_list_n_union_set
Line
Count
Source
259
2.79k
{
260
2.79k
  return FN(LIST(EL),size)(list);
261
2.79k
}
isl_val_list_n_val
Line
Count
Source
259
7
{
260
7
  return FN(LIST(EL),size)(list);
261
7
}
262
263
/* Return the element at position "index" in "list".
264
 */
265
static __isl_keep EL *FN(LIST(EL),peek)(__isl_keep LIST(EL) *list, int index)
266
685k
{
267
685k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
685k
  return list->p[index];
270
685k
}
isl_aff.c:isl_aff_list_peek
Line
Count
Source
266
8.87k
{
267
8.87k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
8.87k
  return list->p[index];
270
8.87k
}
isl_aff.c:isl_pw_aff_list_peek
Line
Count
Source
266
22.2k
{
267
22.2k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
22.2k
  return list->p[index];
270
22.2k
}
Unexecuted instantiation: isl_aff.c:isl_pw_multi_aff_list_peek
isl_aff.c:isl_union_pw_aff_list_peek
Line
Count
Source
266
288
{
267
288
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
288
  return list->p[index];
270
288
}
isl_aff.c:isl_union_pw_multi_aff_list_peek
Line
Count
Source
266
8
{
267
8
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
8
  return list->p[index];
270
8
}
Unexecuted instantiation: isl_ast.c:isl_ast_expr_list_peek
isl_ast.c:isl_ast_node_list_peek
Line
Count
Source
266
4.49k
{
267
4.49k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
4.49k
  return list->p[index];
270
4.49k
}
isl_ast_graft.c:isl_ast_graft_list_peek
Line
Count
Source
266
34.3k
{
267
34.3k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
34.3k
  return list->p[index];
270
34.3k
}
isl_constraint.c:isl_constraint_list_peek
Line
Count
Source
266
2.14k
{
267
2.14k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
2.14k
  return list->p[index];
270
2.14k
}
Unexecuted instantiation: isl_fold.c:isl_pw_qpolynomial_fold_list_peek
isl_id.c:isl_id_list_peek
Line
Count
Source
266
23.4k
{
267
23.4k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
23.4k
  return list->p[index];
270
23.4k
}
isl_map_list.c:isl_basic_map_list_peek
Line
Count
Source
266
12.2k
{
267
12.2k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
12.2k
  return list->p[index];
270
12.2k
}
isl_map_list.c:isl_map_list_peek
Line
Count
Source
266
9.48k
{
267
9.48k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
9.48k
  return list->p[index];
270
9.48k
}
isl_map_list.c:isl_union_map_list_peek
Line
Count
Source
266
9
{
267
9
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
9
  return list->p[index];
270
9
}
Unexecuted instantiation: isl_polynomial.c:isl_pw_qpolynomial_list_peek
isl_schedule_tree.c:isl_schedule_tree_list_peek
Line
Count
Source
266
530k
{
267
530k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
530k
  return list->p[index];
270
530k
}
isl_set_list.c:isl_basic_set_list_peek
Line
Count
Source
266
12.2k
{
267
12.2k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
12.2k
  return list->p[index];
270
12.2k
}
isl_set_list.c:isl_set_list_peek
Line
Count
Source
266
21.9k
{
267
21.9k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
21.9k
  return list->p[index];
270
21.9k
}
isl_set_list.c:isl_union_set_list_peek
Line
Count
Source
266
2.88k
{
267
2.88k
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
2.88k
  return list->p[index];
270
2.88k
}
isl_val.c:isl_val_list_peek
Line
Count
Source
266
34
{
267
34
  if (FN(LIST(EL),check_index)(list, index) < 0)
268
0
    return NULL;
269
34
  return list->p[index];
270
34
}
271
272
/* Return a copy of the element at position "index" in "list".
273
 */
274
__isl_give EL *FN(LIST(EL),get_at)(__isl_keep LIST(EL) *list, int index)
275
676k
{
276
676k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
676k
}
isl_aff_list_get_at
Line
Count
Source
275
8.87k
{
276
8.87k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
8.87k
}
isl_pw_aff_list_get_at
Line
Count
Source
275
13.6k
{
276
13.6k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
13.6k
}
Unexecuted instantiation: isl_pw_multi_aff_list_get_at
isl_union_pw_aff_list_get_at
Line
Count
Source
275
144
{
276
144
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
144
}
isl_union_pw_multi_aff_list_get_at
Line
Count
Source
275
8
{
276
8
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
8
}
Unexecuted instantiation: isl_ast_expr_list_get_at
isl_ast_node_list_get_at
Line
Count
Source
275
4.49k
{
276
4.49k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
4.49k
}
isl_ast_graft_list_get_at
Line
Count
Source
275
34.3k
{
276
34.3k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
34.3k
}
isl_constraint_list_get_at
Line
Count
Source
275
2.14k
{
276
2.14k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
2.14k
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_get_at
isl_id_list_get_at
Line
Count
Source
275
23.4k
{
276
23.4k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
23.4k
}
isl_basic_map_list_get_at
Line
Count
Source
275
12.2k
{
276
12.2k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
12.2k
}
isl_map_list_get_at
Line
Count
Source
275
9.48k
{
276
9.48k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
9.48k
}
isl_union_map_list_get_at
Line
Count
Source
275
9
{
276
9
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
9
}
Unexecuted instantiation: isl_pw_qpolynomial_list_get_at
isl_schedule_tree_list_get_at
Line
Count
Source
275
530k
{
276
530k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
530k
}
isl_basic_set_list_get_at
Line
Count
Source
275
12.2k
{
276
12.2k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
12.2k
}
isl_set_list_get_at
Line
Count
Source
275
21.9k
{
276
21.9k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
21.9k
}
isl_union_set_list_get_at
Line
Count
Source
275
2.88k
{
276
2.88k
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
2.88k
}
isl_val_list_get_at
Line
Count
Source
275
17
{
276
17
  return FN(EL,copy)(FN(LIST(EL),peek)(list, index));
277
17
}
278
279
/* This is an alternative name for the function above.
280
 */
281
__isl_give EL *FN(FN(LIST(EL),get),BASE)(__isl_keep LIST(EL) *list, int index)
282
662k
{
283
662k
  return FN(LIST(EL),get_at)(list, index);
284
662k
}
isl_aff_list_get_aff
Line
Count
Source
282
8.87k
{
283
8.87k
  return FN(LIST(EL),get_at)(list, index);
284
8.87k
}
isl_pw_aff_list_get_pw_aff
Line
Count
Source
282
13.6k
{
283
13.6k
  return FN(LIST(EL),get_at)(list, index);
284
13.6k
}
Unexecuted instantiation: isl_pw_multi_aff_list_get_pw_multi_aff
isl_union_pw_aff_list_get_union_pw_aff
Line
Count
Source
282
144
{
283
144
  return FN(LIST(EL),get_at)(list, index);
284
144
}
isl_union_pw_multi_aff_list_get_union_pw_multi_aff
Line
Count
Source
282
8
{
283
8
  return FN(LIST(EL),get_at)(list, index);
284
8
}
Unexecuted instantiation: isl_ast_expr_list_get_ast_expr
isl_ast_node_list_get_ast_node
Line
Count
Source
282
4.49k
{
283
4.49k
  return FN(LIST(EL),get_at)(list, index);
284
4.49k
}
isl_ast_graft_list_get_ast_graft
Line
Count
Source
282
34.3k
{
283
34.3k
  return FN(LIST(EL),get_at)(list, index);
284
34.3k
}
isl_constraint_list_get_constraint
Line
Count
Source
282
2.14k
{
283
2.14k
  return FN(LIST(EL),get_at)(list, index);
284
2.14k
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_get_pw_qpolynomial_fold
isl_id_list_get_id
Line
Count
Source
282
23.4k
{
283
23.4k
  return FN(LIST(EL),get_at)(list, index);
284
23.4k
}
isl_basic_map_list_get_basic_map
Line
Count
Source
282
12.0k
{
283
12.0k
  return FN(LIST(EL),get_at)(list, index);
284
12.0k
}
isl_map_list_get_map
Line
Count
Source
282
1.94k
{
283
1.94k
  return FN(LIST(EL),get_at)(list, index);
284
1.94k
}
isl_union_map_list_get_union_map
Line
Count
Source
282
9
{
283
9
  return FN(LIST(EL),get_at)(list, index);
284
9
}
Unexecuted instantiation: isl_pw_qpolynomial_list_get_pw_qpolynomial
isl_schedule_tree_list_get_schedule_tree
Line
Count
Source
282
530k
{
283
530k
  return FN(LIST(EL),get_at)(list, index);
284
530k
}
isl_basic_set_list_get_basic_set
Line
Count
Source
282
9.46k
{
283
9.46k
  return FN(LIST(EL),get_at)(list, index);
284
9.46k
}
isl_set_list_get_set
Line
Count
Source
282
17.9k
{
283
17.9k
  return FN(LIST(EL),get_at)(list, index);
284
17.9k
}
isl_union_set_list_get_union_set
Line
Count
Source
282
2.88k
{
283
2.88k
  return FN(LIST(EL),get_at)(list, index);
284
2.88k
}
isl_val_list_get_val
Line
Count
Source
282
17
{
283
17
  return FN(LIST(EL),get_at)(list, index);
284
17
}
285
286
/* Replace the element at position "index" in "list" by "el".
287
 */
288
__isl_give LIST(EL) *FN(FN(LIST(EL),set),BASE)(__isl_take LIST(EL) *list,
289
  int index, __isl_take EL *el)
290
47.8k
{
291
47.8k
  if (!list || !el)
292
0
    goto error;
293
47.8k
  if (FN(LIST(EL),check_index)(list, index) < 0)
294
0
    goto error;
295
47.8k
  if (list->p[index] == el) {
296
11.3k
    FN(EL,free)(el);
297
11.3k
    return list;
298
11.3k
  }
299
36.5k
  list = FN(LIST(EL),cow)(list);
300
36.5k
  if (!list)
301
0
    goto error;
302
36.5k
  FN(EL,free)(list->p[index]);
303
36.5k
  list->p[index] = el;
304
36.5k
  return list;
305
36.5k
error:
306
0
  FN(EL,free)(el);
307
0
  FN(LIST(EL),free)(list);
308
0
  return NULL;
309
36.5k
}
isl_aff_list_set_aff
Line
Count
Source
290
2
{
291
2
  if (!list || !el)
292
0
    goto error;
293
2
  if (FN(LIST(EL),check_index)(list, index) < 0)
294
0
    goto error;
295
2
  if (list->p[index] == el) {
296
0
    FN(EL,free)(el);
297
0
    return list;
298
0
  }
299
2
  list = FN(LIST(EL),cow)(list);
300
2
  if (!list)
301
0
    goto error;
302
2
  FN(EL,free)(list->p[index]);
303
2
  list->p[index] = el;
304
2
  return list;
305
2
error:
306
0
  FN(EL,free)(el);
307
0
  FN(LIST(EL),free)(list);
308
0
  return NULL;
309
2
}
isl_pw_aff_list_set_pw_aff
Line
Count
Source
290
3.44k
{
291
3.44k
  if (!list || !el)
292
0
    goto error;
293
3.44k
  if (FN(LIST(EL),check_index)(list, index) < 0)
294
0
    goto error;
295
3.44k
  if (list->p[index] == el) {
296
0
    FN(EL,free)(el);
297
0
    return list;
298
0
  }
299
3.44k
  list = FN(LIST(EL),cow)(list);
300
3.44k
  if (!list)
301
0
    goto error;
302
3.44k
  FN(EL,free)(list->p[index]);
303
3.44k
  list->p[index] = el;
304
3.44k
  return list;
305
3.44k
error:
306
0
  FN(EL,free)(el);
307
0
  FN(LIST(EL),free)(list);
308
0
  return NULL;
309
3.44k
}
Unexecuted instantiation: isl_pw_multi_aff_list_set_pw_multi_aff
Unexecuted instantiation: isl_union_pw_aff_list_set_union_pw_aff
Unexecuted instantiation: isl_union_pw_multi_aff_list_set_union_pw_multi_aff
Unexecuted instantiation: isl_ast_expr_list_set_ast_expr
Unexecuted instantiation: isl_ast_node_list_set_ast_node
isl_ast_graft_list_set_ast_graft
Line
Count
Source
290
6.78k
{
291
6.78k
  if (!list || !el)
292
0
    goto error;
293
6.78k
  if (FN(LIST(EL),check_index)(list, index) < 0)
294
0
    goto error;
295
6.78k
  if (list->p[index] == el) {
296
6.75k
    FN(EL,free)(el);
297
6.75k
    return list;
298
6.75k
  }
299
24
  list = FN(LIST(EL),cow)(list);
300
24
  if (!list)
301
0
    goto error;
302
24
  FN(EL,free)(list->p[index]);
303
24
  list->p[index] = el;
304
24
  return list;
305
24
error:
306
0
  FN(EL,free)(el);
307
0
  FN(LIST(EL),free)(list);
308
0
  return NULL;
309
24
}
Unexecuted instantiation: isl_constraint_list_set_constraint
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_set_pw_qpolynomial_fold
Unexecuted instantiation: isl_id_list_set_id
isl_basic_map_list_set_basic_map
Line
Count
Source
290
3.71k
{
291
3.71k
  if (!list || !el)
292
0
    goto error;
293
3.71k
  if (FN(LIST(EL),check_index)(list, index) < 0)
294
0
    goto error;
295
3.71k
  if (list->p[index] == el) {
296
3.15k
    FN(EL,free)(el);
297
3.15k
    return list;
298
3.15k
  }
299
558
  list = FN(LIST(EL),cow)(list);
300
558
  if (!list)
301
0
    goto error;
302
558
  FN(EL,free)(list->p[index]);
303
558
  list->p[index] = el;
304
558
  return list;
305
558
error:
306
0
  FN(EL,free)(el);
307
0
  FN(LIST(EL),free)(list);
308
0
  return NULL;
309
558
}
Unexecuted instantiation: isl_map_list_set_map
isl_union_map_list_set_union_map
Line
Count
Source
290
2
{
291
2
  if (!list || !el)
292
0
    goto error;
293
2
  if (FN(LIST(EL),check_index)(list, index) < 0)
294
0
    goto error;
295
2
  if (list->p[index] == el) {
296
0
    FN(EL,free)(el);
297
0
    return list;
298
0
  }
299
2
  list = FN(LIST(EL),cow)(list);
300
2
  if (!list)
301
0
    goto error;
302
2
  FN(EL,free)(list->p[index]);
303
2
  list->p[index] = el;
304
2
  return list;
305
2
error:
306
0
  FN(EL,free)(el);
307
0
  FN(LIST(EL),free)(list);
308
0
  return NULL;
309
2
}
Unexecuted instantiation: isl_pw_qpolynomial_list_set_pw_qpolynomial
isl_schedule_tree_list_set_schedule_tree
Line
Count
Source
290
26.8k
{
291
26.8k
  if (!list || !el)
292
0
    goto error;
293
26.8k
  if (FN(LIST(EL),check_index)(list, index) < 0)
294
0
    goto error;
295
26.8k
  if (list->p[index] == el) {
296
3
    FN(EL,free)(el);
297
3
    return list;
298
3
  }
299
26.8k
  list = FN(LIST(EL),cow)(list);
300
26.8k
  if (!list)
301
0
    goto error;
302
26.8k
  FN(EL,free)(list->p[index]);
303
26.8k
  list->p[index] = el;
304
26.8k
  return list;
305
26.8k
error:
306
0
  FN(EL,free)(el);
307
0
  FN(LIST(EL),free)(list);
308
0
  return NULL;
309
26.8k
}
isl_basic_set_list_set_basic_set
Line
Count
Source
290
3.77k
{
291
3.77k
  if (!list || !el)
292
0
    goto error;
293
3.77k
  if (FN(LIST(EL),check_index)(list, index) < 0)
294
0
    goto error;
295
3.77k
  if (list->p[index] == el) {
296
0
    FN(EL,free)(el);
297
0
    return list;
298
0
  }
299
3.77k
  list = FN(LIST(EL),cow)(list);
300
3.77k
  if (!list)
301
0
    goto error;
302
3.77k
  FN(EL,free)(list->p[index]);
303
3.77k
  list->p[index] = el;
304
3.77k
  return list;
305
3.77k
error:
306
0
  FN(EL,free)(el);
307
0
  FN(LIST(EL),free)(list);
308
0
  return NULL;
309
3.77k
}
isl_set_list_set_set
Line
Count
Source
290
3.30k
{
291
3.30k
  if (!list || !el)
292
0
    goto error;
293
3.30k
  if (FN(LIST(EL),check_index)(list, index) < 0)
294
0
    goto error;
295
3.30k
  if (list->p[index] == el) {
296
1.41k
    FN(EL,free)(el);
297
1.41k
    return list;
298
1.41k
  }
299
1.88k
  list = FN(LIST(EL),cow)(list);
300
1.88k
  if (!list)
301
0
    goto error;
302
1.88k
  FN(EL,free)(list->p[index]);
303
1.88k
  list->p[index] = el;
304
1.88k
  return list;
305
1.88k
error:
306
0
  FN(EL,free)(el);
307
0
  FN(LIST(EL),free)(list);
308
0
  return NULL;
309
1.88k
}
Unexecuted instantiation: isl_union_set_list_set_union_set
Unexecuted instantiation: isl_val_list_set_val
310
311
/* Return the element at position "index" of "list".
312
 * This may be either a copy or the element itself
313
 * if there is only one reference to "list".
314
 * This allows the element to be modified inplace
315
 * if both the list and the element have only a single reference.
316
 * The caller is not allowed to modify "list" between
317
 * this call to isl_list_*_take_* and a subsequent call
318
 * to isl_list_*_restore_*.
319
 * The only exception is that isl_list_*_free can be called instead.
320
 */
321
static __isl_give EL *FN(FN(LIST(EL),take),BASE)(__isl_keep LIST(EL) *list,
322
  int index)
323
58
{
324
58
  EL *el;
325
58
326
58
  if (FN(LIST(EL),check_index)(list, index) < 0)
327
0
    return NULL;
328
58
  if (list->ref != 1)
329
0
    return FN(FN(LIST(EL),get),BASE)(list, index);
330
58
  el = list->p[index];
331
58
  list->p[index] = NULL;
332
58
  return el;
333
58
}
Unexecuted instantiation: isl_aff.c:isl_aff_list_take_aff
Unexecuted instantiation: isl_aff.c:isl_pw_aff_list_take_pw_aff
Unexecuted instantiation: isl_aff.c:isl_pw_multi_aff_list_take_pw_multi_aff
Unexecuted instantiation: isl_aff.c:isl_union_pw_aff_list_take_union_pw_aff
Unexecuted instantiation: isl_aff.c:isl_union_pw_multi_aff_list_take_union_pw_multi_aff
Unexecuted instantiation: isl_ast.c:isl_ast_expr_list_take_ast_expr
Unexecuted instantiation: isl_ast.c:isl_ast_node_list_take_ast_node
Unexecuted instantiation: isl_ast_graft.c:isl_ast_graft_list_take_ast_graft
Unexecuted instantiation: isl_constraint.c:isl_constraint_list_take_constraint
Unexecuted instantiation: isl_fold.c:isl_pw_qpolynomial_fold_list_take_pw_qpolynomial_fold
Unexecuted instantiation: isl_id.c:isl_id_list_take_id
Unexecuted instantiation: isl_map_list.c:isl_basic_map_list_take_basic_map
Unexecuted instantiation: isl_map_list.c:isl_map_list_take_map
Unexecuted instantiation: isl_map_list.c:isl_union_map_list_take_union_map
Unexecuted instantiation: isl_polynomial.c:isl_pw_qpolynomial_list_take_pw_qpolynomial
Unexecuted instantiation: isl_schedule_tree.c:isl_schedule_tree_list_take_schedule_tree
isl_set_list.c:isl_basic_set_list_take_basic_set
Line
Count
Source
323
58
{
324
58
  EL *el;
325
58
326
58
  if (FN(LIST(EL),check_index)(list, index) < 0)
327
0
    return NULL;
328
58
  if (list->ref != 1)
329
0
    return FN(FN(LIST(EL),get),BASE)(list, index);
330
58
  el = list->p[index];
331
58
  list->p[index] = NULL;
332
58
  return el;
333
58
}
Unexecuted instantiation: isl_set_list.c:isl_set_list_take_set
Unexecuted instantiation: isl_set_list.c:isl_union_set_list_take_union_set
Unexecuted instantiation: isl_val.c:isl_val_list_take_val
334
335
/* Set the element at position "index" of "list" to "el",
336
 * where the position may be empty due to a previous call
337
 * to isl_list_*_take_*.
338
 */
339
static __isl_give LIST(EL) *FN(FN(LIST(EL),restore),BASE)(
340
  __isl_take LIST(EL) *list, int index, __isl_take EL *el)
341
58
{
342
58
  return FN(FN(LIST(EL),set),BASE)(list, index, el);
343
58
}
Unexecuted instantiation: isl_aff.c:isl_aff_list_restore_aff
Unexecuted instantiation: isl_aff.c:isl_pw_aff_list_restore_pw_aff
Unexecuted instantiation: isl_aff.c:isl_pw_multi_aff_list_restore_pw_multi_aff
Unexecuted instantiation: isl_aff.c:isl_union_pw_aff_list_restore_union_pw_aff
Unexecuted instantiation: isl_aff.c:isl_union_pw_multi_aff_list_restore_union_pw_multi_aff
Unexecuted instantiation: isl_ast.c:isl_ast_expr_list_restore_ast_expr
Unexecuted instantiation: isl_ast.c:isl_ast_node_list_restore_ast_node
Unexecuted instantiation: isl_ast_graft.c:isl_ast_graft_list_restore_ast_graft
Unexecuted instantiation: isl_constraint.c:isl_constraint_list_restore_constraint
Unexecuted instantiation: isl_fold.c:isl_pw_qpolynomial_fold_list_restore_pw_qpolynomial_fold
Unexecuted instantiation: isl_id.c:isl_id_list_restore_id
Unexecuted instantiation: isl_map_list.c:isl_basic_map_list_restore_basic_map
Unexecuted instantiation: isl_map_list.c:isl_map_list_restore_map
Unexecuted instantiation: isl_map_list.c:isl_union_map_list_restore_union_map
Unexecuted instantiation: isl_polynomial.c:isl_pw_qpolynomial_list_restore_pw_qpolynomial
Unexecuted instantiation: isl_schedule_tree.c:isl_schedule_tree_list_restore_schedule_tree
isl_set_list.c:isl_basic_set_list_restore_basic_set
Line
Count
Source
341
58
{
342
58
  return FN(FN(LIST(EL),set),BASE)(list, index, el);
343
58
}
Unexecuted instantiation: isl_set_list.c:isl_set_list_restore_set
Unexecuted instantiation: isl_set_list.c:isl_union_set_list_restore_union_set
Unexecuted instantiation: isl_val.c:isl_val_list_restore_val
344
345
/* Swap the elements of "list" in positions "pos1" and "pos2".
346
 */
347
__isl_give LIST(EL) *FN(LIST(EL),swap)(__isl_take LIST(EL) *list,
348
  unsigned pos1, unsigned pos2)
349
0
{
350
0
  EL *el1, *el2;
351
0
352
0
  if (pos1 == pos2)
353
0
    return list;
354
0
  el1 = FN(FN(LIST(EL),take),BASE)(list, pos1);
355
0
  el2 = FN(FN(LIST(EL),take),BASE)(list, pos2);
356
0
  list = FN(FN(LIST(EL),restore),BASE)(list, pos1, el2);
357
0
  list = FN(FN(LIST(EL),restore),BASE)(list, pos2, el1);
358
0
  return list;
359
0
}
Unexecuted instantiation: isl_aff_list_swap
Unexecuted instantiation: isl_pw_aff_list_swap
Unexecuted instantiation: isl_pw_multi_aff_list_swap
Unexecuted instantiation: isl_union_pw_aff_list_swap
Unexecuted instantiation: isl_union_pw_multi_aff_list_swap
Unexecuted instantiation: isl_ast_expr_list_swap
Unexecuted instantiation: isl_ast_node_list_swap
Unexecuted instantiation: isl_ast_graft_list_swap
Unexecuted instantiation: isl_constraint_list_swap
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_swap
Unexecuted instantiation: isl_id_list_swap
Unexecuted instantiation: isl_basic_map_list_swap
Unexecuted instantiation: isl_map_list_swap
Unexecuted instantiation: isl_union_map_list_swap
Unexecuted instantiation: isl_pw_qpolynomial_list_swap
Unexecuted instantiation: isl_schedule_tree_list_swap
Unexecuted instantiation: isl_basic_set_list_swap
Unexecuted instantiation: isl_set_list_swap
Unexecuted instantiation: isl_union_set_list_swap
Unexecuted instantiation: isl_val_list_swap
360
361
/* Reverse the elements of "list".
362
 */
363
__isl_give LIST(EL) *FN(LIST(EL),reverse)(__isl_take LIST(EL) *list)
364
0
{
365
0
  int i, n;
366
0
367
0
  n = FN(LIST(EL),size)(list);
368
0
  for (i = 0; i < n - 1 - i; ++i)
369
0
    list = FN(LIST(EL),swap)(list, i, n - 1 - i);
370
0
  return list;
371
0
}
Unexecuted instantiation: isl_aff_list_reverse
Unexecuted instantiation: isl_pw_aff_list_reverse
Unexecuted instantiation: isl_pw_multi_aff_list_reverse
Unexecuted instantiation: isl_union_pw_aff_list_reverse
Unexecuted instantiation: isl_union_pw_multi_aff_list_reverse
Unexecuted instantiation: isl_ast_expr_list_reverse
Unexecuted instantiation: isl_ast_node_list_reverse
Unexecuted instantiation: isl_ast_graft_list_reverse
Unexecuted instantiation: isl_constraint_list_reverse
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_reverse
Unexecuted instantiation: isl_id_list_reverse
Unexecuted instantiation: isl_basic_map_list_reverse
Unexecuted instantiation: isl_map_list_reverse
Unexecuted instantiation: isl_union_map_list_reverse
Unexecuted instantiation: isl_pw_qpolynomial_list_reverse
Unexecuted instantiation: isl_schedule_tree_list_reverse
Unexecuted instantiation: isl_basic_set_list_reverse
Unexecuted instantiation: isl_set_list_reverse
Unexecuted instantiation: isl_union_set_list_reverse
Unexecuted instantiation: isl_val_list_reverse
372
373
isl_stat FN(LIST(EL),foreach)(__isl_keep LIST(EL) *list,
374
  isl_stat (*fn)(__isl_take EL *el, void *user), void *user)
375
1.57k
{
376
1.57k
  int i;
377
1.57k
378
1.57k
  if (!list)
379
0
    return isl_stat_error;
380
1.57k
381
3.48k
  
for (i = 0; 1.57k
i < list->n;
++i1.91k
) {
382
2.47k
    EL *el = FN(EL,copy)(list->p[i]);
383
2.47k
    if (!el)
384
0
      return isl_stat_error;
385
2.47k
    if (fn(el, user) < 0)
386
559
      return isl_stat_error;
387
2.47k
  }
388
1.57k
389
1.57k
  
return isl_stat_ok1.01k
;
390
1.57k
}
Unexecuted instantiation: isl_aff_list_foreach
isl_pw_aff_list_foreach
Line
Count
Source
375
730
{
376
730
  int i;
377
730
378
730
  if (!list)
379
0
    return isl_stat_error;
380
730
381
916
  
for (i = 0; 730
i < list->n;
++i186
) {
382
745
    EL *el = FN(EL,copy)(list->p[i]);
383
745
    if (!el)
384
0
      return isl_stat_error;
385
745
    if (fn(el, user) < 0)
386
559
      return isl_stat_error;
387
745
  }
388
730
389
730
  
return isl_stat_ok171
;
390
730
}
Unexecuted instantiation: isl_pw_multi_aff_list_foreach
Unexecuted instantiation: isl_union_pw_aff_list_foreach
Unexecuted instantiation: isl_union_pw_multi_aff_list_foreach
Unexecuted instantiation: isl_ast_expr_list_foreach
Unexecuted instantiation: isl_ast_node_list_foreach
Unexecuted instantiation: isl_ast_graft_list_foreach
isl_constraint_list_foreach
Line
Count
Source
375
730
{
376
730
  int i;
377
730
378
730
  if (!list)
379
0
    return isl_stat_error;
380
730
381
2.34k
  
for (i = 0; 730
i < list->n;
++i1.61k
) {
382
1.61k
    EL *el = FN(EL,copy)(list->p[i]);
383
1.61k
    if (!el)
384
0
      return isl_stat_error;
385
1.61k
    if (fn(el, user) < 0)
386
0
      return isl_stat_error;
387
1.61k
  }
388
730
389
730
  return isl_stat_ok;
390
730
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_foreach
Unexecuted instantiation: isl_id_list_foreach
Unexecuted instantiation: isl_basic_map_list_foreach
Unexecuted instantiation: isl_map_list_foreach
Unexecuted instantiation: isl_union_map_list_foreach
Unexecuted instantiation: isl_pw_qpolynomial_list_foreach
Unexecuted instantiation: isl_schedule_tree_list_foreach
isl_basic_set_list_foreach
Line
Count
Source
375
112
{
376
112
  int i;
377
112
378
112
  if (!list)
379
0
    return isl_stat_error;
380
112
381
228
  
for (i = 0; 112
i < list->n;
++i116
) {
382
116
    EL *el = FN(EL,copy)(list->p[i]);
383
116
    if (!el)
384
0
      return isl_stat_error;
385
116
    if (fn(el, user) < 0)
386
0
      return isl_stat_error;
387
116
  }
388
112
389
112
  return isl_stat_ok;
390
112
}
Unexecuted instantiation: isl_set_list_foreach
Unexecuted instantiation: isl_union_set_list_foreach
Unexecuted instantiation: isl_val_list_foreach
391
392
/* Replace each element in "list" by the result of calling "fn"
393
 * on the element.
394
 */
395
__isl_give LIST(EL) *FN(LIST(EL),map)(__isl_keep LIST(EL) *list,
396
  __isl_give EL *(*fn)(__isl_take EL *el, void *user), void *user)
397
56
{
398
56
  int i, n;
399
56
400
56
  if (!list)
401
0
    return NULL;
402
56
403
56
  n = list->n;
404
114
  for (i = 0; i < n; 
++i58
) {
405
58
    EL *el = FN(FN(LIST(EL),take),BASE)(list, i);
406
58
    if (!el)
407
0
      return FN(LIST(EL),free)(list);
408
58
    el = fn(el, user);
409
58
    list = FN(FN(LIST(EL),restore),BASE)(list, i, el);
410
58
  }
411
56
412
56
  return list;
413
56
}
Unexecuted instantiation: isl_aff_list_map
Unexecuted instantiation: isl_pw_aff_list_map
Unexecuted instantiation: isl_pw_multi_aff_list_map
Unexecuted instantiation: isl_union_pw_aff_list_map
Unexecuted instantiation: isl_union_pw_multi_aff_list_map
Unexecuted instantiation: isl_ast_expr_list_map
Unexecuted instantiation: isl_ast_node_list_map
Unexecuted instantiation: isl_ast_graft_list_map
Unexecuted instantiation: isl_constraint_list_map
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_map
Unexecuted instantiation: isl_id_list_map
Unexecuted instantiation: isl_basic_map_list_map
Unexecuted instantiation: isl_map_list_map
Unexecuted instantiation: isl_union_map_list_map
Unexecuted instantiation: isl_pw_qpolynomial_list_map
Unexecuted instantiation: isl_schedule_tree_list_map
isl_basic_set_list_map
Line
Count
Source
397
56
{
398
56
  int i, n;
399
56
400
56
  if (!list)
401
0
    return NULL;
402
56
403
56
  n = list->n;
404
114
  for (i = 0; i < n; 
++i58
) {
405
58
    EL *el = FN(FN(LIST(EL),take),BASE)(list, i);
406
58
    if (!el)
407
0
      return FN(LIST(EL),free)(list);
408
58
    el = fn(el, user);
409
58
    list = FN(FN(LIST(EL),restore),BASE)(list, i, el);
410
58
  }
411
56
412
56
  return list;
413
56
}
Unexecuted instantiation: isl_set_list_map
Unexecuted instantiation: isl_union_set_list_map
Unexecuted instantiation: isl_val_list_map
414
415
/* Internal data structure for isl_*_list_sort.
416
 *
417
 * "cmp" is the original comparison function.
418
 * "user" is a user provided pointer that should be passed to "cmp".
419
 */
420
S(LIST(EL),sort_data) {
421
  int (*cmp)(__isl_keep EL *a, __isl_keep EL *b, void *user);
422
  void *user;
423
};
424
425
/* Compare two entries of an isl_*_list based on the user provided
426
 * comparison function on pairs of isl_* objects.
427
 */
428
static int FN(LIST(EL),cmp)(const void *a, const void *b, void *user)
429
1.24k
{
430
1.24k
  S(LIST(EL),sort_data) *data = user;
431
1.24k
  EL * const *el1 = a;
432
1.24k
  EL * const *el2 = b;
433
1.24k
434
1.24k
  return data->cmp(*el1, *el2, data->user);
435
1.24k
}
Unexecuted instantiation: isl_aff.c:isl_aff_list_cmp
isl_aff.c:isl_pw_aff_list_cmp
Line
Count
Source
429
97
{
430
97
  S(LIST(EL),sort_data) *data = user;
431
97
  EL * const *el1 = a;
432
97
  EL * const *el2 = b;
433
97
434
97
  return data->cmp(*el1, *el2, data->user);
435
97
}
Unexecuted instantiation: isl_aff.c:isl_pw_multi_aff_list_cmp
Unexecuted instantiation: isl_aff.c:isl_union_pw_aff_list_cmp
Unexecuted instantiation: isl_aff.c:isl_union_pw_multi_aff_list_cmp
Unexecuted instantiation: isl_ast.c:isl_ast_expr_list_cmp
Unexecuted instantiation: isl_ast.c:isl_ast_node_list_cmp
isl_ast_graft.c:isl_ast_graft_list_cmp
Line
Count
Source
429
27
{
430
27
  S(LIST(EL),sort_data) *data = user;
431
27
  EL * const *el1 = a;
432
27
  EL * const *el2 = b;
433
27
434
27
  return data->cmp(*el1, *el2, data->user);
435
27
}
isl_constraint.c:isl_constraint_list_cmp
Line
Count
Source
429
1.11k
{
430
1.11k
  S(LIST(EL),sort_data) *data = user;
431
1.11k
  EL * const *el1 = a;
432
1.11k
  EL * const *el2 = b;
433
1.11k
434
1.11k
  return data->cmp(*el1, *el2, data->user);
435
1.11k
}
Unexecuted instantiation: isl_fold.c:isl_pw_qpolynomial_fold_list_cmp
Unexecuted instantiation: isl_id.c:isl_id_list_cmp
Unexecuted instantiation: isl_map_list.c:isl_basic_map_list_cmp
Unexecuted instantiation: isl_map_list.c:isl_map_list_cmp
Unexecuted instantiation: isl_map_list.c:isl_union_map_list_cmp
Unexecuted instantiation: isl_polynomial.c:isl_pw_qpolynomial_list_cmp
Unexecuted instantiation: isl_schedule_tree.c:isl_schedule_tree_list_cmp
Unexecuted instantiation: isl_set_list.c:isl_basic_set_list_cmp
Unexecuted instantiation: isl_set_list.c:isl_set_list_cmp
Unexecuted instantiation: isl_set_list.c:isl_union_set_list_cmp
Unexecuted instantiation: isl_val.c:isl_val_list_cmp
436
437
/* Sort the elements of "list" in ascending order according to
438
 * comparison function "cmp".
439
 */
440
__isl_give LIST(EL) *FN(LIST(EL),sort)(__isl_take LIST(EL) *list,
441
  int (*cmp)(__isl_keep EL *a, __isl_keep EL *b, void *user), void *user)
442
1.78k
{
443
1.78k
  S(LIST(EL),sort_data) data = { cmp, user };
444
1.78k
445
1.78k
  if (!list)
446
0
    return NULL;
447
1.78k
  if (list->n <= 1)
448
851
    return list;
449
933
  list = FN(LIST(EL),cow)(list);
450
933
  if (!list)
451
0
    return NULL;
452
933
453
933
  if (isl_sort(list->p, list->n, sizeof(list->p[0]),
454
933
      &FN(LIST(EL),cmp), &data) < 0)
455
0
    return FN(LIST(EL),free)(list);
456
933
457
933
  return list;
458
933
}
Unexecuted instantiation: isl_aff_list_sort
isl_pw_aff_list_sort
Line
Count
Source
442
103
{
443
103
  S(LIST(EL),sort_data) data = { cmp, user };
444
103
445
103
  if (!list)
446
0
    return NULL;
447
103
  if (list->n <= 1)
448
11
    return list;
449
92
  list = FN(LIST(EL),cow)(list);
450
92
  if (!list)
451
0
    return NULL;
452
92
453
92
  if (isl_sort(list->p, list->n, sizeof(list->p[0]),
454
92
      &FN(LIST(EL),cmp), &data) < 0)
455
0
    return FN(LIST(EL),free)(list);
456
92
457
92
  return list;
458
92
}
Unexecuted instantiation: isl_pw_multi_aff_list_sort
Unexecuted instantiation: isl_union_pw_aff_list_sort
Unexecuted instantiation: isl_union_pw_multi_aff_list_sort
Unexecuted instantiation: isl_ast_expr_list_sort
Unexecuted instantiation: isl_ast_node_list_sort
isl_ast_graft_list_sort
Line
Count
Source
442
35
{
443
35
  S(LIST(EL),sort_data) data = { cmp, user };
444
35
445
35
  if (!list)
446
0
    return NULL;
447
35
  if (list->n <= 1)
448
8
    return list;
449
27
  list = FN(LIST(EL),cow)(list);
450
27
  if (!list)
451
0
    return NULL;
452
27
453
27
  if (isl_sort(list->p, list->n, sizeof(list->p[0]),
454
27
      &FN(LIST(EL),cmp), &data) < 0)
455
0
    return FN(LIST(EL),free)(list);
456
27
457
27
  return list;
458
27
}
isl_constraint_list_sort
Line
Count
Source
442
1.64k
{
443
1.64k
  S(LIST(EL),sort_data) data = { cmp, user };
444
1.64k
445
1.64k
  if (!list)
446
0
    return NULL;
447
1.64k
  if (list->n <= 1)
448
832
    return list;
449
814
  list = FN(LIST(EL),cow)(list);
450
814
  if (!list)
451
0
    return NULL;
452
814
453
814
  if (isl_sort(list->p, list->n, sizeof(list->p[0]),
454
814
      &FN(LIST(EL),cmp), &data) < 0)
455
0
    return FN(LIST(EL),free)(list);
456
814
457
814
  return list;
458
814
}
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_sort
Unexecuted instantiation: isl_id_list_sort
Unexecuted instantiation: isl_basic_map_list_sort
Unexecuted instantiation: isl_map_list_sort
Unexecuted instantiation: isl_union_map_list_sort
Unexecuted instantiation: isl_pw_qpolynomial_list_sort
Unexecuted instantiation: isl_schedule_tree_list_sort
Unexecuted instantiation: isl_basic_set_list_sort
Unexecuted instantiation: isl_set_list_sort
Unexecuted instantiation: isl_union_set_list_sort
Unexecuted instantiation: isl_val_list_sort
459
460
/* Internal data structure for isl_*_list_foreach_scc.
461
 *
462
 * "list" is the original list.
463
 * "follows" is the user provided callback that defines the edges of the graph.
464
 */
465
S(LIST(EL),foreach_scc_data) {
466
  LIST(EL) *list;
467
  isl_bool (*follows)(__isl_keep EL *a, __isl_keep EL *b, void *user);
468
  void *follows_user;
469
};
470
471
/* Does element i of data->list follow element j?
472
 *
473
 * Use the user provided callback to find out.
474
 */
475
static isl_bool FN(LIST(EL),follows)(int i, int j, void *user)
476
149
{
477
149
  S(LIST(EL),foreach_scc_data) *data = user;
478
149
479
149
  return data->follows(data->list->p[i], data->list->p[j],
480
149
        data->follows_user);
481
149
}
Unexecuted instantiation: isl_aff.c:isl_aff_list_follows
Unexecuted instantiation: isl_aff.c:isl_pw_aff_list_follows
Unexecuted instantiation: isl_aff.c:isl_pw_multi_aff_list_follows
Unexecuted instantiation: isl_aff.c:isl_union_pw_aff_list_follows
Unexecuted instantiation: isl_aff.c:isl_union_pw_multi_aff_list_follows
Unexecuted instantiation: isl_ast.c:isl_ast_expr_list_follows
Unexecuted instantiation: isl_ast.c:isl_ast_node_list_follows
Unexecuted instantiation: isl_ast_graft.c:isl_ast_graft_list_follows
Unexecuted instantiation: isl_constraint.c:isl_constraint_list_follows
Unexecuted instantiation: isl_fold.c:isl_pw_qpolynomial_fold_list_follows
Unexecuted instantiation: isl_id.c:isl_id_list_follows
Unexecuted instantiation: isl_map_list.c:isl_basic_map_list_follows
Unexecuted instantiation: isl_map_list.c:isl_map_list_follows
Unexecuted instantiation: isl_map_list.c:isl_union_map_list_follows
Unexecuted instantiation: isl_polynomial.c:isl_pw_qpolynomial_list_follows
Unexecuted instantiation: isl_schedule_tree.c:isl_schedule_tree_list_follows
isl_set_list.c:isl_basic_set_list_follows
Line
Count
Source
476
149
{
477
149
  S(LIST(EL),foreach_scc_data) *data = user;
478
149
479
149
  return data->follows(data->list->p[i], data->list->p[j],
480
149
        data->follows_user);
481
149
}
Unexecuted instantiation: isl_set_list.c:isl_set_list_follows
Unexecuted instantiation: isl_set_list.c:isl_union_set_list_follows
Unexecuted instantiation: isl_val.c:isl_val_list_follows
482
483
/* Call "fn" on the sublist of "list" that consists of the elements
484
 * with indices specified by the "n" elements of "pos".
485
 */
486
static isl_stat FN(LIST(EL),call_on_scc)(__isl_keep LIST(EL) *list, int *pos,
487
  int n, isl_stat (*fn)(__isl_take LIST(EL) *scc, void *user), void *user)
488
120
{
489
120
  int i;
490
120
  isl_ctx *ctx;
491
120
  LIST(EL) *slice;
492
120
493
120
  ctx = FN(LIST(EL),get_ctx)(list);
494
120
  slice = FN(LIST(EL),alloc)(ctx, n);
495
240
  for (i = 0; i < n; 
++i120
) {
496
120
    EL *el;
497
120
498
120
    el = FN(EL,copy)(list->p[pos[i]]);
499
120
    slice = FN(LIST(EL),add)(slice, el);
500
120
  }
501
120
502
120
  return fn(slice, user);
503
120
}
Unexecuted instantiation: isl_aff.c:isl_aff_list_call_on_scc
Unexecuted instantiation: isl_aff.c:isl_pw_aff_list_call_on_scc
Unexecuted instantiation: isl_aff.c:isl_pw_multi_aff_list_call_on_scc
Unexecuted instantiation: isl_aff.c:isl_union_pw_aff_list_call_on_scc
Unexecuted instantiation: isl_aff.c:isl_union_pw_multi_aff_list_call_on_scc
Unexecuted instantiation: isl_ast.c:isl_ast_expr_list_call_on_scc
Unexecuted instantiation: isl_ast.c:isl_ast_node_list_call_on_scc
Unexecuted instantiation: isl_ast_graft.c:isl_ast_graft_list_call_on_scc
Unexecuted instantiation: isl_constraint.c:isl_constraint_list_call_on_scc
Unexecuted instantiation: isl_fold.c:isl_pw_qpolynomial_fold_list_call_on_scc
Unexecuted instantiation: isl_id.c:isl_id_list_call_on_scc
Unexecuted instantiation: isl_map_list.c:isl_basic_map_list_call_on_scc
Unexecuted instantiation: isl_map_list.c:isl_map_list_call_on_scc
Unexecuted instantiation: isl_map_list.c:isl_union_map_list_call_on_scc
Unexecuted instantiation: isl_polynomial.c:isl_pw_qpolynomial_list_call_on_scc
Unexecuted instantiation: isl_schedule_tree.c:isl_schedule_tree_list_call_on_scc
isl_set_list.c:isl_basic_set_list_call_on_scc
Line
Count
Source
488
120
{
489
120
  int i;
490
120
  isl_ctx *ctx;
491
120
  LIST(EL) *slice;
492
120
493
120
  ctx = FN(LIST(EL),get_ctx)(list);
494
120
  slice = FN(LIST(EL),alloc)(ctx, n);
495
240
  for (i = 0; i < n; 
++i120
) {
496
120
    EL *el;
497
120
498
120
    el = FN(EL,copy)(list->p[pos[i]]);
499
120
    slice = FN(LIST(EL),add)(slice, el);
500
120
  }
501
120
502
120
  return fn(slice, user);
503
120
}
Unexecuted instantiation: isl_set_list.c:isl_set_list_call_on_scc
Unexecuted instantiation: isl_set_list.c:isl_union_set_list_call_on_scc
Unexecuted instantiation: isl_val.c:isl_val_list_call_on_scc
504
505
/* Call "fn" on each of the strongly connected components (SCCs) of
506
 * the graph with as vertices the elements of "list" and
507
 * a directed edge from node b to node a iff follows(a, b)
508
 * returns 1.  follows should return -1 on error.
509
 *
510
 * If SCC a contains a node i that follows a node j in another SCC b
511
 * (i.e., follows(i, j, user) returns 1), then fn will be called on SCC a
512
 * after being called on SCC b.
513
 *
514
 * We simply call isl_tarjan_graph_init, extract the SCCs from the result and
515
 * call fn on each of them.
516
 */
517
isl_stat FN(LIST(EL),foreach_scc)(__isl_keep LIST(EL) *list,
518
  isl_bool (*follows)(__isl_keep EL *a, __isl_keep EL *b, void *user),
519
  void *follows_user,
520
  isl_stat (*fn)(__isl_take LIST(EL) *scc, void *user), void *fn_user)
521
77
{
522
77
  S(LIST(EL),foreach_scc_data) data = { list, follows, follows_user };
523
77
  int i, n;
524
77
  isl_ctx *ctx;
525
77
  struct isl_tarjan_graph *g;
526
77
527
77
  if (!list)
528
0
    return isl_stat_error;
529
77
  if (list->n == 0)
530
0
    return isl_stat_ok;
531
77
  if (list->n == 1)
532
0
    return fn(FN(LIST(EL),copy)(list), fn_user);
533
77
534
77
  ctx = FN(LIST(EL),get_ctx)(list);
535
77
  n = list->n;
536
77
  g = isl_tarjan_graph_init(ctx, n, &FN(LIST(EL),follows), &data);
537
77
  if (!g)
538
0
    return isl_stat_error;
539
77
540
77
  i = 0;
541
141
  do {
542
141
    int first;
543
141
544
141
    if (g->order[i] == -1)
545
141
      
isl_die0
(ctx, isl_error_internal, "cannot happen",
546
141
        break);
547
141
    first = i;
548
309
    while (g->order[i] != -1) {
549
168
      ++i; --n;
550
168
    }
551
141
    if (first == 0 && 
n == 077
) {
552
21
      isl_tarjan_graph_free(g);
553
21
      return fn(FN(LIST(EL),copy)(list), fn_user);
554
21
    }
555
120
    if (FN(LIST(EL),call_on_scc)(list, g->order + first, i - first,
556
120
              fn, fn_user) < 0)
557
0
      break;
558
120
    ++i;
559
120
  } while (n);
560
77
561
77
  isl_tarjan_graph_free(g);
562
56
563
56
  return n > 0 ? 
isl_stat_error0
: isl_stat_ok;
564
77
}
Unexecuted instantiation: isl_aff_list_foreach_scc
Unexecuted instantiation: isl_pw_aff_list_foreach_scc
Unexecuted instantiation: isl_pw_multi_aff_list_foreach_scc
Unexecuted instantiation: isl_union_pw_aff_list_foreach_scc
Unexecuted instantiation: isl_union_pw_multi_aff_list_foreach_scc
Unexecuted instantiation: isl_ast_expr_list_foreach_scc
Unexecuted instantiation: isl_ast_node_list_foreach_scc
Unexecuted instantiation: isl_ast_graft_list_foreach_scc
Unexecuted instantiation: isl_constraint_list_foreach_scc
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_foreach_scc
Unexecuted instantiation: isl_id_list_foreach_scc
Unexecuted instantiation: isl_basic_map_list_foreach_scc
Unexecuted instantiation: isl_map_list_foreach_scc
Unexecuted instantiation: isl_union_map_list_foreach_scc
Unexecuted instantiation: isl_pw_qpolynomial_list_foreach_scc
Unexecuted instantiation: isl_schedule_tree_list_foreach_scc
isl_basic_set_list_foreach_scc
Line
Count
Source
521
77
{
522
77
  S(LIST(EL),foreach_scc_data) data = { list, follows, follows_user };
523
77
  int i, n;
524
77
  isl_ctx *ctx;
525
77
  struct isl_tarjan_graph *g;
526
77
527
77
  if (!list)
528
0
    return isl_stat_error;
529
77
  if (list->n == 0)
530
0
    return isl_stat_ok;
531
77
  if (list->n == 1)
532
0
    return fn(FN(LIST(EL),copy)(list), fn_user);
533
77
534
77
  ctx = FN(LIST(EL),get_ctx)(list);
535
77
  n = list->n;
536
77
  g = isl_tarjan_graph_init(ctx, n, &FN(LIST(EL),follows), &data);
537
77
  if (!g)
538
0
    return isl_stat_error;
539
77
540
77
  i = 0;
541
141
  do {
542
141
    int first;
543
141
544
141
    if (g->order[i] == -1)
545
141
      
isl_die0
(ctx, isl_error_internal, "cannot happen",
546
141
        break);
547
141
    first = i;
548
309
    while (g->order[i] != -1) {
549
168
      ++i; --n;
550
168
    }
551
141
    if (first == 0 && 
n == 077
) {
552
21
      isl_tarjan_graph_free(g);
553
21
      return fn(FN(LIST(EL),copy)(list), fn_user);
554
21
    }
555
120
    if (FN(LIST(EL),call_on_scc)(list, g->order + first, i - first,
556
120
              fn, fn_user) < 0)
557
0
      break;
558
120
    ++i;
559
120
  } while (n);
560
77
561
77
  isl_tarjan_graph_free(g);
562
56
563
56
  return n > 0 ? 
isl_stat_error0
: isl_stat_ok;
564
77
}
Unexecuted instantiation: isl_set_list_foreach_scc
Unexecuted instantiation: isl_union_set_list_foreach_scc
Unexecuted instantiation: isl_val_list_foreach_scc
565
566
__isl_give LIST(EL) *FN(FN(LIST(EL),from),BASE)(__isl_take EL *el)
567
31.9k
{
568
31.9k
  isl_ctx *ctx;
569
31.9k
  LIST(EL) *list;
570
31.9k
571
31.9k
  if (!el)
572
1
    return NULL;
573
31.9k
  ctx = FN(EL,get_ctx)(el);
574
31.9k
  list = FN(LIST(EL),alloc)(ctx, 1);
575
31.9k
  if (!list)
576
0
    goto error;
577
31.9k
  list = FN(LIST(EL),add)(list, el);
578
31.9k
  return list;
579
31.9k
error:
580
0
  FN(EL,free)(el);
581
0
  return NULL;
582
31.9k
}
isl_aff_list_from_aff
Line
Count
Source
567
8.12k
{
568
8.12k
  isl_ctx *ctx;
569
8.12k
  LIST(EL) *list;
570
8.12k
571
8.12k
  if (!el)
572
0
    return NULL;
573
8.12k
  ctx = FN(EL,get_ctx)(el);
574
8.12k
  list = FN(LIST(EL),alloc)(ctx, 1);
575
8.12k
  if (!list)
576
0
    goto error;
577
8.12k
  list = FN(LIST(EL),add)(list, el);
578
8.12k
  return list;
579
8.12k
error:
580
0
  FN(EL,free)(el);
581
0
  return NULL;
582
8.12k
}
isl_pw_aff_list_from_pw_aff
Line
Count
Source
567
9.04k
{
568
9.04k
  isl_ctx *ctx;
569
9.04k
  LIST(EL) *list;
570
9.04k
571
9.04k
  if (!el)
572
1
    return NULL;
573
9.04k
  ctx = FN(EL,get_ctx)(el);
574
9.04k
  list = FN(LIST(EL),alloc)(ctx, 1);
575
9.04k
  if (!list)
576
0
    goto error;
577
9.04k
  list = FN(LIST(EL),add)(list, el);
578
9.04k
  return list;
579
9.04k
error:
580
0
  FN(EL,free)(el);
581
0
  return NULL;
582
9.04k
}
Unexecuted instantiation: isl_pw_multi_aff_list_from_pw_multi_aff
Unexecuted instantiation: isl_union_pw_aff_list_from_union_pw_aff
isl_union_pw_multi_aff_list_from_union_pw_multi_aff
Line
Count
Source
567
8
{
568
8
  isl_ctx *ctx;
569
8
  LIST(EL) *list;
570
8
571
8
  if (!el)
572
0
    return NULL;
573
8
  ctx = FN(EL,get_ctx)(el);
574
8
  list = FN(LIST(EL),alloc)(ctx, 1);
575
8
  if (!list)
576
0
    goto error;
577
8
  list = FN(LIST(EL),add)(list, el);
578
8
  return list;
579
8
error:
580
0
  FN(EL,free)(el);
581
0
  return NULL;
582
8
}
Unexecuted instantiation: isl_ast_expr_list_from_ast_expr
isl_ast_node_list_from_ast_node
Line
Count
Source
567
60
{
568
60
  isl_ctx *ctx;
569
60
  LIST(EL) *list;
570
60
571
60
  if (!el)
572
0
    return NULL;
573
60
  ctx = FN(EL,get_ctx)(el);
574
60
  list = FN(LIST(EL),alloc)(ctx, 1);
575
60
  if (!list)
576
0
    goto error;
577
60
  list = FN(LIST(EL),add)(list, el);
578
60
  return list;
579
60
error:
580
0
  FN(EL,free)(el);
581
0
  return NULL;
582
60
}
isl_ast_graft_list_from_ast_graft
Line
Count
Source
567
2.21k
{
568
2.21k
  isl_ctx *ctx;
569
2.21k
  LIST(EL) *list;
570
2.21k
571
2.21k
  if (!el)
572
0
    return NULL;
573
2.21k
  ctx = FN(EL,get_ctx)(el);
574
2.21k
  list = FN(LIST(EL),alloc)(ctx, 1);
575
2.21k
  if (!list)
576
0
    goto error;
577
2.21k
  list = FN(LIST(EL),add)(list, el);
578
2.21k
  return list;
579
2.21k
error:
580
0
  FN(EL,free)(el);
581
0
  return NULL;
582
2.21k
}
Unexecuted instantiation: isl_constraint_list_from_constraint
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_from_pw_qpolynomial_fold
Unexecuted instantiation: isl_id_list_from_id
Unexecuted instantiation: isl_basic_map_list_from_basic_map
Unexecuted instantiation: isl_map_list_from_map
isl_union_map_list_from_union_map
Line
Count
Source
567
1
{
568
1
  isl_ctx *ctx;
569
1
  LIST(EL) *list;
570
1
571
1
  if (!el)
572
0
    return NULL;
573
1
  ctx = FN(EL,get_ctx)(el);
574
1
  list = FN(LIST(EL),alloc)(ctx, 1);
575
1
  if (!list)
576
0
    goto error;
577
1
  list = FN(LIST(EL),add)(list, el);
578
1
  return list;
579
1
error:
580
0
  FN(EL,free)(el);
581
0
  return NULL;
582
1
}
Unexecuted instantiation: isl_pw_qpolynomial_list_from_pw_qpolynomial
isl_schedule_tree_list_from_schedule_tree
Line
Count
Source
567
3.93k
{
568
3.93k
  isl_ctx *ctx;
569
3.93k
  LIST(EL) *list;
570
3.93k
571
3.93k
  if (!el)
572
0
    return NULL;
573
3.93k
  ctx = FN(EL,get_ctx)(el);
574
3.93k
  list = FN(LIST(EL),alloc)(ctx, 1);
575
3.93k
  if (!list)
576
0
    goto error;
577
3.93k
  list = FN(LIST(EL),add)(list, el);
578
3.93k
  return list;
579
3.93k
error:
580
0
  FN(EL,free)(el);
581
0
  return NULL;
582
3.93k
}
isl_basic_set_list_from_basic_set
Line
Count
Source
567
28
{
568
28
  isl_ctx *ctx;
569
28
  LIST(EL) *list;
570
28
571
28
  if (!el)
572
0
    return NULL;
573
28
  ctx = FN(EL,get_ctx)(el);
574
28
  list = FN(LIST(EL),alloc)(ctx, 1);
575
28
  if (!list)
576
0
    goto error;
577
28
  list = FN(LIST(EL),add)(list, el);
578
28
  return list;
579
28
error:
580
0
  FN(EL,free)(el);
581
0
  return NULL;
582
28
}
isl_set_list_from_set
Line
Count
Source
567
8.12k
{
568
8.12k
  isl_ctx *ctx;
569
8.12k
  LIST(EL) *list;
570
8.12k
571
8.12k
  if (!el)
572
0
    return NULL;
573
8.12k
  ctx = FN(EL,get_ctx)(el);
574
8.12k
  list = FN(LIST(EL),alloc)(ctx, 1);
575
8.12k
  if (!list)
576
0
    goto error;
577
8.12k
  list = FN(LIST(EL),add)(list, el);
578
8.12k
  return list;
579
8.12k
error:
580
0
  FN(EL,free)(el);
581
0
  return NULL;
582
8.12k
}
isl_union_set_list_from_union_set
Line
Count
Source
567
421
{
568
421
  isl_ctx *ctx;
569
421
  LIST(EL) *list;
570
421
571
421
  if (!el)
572
0
    return NULL;
573
421
  ctx = FN(EL,get_ctx)(el);
574
421
  list = FN(LIST(EL),alloc)(ctx, 1);
575
421
  if (!list)
576
0
    goto error;
577
421
  list = FN(LIST(EL),add)(list, el);
578
421
  return list;
579
421
error:
580
0
  FN(EL,free)(el);
581
0
  return NULL;
582
421
}
Unexecuted instantiation: isl_val_list_from_val
583
584
/* Append the elements of "list2" to "list1", where "list1" is known
585
 * to have only a single reference and enough room to hold
586
 * the extra elements.
587
 */
588
static __isl_give LIST(EL) *FN(LIST(EL),concat_inplace)(
589
  __isl_take LIST(EL) *list1, __isl_take LIST(EL) *list2)
590
2.01k
{
591
2.01k
  int i;
592
2.01k
593
2.07k
  for (i = 0; i < list2->n; 
++i61
)
594
61
    list1 = FN(LIST(EL),add)(list1, FN(EL,copy)(list2->p[i]));
595
2.01k
  FN(LIST(EL),free)(list2);
596
2.01k
  return list1;
597
2.01k
}
Unexecuted instantiation: isl_aff.c:isl_aff_list_concat_inplace
Unexecuted instantiation: isl_aff.c:isl_pw_aff_list_concat_inplace
Unexecuted instantiation: isl_aff.c:isl_pw_multi_aff_list_concat_inplace
Unexecuted instantiation: isl_aff.c:isl_union_pw_aff_list_concat_inplace
Unexecuted instantiation: isl_aff.c:isl_union_pw_multi_aff_list_concat_inplace
Unexecuted instantiation: isl_ast.c:isl_ast_expr_list_concat_inplace
Unexecuted instantiation: isl_ast.c:isl_ast_node_list_concat_inplace
isl_ast_graft.c:isl_ast_graft_list_concat_inplace
Line
Count
Source
590
1.91k
{
591
1.91k
  int i;
592
1.91k
593
1.91k
  for (i = 0; i < list2->n; 
++i0
)
594
0
    list1 = FN(LIST(EL),add)(list1, FN(EL,copy)(list2->p[i]));
595
1.91k
  FN(LIST(EL),free)(list2);
596
1.91k
  return list1;
597
1.91k
}
Unexecuted instantiation: isl_constraint.c:isl_constraint_list_concat_inplace
Unexecuted instantiation: isl_fold.c:isl_pw_qpolynomial_fold_list_concat_inplace
Unexecuted instantiation: isl_id.c:isl_id_list_concat_inplace
isl_map_list.c:isl_basic_map_list_concat_inplace
Line
Count
Source
590
62
{
591
62
  int i;
592
62
593
62
  for (i = 0; i < list2->n; 
++i0
)
594
0
    list1 = FN(LIST(EL),add)(list1, FN(EL,copy)(list2->p[i]));
595
62
  FN(LIST(EL),free)(list2);
596
62
  return list1;
597
62
}
Unexecuted instantiation: isl_map_list.c:isl_map_list_concat_inplace
Unexecuted instantiation: isl_map_list.c:isl_union_map_list_concat_inplace
Unexecuted instantiation: isl_polynomial.c:isl_pw_qpolynomial_list_concat_inplace
Unexecuted instantiation: isl_schedule_tree.c:isl_schedule_tree_list_concat_inplace
isl_set_list.c:isl_basic_set_list_concat_inplace
Line
Count
Source
590
42
{
591
42
  int i;
592
42
593
103
  for (i = 0; i < list2->n; 
++i61
)
594
61
    list1 = FN(LIST(EL),add)(list1, FN(EL,copy)(list2->p[i]));
595
42
  FN(LIST(EL),free)(list2);
596
42
  return list1;
597
42
}
Unexecuted instantiation: isl_set_list.c:isl_set_list_concat_inplace
Unexecuted instantiation: isl_set_list.c:isl_union_set_list_concat_inplace
Unexecuted instantiation: isl_val.c:isl_val_list_concat_inplace
598
599
/* Concatenate "list1" and "list2".
600
 * If "list1" has only one reference and has enough room
601
 * for the elements of "list2", the add the elements to "list1" itself.
602
 * Otherwise, create a new list to store the result.
603
 */
604
__isl_give LIST(EL) *FN(LIST(EL),concat)(__isl_take LIST(EL) *list1,
605
  __isl_take LIST(EL) *list2)
606
8.37k
{
607
8.37k
  int i;
608
8.37k
  isl_ctx *ctx;
609
8.37k
  LIST(EL) *res;
610
8.37k
611
8.37k
  if (!list1 || !list2)
612
0
    goto error;
613
8.37k
614
8.37k
  if (list1->ref == 1 && 
list1->n + list2->n <= list1->size7.71k
)
615
2.01k
    return FN(LIST(EL),concat_inplace)(list1, list2);
616
6.35k
617
6.35k
  ctx = FN(LIST(EL),get_ctx)(list1);
618
6.35k
  res = FN(LIST(EL),alloc)(ctx, list1->n + list2->n);
619
18.3k
  for (i = 0; i < list1->n; 
++i11.9k
)
620
11.9k
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list1->p[i]));
621
15.6k
  for (i = 0; i < list2->n; 
++i9.24k
)
622
9.24k
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list2->p[i]));
623
6.35k
624
6.35k
  FN(LIST(EL),free)(list1);
625
6.35k
  FN(LIST(EL),free)(list2);
626
6.35k
  return res;
627
6.35k
error:
628
0
  FN(LIST(EL),free)(list1);
629
0
  FN(LIST(EL),free)(list2);
630
0
  return NULL;
631
6.35k
}
Unexecuted instantiation: isl_aff_list_concat
isl_pw_aff_list_concat
Line
Count
Source
606
152
{
607
152
  int i;
608
152
  isl_ctx *ctx;
609
152
  LIST(EL) *res;
610
152
611
152
  if (!list1 || !list2)
612
0
    goto error;
613
152
614
152
  if (list1->ref == 1 && list1->n + list2->n <= list1->size)
615
0
    return FN(LIST(EL),concat_inplace)(list1, list2);
616
152
617
152
  ctx = FN(LIST(EL),get_ctx)(list1);
618
152
  res = FN(LIST(EL),alloc)(ctx, list1->n + list2->n);
619
351
  for (i = 0; i < list1->n; 
++i199
)
620
199
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list1->p[i]));
621
304
  for (i = 0; i < list2->n; 
++i152
)
622
152
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list2->p[i]));
623
152
624
152
  FN(LIST(EL),free)(list1);
625
152
  FN(LIST(EL),free)(list2);
626
152
  return res;
627
152
error:
628
0
  FN(LIST(EL),free)(list1);
629
0
  FN(LIST(EL),free)(list2);
630
0
  return NULL;
631
152
}
Unexecuted instantiation: isl_pw_multi_aff_list_concat
Unexecuted instantiation: isl_union_pw_aff_list_concat
Unexecuted instantiation: isl_union_pw_multi_aff_list_concat
Unexecuted instantiation: isl_ast_expr_list_concat
Unexecuted instantiation: isl_ast_node_list_concat
isl_ast_graft_list_concat
Line
Count
Source
606
5.48k
{
607
5.48k
  int i;
608
5.48k
  isl_ctx *ctx;
609
5.48k
  LIST(EL) *res;
610
5.48k
611
5.48k
  if (!list1 || !list2)
612
0
    goto error;
613
5.48k
614
5.48k
  if (list1->ref == 1 && list1->n + list2->n <= list1->size)
615
1.91k
    return FN(LIST(EL),concat_inplace)(list1, list2);
616
3.57k
617
3.57k
  ctx = FN(LIST(EL),get_ctx)(list1);
618
3.57k
  res = FN(LIST(EL),alloc)(ctx, list1->n + list2->n);
619
3.98k
  for (i = 0; i < list1->n; 
++i409
)
620
409
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list1->p[i]));
621
7.94k
  for (i = 0; i < list2->n; 
++i4.37k
)
622
4.37k
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list2->p[i]));
623
3.57k
624
3.57k
  FN(LIST(EL),free)(list1);
625
3.57k
  FN(LIST(EL),free)(list2);
626
3.57k
  return res;
627
3.57k
error:
628
0
  FN(LIST(EL),free)(list1);
629
0
  FN(LIST(EL),free)(list2);
630
0
  return NULL;
631
3.57k
}
Unexecuted instantiation: isl_constraint_list_concat
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_concat
isl_id_list_concat
Line
Count
Source
606
664
{
607
664
  int i;
608
664
  isl_ctx *ctx;
609
664
  LIST(EL) *res;
610
664
611
664
  if (!list1 || !list2)
612
0
    goto error;
613
664
614
664
  if (list1->ref == 1 && 
list1->n + list2->n <= list1->size0
)
615
0
    return FN(LIST(EL),concat_inplace)(list1, list2);
616
664
617
664
  ctx = FN(LIST(EL),get_ctx)(list1);
618
664
  res = FN(LIST(EL),alloc)(ctx, list1->n + list2->n);
619
1.36k
  for (i = 0; i < list1->n; 
++i705
)
620
705
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list1->p[i]));
621
1.58k
  for (i = 0; i < list2->n; 
++i918
)
622
918
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list2->p[i]));
623
664
624
664
  FN(LIST(EL),free)(list1);
625
664
  FN(LIST(EL),free)(list2);
626
664
  return res;
627
664
error:
628
0
  FN(LIST(EL),free)(list1);
629
0
  FN(LIST(EL),free)(list2);
630
0
  return NULL;
631
664
}
isl_basic_map_list_concat
Line
Count
Source
606
1.93k
{
607
1.93k
  int i;
608
1.93k
  isl_ctx *ctx;
609
1.93k
  LIST(EL) *res;
610
1.93k
611
1.93k
  if (!list1 || !list2)
612
0
    goto error;
613
1.93k
614
1.93k
  if (list1->ref == 1 && list1->n + list2->n <= list1->size)
615
62
    return FN(LIST(EL),concat_inplace)(list1, list2);
616
1.87k
617
1.87k
  ctx = FN(LIST(EL),get_ctx)(list1);
618
1.87k
  res = FN(LIST(EL),alloc)(ctx, list1->n + list2->n);
619
12.5k
  for (i = 0; i < list1->n; 
++i10.6k
)
620
10.6k
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list1->p[i]));
621
5.58k
  for (i = 0; i < list2->n; 
++i3.71k
)
622
3.71k
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list2->p[i]));
623
1.87k
624
1.87k
  FN(LIST(EL),free)(list1);
625
1.87k
  FN(LIST(EL),free)(list2);
626
1.87k
  return res;
627
1.87k
error:
628
0
  FN(LIST(EL),free)(list1);
629
0
  FN(LIST(EL),free)(list2);
630
0
  return NULL;
631
1.87k
}
Unexecuted instantiation: isl_map_list_concat
Unexecuted instantiation: isl_union_map_list_concat
Unexecuted instantiation: isl_pw_qpolynomial_list_concat
Unexecuted instantiation: isl_schedule_tree_list_concat
isl_basic_set_list_concat
Line
Count
Source
606
133
{
607
133
  int i;
608
133
  isl_ctx *ctx;
609
133
  LIST(EL) *res;
610
133
611
133
  if (!list1 || !list2)
612
0
    goto error;
613
133
614
133
  if (list1->ref == 1 && list1->n + list2->n <= list1->size)
615
42
    return FN(LIST(EL),concat_inplace)(list1, list2);
616
91
617
91
  ctx = FN(LIST(EL),get_ctx)(list1);
618
91
  res = FN(LIST(EL),alloc)(ctx, list1->n + list2->n);
619
105
  for (i = 0; i < list1->n; 
++i14
)
620
14
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list1->p[i]));
621
183
  for (i = 0; i < list2->n; 
++i92
)
622
92
    res = FN(LIST(EL),add)(res, FN(EL,copy)(list2->p[i]));
623
91
624
91
  FN(LIST(EL),free)(list1);
625
91
  FN(LIST(EL),free)(list2);
626
91
  return res;
627
91
error:
628
0
  FN(LIST(EL),free)(list1);
629
0
  FN(LIST(EL),free)(list2);
630
0
  return NULL;
631
91
}
Unexecuted instantiation: isl_set_list_concat
Unexecuted instantiation: isl_union_set_list_concat
Unexecuted instantiation: isl_val_list_concat
632
633
__isl_give isl_printer *CAT(isl_printer_print_,LIST(BASE))(
634
  __isl_take isl_printer *p, __isl_keep LIST(EL) *list)
635
0
{
636
0
  int i;
637
0
638
0
  if (!p || !list)
639
0
    goto error;
640
0
  p = isl_printer_print_str(p, "(");
641
0
  for (i = 0; i < list->n; ++i) {
642
0
    if (i)
643
0
      p = isl_printer_print_str(p, ",");
644
0
    p = CAT(isl_printer_print_,BASE)(p, list->p[i]);
645
0
  }
646
0
  p = isl_printer_print_str(p, ")");
647
0
  return p;
648
0
error:
649
0
  isl_printer_free(p);
650
0
  return NULL;
651
0
}
Unexecuted instantiation: isl_printer_print_aff_list
Unexecuted instantiation: isl_printer_print_pw_aff_list
Unexecuted instantiation: isl_printer_print_pw_multi_aff_list
Unexecuted instantiation: isl_printer_print_union_pw_aff_list
Unexecuted instantiation: isl_printer_print_union_pw_multi_aff_list
Unexecuted instantiation: isl_printer_print_ast_expr_list
Unexecuted instantiation: isl_printer_print_ast_node_list
Unexecuted instantiation: isl_printer_print_ast_graft_list
Unexecuted instantiation: isl_printer_print_constraint_list
Unexecuted instantiation: isl_printer_print_pw_qpolynomial_fold_list
Unexecuted instantiation: isl_printer_print_id_list
Unexecuted instantiation: isl_printer_print_basic_map_list
Unexecuted instantiation: isl_printer_print_map_list
Unexecuted instantiation: isl_printer_print_union_map_list
Unexecuted instantiation: isl_printer_print_pw_qpolynomial_list
Unexecuted instantiation: isl_printer_print_schedule_tree_list
Unexecuted instantiation: isl_printer_print_basic_set_list
Unexecuted instantiation: isl_printer_print_set_list
Unexecuted instantiation: isl_printer_print_union_set_list
Unexecuted instantiation: isl_printer_print_val_list
652
653
void FN(LIST(EL),dump)(__isl_keep LIST(EL) *list)
654
0
{
655
0
  isl_printer *printer;
656
0
657
0
  if (!list)
658
0
    return;
659
0
660
0
  printer = isl_printer_to_file(FN(LIST(EL),get_ctx)(list), stderr);
661
0
  printer = CAT(isl_printer_print_,LIST(BASE))(printer, list);
662
0
  printer = isl_printer_end_line(printer);
663
0
664
0
  isl_printer_free(printer);
665
0
}
Unexecuted instantiation: isl_aff_list_dump
Unexecuted instantiation: isl_pw_aff_list_dump
Unexecuted instantiation: isl_pw_multi_aff_list_dump
Unexecuted instantiation: isl_union_pw_aff_list_dump
Unexecuted instantiation: isl_union_pw_multi_aff_list_dump
Unexecuted instantiation: isl_ast_expr_list_dump
Unexecuted instantiation: isl_ast_node_list_dump
Unexecuted instantiation: isl_ast_graft_list_dump
Unexecuted instantiation: isl_constraint_list_dump
Unexecuted instantiation: isl_pw_qpolynomial_fold_list_dump
Unexecuted instantiation: isl_id_list_dump
Unexecuted instantiation: isl_basic_map_list_dump
Unexecuted instantiation: isl_map_list_dump
Unexecuted instantiation: isl_union_map_list_dump
Unexecuted instantiation: isl_pw_qpolynomial_list_dump
Unexecuted instantiation: isl_schedule_tree_list_dump
Unexecuted instantiation: isl_basic_set_list_dump
Unexecuted instantiation: isl_set_list_dump
Unexecuted instantiation: isl_union_set_list_dump
Unexecuted instantiation: isl_val_list_dump