Coverage Report

Created: 2017-11-23 03:11

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/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.39k
{
16
8.39k
  int i;
17
8.39k
18
8.39k
  multi = FN(MULTI(BASE),cow)(multi);
19
8.39k
  if (!multi)
20
0
    return NULL;
21
8.39k
22
20.6k
  
for (i = 0; 8.39k
i < multi->n;
++i12.2k
) {
23
12.2k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
12.2k
    if (!multi->p[i])
25
0
      return FN(MULTI(BASE),free)(multi);
26
12.2k
  }
27
8.39k
28
8.39k
  return multi;
29
8.39k
}
isl_multi_aff_floor
Line
Count
Source
15
6.42k
{
16
6.42k
  int i;
17
6.42k
18
6.42k
  multi = FN(MULTI(BASE),cow)(multi);
19
6.42k
  if (!multi)
20
0
    return NULL;
21
6.42k
22
16.2k
  
for (i = 0; 6.42k
i < multi->n;
++i9.80k
) {
23
9.80k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
9.80k
    if (!multi->p[i])
25
0
      return FN(MULTI(BASE),free)(multi);
26
9.80k
  }
27
6.42k
28
6.42k
  return multi;
29
6.42k
}
isl_multi_union_pw_aff_floor
Line
Count
Source
15
1.97k
{
16
1.97k
  int i;
17
1.97k
18
1.97k
  multi = FN(MULTI(BASE),cow)(multi);
19
1.97k
  if (!multi)
20
0
    return NULL;
21
1.97k
22
4.37k
  
for (i = 0; 1.97k
i < multi->n;
++i2.40k
) {
23
2.40k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
2.40k
    if (!multi->p[i])
25
0
      return FN(MULTI(BASE),free)(multi);
26
2.40k
  }
27
1.97k
28
1.97k
  return multi;
29
1.97k
}