// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x7a5c0, %rsp          # imm = 0x7A5C0
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
leaq -0x1b0(%rbp), %rdi
leaq 0x28f79(%rip), %rsi     # 0xedbe0
movl $0x190, %edx            # imm = 0x190
callq 0x42b0
leaq -0x260(%rbp), %rdi
xorl %esi, %esi
movl $0x64, %edx
callq 0x4050
movl $0x0, -0x7a5a4(%rbp)
cmpl $0x8, -0x7a5a4(%rbp)
jge 0xc4f5b
movl -0xc(%rbp), %eax
subl $0x2, %eax
movslq %eax, %rdi
shlq $0x3, %rdi
leaq 0x29299(%rip), %rsi     # 0xedf48
movl $0xa, %edx
callq 0x52d70
movq %rax, %rcx
movslq -0x7a5a4(%rbp), %rax
movq %rcx, -0x1f0(%rbp,%rax,8)
movl $0x0, -0x7a5a8(%rbp)
movl -0x7a5a8(%rbp), %eax
movl -0xc(%rbp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jge 0xc4f45
movl $0x0, -0x7a5ac(%rbp)
cmpl $0x2, -0x7a5ac(%rbp)
jge 0xc4f2f
leaq -0x260(%rbp), %rdi
movslq -0x7a5a4(%rbp), %rax
leaq -0x1b0(%rbp), %rsi
imulq $0x32, %rax, %rax
addq %rax, %rsi
callq 0x4220
leaq -0x260(%rbp), %rdi
leaq 0x20e53(%rip), %rsi     # 0xe5b82
callq 0x41a0
leaq -0x260(%rbp), %rdi
movq -0x8(%rbp), %rax
movl -0x7a5a8(%rbp), %ecx
addl $0x1, %ecx
addl -0x7a5ac(%rbp), %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
callq 0x41a0
leaq -0x260(%rbp), %rdi
leaq 0x20e1a(%rip), %rsi     # 0xe5b82
callq 0x41a0
leaq -0x260(%rbp), %rdi
movq -0x8(%rbp), %rax
movl -0x7a5a8(%rbp), %ecx
addl $0x2, %ecx
subl -0x7a5ac(%rbp), %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
callq 0x41a0
leaq -0x260(%rbp), %rdi
leaq 0x221fc(%rip), %rsi     # 0xe6f9d
callq 0x41a0
leaq -0x260(%rbp), %rdi
leaq 0x233f2(%rip), %rsi     # 0xe81a6
callq 0x40c0
movq %rax, -0x7a5c0(%rbp)
cmpq $0x0, -0x7a5c0(%rbp)
je 0xc4f19
movl $0x0, -0x7a5b0(%rbp)
cmpl $0x1e, -0x7a5b0(%rbp)
jge 0xc4f0d
leaq -0x460(%rbp), %rdi
movq -0x7a5c0(%rbp), %rdx
movl $0x1f4, %esi            # imm = 0x1F4
callq 0x40f0
leaq -0x460(%rbp), %rdi
leaq 0x2169f(%rip), %rsi     # 0xe64aa
callq 0x4230
movq %rax, -0x480(%rbp)
movl $0x0, -0x7a5b4(%rbp)
cmpl $0x3, -0x7a5b4(%rbp)
jge 0xc4e61
xorl %eax, %eax
movl %eax, %edi
leaq 0x21675(%rip), %rsi     # 0xe64aa
callq 0x4230
movq %rax, %rcx
movl -0x7a5b4(%rbp), %eax
addl $0x1, %eax
cltq
movq %rcx, -0x480(%rbp,%rax,8)
movl -0x7a5b4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a5b4(%rbp)
jmp 0xc4e21
movq -0x468(%rbp), %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rsi
callq 0x4210
cmpl $0x0, %eax
jne 0xc4ef7
cmpl $0x0, -0x10(%rbp)
jne 0xc4ec2
movl $0x2, %eax
subl -0x7a5ac(%rbp), %eax
cltq
movq -0x480(%rbp,%rax,8), %rdi
callq 0x4100
movsd 0x1faa7(%rip), %xmm1    # 0xe4948
divsd %xmm1, %xmm0
movslq -0x7a5a4(%rbp), %rax
movq -0x1f0(%rbp,%rax,8), %rax
movslq -0x7a5a8(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0xc4ef5
movq -0x480(%rbp), %rdi
callq 0x4100
movsd 0x1fa72(%rip), %xmm1    # 0xe4948
divsd %xmm1, %xmm0
movslq -0x7a5a4(%rbp), %rax
movq -0x1f0(%rbp,%rax,8), %rax
movslq -0x7a5a8(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0xc4f0d
jmp 0xc4ef9
movl -0x7a5b0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a5b0(%rbp)
jmp 0xc4dd8
movq -0x7a5c0(%rbp), %rdi
callq 0x4250
jmp 0xc4f1b
movl -0x7a5ac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a5ac(%rbp)
jmp 0xc4cf3
jmp 0xc4f31
movl -0x7a5a8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a5a8(%rbp)
jmp 0xc4cd5
jmp 0xc4f47
movl -0x7a5a4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a5a4(%rbp)
jmp 0xc4c8e
movl $0x0, -0x7a5a4(%rbp)
cmpl $0x8, -0x7a5a4(%rbp)
jge 0xc501b
movl $0x0, -0x7a5a8(%rbp)
movl -0x7a5a8(%rbp), %eax
movl -0xc(%rbp), %ecx
subl $0x2, %ecx
cmpl %ecx, %eax
jge 0xc4fe1
leaq -0x7a5a0(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0x202e7(%rip), %rdx     # 0xe5285
callq 0x53310
movq -0x18(%rbp), %rdi
leaq -0x7a5a0(%rbp), %rsi
movslq -0x7a5a4(%rbp), %rax
movq -0x1f0(%rbp,%rax,8), %rax
movslq -0x7a5a8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movb $0x1, %al
callq 0x4280
movl -0x7a5a8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a5a8(%rbp)
jmp 0xc4f7c
movq -0x18(%rbp), %rdi
leaq 0x20d4f(%rip), %rsi     # 0xe5d3b
movb $0x0, %al
callq 0x4280
movslq -0x7a5a4(%rbp), %rax
movq -0x1f0(%rbp,%rax,8), %rdi
callq 0x52e80
movl -0x7a5a4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a5a4(%rbp)
jmp 0xc4f65
addq $0x7a5c0, %rsp          # imm = 0x7A5C0
popq %rbp
retq
nopw %cs:(%rax,%rax)