Coverage Report

Created: 2017-10-03 07:32

/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
8.30k
{
16
8.30k
  int i;
17
8.30k
18
8.30k
  multi = FN(MULTI(BASE),cow)(multi);
19
8.30k
  if (!multi)
20
0
    return NULL;
21
8.30k
22
20.4k
  
for (i = 0; 8.30k
i < multi->n20.4k
;
++i12.1k
) {
23
12.1k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
12.1k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
12.1k
  }
27
8.30k
28
8.30k
  return multi;
29
8.30k
}
isl_multi_aff_floor
Line
Count
Source
15
6.37k
{
16
6.37k
  int i;
17
6.37k
18
6.37k
  multi = FN(MULTI(BASE),cow)(multi);
19
6.37k
  if (!multi)
20
0
    return NULL;
21
6.37k
22
16.1k
  
for (i = 0; 6.37k
i < multi->n16.1k
;
++i9.76k
) {
23
9.76k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
9.76k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
9.76k
  }
27
6.37k
28
6.37k
  return multi;
29
6.37k
}
isl_multi_union_pw_aff_floor
Line
Count
Source
15
1.92k
{
16
1.92k
  int i;
17
1.92k
18
1.92k
  multi = FN(MULTI(BASE),cow)(multi);
19
1.92k
  if (!multi)
20
0
    return NULL;
21
1.92k
22
4.28k
  
for (i = 0; 1.92k
i < multi->n4.28k
;
++i2.35k
) {
23
2.35k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
2.35k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
2.35k
  }
27
1.92k
28
1.92k
  return multi;
29
1.92k
}