// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/part.c
// Function: create_partial_tree
void create_partial_tree(Decisionnodeptr rootnode, Instanceptr validation)
{
 int i;
 Node_expandedptr header = NULL, nextexpanded;
 Decisionnodeptr expanded_node;
 if (!add_node_to_expanded_list(rootnode, &header, -2, BOOLEAN_TRUE))
  {
   rootnode->expanded = BOOLEAN_TRUE;
   return;  
  }
 while (header)
  {
   nextexpanded = header->next;
   expanded_node = header->node;
   safe_free(header);
   header = nextexpanded;   
   expanded_node->expanded = BOOLEAN_TRUE;
   expanded_node->featureno = find_best_feature(expanded_node->instances, &(expanded_node->split));
   if (make_children(expanded_node))
    {
     if (current_dataset->features[expanded_node->featureno].type == STRING)
      {
       for (i = 0; i < current_dataset->features[expanded_node->featureno].valuecount; i++)
         if (!add_node_to_expanded_list(&(expanded_node->string[i]), &header, -2, BOOLEAN_TRUE))
          {
           expanded_node->string[i].expanded = BOOLEAN_TRUE;
           if (!subtree_replacement(rootnode, expanded_node, validation))
            {
             empty_heap(header);
             return;            
            }
          }
      }
     else
      {
       if (!add_node_to_expanded_list(expanded_node->left, &header, -2, BOOLEAN_TRUE))
        {
         expanded_node->left->expanded = BOOLEAN_TRUE;
         if (!subtree_replacement(rootnode, expanded_node, validation))
          {
           empty_heap(header);
           return;            
          }
        }
       if (!add_node_to_expanded_list(expanded_node->right, &header, -2, BOOLEAN_TRUE))
        {
         expanded_node->right->expanded = BOOLEAN_TRUE; 
         if (!subtree_replacement(rootnode, expanded_node, validation))
          {
           empty_heap(header);
           return;            
          }
        }
      }     
    }   
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x20(%rbp), %rsi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0x1, %ecx
callq 0x72d90
cmpl $0x0, %eax
jne 0x7a307
movq -0x8(%rbp), %rax
movl $0x1, 0x130(%rax)
jmp 0x7a515
jmp 0x7a309
cmpq $0x0, -0x20(%rbp)
je 0x7a515
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
callq 0x52e80
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x30(%rbp), %rax
movl $0x1, 0x130(%rax)
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rdi
movq -0x30(%rbp), %rsi
addq $0x28, %rsi
callq 0xdcd20
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x30(%rbp), %rdi
callq 0xdcde0
cmpl $0x0, %eax
je 0x7a510
leaq 0x8b4bf(%rip), %rax     # 0x105840
movq (%rax), %rax
addq $0x30f08, %rax          # imm = 0x30F08
movq -0x30(%rbp), %rcx
movslq 0x30(%rcx), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
addq %rcx, %rax
cmpl $0x1, (%rax)
jne 0x7a464
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
leaq 0x8b48a(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
addq $0x30f08, %rcx          # imm = 0x30F08
movq -0x30(%rbp), %rdx
movslq 0x30(%rdx), %rdx
imulq $0x340, %rdx, %rdx      # imm = 0x340
addq %rdx, %rcx
cmpl 0x18(%rcx), %eax
jge 0x7a45f
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rdi
movslq -0x14(%rbp), %rax
imulq $0x160, %rax, %rax      # imm = 0x160
addq %rax, %rdi
leaq -0x20(%rbp), %rsi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0x1, %ecx
callq 0x72d90
cmpl $0x0, %eax
jne 0x7a44f
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x14(%rbp), %rcx
imulq $0x160, %rcx, %rcx      # imm = 0x160
addq %rcx, %rax
movl $0x1, 0x130(%rax)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0x7a1d0
cmpl $0x0, %eax
jne 0x7a44d
movq -0x20(%rbp), %rdi
callq 0x72e10
jmp 0x7a515
jmp 0x7a44f
jmp 0x7a451
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x7a3ac
jmp 0x7a50e
movq -0x30(%rbp), %rax
movq (%rax), %rdi
leaq -0x20(%rbp), %rsi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0x1, %ecx
callq 0x72d90
cmpl $0x0, %eax
jne 0x7a4b7
movq -0x30(%rbp), %rax
movq (%rax), %rax
movl $0x1, 0x130(%rax)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0x7a1d0
cmpl $0x0, %eax
jne 0x7a4b5
movq -0x20(%rbp), %rdi
callq 0x72e10
jmp 0x7a515
jmp 0x7a4b7
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0x20(%rbp), %rsi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0x1, %ecx
callq 0x72d90
cmpl $0x0, %eax
jne 0x7a50c
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movl $0x1, 0x130(%rax)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0x7a1d0
cmpl $0x0, %eax
jne 0x7a50a
movq -0x20(%rbp), %rdi
callq 0x72e10
jmp 0x7a515
jmp 0x7a50c
jmp 0x7a50e
jmp 0x7a510
jmp 0x7a309
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)