// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/statistics.c
// Function: all_pairwise_comparisons
Comparisonptr all_pairwise_comparisons(char** files, int filecount, int correctiontype, TEST_TYPE testtype)
{
 int i, j, compcount = 0, which;
 double confidence = get_parameter_f("confidencelevel"), conf;
 char **two_file;
 Comparisonptr comparisons;
 two_file = safemalloc(2 * sizeof(char *), "all_pairwise_comparisons", 3);
 comparisons = safemalloc(((filecount * (filecount - 1)) / 2) * sizeof(Comparison), "all_pairwise_comparisons", 5);
 for (i = 0; i < filecount; i++)
   for (j = i + 1; j < filecount; j++)
    {
     two_file[0] = strcopy(two_file[0], files[i]);
     two_file[1] = strcopy(two_file[1], files[j]);
     compare_two_files_using_test(testtype, two_file, &which, 1 - confidence, &conf);
     safe_free(two_file[0]);
     safe_free(two_file[1]);
     comparisons[compcount].alg1 = i;
     comparisons[compcount].alg2 = j;
     comparisons[compcount].confidence = 1 - conf;
     comparisons[compcount].accepted = 1;
     compcount++;
    }
 switch (correctiontype)
  {
   case BONFERRONI_CORRECTION:bonferroni_correction(comparisons, compcount, confidence);
                              break;
   case HOLM_CORRECTION      :holm_correction(comparisons, compcount, confidence);
                              break;
   case NO_CORRECTION        :no_correction(comparisons, compcount, confidence);
                              break;
  }
 safe_free(two_file);
 return comparisons;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, 0x1c(%rsp)
movl %edx, 0x14(%rsp)
movl %esi, %r14d
movq %rdi, %r12
leaq 0x14c6f(%rip), %rdi     # 0x95928
callq 0x4cdcf
movsd %xmm0, 0x8(%rsp)
leaq 0x209ff(%rip), %r15     # 0xa16ca
pushq $0x10
popq %rdi
pushq $0x3
popq %rdx
movq %r15, %rsi
callq 0x34f59
movq %rax, %rbx
leal -0x1(%r14), %eax
imull %r14d, %eax
pushq $0x2
popq %rcx
cltd
idivl %ecx
cltq
imulq $0x18, %rax, %rdi
pushq $0x5
popq %rdx
movq %r15, %rsi
callq 0x34f59
movsd 0x1481d(%rip), %xmm0    # 0x95520
xorl %r15d, %r15d
testl %r14d, %r14d
movl $0x0, %ecx
movq %r14, 0x50(%rsp)
cmovgl %r14d, %ecx
movq %rcx, 0x38(%rsp)
subsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movq %r12, 0x48(%rsp)
leaq 0x8(%r12), %rcx
movq %rcx, 0x28(%rsp)
movq %rax, 0x20(%rsp)
addq $0x10, %rax
movq %rax, 0x30(%rsp)
pushq $0x1
popq %r14
xorl %esi, %esi
cmpq 0x38(%rsp), %r15
je 0x80e19
movl %esi, 0x18(%rsp)
movslq %esi, %rax
imulq $0x18, %rax, %r12
addq 0x30(%rsp), %r12
xorl %r13d, %r13d
leaq (%r14,%r13), %rbp
cmpl 0x50(%rsp), %ebp
jge 0x80e01
movq (%rbx), %rdi
movq 0x48(%rsp), %rax
movq (%rax,%r15,8), %rsi
callq 0x3604c
movq %rax, (%rbx)
movq 0x8(%rbx), %rdi
movq 0x28(%rsp), %rax
movq (%rax,%r13,8), %rsi
callq 0x3604c
movq %rax, 0x8(%rbx)
movl 0x1c(%rsp), %edi
movq %rbx, %rsi
leaq 0x64(%rsp), %rdx
movsd 0x40(%rsp), %xmm0
leaq 0x58(%rsp), %rcx
callq 0x80505
movq (%rbx), %rdi
callq 0x34ff7
movq 0x8(%rbx), %rdi
callq 0x34ff7
movl %r15d, -0x10(%r12)
movl %ebp, -0xc(%r12)
movsd 0x14740(%rip), %xmm0    # 0x95520
subsd 0x58(%rsp), %xmm0
movsd %xmm0, -0x8(%r12)
movl $0x1, (%r12)
incq %r13
addq $0x18, %r12
jmp 0x80d69
incq %r15
incq %r14
addq $0x8, 0x28(%rsp)
movl 0x18(%rsp), %esi
addl %r13d, %esi
jmp 0x80d4b
movl 0x14(%rsp), %eax
cmpl $0x2, %eax
je 0x80e50
cmpl $0x1, %eax
movq 0x20(%rsp), %r14
je 0x80e40
testl %eax, %eax
jne 0x80e63
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x80a9a
jmp 0x80e63
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x80ac6
jmp 0x80e63
movq 0x20(%rsp), %r14
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x80a76
movq %rbx, %rdi
callq 0x34ff7
movq %r14, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq