Coverage Report

Created: 2017-08-21 19:50

/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
6.82k
{
16
6.82k
  int i;
17
6.82k
18
6.82k
  multi = FN(MULTI(BASE),cow)(multi);
19
6.82k
  if (!multi)
20
0
    return NULL;
21
6.82k
22
16.5k
  
for (i = 0; 6.82k
i < multi->n16.5k
;
++i9.74k
)
{9.74k
23
9.74k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
9.74k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
9.74k
  }
27
6.82k
28
6.82k
  return multi;
29
6.82k
}
isl_multi_aff_floor
Line
Count
Source
15
4.95k
{
16
4.95k
  int i;
17
4.95k
18
4.95k
  multi = FN(MULTI(BASE),cow)(multi);
19
4.95k
  if (!multi)
20
0
    return NULL;
21
4.95k
22
12.3k
  
for (i = 0; 4.95k
i < multi->n12.3k
;
++i7.44k
)
{7.44k
23
7.44k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
7.44k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
7.44k
  }
27
4.95k
28
4.95k
  return multi;
29
4.95k
}
isl_multi_union_pw_aff_floor
Line
Count
Source
15
1.87k
{
16
1.87k
  int i;
17
1.87k
18
1.87k
  multi = FN(MULTI(BASE),cow)(multi);
19
1.87k
  if (!multi)
20
0
    return NULL;
21
1.87k
22
4.16k
  
for (i = 0; 1.87k
i < multi->n4.16k
;
++i2.29k
)
{2.29k
23
2.29k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
2.29k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
2.29k
  }
27
1.87k
28
1.87k
  return multi;
29
1.87k
}