summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/pr38498.c
blob: d20b4ae165ad01d793543ad2ec9f5399f95db750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-options "-O2" } */

double test_vector (float **data, int rows, int cols, int vqrows,double epsilon, int maxiter,int **mean, int *map)
{
    int i, j, r, it;
    double sqerr, prev_sqerr=0, t;
    unsigned int *sel;
    int *count;
    for (it = 0;; it++) 
    {
        if ((sqerr == 0.0) || (it >= maxiter-1) ||((it > 0) && ( ((prev_sqerr - sqerr) / prev_sqerr) < epsilon )) )
            for (i = 0; i < vqrows; i++) 
            {
                for (j = 0; j < cols; j++)
                    mean[i][j] = 0.0;
                count[i] = 0;
            }
    }
}