Coverage Report

Created: 2018-04-24 22:41

/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.52k
{
16
8.52k
  int i;
17
8.52k
18
8.52k
  multi = FN(MULTI(BASE),cow)(multi);
19
8.52k
  if (!multi)
20
0
    return NULL;
21
8.52k
22
20.8k
  
for (i = 0; 8.52k
i < multi->n;
++i12.3k
) {
23
12.3k
    multi->u.p[i] = FN(EL,floor)(multi->u.p[i]);
24
12.3k
    if (!multi->u.p[i])
25
0
      return FN(MULTI(BASE),free)(multi);
26
12.3k
  }
27
8.52k
28
8.52k
  return multi;
29
8.52k
}
isl_multi_aff_floor
Line
Count
Source
15
6.53k
{
16
6.53k
  int i;
17
6.53k
18
6.53k
  multi = FN(MULTI(BASE),cow)(multi);
19
6.53k
  if (!multi)
20
0
    return NULL;
21
6.53k
22
16.4k
  
for (i = 0; 6.53k
i < multi->n;
++i9.93k
) {
23
9.93k
    multi->u.p[i] = FN(EL,floor)(multi->u.p[i]);
24
9.93k
    if (!multi->u.p[i])
25
0
      return FN(MULTI(BASE),free)(multi);
26
9.93k
  }
27
6.53k
28
6.53k
  return multi;
29
6.53k
}
isl_multi_union_pw_aff_floor
Line
Count
Source
15
1.99k
{
16
1.99k
  int i;
17
1.99k
18
1.99k
  multi = FN(MULTI(BASE),cow)(multi);
19
1.99k
  if (!multi)
20
0
    return NULL;
21
1.99k
22
4.41k
  
for (i = 0; 1.99k
i < multi->n;
++i2.42k
) {
23
2.42k
    multi->u.p[i] = FN(EL,floor)(multi->u.p[i]);
24
2.42k
    if (!multi->u.p[i])
25
0
      return FN(MULTI(BASE),free)(multi);
26
2.42k
  }
27
1.99k
28
1.99k
  return multi;
29
1.99k
}