Coverage Report

Created: 2017-03-28 09:59

/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
4.44k
{
16
4.44k
  int i;
17
4.44k
18
4.44k
  multi = FN(MULTI(BASE),cow)(multi);
19
4.44k
  if (!multi)
20
0
    return NULL;
21
4.44k
22
10.4k
  
for (i = 0; 4.44k
i < multi->n10.4k
;
++i6.04k
)
{6.04k
23
6.04k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
6.04k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
6.04k
  }
27
4.44k
28
4.44k
  return multi;
29
4.44k
}
isl_multi_aff_floor
Line
Count
Source
15
2.92k
{
16
2.92k
  int i;
17
2.92k
18
2.92k
  multi = FN(MULTI(BASE),cow)(multi);
19
2.92k
  if (!multi)
20
0
    return NULL;
21
2.92k
22
7.15k
  
for (i = 0; 2.92k
i < multi->n7.15k
;
++i4.23k
)
{4.23k
23
4.23k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
4.23k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
4.23k
  }
27
2.92k
28
2.92k
  return multi;
29
2.92k
}
isl_multi_union_pw_aff_floor
Line
Count
Source
15
1.51k
{
16
1.51k
  int i;
17
1.51k
18
1.51k
  multi = FN(MULTI(BASE),cow)(multi);
19
1.51k
  if (!multi)
20
0
    return NULL;
21
1.51k
22
3.33k
  
for (i = 0; 1.51k
i < multi->n3.33k
;
++i1.81k
)
{1.81k
23
1.81k
    multi->p[i] = FN(EL,floor)(multi->p[i]);
24
1.81k
    if (!multi->p[i])
25
0
      
return 0
FN0
(MULTI(BASE),free)(multi);
26
1.81k
  }
27
1.51k
28
1.51k
  return multi;
29
1.51k
}