// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/classification.c
// Function: print_classification_results
void print_classification_results(Instanceptr testdata, Classificationresultptr result, double runtime, int printbinary, int displayruntime, int accuracy, int displayclassresulton)
{
 /*!Last Changed 22.05.2005*/
 /*!Last Changed 17.08.2003 Displays accuracy or error results*/
 int i;
 char pst[READLINELENGTH];
 Instanceptr tmp = testdata;
 if (result->datasize == 0)
   return;

 if (printbinary)
  {
   fprintf(output,"%d\n", result->datasize);
   while (tmp)
    {
     fprintf(output,"%d", tmp->classified);
     tmp = tmp->next;
    }
  }
 else
  {
   if (displayruntime)
    {
     set_precision(pst, NULL, " %.3lf\n");
     if (accuracy)
       fprintf(output, pst, 100 * (result->performance + 0.0) / result->datasize, runtime); 
     else
       fprintf(output, pst, 100 - 100 * (result->performance + 0.0) / result->datasize, runtime);   
	printf("error %f\n",100 - 100 * (result->performance + 0.0) / result->datasize);     
    }
   else
    {
     set_precision(pst, NULL, "\n");
     if (accuracy)
       fprintf(output, pst, 100 * (result->performance + 0.0) / result->datasize); 
     else
       fprintf(output, pst, 100 - 100 * (result->performance + 0.0) / result->datasize); 
    }
   if (displayclassresulton)
    {
     set_precision(pst, NULL, "\n");
     fprintf(output, "----------\n");
     if (accuracy)
       for (i = 0; i < current_dataset->classno; i++)
         if (result->class_counts[i] != 0)
           fprintf(output, pst, 100 * (result->class_performance[i] + 0.0) / result->class_counts[i]);
         else
           fprintf(output, pst, 0.0);
     else
       for (i = 0; i < current_dataset->classno; i++)
         if (result->class_counts[i] != 0)
           fprintf(output, pst, 100 - 100 * (result->class_performance[i] + 0.0) / result->class_counts[i]);
         else
           fprintf(output, pst, 100.0);
     fprintf(output, "----------\n");
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x7a160, %rsp          # imm = 0x7A160
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl %ecx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl %r9d, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x7a158(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jne 0xb640
jmp 0xba2c
cmpl $0x0, -0x1c(%rbp)
je 0xb6aa
leaq 0x3d6a2b(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x30(%rax), %edx
leaq 0xe15f3(%rip), %rsi     # 0xecc51
movb $0x0, %al
callq 0x4280
cmpq $0x0, -0x7a158(%rbp)
je 0xb6a5
leaq 0x3d6a02(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
movq -0x7a158(%rbp), %rax
movl 0x1c(%rax), %edx
leaq 0xe1bdb(%rip), %rsi     # 0xed265
movb $0x0, %al
callq 0x4280
movq -0x7a158(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x7a158(%rbp)
jmp 0xb665
jmp 0xba2c
cmpl $0x0, -0x20(%rbp)
je 0xb7b0
leaq -0x7a150(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0xd7405(%rip), %rdx     # 0xe2acb
callq 0x53310
cmpl $0x0, -0x24(%rbp)
je 0xb718
leaq 0x3d69a0(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq -0x7a150(%rbp), %rsi
movq -0x10(%rbp), %rax
cvtsi2sdl (%rax), %xmm1
xorps %xmm0, %xmm0
addsd %xmm0, %xmm1
movsd 0xd7347(%rip), %xmm0    # 0xe2a40
mulsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
cvtsi2sdl 0x30(%rax), %xmm1
divsd %xmm1, %xmm0
movsd -0x18(%rbp), %xmm1
movb $0x2, %al
callq 0x4280
jmp 0xb769
leaq 0x3d6959(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq -0x7a150(%rbp), %rsi
movq -0x10(%rbp), %rax
cvtsi2sdl (%rax), %xmm0
xorps %xmm1, %xmm1
addsd %xmm1, %xmm0
movsd 0xd7300(%rip), %xmm1    # 0xe2a40
mulsd %xmm0, %xmm1
movq -0x10(%rbp), %rax
cvtsi2sdl 0x30(%rax), %xmm0
divsd %xmm0, %xmm1
movsd 0xd72e7(%rip), %xmm0    # 0xe2a40
subsd %xmm1, %xmm0
movsd -0x18(%rbp), %xmm1
movb $0x2, %al
callq 0x4280
movq -0x10(%rbp), %rax
cvtsi2sdl (%rax), %xmm0
xorps %xmm1, %xmm1
addsd %xmm1, %xmm0
movsd 0xd72c0(%rip), %xmm1    # 0xe2a40
mulsd %xmm0, %xmm1
movq -0x10(%rbp), %rax
cvtsi2sdl 0x30(%rax), %xmm0
divsd %xmm0, %xmm1
movsd 0xd72a7(%rip), %xmm0    # 0xe2a40
subsd %xmm1, %xmm0
leaq 0xd732f(%rip), %rdi     # 0xe2ad3
movb $0x1, %al
callq 0x4030
jmp 0xb85d
leaq -0x7a150(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0xda579(%rip), %rdx     # 0xe5d3b
callq 0x53310
cmpl $0x0, -0x24(%rbp)
je 0xb80f
leaq 0x3d68a4(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq -0x7a150(%rbp), %rsi
movq -0x10(%rbp), %rax
cvtsi2sdl (%rax), %xmm1
xorps %xmm0, %xmm0
addsd %xmm0, %xmm1
movsd 0xd724b(%rip), %xmm0    # 0xe2a40
mulsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
cvtsi2sdl 0x30(%rax), %xmm1
divsd %xmm1, %xmm0
movb $0x1, %al
callq 0x4280
jmp 0xb85b
leaq 0x3d6862(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq -0x7a150(%rbp), %rsi
movq -0x10(%rbp), %rax
cvtsi2sdl (%rax), %xmm0
xorps %xmm1, %xmm1
addsd %xmm1, %xmm0
movsd 0xd7209(%rip), %xmm1    # 0xe2a40
mulsd %xmm0, %xmm1
movq -0x10(%rbp), %rax
cvtsi2sdl 0x30(%rax), %xmm0
divsd %xmm0, %xmm1
movsd 0xd71f0(%rip), %xmm0    # 0xe2a40
subsd %xmm1, %xmm0
movb $0x1, %al
callq 0x4280
jmp 0xb85d
cmpl $0x0, -0x28(%rbp)
je 0xba2a
leaq -0x7a150(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
leaq 0xda4c2(%rip), %rdx     # 0xe5d3b
callq 0x53310
leaq 0x3d67f3(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq 0xd768c(%rip), %rsi     # 0xe2f1b
movb $0x0, %al
callq 0x4280
cmpl $0x0, -0x24(%rbp)
je 0xb952
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
leaq 0xf9f8f(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
cmpl 0x10(%rcx), %eax
jge 0xb94d
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x2c(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xb922
leaq 0x3d67a2(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq -0x7a150(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x2c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,4), %xmm1
xorps %xmm0, %xmm0
addsd %xmm0, %xmm1
movsd 0xd7140(%rip), %xmm0    # 0xe2a40
mulsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x2c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,4), %xmm1
divsd %xmm1, %xmm0
movb $0x1, %al
callq 0x4280
jmp 0xb93d
leaq 0x3d674f(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq -0x7a150(%rbp), %rsi
xorps %xmm0, %xmm0
movb $0x1, %al
callq 0x4280
jmp 0xb93f
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xb8a7
jmp 0xba12
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
leaq 0xf9edd(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
cmpl 0x10(%rcx), %eax
jge 0xba10
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x2c(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0xb9e0
leaq 0x3d66f0(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq -0x7a150(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x2c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,4), %xmm0
xorps %xmm1, %xmm1
addsd %xmm1, %xmm0
movsd 0xd708e(%rip), %xmm1    # 0xe2a40
mulsd %xmm0, %xmm1
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x2c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,4), %xmm0
divsd %xmm0, %xmm1
movsd 0xd706d(%rip), %xmm0    # 0xe2a40
subsd %xmm1, %xmm0
movb $0x1, %al
callq 0x4280
jmp 0xba00
leaq 0x3d6691(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq -0x7a150(%rbp), %rsi
movsd 0xd7047(%rip), %xmm0    # 0xe2a40
movb $0x1, %al
callq 0x4280
jmp 0xba02
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xb959
jmp 0xba12
leaq 0x3d665f(%rip), %rax    # 0x3e2078
movq (%rax), %rdi
leaq 0xd74f8(%rip), %rsi     # 0xe2f1b
movb $0x0, %al
callq 0x4280
jmp 0xba2c
addq $0x7a160, %rsp          # imm = 0x7A160
popq %rbp
retq
nopw %cs:(%rax,%rax)