// File: /workspace/github_c_makefile_star2_O2/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 $0x7a458, %rsp          # imm = 0x7A458
movq %rcx, 0x30(%rsp)
movl %edx, 0xc(%rsp)
movq %rdi, %r14
xorpd %xmm0, %xmm0
leaq 0x80(%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)
andl $0x0, 0x60(%rax)
addl $-0x2, %esi
movslq %esi, %rax
leaq (,%rax,8), %rcx
movq %rcx, 0x38(%rsp)
xorl %r15d, %r15d
testl %eax, %eax
cmovlel %r15d, %eax
movq %rax, 0x10(%rsp)
leaq 0x17aba(%rip), %rbx     # 0x99857
cmpq $0x8, %r15
je 0x81f8e
movq 0x38(%rsp), %rdi
leaq 0x1f960(%rip), %rsi     # 0xa1713
pushq $0xa
popq %rdx
callq 0x34f59
movq %rax, 0x18(%rsp)
movq %rax, 0xf0(%rsp,%r15,8)
imulq $0x32, %r15, %rcx
leaq 0x1f70d(%rip), %rax     # 0xa14e0
addq %rax, %rcx
movq %rcx, 0x48(%rsp)
xorl %eax, %eax
movq %r15, (%rsp)
cmpq 0x10(%rsp), %rax
je 0x81f86
leaq 0x1(%rax), %rcx
movq %rcx, 0x40(%rsp)
leaq 0x2(%rax), %rcx
movq %rcx, 0x58(%rsp)
leaq (%r14,%rax,8), %rcx
addq $0x8, %rcx
movq %rcx, 0x50(%rsp)
xorl %r13d, %r13d
movq %rax, 0x20(%rsp)
cmpq $0x2, %r13
je 0x81f7c
leaq 0x80(%rsp), %r15
movq %r15, %rdi
movq 0x48(%rsp), %rsi
callq 0x4270
movq %r15, %rdi
callq 0x4190
movw $0x2d, %r12w
movw %r12w, 0x80(%rsp,%rax)
movq 0x50(%rsp), %rax
movq (%rax,%r13,8), %rsi
movq %r15, %rdi
callq 0x41e0
movq %r15, %rdi
callq 0x4190
movw %r12w, 0x80(%rsp,%rax)
movq 0x58(%rsp), %rax
movq %r13, 0x28(%rsp)
subq %r13, %rax
movq (%r14,%rax,8), %rsi
movq %r15, %rdi
callq 0x41e0
movq %r15, %rdi
callq 0x4190
movl $0x7478742e, 0x80(%rsp,%rax) # imm = 0x7478742E
movb $0x0, 0x84(%rsp,%rax)
movq %r15, %rdi
leaq 0x199d7(%rip), %rsi     # 0x9b87f
callq 0x40f0
testq %rax, %rax
je 0x81f2b
movq %rax, %r13
xorl %r15d, %r15d
cmpl $0x1e, %r15d
je 0x81f31
leaq 0x130(%rsp), %r12
movq %r12, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq %r13, %rdx
callq 0x4120
movq %r12, %rdi
movq %rbx, %rsi
callq 0x4280
movq %rax, %rbp
pushq $0x1
popq %r12
cmpq $0x4, %r12
je 0x81f02
xorl %edi, %edi
movq %rbx, %rsi
callq 0x4280
movq %rax, 0x60(%rsp,%r12,8)
incq %r12
jmp 0x81ee8
movq 0x78(%rsp), %rdi
movq (%r14), %rsi
callq 0x4260
incl %r15d
testl %eax, %eax
jne 0x81eb8
movq %rbp, 0x60(%rsp)
cmpl $0x0, 0xc(%rsp)
movq (%rsp), %r15
je 0x81f3c
movq %rbp, %rdi
jmp 0x81f4b
movq (%rsp), %r15
jmp 0x81f6f
movq %rbp, 0x60(%rsp)
movq (%rsp), %r15
jmp 0x81f67
pushq $0x2
popq %rax
subl 0x28(%rsp), %eax
shll $0x3, %eax
movq 0x60(%rsp,%rax), %rdi
callq 0x4130
divsd 0x15de0(%rip), %xmm0    # 0x97d38
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq %r13, %rdi
callq 0x42a0
movq 0x28(%rsp), %r13
incq %r13
jmp 0x81e13
movq 0x40(%rsp), %rax
jmp 0x81de1
incq %r15
jmp 0x81d9d
xorl %r12d, %r12d
pushq $0xa
popq %rbx
leaq 0x166ca(%rip), %r14     # 0x98665
leaq 0x330(%rsp), %r15
movq 0x30(%rsp), %rbp
cmpq $0x8, %r12
je 0x82001
xorl %r13d, %r13d
cmpq %r13, 0x10(%rsp)
je 0x81fe5
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x35305
movq 0xf0(%rsp,%r12,8), %rax
movsd (%rax,%r13,8), %xmm0
movq %rbp, %rdi
movq %r15, %rsi
movb $0x1, %al
callq 0x42e0
incq %r13
jmp 0x81fb1
movl %ebx, %edi
movq %rbp, %rsi
callq 0x4150
movq 0xf0(%rsp,%r12,8), %rdi
callq 0x34ff7
incq %r12
jmp 0x81fa8
addq $0x7a458, %rsp          # imm = 0x7A458
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq