// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdx, %rbx
movsd %xmm0, 0x8(%rsp)
movq %rdi, %r15
leaq 0xa4dd(%rip), %rdi      # 0xa5832
callq 0x54920
movl %eax, %r14d
xorl %eax, %eax
movq %rax, 0x20(%rsp)
movq %rax, 0x40(%rsp)
leaq 0x48(%rsp), %rsi
movq %r15, %rdi
callq 0x98796
testq %rax, %rax
je 0x9b44b
movq %rax, %r15
movl 0x48(%rsp), %eax
cmpl 0x4c(%rsp), %eax
jne 0x9b45a
cvtsi2sd %eax, %xmm1
leaq 0x20(%rsp), %rsi
movb $0x1, %cl
xorl %edi, %edi
leaq 0x40(%rsp), %rdx
testl %eax, %eax
jle 0x9b3c1
movq (%r15,%rdi,8), %rdi
movsd (%rsi), %xmm0
xorl %r8d, %r8d
addsd (%rdi,%r8,8), %xmm0
incq %r8
cmpq %r8, %rax
jne 0x9b3b1
jmp 0x9b3c5
movsd (%rsi), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, (%rsi)
movl $0x1, %edi
movq %rdx, %rsi
testb $0x1, %cl
movl $0x0, %ecx
jne 0x9b3a2
movq %r15, %rdi
movl $0x2, %esi
movsd %xmm1, 0x10(%rsp)
callq 0x3a14b
cvtsi2sd %r14d, %xmm2
movsd 0xc8b9(%rip), %xmm1     # 0xa7cb8
movsd 0x8(%rsp), %xmm0
movsd %xmm2, 0x38(%rsp)
callq 0x20e03
movapd %xmm0, %xmm1
leal 0x1(%r14), %eax
imull %r14d, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd 0x10(%rsp), %xmm2
mulsd 0xfa6f(%rip), %xmm2     # 0xaaea0
divsd %xmm2, %xmm0
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm0
movsd %xmm0, 0x30(%rsp)
jb 0x9b47a
sqrtsd %xmm0, %xmm0
jmp 0x9b48b
movabsq $0x3fe0000000000000, %rax # imm = 0x3FE0000000000000
movq %rax, (%rbx)
jmp 0x9b473
leaq 0x16b14(%rip), %rdi     # 0xb1f75
callq 0x4090
movq %r15, %rdi
movl $0x2, %esi
callq 0x3a14b
xorl %eax, %eax
jmp 0x9b513
movsd %xmm1, 0x8(%rsp)
callq 0x4300
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
leaq 0x1121f(%rip), %rdi     # 0xac6bb
callq 0x54920
movsd 0x20(%rsp), %xmm1
subsd 0x40(%rsp), %xmm1
cmpl $0x1, %eax
je 0x9b4ba
andpd 0xad26(%rip), %xmm1     # 0xa61e0
xorpd %xmm2, %xmm2
movsd 0x30(%rsp), %xmm0
ucomisd %xmm2, %xmm0
movapd %xmm1, 0x10(%rsp)
jb 0x9b4d6
sqrtsd %xmm0, %xmm0
jmp 0x9b4e1
callq 0x4300
movapd 0x10(%rsp), %xmm1
movapd %xmm1, %xmm2
divsd %xmm0, %xmm2
movsd 0xc7c7(%rip), %xmm1     # 0xa7cb8
movapd %xmm2, %xmm0
movsd 0x38(%rsp), %xmm2
callq 0x207bb
movsd %xmm0, (%rbx)
movsd 0x8(%rsp), %xmm0
ucomisd 0x10(%rsp), %xmm0
setb %al
movzbl %al, %eax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq