Coverage Report

Created: 2017-04-29 12:21

/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
4.86k
{
16
4.86k
  int i;
17
4.86k
18
4.86k
  multi = FN(MULTI(BASE),cow)(multi);
19
4.86k
  if (!multi)
20
0
    return NULL;
21
4.86k
22
11.6k
  
for (i = 0; 4.86k
i < multi->n11.6k
;
++i6.76k
)
{6.76k
23
6.76k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
6.76k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
6.76k
  }
27
4.86k
28
4.86k
  return multi;
29
4.86k
}
isl_multi_aff_floor
Line
Count
Source
15
3.31k
{
16
3.31k
  int i;
17
3.31k
18
3.31k
  multi = FN(MULTI(BASE),cow)(multi);
19
3.31k
  if (!multi)
20
0
    return NULL;
21
3.31k
22
8.20k
  
for (i = 0; 3.31k
i < multi->n8.20k
;
++i4.88k
)
{4.88k
23
4.88k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
4.88k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
4.88k
  }
27
3.31k
28
3.31k
  return multi;
29
3.31k
}
isl_multi_union_pw_aff_floor
Line
Count
Source
15
1.54k
{
16
1.54k
  int i;
17
1.54k
18
1.54k
  multi = FN(MULTI(BASE),cow)(multi);
19
1.54k
  if (!multi)
20
0
    return NULL;
21
1.54k
22
3.42k
  
for (i = 0; 1.54k
i < multi->n3.42k
;
++i1.87k
)
{1.87k
23
1.87k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
1.87k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
1.87k
  }
27
1.54k
28
1.54k
  return multi;
29
1.54k
}