// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/tests.c
// Function: regressionftest
int regressionftest(char **files,int *which,double confidence,double *real_confidence)
{
 /*Last Changed 13.12.2004*/
 int counts[2], i, df1, df2;
 long int datacount;
 double **observations, sum1, sum2;
 observations = read_observations_for_two_file(files, counts);
 if (!observations)
  {
   *real_confidence = 0.5;
   return 0;
  }
 if (counts[0] != counts[1])
  {
   printf(m1315);
   free_2d((void**)observations, 2);
   return 0;
  }
 datacount = counts[0];
 sum1 = 0;
 sum2 = 0;
 for (i = 0; i < datacount; i++)
  {
   sum1 += observations[0][i];
   sum2 += observations[1][i];
  }
 if (sum1 > sum2)
   (*which) = 1;
 else
   (*which) = 2;
 if (!get_parameter_o("accuracy")) 
   (*which) = 3 - (*which);    
 free_2d((void**)observations, 2);
 if (sum2 == 0)
   return 0;
 df1 = datacount;
 df2 = datacount;
 *real_confidence = 1 - f_distribution((sum1 / sum2), df1, df2);
 if (get_parameter_i("tailed") == 2)
  {
   if ((sum1 / sum2) < f_distribution_inverse(1 - confidence, df1, df2))
     return 0;
   else
     return 1;
  }
 else
   printf(m1316);
 return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movsd %xmm0, -0x20(%rbp)
movq %rdx, -0x28(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xd2020
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0xd732d
movq -0x28(%rbp), %rax
movsd 0xb69b(%rip), %xmm0     # 0xe29b8
movsd %xmm0, (%rax)
movl $0x0, -0x4(%rbp)
jmp 0xd74d8
movl -0x30(%rbp), %eax
cmpl -0x2c(%rbp), %eax
je 0xd735d
leaq 0x17073(%rip), %rdi     # 0xee3af
movb $0x0, %al
callq 0x4030
movq -0x50(%rbp), %rdi
movl $0x2, %esi
callq 0x52e20
movl $0x0, -0x4(%rbp)
jmp 0xd74d8
movslq -0x30(%rbp), %rax
movq %rax, -0x48(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x58(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x60(%rbp)
movl $0x0, -0x34(%rbp)
movslq -0x34(%rbp), %rax
cmpq -0x48(%rbp), %rax
jge 0xd73c6
movq -0x50(%rbp), %rax
movq (%rax), %rax
movslq -0x34(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movq -0x50(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x34(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
addsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x60(%rbp)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0xd737c
movsd -0x58(%rbp), %xmm0
ucomisd -0x60(%rbp), %xmm0
jbe 0xd73de
movq -0x18(%rbp), %rax
movl $0x1, (%rax)
jmp 0xd73e8
movq -0x18(%rbp), %rax
movl $0x2, (%rax)
leaq 0x10fcd(%rip), %rdi     # 0xe83bc
callq 0x79440
cmpl $0x0, %eax
jne 0xd740a
movq -0x18(%rbp), %rax
movl $0x3, %ecx
subl (%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x50(%rbp), %rdi
movl $0x2, %esi
callq 0x52e20
movsd -0x60(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0xd7434
jp 0xd7434
movl $0x0, -0x4(%rbp)
jmp 0xd74d8
movq -0x48(%rbp), %rax
movl %eax, -0x38(%rbp)
movq -0x48(%rbp), %rax
movl %eax, -0x3c(%rbp)
movsd -0x58(%rbp), %xmm0
divsd -0x60(%rbp), %xmm0
movl -0x38(%rbp), %edi
movl -0x3c(%rbp), %esi
callq 0x2ddf0
movaps %xmm0, %xmm1
movsd 0xabb6(%rip), %xmm0     # 0xe2018
subsd %xmm1, %xmm0
movq -0x28(%rbp), %rax
movsd %xmm0, (%rax)
leaq 0x11dcf(%rip), %rdi     # 0xe9244
callq 0x78f10
cmpl $0x2, %eax
jne 0xd74c3
movsd -0x58(%rbp), %xmm0
divsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x68(%rbp)
movsd 0xab82(%rip), %xmm0     # 0xe2018
subsd -0x20(%rbp), %xmm0
movl -0x38(%rbp), %edi
movl -0x3c(%rbp), %esi
callq 0x2e160
movsd -0x68(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jbe 0xd74ba
movl $0x0, -0x4(%rbp)
jmp 0xd74d8
movl $0x1, -0x4(%rbp)
jmp 0xd74d8
leaq 0x16f1c(%rip), %rdi     # 0xee3e6
movb $0x0, %al
callq 0x4030
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)