Coverage Report

Created: 2017-06-23 12:40

/Users/buildslave/jenkins/sharedspace/clang-stage2-coverage-R@2/llvm/tools/polly/lib/External/isl/isl_multi_floor.c
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright 2014      Ecole Normale Superieure
3
 *
4
 * Use of this software is governed by the MIT license
5
 *
6
 * Written by Sven Verdoolaege,
7
 * Ecole Normale Superieure, 45 rue d'Ulm, 75230 Paris, France
8
 */
9
10
#include <isl_multi_macro.h>
11
12
/* Given f, return floor(f).
13
 */
14
__isl_give MULTI(BASE) *FN(MULTI(BASE),floor)(__isl_take MULTI(BASE) *multi)
15
5.48k
{
16
5.48k
  int i;
17
5.48k
18
5.48k
  multi = FN(MULTI(BASE),cow)(multi);
19
5.48k
  if (!multi)
20
0
    return NULL;
21
5.48k
22
12.9k
  
for (i = 0; 5.48k
i < multi->n12.9k
;
++i7.45k
)
{7.45k
23
7.45k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
7.45k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
7.45k
  }
27
5.48k
28
5.48k
  return multi;
29
5.48k
}
isl_multi_aff_floor
Line
Count
Source
15
3.78k
{
16
3.78k
  int i;
17
3.78k
18
3.78k
  multi = FN(MULTI(BASE),cow)(multi);
19
3.78k
  if (!multi)
20
0
    return NULL;
21
3.78k
22
9.18k
  
for (i = 0; 3.78k
i < multi->n9.18k
;
++i5.40k
)
{5.40k
23
5.40k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
5.40k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
5.40k
  }
27
3.78k
28
3.78k
  return multi;
29
3.78k
}
isl_multi_union_pw_aff_floor
Line
Count
Source
15
1.70k
{
16
1.70k
  int i;
17
1.70k
18
1.70k
  multi = FN(MULTI(BASE),cow)(multi);
19
1.70k
  if (!multi)
20
0
    return NULL;
21
1.70k
22
3.75k
  
for (i = 0; 1.70k
i < multi->n3.75k
;
++i2.05k
)
{2.05k
23
2.05k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
2.05k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
2.05k
  }
27
1.70k
28
1.70k
  return multi;
29
1.70k
}