// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/algorithm.c
// Function: is_cvdata_needed
int is_cvdata_needed(int algorithm)
{
 /*!Last Changed 16.08.2007*/
 /*!Last Changed 04.03.2006*/
 switch (algorithm)
  {
   case C45          :
   case LDT          :
   case MULTILDT     :if (in_list(get_parameter_l("prunetype"), 2, MODELSELECTIONPRUNING, VALIDATIONPRUNING))
                        return YES;
                      else
                        if (get_parameter_l("prunetype") == PREPRUNING && get_parameter_o("hyperparametertune") == ON)
                          return YES;
                        else
                          return NO;
                      break;
   case KTREE        :if (in_list(get_parameter_l("prunetype"), 2, MODELSELECTIONPRUNING, VALIDATIONPRUNING))
                        return YES;
                      else
                        return NO;
   case RANDOMFOREST :
   case KFOREST      :if (get_parameter_o("hyperparametertune") == ON)
                        return YES;
                      else
                        return NO;
   case SVMTREE      :if (in_list(get_parameter_l("prunetype"), 2, MODELSELECTIONPRUNING, VALIDATIONPRUNING))
                        return YES;
                      else
                        return NO;
                      break;
   case NBTREE       :if (in_list(get_parameter_l("prunetype"), 3, PREPRUNING, VALIDATIONPRUNING, MODELSELECTIONPRUNING))
                        return YES;
                      else
                        return NO;
                      break;
   case MULTIRIPPER  :if ((get_parameter_i("optimizecount") > 0) || (get_parameter_o("hyperparametertune") == ON))
                        return YES;
                      else
                        return NO;
                      break;
   case HYBRIDRIPPER :if ((get_parameter_i("optimizecount") > 0 && get_parameter_l("modelselectionmethod") == 0) || (get_parameter_o("hyperparametertune") == ON))
                        return YES;
                      else
                        return NO;
                      break;
   case HMM          :if (get_parameter_l("hmmlearningtype") != LEARNING_FIXED)
                        return YES;
                      else
                        return NO;
   case SVMREGTREE   :
   case REGTREE      :
   case OMNILDT      :
   case REGRULE      :if (get_parameter_l("prunetype") == VALIDATIONPRUNING || (get_parameter_l("prunetype") == MODELSELECTIONPRUNING && get_parameter_l("modelselectionmethod") == 0))
                        return YES;
                      else
                        return NO;
                      break;
   case SVM          :
   case SIMPLEXSVM   :
   case SVMREG       :
   case SIMPLEXSVMREG:
   case KNN          :
   case KNNREG       :
   case LOGISTIC     :if (get_parameter_o("hyperparametertune") == ON)
                        return YES;
                      else 
                        return NO;
                      break;
  }
 return cvdata_needed(algorithm);
}

// Assembly:
pushq %rbx
leal -0x3e9(%rdi), %eax
cmpl $0x23, %eax
ja 0x59ce
leaq 0x9c9c6(%rip), %rcx     # 0xa2334
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x9cdb4(%rip), %rdi     # 0xa2732
callq 0x535f7
movl $0x1, %ebx
movl %eax, %edi
movl $0x2, %esi
movl $0x2, %edx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x39a80
testl %eax, %eax
jne 0x5b33
leaq 0x9cd83(%rip), %rdi     # 0xa2732
callq 0x535f7
testl %eax, %eax
jne 0x5a34
leaq 0x9cdf6(%rip), %rdi     # 0xa27b5
callq 0x536e7
cmpl $0x1, %eax
jne 0x5a34
jmp 0x5b33
leal -0x7d1(%rdi), %eax
cmpl $0xc, %eax
ja 0x5a64
movl $0x181, %ecx            # imm = 0x181
btl %eax, %ecx
jb 0x5aef
movl $0x1042, %ecx           # imm = 0x1042
btl %eax, %ecx
jae 0x5a64
leaq 0x9cd36(%rip), %rdi     # 0xa2732
callq 0x535f7
movl $0x1, %ebx
cmpl $0x1, %eax
je 0x5b33
leaq 0x9cd1c(%rip), %rdi     # 0xa2732
callq 0x535f7
cmpl $0x2, %eax
jne 0x5a34
leaq 0x9cdaf(%rip), %rdi     # 0xa27d6
callq 0x535f7
testl %eax, %eax
je 0x5b33
xorl %ebx, %ebx
jmp 0x5b33
leaq 0x9ccf0(%rip), %rdi     # 0xa2732
callq 0x535f7
movl %eax, %edi
movl $0x2, %esi
movl $0x2, %edx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x39a80
jmp 0x5b2c
leal -0x3e8(%rdi), %eax
addl $0xfffff830, %edi       # imm = 0xFFFFF830
cmpl $0x29, %eax
leaq (%rax,%rax,4), %rax
leaq 0xcb742(%rip), %rcx     # 0xd11c0
leaq (%rcx,%rax,8), %rax
movslq %edi, %rcx
leaq (%rcx,%rcx,4), %rcx
leaq 0xcbda0(%rip), %rdx     # 0xd1830
leaq (%rdx,%rcx,8), %rcx
cmovbq %rax, %rcx
movl 0x20(%rcx), %ebx
jmp 0x5b33
leaq 0x9cd44(%rip), %rdi     # 0xa27eb
callq 0x535f7
xorl %ebx, %ebx
cmpl $0x2, %eax
jmp 0x5b30
leaq 0x9cd0e(%rip), %rdi     # 0xa27c8
callq 0x5341c
testl %eax, %eax
jle 0x5aef
leaq 0x9cd0c(%rip), %rdi     # 0xa27d6
callq 0x535f7
testl %eax, %eax
jne 0x5aef
movl $0x1, %ebx
jmp 0x5b33
leaq 0x9cce7(%rip), %rdi     # 0xa27c8
callq 0x5341c
movl $0x1, %ebx
testl %eax, %eax
jg 0x5b33
leaq 0x9ccbf(%rip), %rdi     # 0xa27b5
callq 0x536e7
xorl %ebx, %ebx
cmpl $0x1, %eax
sete %bl
jmp 0x5b33
leaq 0x9cc26(%rip), %rdi     # 0xa2732
callq 0x535f7
movl %eax, %edi
movl $0x3, %esi
xorl %edx, %edx
movl $0x1, %ecx
movl $0x2, %r8d
xorl %eax, %eax
callq 0x39a80
xorl %ebx, %ebx
testl %eax, %eax
setne %bl
movl %ebx, %eax
popq %rbx
retq