// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/decisiontree.c
// Function: instance_value_equal_to_split
int instance_value_equal_to_split(Decisionnodeptr currentnode, Instanceptr tmp)
{
 /*!Last Changed 27.09.2004*/
 double value;
 if (currentnode->featureno >= 0)
   if (currentnode->conditiontype != HYBRID_CONDITION)
    {
     switch (current_dataset->features[currentnode->featureno].type)
      {
       case INTEGER:if (tmp->values[currentnode->featureno].intvalue == currentnode->split)
                      return YES;
                    else
                      return NO;
                    break;
       case    REAL:if (tmp->values[currentnode->featureno].floatvalue >= currentnode->split - 0.0001 && tmp->values[currentnode->featureno].floatvalue <= currentnode->split + 0.0001)
                      return YES;
                    else
                      return NO;
                    break;
      }
    }
   else
    {
     value = real_feature(tmp, currentnode->featureno);
     if (value >= currentnode->split - 0.0001 && value <= currentnode->split + 0.0001)
       return YES;
     else
       return NO;
    }
 else
  {
   value = multiply_with_matrix(tmp, currentnode->w);
   if (value >= currentnode->w0 - 0.0001 && value <= currentnode->w0 + 0.0001)
     return YES;
   else
     return NO;
  }
 return NO;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x30(%rax)
jl 0x29917
movq -0x10(%rbp), %rax
cmpl $0x2, 0x98(%rax)
je 0x298b2
leaq 0xdc06a(%rip), %rax     # 0x105840
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x30(%rcx), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
movl 0x30f08(%rax,%rcx), %eax
movl %eax, -0x24(%rbp)
testl %eax, %eax
je 0x29805
jmp 0x297f8
movl -0x24(%rbp), %eax
subl $0x2, %eax
je 0x2983e
jmp 0x298b0
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x30(%rcx), %rcx
cvtsi2sdl (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
ucomisd 0x28(%rax), %xmm0
jne 0x29832
jp 0x29832
movl $0x1, -0x4(%rbp)
jmp 0x29986
movl $0x0, -0x4(%rbp)
jmp 0x29986
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x30(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x10(%rbp), %rax
movsd 0x28(%rax), %xmm1
movsd 0xbac95(%rip), %xmm2    # 0xe44f8
subsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jb 0x298a4
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movslq 0x30(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm1
movq -0x10(%rbp), %rax
movsd 0xbac6b(%rip), %xmm0    # 0xe44f8
addsd 0x28(%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0x298a4
movl $0x1, -0x4(%rbp)
jmp 0x29986
movl $0x0, -0x4(%rbp)
jmp 0x29986
jmp 0x29915
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x30(%rax), %esi
callq 0x42c40
movsd %xmm0, -0x20(%rbp)
movsd -0x20(%rbp), %xmm0
movq -0x10(%rbp), %rax
movsd 0x28(%rax), %xmm1
movsd 0xbac1b(%rip), %xmm2    # 0xe44f8
subsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jb 0x2990c
movsd -0x20(%rbp), %xmm1
movq -0x10(%rbp), %rax
movsd 0xbac00(%rip), %xmm0    # 0xe44f8
addsd 0x28(%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0x2990c
movl $0x1, -0x4(%rbp)
jmp 0x29986
movl $0x0, -0x4(%rbp)
jmp 0x29986
jmp 0x2997f
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rsi
movq 0x40(%rax), %rdx
callq 0x42fb0
movsd %xmm0, -0x20(%rbp)
movsd -0x20(%rbp), %xmm0
movq -0x10(%rbp), %rax
movsd 0x48(%rax), %xmm1
movsd 0xbabb1(%rip), %xmm2    # 0xe44f8
subsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jb 0x29976
movsd -0x20(%rbp), %xmm1
movq -0x10(%rbp), %rax
movsd 0xbab96(%rip), %xmm0    # 0xe44f8
addsd 0x48(%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0x29976
movl $0x1, -0x4(%rbp)
jmp 0x29986
movl $0x0, -0x4(%rbp)
jmp 0x29986
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop