// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/tests.c
// Function: nemenyi
void nemenyi(char **files, double confidence)
{
 /*!Last Changed 26.04.2010*/
 int i, j, N, k, t;
 Obsptr *obs;
 double *R, cd;
 double critical99[49] = {2.576, 2.913, 3.113, 3.255, 3.364, 3.452, 3.526, 3.590, 3.646, 3.696, 3.741, 3.781, 3.818, 3.853, 3.884, 3.914, 3.941, 3.967, 3.992, 4.015, 4.037, 4.057, 4.077,4.096, 4.114, 4.132, 4.148, 4.164, 4.179, 4.194, 4.208, 4.222, 4.236, 4.249, 4.261, 4.273, 4.285, 4.296, 4.307, 4.318, 4.329, 4.339, 4.349, 4.359, 4.368, 4.378, 4.387, 4.395, 4.404};
 double critical95[49] = {1.960, 2.344, 2.569, 2.728, 2.850, 2.948, 3.031, 3.102, 3.164, 3.219, 3.268, 3.313, 3.354, 3.391, 3.426, 3.458, 3.489, 3.517, 3.544, 3.569, 3.593, 3.616, 3.637, 3.658, 3.678, 3.696, 3.714, 3.732, 3.749, 3.765, 3.780, 3.795, 3.810, 3.824, 3.837, 3.850, 3.863, 3.876, 3.888, 3.899, 3.911, 3.922, 3.933, 3.943, 3.954, 3.964, 3.973, 3.983, 3.992};
 double critical90[49] = {1.645, 2.052, 2.291, 2.460, 2.589, 2.693, 2.780, 2.855, 2.920, 2.978, 3.030, 3.077, 3.120, 3.159, 3.196, 3.230, 3.261, 3.291, 3.319, 3.346, 3.371, 3.394, 3.417, 3.439, 3.459, 3.479, 3.498, 3.516, 3.533, 3.550, 3.567, 3.582, 3.597, 3.612, 3.626, 3.640, 3.653, 3.666, 3.679, 3.691, 3.703, 3.714, 3.726, 3.737, 3.747, 3.758, 3.768, 3.778, 3.788};
 obs = read_observations_for_multiple_equal_size_file(files, &N, &k);
 assign_ranks_to_equal_size_observations(obs, k, N);
 R = (double *)safecalloc(k, sizeof(double), "friedman", 6);
 for (i = 0; i < k; i++)
   for (j = 0; j < N; j++)
     R[i] += obs[i][j].rij;
 for (i = 0; i < k; i++)
  {
   R[i] /= N;
   if (get_parameter_o("displayresulton") == ON)
     printf("%.6f ", R[i]);
  }
 if (get_parameter_o("displayresulton") == ON)
   printf("\n");
 t = 0;
 if (confidence == 0.99)
   cd = critical99[k - 2] * sqrt((k * (k + 1)) / (6.0 * N));
 else
   if (confidence == 0.95)
     cd = critical95[k - 2] * sqrt((k * (k + 1)) / (6.0 * N));
   else
     if (confidence == 0.90)
       cd = critical90[k - 2] * sqrt((k * (k + 1)) / (6.0 * N));
     else
       cd = critical95[k - 2] * sqrt((k * (k + 1)) / (6.0 * N));
 if (get_parameter_o("displayresulton") == ON)
   printf("CD: %.6f\n", cd);
 for (i = 0; i < k; i++)
   for (j = i + 1; j < k; j++)
    {
     if (fabs(R[i] - R[j]) > cd)
      {
       t++;
       write_array_variables("aout", t, 1, "d", i + 1);
       write_array_variables("aout", t, 2, "d", j + 1);
      }
    }
 set_default_variable("out1", t + 0.0);
 switch (get_parameter_l("imagetype"))
  {
        case IMAGE_EPS:rangetest_plot(R, k, files, cd);
                       break;
   case IMAGE_PSTRICKS:rangetest_plot_pstricks(R, k, files, cd);
                       break;
  } 
 safe_free(R);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x520, %rsp            # imm = 0x520
movq %rdi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
leaq -0x1d0(%rbp), %rdi
leaq 0x185ee(%rip), %rsi     # 0xee590
movl $0x188, %edx            # imm = 0x188
callq 0x42b0
leaq -0x360(%rbp), %rdi
leaq 0x18766(%rip), %rsi     # 0xee720
movl $0x188, %edx            # imm = 0x188
callq 0x42b0
leaq -0x4f0(%rbp), %rdi
leaq 0x188de(%rip), %rsi     # 0xee8b0
movl $0x188, %edx            # imm = 0x188
callq 0x42b0
movq -0x8(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
leaq -0x20(%rbp), %rdx
callq 0xd5820
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movl -0x20(%rbp), %esi
movl -0x1c(%rbp), %edx
callq 0xd1530
movslq -0x20(%rbp), %rdi
movl $0x8, %esi
leaq 0x184cf(%rip), %rdx     # 0xee4df
movl $0x6, %ecx
callq 0x52f40
movq %rax, -0x38(%rbp)
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0xd6082
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0xd6075
movq -0x30(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x18(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movsd 0x10(%rax), %xmm0
movq -0x38(%rbp), %rax
movslq -0x14(%rbp), %rcx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xd6034
jmp 0xd6077
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xd6025
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0xd60e5
cvtsi2sdl -0x1c(%rbp), %xmm1
movq -0x38(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rcx,8)
leaq 0xd1b8(%rip), %rdi      # 0xe326b
callq 0x79440
cmpl $0x1, %eax
jne 0xd60d8
movq -0x38(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
leaq 0x16d20(%rip), %rdi     # 0xecdf1
movb $0x1, %al
callq 0x4030
jmp 0xd60da
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xd6089
leaq 0xd17f(%rip), %rdi      # 0xe326b
callq 0x79440
cmpl $0x1, %eax
jne 0xd6104
leaq 0xfc3e(%rip), %rdi      # 0xe5d3b
movb $0x0, %al
callq 0x4030
movl $0x0, -0x24(%rbp)
movsd -0x10(%rbp), %xmm0
movsd 0xc938(%rip), %xmm1     # 0xe2a50
ucomisd %xmm1, %xmm0
jne 0xd617c
jp 0xd617c
movl -0x20(%rbp), %eax
subl $0x2, %eax
cltq
movsd -0x1d0(%rbp,%rax,8), %xmm0
movsd %xmm0, -0x4f8(%rbp)
movl -0x20(%rbp), %eax
movl -0x20(%rbp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
cvtsi2sd %eax, %xmm0
cvtsi2sdl -0x1c(%rbp), %xmm2
movsd 0xe712(%rip), %xmm1     # 0xe4868
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x42a0
movaps %xmm0, %xmm1
movsd -0x4f8(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
jmp 0xd62b6
movsd -0x10(%rbp), %xmm0
movsd 0x108a7(%rip), %xmm1    # 0xe6a30
ucomisd %xmm1, %xmm0
jne 0xd61ed
jp 0xd61ed
movl -0x20(%rbp), %eax
subl $0x2, %eax
cltq
movsd -0x360(%rbp,%rax,8), %xmm0
movsd %xmm0, -0x500(%rbp)
movl -0x20(%rbp), %eax
movl -0x20(%rbp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
cvtsi2sd %eax, %xmm0
cvtsi2sdl -0x1c(%rbp), %xmm2
movsd 0xe6a1(%rip), %xmm1     # 0xe4868
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x42a0
movaps %xmm0, %xmm1
movsd -0x500(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
jmp 0xd62b4
movsd -0x10(%rbp), %xmm0
movsd 0x180e6(%rip), %xmm1    # 0xee2e0
ucomisd %xmm1, %xmm0
jne 0xd625b
jp 0xd625b
movl -0x20(%rbp), %eax
subl $0x2, %eax
cltq
movsd -0x4f0(%rbp,%rax,8), %xmm0
movsd %xmm0, -0x508(%rbp)
movl -0x20(%rbp), %eax
movl -0x20(%rbp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
cvtsi2sd %eax, %xmm0
cvtsi2sdl -0x1c(%rbp), %xmm2
movsd 0xe630(%rip), %xmm1     # 0xe4868
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x42a0
movaps %xmm0, %xmm1
movsd -0x508(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
jmp 0xd62b2
movl -0x20(%rbp), %eax
subl $0x2, %eax
cltq
movsd -0x360(%rbp,%rax,8), %xmm0
movsd %xmm0, -0x510(%rbp)
movl -0x20(%rbp), %eax
movl -0x20(%rbp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
cvtsi2sd %eax, %xmm0
cvtsi2sdl -0x1c(%rbp), %xmm2
movsd 0xe5d7(%rip), %xmm1     # 0xe4868
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x42a0
movaps %xmm0, %xmm1
movsd -0x510(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
jmp 0xd62b4
jmp 0xd62b6
leaq 0xcfae(%rip), %rdi      # 0xe326b
callq 0x79440
cmpl $0x1, %eax
jne 0xd62da
movsd -0x40(%rbp), %xmm0
leaq 0x18215(%rip), %rdi     # 0xee4e8
movb $0x1, %al
callq 0x4030
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0xd63a1
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0xd6391
movq -0x38(%rbp), %rax
movslq -0x14(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x38(%rbp), %rax
movslq -0x18(%rbp), %rcx
subsd (%rax,%rcx,8), %xmm0
movaps 0xcb3d(%rip), %xmm1     # 0xe2e60
pand %xmm1, %xmm0
ucomisd -0x40(%rbp), %xmm0
jbe 0xd6381
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %esi
movl -0x14(%rbp), %r8d
addl $0x1, %r8d
leaq 0xc16c(%rip), %rdi      # 0xe24b5
movl $0x1, %edx
leaq 0x16f11(%rip), %rcx     # 0xed266
movb $0x0, %al
callq 0x490c0
movl -0x24(%rbp), %esi
movl -0x18(%rbp), %r8d
addl $0x1, %r8d
leaq 0xc147(%rip), %rdi      # 0xe24b5
movl $0x2, %edx
leaq 0x16eec(%rip), %rcx     # 0xed266
movb $0x0, %al
callq 0x490c0
jmp 0xd6383
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0xd62f6
jmp 0xd6393
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0xd62e1
cvtsi2sdl -0x24(%rbp), %xmm0
xorps %xmm1, %xmm1
addsd %xmm1, %xmm0
leaq 0xf7d4(%rip), %rdi      # 0xe5b88
callq 0x4b070
leaq 0xf12e(%rip), %rdi      # 0xe54ee
callq 0x792b0
movl %eax, %ecx
movl %ecx, -0x514(%rbp)
testl %eax, %eax
je 0xd63e0
jmp 0xd63d3
movl -0x514(%rbp), %eax
subl $0x1, %eax
je 0xd63f7
jmp 0xd640c
movq -0x38(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x8(%rbp), %rdx
movsd -0x40(%rbp), %xmm0
callq 0x36240
jmp 0xd640c
movq -0x38(%rbp), %rdi
movl -0x20(%rbp), %esi
movq -0x8(%rbp), %rdx
movsd -0x40(%rbp), %xmm0
callq 0x9c850
movq -0x38(%rbp), %rdi
callq 0x52e80
addq $0x520, %rsp            # imm = 0x520
popq %rbp
retq
nop