Coverage Report

Created: 2019-04-25 15:07

/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.60k
{
16
8.60k
  int i;
17
8.60k
18
8.60k
  multi = FN(MULTI(BASE),cow)(multi);
19
8.60k
  if (!multi)
20
0
    return NULL;
21
8.60k
22
21.0k
  
for (i = 0; 8.60k
i < multi->n;
++i12.4k
) {
23
12.4k
    multi->u.p[i] = FN(EL,floor)(multi->u.p[i]);
24
12.4k
    if (!multi->u.p[i])
25
0
      return FN(MULTI(BASE),free)(multi);
26
12.4k
  }
27
8.60k
28
8.60k
  return multi;
29
8.60k
}
isl_multi_aff_floor
Line
Count
Source
15
6.59k
{
16
6.59k
  int i;
17
6.59k
18
6.59k
  multi = FN(MULTI(BASE),cow)(multi);
19
6.59k
  if (!multi)
20
0
    return NULL;
21
6.59k
22
16.6k
  
for (i = 0; 6.59k
i < multi->n;
++i10.0k
) {
23
10.0k
    multi->u.p[i] = FN(EL,floor)(multi->u.p[i]);
24
10.0k
    if (!multi->u.p[i])
25
0
      return FN(MULTI(BASE),free)(multi);
26
10.0k
  }
27
6.59k
28
6.59k
  return multi;
29
6.59k
}
isl_multi_union_pw_aff_floor
Line
Count
Source
15
2.00k
{
16
2.00k
  int i;
17
2.00k
18
2.00k
  multi = FN(MULTI(BASE),cow)(multi);
19
2.00k
  if (!multi)
20
0
    return NULL;
21
2.00k
22
4.43k
  
for (i = 0; 2.00k
i < multi->n;
++i2.43k
) {
23
2.43k
    multi->u.p[i] = FN(EL,floor)(multi->u.p[i]);
24
2.43k
    if (!multi->u.p[i])
25
0
      return FN(MULTI(BASE),free)(multi);
26
2.43k
  }
27
2.00k
28
2.00k
  return multi;
29
2.00k
}