Coverage Report

Created: 2017-08-21 19:50

/Users/buildslave/jenkins/sharedspace/clang-stage2-coverage-R@2/llvm/tools/polly/lib/External/isl/isl_pw_hash.c
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright 2016      Sven Verdoolaege
3
 *
4
 * Use of this software is governed by the MIT license
5
 *
6
 * Written by Sven Verdoolaege
7
 */
8
9
#include <isl_pw_macro.h>
10
#include <isl/hash.h>
11
12
/* Return a hash value that digests "pw".
13
 */
14
uint32_t FN(PW,get_hash)(__isl_keep PW *pw)
15
0
{
16
0
  int i;
17
0
  uint32_t hash;
18
0
19
0
  if (!pw)
20
0
    return 0;
21
0
22
0
  
hash = 0
isl_hash_init0
();
23
0
  for (i = 0; 
i < pw->n0
;
++i0
)
{0
24
0
    uint32_t set_hash, el_hash;
25
0
26
0
    set_hash = isl_set_get_hash(pw->p[i].set);
27
0
    isl_hash_hash(hash, set_hash);
28
0
    el_hash = 
FN0
(EL,get_hash)(pw->p[i].
FIELD0
);
29
0
    isl_hash_hash(hash, el_hash);
30
0
  }
31
0
32
0
  return hash;
33
0
}