// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/tests.c
// Function: nemenyi_two_sample
int nemenyi_two_sample(char **files, int *which, double confidence, double *real_confidence)
{
 int i, j, counts[2], N, k = get_parameter_i("nearcount");
 double **observations, sum[2] = {0.0, 0.0}, cd;
 observations = read_observations_for_two_file(files, counts);
 if (!observations)
  {
   *real_confidence = 0.5;
   return 0;
  }
 if (counts[0] != counts[1])
  {
   printf(m1315);
   free_2d((void**) observations, 2);
   return 0;
  }
 N = counts[0];
 for (i = 0; i < 2; i++)
  {
   for (j = 0; j < N; j++)
     sum[i] += observations[i][j];
   sum[i] /= N;
  }
 free_2d((void**)observations, 2);
 cd = studentized_range_inverse(confidence, 12000, k) * sqrt((k * (k + 1)) / (12.0 * N));
 if (get_parameter_i("tailed") == 1)
  {
   *real_confidence = studentized_range((sum[0] - sum[1]) / sqrt((k * (k + 1)) / (12.0 * N)), 12000, k);
   if (sum[0] - sum[1] <= cd)
     return 0;
   else
     return 1;
  }
 else
  {
   *real_confidence = studentized_range(fabs(sum[0] - sum[1]) / sqrt((k * (k + 1)) / (12.0 * N)), 12000, k);
   if (fabs(sum[0] - sum[1]) <= cd)
     return 0;
   else
     return 1;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movsd %xmm0, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
leaq 0xc864(%rip), %rdi      # 0xe2537
callq 0x78f10
movl %eax, -0x40(%rbp)
leaq -0x60(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x4050
movq -0x10(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xd2020
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
jne 0xd5d1f
movq -0x28(%rbp), %rax
movsd 0xcca9(%rip), %xmm0     # 0xe29b8
movsd %xmm0, (%rax)
movl $0x0, -0x4(%rbp)
jmp 0xd5f65
movl -0x38(%rbp), %eax
cmpl -0x34(%rbp), %eax
je 0xd5d4f
leaq 0x18681(%rip), %rdi     # 0xee3af
movb $0x0, %al
callq 0x4030
movq -0x48(%rbp), %rdi
movl $0x2, %esi
callq 0x52e20
movl $0x0, -0x4(%rbp)
jmp 0xd5f65
movl -0x38(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl $0x0, -0x2c(%rbp)
cmpl $0x2, -0x2c(%rbp)
jge 0xd5dc5
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jge 0xd5da1
movq -0x48(%rbp), %rax
movslq -0x2c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x30(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movslq -0x2c(%rbp), %rax
addsd -0x60(%rbp,%rax,8), %xmm0
movsd %xmm0, -0x60(%rbp,%rax,8)
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0xd5d69
cvtsi2sdl -0x3c(%rbp), %xmm1
movslq -0x2c(%rbp), %rax
movsd -0x60(%rbp,%rax,8), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x60(%rbp,%rax,8)
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xd5d5c
movq -0x48(%rbp), %rdi
movl $0x2, %esi
callq 0x52e20
movsd -0x20(%rbp), %xmm0
cvtsi2sdl -0x40(%rbp), %xmm2
movsd 0xea43(%rip), %xmm1     # 0xe4828
callq 0x2f0a0
movsd %xmm0, -0x70(%rbp)
movl -0x40(%rbp), %eax
movl -0x40(%rbp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
cvtsi2sd %eax, %xmm0
cvtsi2sdl -0x3c(%rbp), %xmm2
movsd 0x11ae4(%rip), %xmm1    # 0xe78f0
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x42a0
movaps %xmm0, %xmm1
movsd -0x70(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x68(%rbp)
leaq 0x13413(%rip), %rdi     # 0xe9244
callq 0x78f10
cmpl $0x1, %eax
jne 0xd5ecb
movsd -0x60(%rbp), %xmm0
subsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x78(%rbp)
movl -0x40(%rbp), %eax
movl -0x40(%rbp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
cvtsi2sd %eax, %xmm0
cvtsi2sdl -0x3c(%rbp), %xmm2
movsd 0x11a85(%rip), %xmm1    # 0xe78f0
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x42a0
movaps %xmm0, %xmm1
movsd -0x78(%rbp), %xmm0
divsd %xmm1, %xmm0
cvtsi2sdl -0x40(%rbp), %xmm2
movsd 0xe997(%rip), %xmm1     # 0xe4828
callq 0x2e5d0
movq -0x28(%rbp), %rax
movsd %xmm0, (%rax)
movsd -0x60(%rbp), %xmm1
subsd -0x58(%rbp), %xmm1
movsd -0x68(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jb 0xd5ebf
movl $0x0, -0x4(%rbp)
jmp 0xd5f65
movl $0x1, -0x4(%rbp)
jmp 0xd5f65
movsd -0x60(%rbp), %xmm0
subsd -0x58(%rbp), %xmm0
movaps 0xcf84(%rip), %xmm1     # 0xe2e60
pand %xmm1, %xmm0
movsd %xmm0, -0x80(%rbp)
movl -0x40(%rbp), %eax
movl -0x40(%rbp), %ecx
addl $0x1, %ecx
imull %ecx, %eax
cvtsi2sd %eax, %xmm0
cvtsi2sdl -0x3c(%rbp), %xmm2
movsd 0x119ee(%rip), %xmm1    # 0xe78f0
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x42a0
movaps %xmm0, %xmm1
movsd -0x80(%rbp), %xmm0
divsd %xmm1, %xmm0
cvtsi2sdl -0x40(%rbp), %xmm2
movsd 0xe900(%rip), %xmm1     # 0xe4828
callq 0x2e5d0
movq -0x28(%rbp), %rax
movsd %xmm0, (%rax)
movsd -0x60(%rbp), %xmm1
subsd -0x58(%rbp), %xmm1
movaps 0xcf1a(%rip), %xmm0     # 0xe2e60
pand %xmm0, %xmm1
movsd -0x68(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jb 0xd5f5e
movl $0x0, -0x4(%rbp)
jmp 0xd5f65
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)