// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/regression.c
// Function: print_regression_results
void print_regression_results(Instanceptr testdata, Regressionresultptr result, double runtime, int printbinary, int displayruntime)
{
 /*!Last Changed 25.05.2006 added regression value*/
	/*!Last Changed 13.12.2004 added printbinary*/
 /*!Last Changed 10.03.2004*/
	char pst[READLINELENGTH], pst2[READLINELENGTH];
	int i;
 double regvalue;
 Instanceptr tmp;
	if (printbinary)
	 {
   set_precision(pst, NULL, "\n");
   set_precision(pst2, NULL, " ");
   tmp = testdata;
		 for (i = 0; i < result->datasize; i++)
    {
     regvalue = give_regressionvalue(tmp);
     fprintf(output, "%d ", tmp->index);
     fprintf(output, pst2, regvalue);
     fprintf(output, pst, result->absoluteerrors[i]);
     tmp = tmp->next;
    }
	 }
	else
  	if (displayruntime)
			 {
				 set_precision(pst, NULL, " %.3lf\n");
	  		fprintf(output, pst, result->regressionperformance / result->datasize, runtime); 		 
			 }
	  else
			 {
				 set_precision(pst, NULL, "\n");
		  	fprintf(output, pst, result->regressionperformance / result->datasize); 		 
			 }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf4280, %rsp          # imm = 0xF4280
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl %ecx, -0x20(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0xa027a
leaq -0x7a140(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0x45bb1(%rip), %rdx     # 0xe5d3b
callq 0x53310
leaq -0xf4260(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0x450e4(%rip), %rdx     # 0xe5285
callq 0x53310
movq -0x8(%rbp), %rax
movq %rax, -0xf4278(%rbp)
movl $0x0, -0xf4264(%rbp)
movl -0xf4264(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x10(%rcx), %eax
jge 0xa0275
movq -0xf4278(%rbp), %rdi
callq 0x43580
movsd %xmm0, -0xf4270(%rbp)
leaq 0x341e8f(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
movq -0xf4278(%rbp), %rax
movl 0x18(%rax), %edx
leaq 0x4c298(%rip), %rsi     # 0xec495
movb $0x0, %al
callq 0x4280
leaq 0x341e6d(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq -0xf4260(%rbp), %rsi
movsd -0xf4270(%rbp), %xmm0
movb $0x1, %al
callq 0x4280
leaq 0x341e4d(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq -0x7a140(%rbp), %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0xf4264(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movb $0x1, %al
callq 0x4280
movq -0xf4278(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xf4278(%rbp)
movl -0xf4264(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xf4264(%rbp)
jmp 0xa01bb
jmp 0xa0313
cmpl $0x0, -0x20(%rbp)
je 0xa02cc
leaq -0x7a140(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0x42839(%rip), %rdx     # 0xe2acb
callq 0x53310
leaq 0x341dda(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq -0x7a140(%rbp), %rsi
movq -0x10(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x10(%rbp), %rax
cvtsi2sdl 0x10(%rax), %xmm1
divsd %xmm1, %xmm0
movsd -0x18(%rbp), %xmm1
movb $0x2, %al
callq 0x4280
jmp 0xa0311
leaq -0x7a140(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0x45a5d(%rip), %rdx     # 0xe5d3b
callq 0x53310
leaq 0x341d8e(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq -0x7a140(%rbp), %rsi
movq -0x10(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x10(%rbp), %rax
cvtsi2sdl 0x10(%rax), %xmm1
divsd %xmm1, %xmm0
movb $0x1, %al
callq 0x4280
jmp 0xa0313
addq $0xf4280, %rsp          # imm = 0xF4280
popq %rbp
retq
nopl (%rax)