// File: /workspace/github_c_makefile_star2_O1/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, 0xc(%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, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movslq %esi, %rax
leaq -0x10(,%rax,8), %rax
movq %rax, 0x30(%rsp)
movq 0x70(%rsp), %rbp
xorl %r14d, %r14d
leaq 0x196f9(%rip), %rbx     # 0xa68b9
movq 0x30(%rsp), %rdi
leaq 0x21557(%rip), %rsi     # 0xae723
movl $0xa, %edx
callq 0x390f5
movq %rax, 0x48(%rsp)
movq %rax, 0x100(%rsp,%r14,8)
cmpl $0x3, 0x10(%rsp)
movq %r14, 0x38(%rsp)
jl 0x8d39a
imulq $0x32, %r14, %rcx
leaq 0x212f2(%rip), %rax     # 0xae4f0
addq %rax, %rcx
movq %rcx, 0x58(%rsp)
xorl %eax, %eax
leaq 0x1(%rax), %rcx
movq %rcx, 0x40(%rsp)
leaq 0x2(%rax), %rcx
movq %rcx, 0x68(%rsp)
movq %rax, 0x50(%rsp)
leaq (%r15,%rax,8), %rax
addq $0x8, %rax
movq %rax, 0x60(%rsp)
xorl %r13d, %r13d
leaq 0x90(%rsp), %r14
movq %r14, %rdi
movq 0x58(%rsp), %rsi
callq 0x4270
movq %r14, %rdi
callq 0x4190
movw $0x2d, %r12w
movw %r12w, 0x90(%rsp,%rax)
movq 0x60(%rsp), %rax
movq (%rax,%r13,8), %rsi
movq %r14, %rdi
callq 0x41e0
movq %r14, %rdi
callq 0x4190
movw %r12w, 0x90(%rsp,%rax)
movq 0x68(%rsp), %rax
movq %r13, 0x20(%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 0x1b5d5(%rip), %rsi     # 0xa888f
callq 0x40f0
testq %rax, %rax
je 0x8d370
movq %rax, %r13
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 0x8d2fa
movq 0x88(%rsp), %rdi
movq (%r15), %rsi
callq 0x4260
testl %eax, %eax
je 0x8d331
incl %r12d
cmpl $0x1e, %r12d
jne 0x8d2ce
jmp 0x8d368
movq %rbp, %rdi
cmpl $0x0, 0xc(%rsp)
jne 0x8d34c
movl $0x2, %eax
subl 0x20(%rsp), %eax
shll $0x3, %eax
movq 0x70(%rsp,%rax), %rdi
callq 0x4130
divsd 0x179d7(%rip), %xmm0    # 0xa4d30
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq %r13, %rdi
callq 0x42a0
movq 0x20(%rsp), %rcx
leaq 0x1(%rcx), %r13
testq %rcx, %rcx
je 0x8d22f
movq %rbp, 0x70(%rsp)
movq 0x40(%rsp), %rcx
movq %rcx, %rax
cmpq 0x18(%rsp), %rcx
jne 0x8d208
movq 0x38(%rsp), %r14
incq %r14
cmpq $0x8, %r14
jne 0x8d1c0
xorl %r15d, %r15d
leaq 0x182d7(%rip), %rbx     # 0xa568d
leaq 0x340(%rsp), %r14
movq 0x28(%rsp), %r13
movq 0x18(%rsp), %rbp
cmpl $0x3, 0x10(%rsp)
jl 0x8d402
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x39529
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 0x8d3d2
movl $0xa, %edi
movq %r13, %rsi
callq 0x4150
movq 0x100(%rsp,%r15,8), %rdi
callq 0x39194
incq %r15
cmpq $0x8, %r15
jne 0x8d3c8
addq $0x7a468, %rsp          # imm = 0x7A468
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq