// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/statistics.c
// Function: binary_tests_compare
void binary_tests_compare(char** names, int count, int equality, FILE* output)
{
 /*Last Changed 02.02.2004 added safemalloc*/
 char test[TESTCOUNT][50]={"bonferroni","scheffe","cvttest","ftest",
                           "tpaired5x2","ttest","wilcoxon","tukey"};
 double* results[TESTCOUNT];
 char st[100]="",st1[500];
 char* p[4], pst[READLINELENGTH];
 int i,j,k,l,m;
 FILE* infile;
 for (i=0;i<TESTCOUNT;i++)
  {
   results[i]=(double *)safemalloc((count-2)*sizeof(double), "binary_tests_compare", 10);
   for (j=0;j<count-2;j++)
     for (k=0;k<2;k++)
      {
       strcpy(st,test[i]);
       strcat(st,"-");
       strcat(st,names[j+1+k]);
       strcat(st,"-");
       strcat(st,names[j+2-k]);
       strcat(st,".txt");
       infile=fopen(st,"r");
       if (infile!=NULL)
        {
         for (l=0;l<30;l++)
          {
           fgets(st1,500,infile);
           p[0] = strtok(st1,";\n");
           for (m=0;m<3;m++)
             p[m+1]=strtok(NULL,";\n");
           if (strcmp(p[3],names[0])==0)
            {
             if (equality==0)
               results[i][j]=atof(p[2-k])/10;
             else
               results[i][j]=atof(p[0])/10;
             break;
            }
          }
         fclose(infile);
        }
      }
  }
 for (i = 0; i < TESTCOUNT; i++)
  {
   for (j = 0; j < count - 2; j++)
    {
     set_precision(pst, NULL, " ");
     fprintf(output, pst, results[i][j]);
    }
   fprintf(output,"\n");
   safe_free(results[i]);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7a468, %rsp          # imm = 0x7A468
movq %rcx, 0x28(%rsp)
movl %edx, 0x8(%rsp)
movq %rdi, %r15
xorpd %xmm0, %xmm0
leaq 0x90(%rsp), %rax
movapd %xmm0, 0x50(%rax)
movapd %xmm0, 0x40(%rax)
movapd %xmm0, 0x30(%rax)
movapd %xmm0, 0x20(%rax)
movapd %xmm0, 0x10(%rax)
movapd %xmm0, (%rax)
movl $0x0, 0x60(%rax)
leal -0x2(%rsi), %eax
movq %rax, 0x20(%rsp)
movq %rsi, 0x10(%rsp)
movslq %esi, %rax
leaq -0x10(,%rax,8), %rax
movq %rax, 0x30(%rsp)
xorl %r14d, %r14d
leaq 0x19f8f(%rip), %rbx     # 0xa98e7
movq 0x30(%rsp), %rdi
leaq 0x21e4f(%rip), %rsi     # 0xb17b3
movl $0xa, %edx
callq 0x3a0e1
movq %r14, 0x18(%rsp)
movq %rax, 0x40(%rsp)
movq %rax, 0x100(%rsp,%r14,8)
cmpl $0x3, 0x10(%rsp)
jl 0x8fb3d
imulq $0x32, 0x18(%rsp), %rcx
leaq 0x21be8(%rip), %rax     # 0xb1580
addq %rax, %rcx
movq %rcx, 0x50(%rsp)
xorl %eax, %eax
leaq 0x1(%rax), %rcx
movq %rcx, 0x38(%rsp)
leaq 0x2(%rax), %rcx
movq %rcx, 0x60(%rsp)
movq %rax, 0x48(%rsp)
leaq (%r15,%rax,8), %rax
addq $0x8, %rax
movq %rax, 0x58(%rsp)
movb $0x1, %r12b
xorl %r13d, %r13d
leaq 0x90(%rsp), %r14
movq %r14, %rdi
movq 0x50(%rsp), %rsi
callq 0x4270
movq %r14, %rdi
callq 0x4190
movw $0x2d, %bp
movw %bp, 0x90(%rsp,%rax)
movq 0x58(%rsp), %rax
movq (%rax,%r13,8), %rsi
movq %r14, %rdi
callq 0x41e0
movq %r14, %rdi
callq 0x4190
movw %bp, 0x90(%rsp,%rax)
movq 0x60(%rsp), %rax
movq %r13, 0x68(%rsp)
subq %r13, %rax
movq (%r15,%rax,8), %rsi
movq %r14, %rdi
callq 0x41e0
movq %r14, %rdi
callq 0x4190
movl $0x7478742e, 0x90(%rsp,%rax) # imm = 0x7478742E
movb $0x0, 0x94(%rsp,%rax)
movq %r14, %rdi
leaq 0x1bf07(%rip), %rsi     # 0xab95b
callq 0x40f0
testq %rax, %rax
je 0x8fb14
movq %rax, %r13
movl %r12d, 0xc(%rsp)
xorl %r12d, %r12d
leaq 0x140(%rsp), %r14
movq %r14, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq %r13, %rdx
callq 0x4120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4280
movq %rax, %rbp
movl $0x1, %r14d
xorl %edi, %edi
movq %rbx, %rsi
callq 0x4280
movq %rax, 0x70(%rsp,%r14,8)
incq %r14
cmpq $0x4, %r14
jne 0x8fa99
movq 0x88(%rsp), %rdi
movq (%r15), %rsi
callq 0x4260
testl %eax, %eax
je 0x8fad0
incl %r12d
cmpl $0x1e, %r12d
jne 0x8fa6d
jmp 0x8fb07
cmpl $0x0, 0x8(%rsp)
jne 0x8fae8
movl $0x2, %eax
subl 0x68(%rsp), %eax
shll $0x3, %eax
movq 0x70(%rsp,%rax), %rbp
movq %rbp, %rdi
callq 0x4130
divsd 0x182c0(%rip), %xmm0    # 0xa7db8
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq %r13, %rdi
callq 0x42a0
movl 0xc(%rsp), %r12d
movl $0x1, %r13d
testb $0x1, %r12b
movl $0x0, %r12d
jne 0x8f9cc
movq 0x38(%rsp), %rcx
movq %rcx, %rax
cmpq 0x20(%rsp), %rcx
jne 0x8f9a2
movq 0x18(%rsp), %r14
incq %r14
cmpq $0x8, %r14
jne 0x8f958
xorl %r15d, %r15d
leaq 0x18b8c(%rip), %rbx     # 0xa86e5
leaq 0x340(%rsp), %r14
movq 0x28(%rsp), %r13
movq 0x20(%rsp), %rbp
cmpl $0x3, 0x10(%rsp)
jl 0x8fba5
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x3a535
movq 0x100(%rsp,%r15,8), %rax
movsd (%rax,%r12,8), %xmm0
movq %r13, %rdi
movq %r14, %rsi
movb $0x1, %al
callq 0x42e0
incq %r12
cmpq %r12, %rbp
jne 0x8fb75
movl $0xa, %edi
movq %r13, %rsi
callq 0x4150
movq 0x100(%rsp,%r15,8), %rdi
callq 0x3a180
incq %r15
cmpq $0x8, %r15
jne 0x8fb6b
addq $0x7a468, %rsp          # imm = 0x7A468
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq