LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/c45rules.c
// Function: create_array_from_link_list_of_rules
Decisionruleptr* create_array_from_link_list_of_rules(Decisionruleptr start, int rulecount)
{
 /*!Last Changed 02.02.2004 added safemalloc*/
 /*!Last Changed 31.10.2003*/
 int i;
 Decisionruleptr tmp;
 Decisionruleptr* result;
 result = (Decisionruleptr*) safemalloc(rulecount * sizeof(Decisionruleptr), "create_array_from_link_list_of_rules", 4);
 for (i = 0, tmp = start; i < rulecount; i++)
  {
   result[i] = tmp;
   if (i != (rulecount - 1))
     tmp = tmp->next;
  }
 return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
movslq %esi, %r15
leaq (,%r15,8), %rdi
leaq 0x9e597(%rip), %rsi     # 0xa5d28
movl $0x4, %edx
callq 0x3a0e1
testl %r15d, %r15d
jle 0x77be
leal -0x1(%r14), %ecx
movl %r14d, %edx
xorl %esi, %esi
movq %rbx, (%rax,%rsi,8)
cmpq %rsi, %rcx
je 0x77b6
movq 0x30(%rbx), %rbx
incq %rsi
cmpq %rsi, %rdx
jne 0x77a9
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/c45rules.c
// Function: create_percentage_of_ruleset
void create_percentage_of_ruleset(Decisionruleptr* rules, int rulecount, int percentage, Ruleset* inlist, Ruleset* outlist)
{
 /*!Last Changed 01.11.2003*/
 int* rastgele, i;
 empty_ruleset(inlist);
 empty_ruleset(outlist);
 rastgele = random_array(rulecount);
 i = 0;
 while (i < rulecount)
  {
   if (i < (rulecount * percentage) / 10)
     add_rule(inlist, rules[rastgele[i]]);
   else
     add_rule(outlist, rules[rastgele[i]]);
   i++;
  }
 safe_free(rastgele);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movl %edx, %r13d
movl %esi, %ebp
movq %rdi, (%rsp)
movq %rcx, %rdi
callq 0x7c32b
movq %rbx, %r15
movq %rbx, %rdi
callq 0x7c32b
movl %ebp, %edi
callq 0x3afe4
movq %rax, %r12
testl %ebp, %ebp
jle 0x7a86
imull %ebp, %r13d
movslq %r13d, %rax
imulq $0x66666667, %rax, %rax # imm = 0x66666667
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x22, %rax
addl %ecx, %eax
movslq %eax, %r13
movl %ebp, %ebp
xorl %ebx, %ebx
cmpq %r13, %rbx
movslq (%r12,%rbx,4), %rax
movq (%rsp), %rcx
movq (%rcx,%rax,8), %rsi
movq %r15, %rdi
cmovlq %r14, %rdi
callq 0x7c9c6
incq %rbx
cmpq %rbx, %rbp
jne 0x7a63
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3a180
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/c45rules.c
// Function: merge_rulesets
void merge_rulesets(Ruleset* r, Ruleset sets[MAXCLASSES], int classcount)
{
 /*!Last Changed 15.11.2010*/
 /*!Last Changed 01.11.2003*/
 int i;
 safe_free(r->counts);
 empty_ruleset(r);
 for (i = 0; i < classcount; i++)
   merge_ruleset(r, sets[i]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rdi
callq 0x3a180
movq %r14, %rdi
callq 0x7c32b
testl %ebp, %ebp
jle 0x7c80
movl %ebp, %r15d
movq 0x20(%rbx), %rax
movq %rax, 0x20(%rsp)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r14, %rdi
callq 0x7c38d
addq $0x28, %rbx
decq %r15
jne 0x7c56
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/c45rules.c
// Function: find_class_rulesets
void find_class_rulesets(Ruleset* r, Instanceptr traindata)
{
/*!Last Changed 30.10.2003*/
 Ruleset sets[MAXCLASSES];
 Decisionruleptr rule = r->start;
 Decisionruleptr rulenext;
 Decisionruleptr rulesetstart = rule;
 int i, currentclass = rule->classno, rulecount = 1, classcount = 0;
 rule = rule->next;
 while (rule != NULL)
  {
   if (rule)
     rulenext = rule->next;
   if (rule->classno != currentclass)
    {
     if (rulecount <= 10)
       sets[classcount] = check_all_subsets(rulesetstart, rulecount, traindata, r->possibleconditioncount);
     else
       sets[classcount] = check_different_percentages(rulesetstart, rulecount, traindata, r->possibleconditioncount);
     classcount++;
     rulecount = 1;
     rulesetstart = rule;
     currentclass = rule->classno;
    }
   else
     rulecount++;
   rule = rulenext;
  }
 if (rulecount <= 10)
   sets[classcount] = check_all_subsets(rulesetstart, rulecount, traindata, r->possibleconditioncount);
 else
   sets[classcount] = check_different_percentages(rulesetstart, rulecount, traindata, r->possibleconditioncount);
 classcount++;
 merge_rulesets(r, sets, classcount);
 for (i = 0; i < classcount; i++)
   safe_free(sets[i].counts);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x808, %rsp            # imm = 0x808
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rsi
movq 0x30(%rsi), %rbp
testq %rbp, %rbp
je 0x7d55
movl (%rsi), %eax
movl $0x1, %edx
xorl %r12d, %r12d
movq 0x30(%rbp), %r13
cmpl %eax, (%rbp)
jne 0x7cc9
incl %edx
jmp 0x7d2b
movslq %r12d, %rax
leaq (%rax,%rax,4), %rax
leaq (%rsp,%rax,8), %r15
addq $0x30, %r15
cmpl $0xa, %edx
jg 0x7cf0
movl 0x20(%rbx), %r8d
leaq 0x8(%rsp), %rdi
movq %r14, %rcx
callq 0x75f1
jmp 0x7d01
movl 0x20(%rbx), %r8d
leaq 0x8(%rsp), %rdi
movq %r14, %rcx
callq 0x7a9c
movq 0x28(%rsp), %rax
movq %rax, 0x20(%r15)
movups 0x8(%rsp), %xmm0
movups 0x18(%rsp), %xmm1
movups %xmm1, 0x10(%r15)
movups %xmm0, (%r15)
incl %r12d
movl (%rbp), %eax
movl $0x1, %edx
movq %rbp, %rsi
movq %r13, %rbp
testq %r13, %r13
jne 0x7cbc
cmpl $0xa, %edx
jle 0x7d5d
movslq %r12d, %rax
leaq (%rax,%rax,4), %r13
movl 0x20(%rbx), %r8d
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rcx
callq 0x7a9c
jmp 0x7d78
movl $0x1, %edx
xorl %r12d, %r12d
movslq %r12d, %rax
leaq (%rax,%rax,4), %r13
movl 0x20(%rbx), %r8d
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rcx
callq 0x75f1
movq 0x20(%r15), %rax
movq %rax, 0x50(%rsp,%r13,8)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x40(%rsp,%r13,8)
movups %xmm0, 0x30(%rsp,%r13,8)
leal 0x1(%r12), %ebp
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
movl %ebp, %edx
callq 0x7c2c
testl %r12d, %r12d
js 0x7dcf
movl %ebp, %eax
shlq $0x3, %rax
leaq (%rax,%rax,4), %rbx
xorl %r14d, %r14d
movq 0x48(%rsp,%r14), %rdi
callq 0x3a180
addq $0x28, %r14
cmpq %r14, %rbx
jne 0x7dbc
addq $0x808, %rsp            # imm = 0x808
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/c45rules.c
// Function: generalize_rule
void generalize_rule(Decisionruleptr rule, Instanceptr traindata)
{
 /*!Last Changed 27.10.2003*/
 int Y1, Y2, E1, E2;
 Decisionconditionptr condition, conditionbefore;
 conditionbefore = NULL;
 condition = rule->start;
 calculate_performance_for_prune(traindata, *rule, &Y1, &E1, rule->classno);
 while (condition)
  {
   remove_condition_after(rule, conditionbefore, condition);
   calculate_performance_for_prune(traindata, *rule, &Y2, &E2, rule->classno);
   if (is_pessimistic_error_rate_smaller(Y1, Y2, E1, E2))
    {
     free_condition(*condition);
     safe_free(condition);
     if (conditionbefore)
       condition = conditionbefore->next;
     else
       condition = rule->start;
     Y1 = Y2;
     E1 = E2;
    }
   else
    {
     add_condition_after(rule, conditionbefore, condition);
     conditionbefore = condition;
     condition = condition->next;
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %r15
movl (%rdi), %ecx
movq 0x30(%rdi), %rax
movq %rax, 0x30(%rsp)
movupd (%rdi), %xmm0
movupd 0x10(%rdi), %xmm1
movdqu 0x20(%rdi), %xmm2
movdqu %xmm2, 0x20(%rsp)
movupd %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
leaq 0x7c(%rsp), %rsi
leaq 0x74(%rsp), %rdx
movq %rbx, %rdi
callq 0x7c109
testq %r15, %r15
je 0x7f84
leaq 0x18(%r14), %rax
movq %rax, 0x80(%rsp)
xorl %ebp, %ebp
leaq 0x78(%rsp), %r12
leaq 0x70(%rsp), %r13
movq %r14, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x7c7c4
movl (%r14), %ecx
movq 0x30(%r14), %rax
movq %rax, 0x30(%rsp)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x7c109
movl 0x74(%rsp), %eax
movl 0x70(%rsp), %ecx
leal (%rcx,%rax), %edx
movd %eax, %xmm0
addl 0x7c(%rsp), %eax
movd %edx, %xmm1
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
cvtdq2pd %xmm0, %xmm0
movd %eax, %xmm1
addl 0x78(%rsp), %eax
addl %ecx, %eax
movd %eax, %xmm2
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
cvtdq2pd %xmm1, %xmm1
divpd %xmm1, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
ucomisd %xmm1, %xmm0
jae 0x7f3a
movq %r14, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x7c752
movq 0x48(%r15), %rax
movq %r15, %rbp
jmp 0x7f78
movl $0xe, %ecx
movq %rsp, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7c1f4
movq %r15, %rdi
callq 0x3a180
leaq 0x48(%rbp), %rax
testq %rbp, %rbp
cmoveq 0x80(%rsp), %rax
movq (%rax), %rax
movl 0x78(%rsp), %ecx
movl %ecx, 0x7c(%rsp)
movl 0x70(%rsp), %ecx
movl %ecx, 0x74(%rsp)
movq %rax, %r15
testq %rax, %rax
jne 0x7e98
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/c45rules.c
// Function: choose_default_class
void choose_default_class(Ruleset* r, Instanceptr traindata)
{
 /*!Last Changed 02.02.2004 added safecalloc*/
 /*!Last Changed 03.11.2003*/
 int* classcounts, classno, i, max;
 Instanceptr tmp = traindata;
 classcounts = (int*) safecalloc(current_dataset->classno, sizeof(int), "choose_default_class", 3);
 while (tmp)
  {
   if (!ruleset_cover_instance(tmp, *r))
    {
     classno = give_classno(tmp);
     classcounts[classno]++;
    }
   tmp = tmp->next;
  }
 max = -1;
 for (i = 0; i < current_dataset->classno; i++)
   if (classcounts[i] > max)
    {
     r->defaultclass = i;
     max = classcounts[i];
    }
 safe_free(classcounts);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0xcd897(%rip), %r12     # 0xd5870
movq (%r12), %rax
movslq 0x10(%rax), %rdi
leaq 0x9dd65(%rip), %rdx     # 0xa5d4d
movl $0x4, %esi
movl $0x3, %ecx
callq 0x3a1fc
movq %rax, %r14
testq %r15, %r15
je 0x8038
movq 0x20(%rbx), %rax
movq %rax, 0x20(%rsp)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r15, %rdi
callq 0x7c574
testl %eax, %eax
jne 0x8032
movq %r15, %rdi
callq 0x2f33a
cltq
incl (%r14,%rax,4)
movq 0x10(%r15), %r15
jmp 0x7ffa
movq (%r12), %rax
movslq 0x10(%rax), %rax
testq %rax, %rax
jle 0x8061
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
cmpl %edx, (%r14,%rcx,4)
jle 0x8059
movl %ecx, 0x14(%rbx)
movl (%r14,%rcx,4), %edx
incq %rcx
cmpq %rcx, %rax
jne 0x804c
movq %r14, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x3a180
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/c45rules.c
// Function: polish_ruleset
void polish_ruleset(Ruleset* r, Instanceptr traindata)
{
 /*!Last Changed 04.11.2003*/
 Decisionruleptr tmp, tmpbefore, tmpnext, deleted, deletedbefore;
 int error_decreased = YES, minerror = error_of_ruleset(*r, traindata), error;
 while (error_decreased)
  {
   error_decreased = NO;
   tmpbefore = NULL;
   tmp = r->start;
   while (tmp)
    {
     tmpnext = tmp->next;
     remove_rule_after(r, tmpbefore, tmp);
     error = error_of_ruleset(*r, traindata);
     if (error < minerror)
      {
       minerror = error;
       deleted = tmp;
       deletedbefore = tmpbefore;
       error_decreased = YES;
      }
     add_rule_after(r, tmpbefore, tmp);
     tmpbefore = tmp;
     tmp = tmpnext;
    }
   if (error_decreased)
    {
     remove_rule_after(r, deletedbefore, deleted);
     free_rule(*deleted);
     safe_free(deleted);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %r14
movq 0x20(%rdi), %rax
movq %rax, 0x20(%rsp)
movups (%rdi), %xmm0
movups 0x10(%rdi), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rsi, 0x50(%rsp)
movq %rsi, %rdi
callq 0x7b93f
movq (%r14), %rbx
testq %rbx, %rbx
je 0x84bb
movl %eax, %ebp
movb $0x1, %al
xorl %r15d, %r15d
movq %rdx, 0x40(%rsp)
movq %rcx, 0x48(%rsp)
movl %eax, 0x3c(%rsp)
movq %r15, %r12
movq %rbx, %r15
movq 0x30(%rbx), %rbx
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x7c89d
movq 0x20(%r14), %rax
movq %rax, 0x20(%rsp)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq 0x50(%rsp), %rdi
callq 0x7b93f
movl %eax, %r13d
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x7c86e
cmpl %ebp, %r13d
jl 0x844d
movq %r15, %r12
testq %rbx, %rbx
jne 0x83e2
movq 0x40(%rsp), %r15
movq 0x48(%rsp), %r12
testb $0x1, 0x3c(%rsp)
je 0x8461
jmp 0x84bb
xorl %eax, %eax
movl %r13d, %ebp
movq %r12, %rcx
movq %r15, %rdx
testq %rbx, %rbx
jne 0x83d1
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x7c89d
movq 0x30(%r15), %rax
movq %rax, 0x30(%rsp)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x7c251
movq %r15, %rdi
callq 0x3a180
movq (%r14), %rbx
movb $0x1, %al
movq %r12, %rcx
movq %r15, %rdx
movl $0x0, %r15d
testq %rbx, %rbx
jne 0x83d1
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/c45rules.c
// Function: add_rules_from_tree
void add_rules_from_tree(Ruleset* r, Decisionnodeptr tree)
{
 /*!Last Changed 04.10.2004 added multivariate rules*/
 /*!Last Changed 24.10.2003*/
 int i, fno;
 Decisionruleptr newrule;
 if (tree->featureno == -1)
  {
   newrule = extract_rule_from_leaf(tree);
   add_rule(r, newrule);
  }
 else
  {
   fno = tree->featureno;
   if (fno < 0)
    {
     add_rules_from_tree(r, tree->left);
     add_rules_from_tree(r, tree->right);
    }
   else
     switch (current_dataset->features[fno].type){
       case INTEGER:
       case REAL:   add_rules_from_tree(r, tree->left);
                    add_rules_from_tree(r, tree->right);
                    break;
       case STRING: for (i=0;i<current_dataset->features[fno].valuecount;i++)
                      add_rules_from_tree(r, &(tree->string[i]));
                    break; 
     }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x30(%rsi), %eax
cmpl $-0x1, %eax
je 0x8523
leaq 0xcd386(%rip), %r15     # 0xd5870
testl %eax, %eax
js 0x850b
movq (%r15), %rcx
movl %eax, %eax
imulq $0x340, %rax, %r12      # imm = 0x340
movl 0x30f08(%rcx,%r12), %eax
testl %eax, %eax
je 0x850b
cmpl $0x2, %eax
jne 0x8544
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x84ca
movq 0x8(%r14), %r14
movl 0x30(%r14), %eax
cmpl $-0x1, %eax
jne 0x84ea
movq %r14, %rdi
callq 0x7bef7
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7c9c6
cmpl $0x1, %eax
jne 0x8586
addq $0x30f08, %rcx          # imm = 0x30F08
cmpl $0x0, 0x18(%rcx,%r12)
jle 0x8586
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x10(%r14), %rsi
addq %r13, %rsi
movq %rbx, %rdi
callq 0x84ca
incq %rbp
movq (%r15), %rax
movslq 0x30f20(%rax,%r12), %rax
addq $0x160, %r13            # imm = 0x160
cmpq %rax, %rbp
jl 0x855d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: read_posteriors
matrixptr read_posteriors(int numfolds, char *fname)
{
 /*!Last Changed 24.03.2006 Aydin*/
 FILE *infile;
 int i;
 char searchstring[100];
 matrixptr tmp = NULL;
 infile = fopen(fname, "r");
 if (infile)
   tmp = safemalloc(numfolds * sizeof(matrix), "read_posteriors", 6);
	else 
		 return NULL;
 for (i = 0 ; i < numfolds ; i++)
  {
   sprintf(searchstring, "####### CURRENT RUN COUNT %d", i + 1);
   infile = find_string_in_file(infile, searchstring);
   fscanf(infile, "%c", &searchstring[99]);
   tmp[i] = read_matrix_filehandle(infile);
  }
 fclose(infile);
 return(tmp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rax
movl %edi, %ebp
leaq 0xa3385(%rip), %rsi     # 0xab95b
movq %rax, %rdi
callq 0x40f0
testq %rax, %rax
je 0x867c
movq %rax, %rbx
movslq %ebp, %r15
movq %r15, %rdi
shlq $0x4, %rdi
leaq 0x9d7f5(%rip), %rsi     # 0xa5df0
movl $0x6, %edx
callq 0x3a0e1
movq %rax, %r14
testl %r15d, %r15d
jle 0x8672
movl %ebp, %r12d
shlq $0x4, %r12
movl $0x1, %ebp
movq %rsp, %r13
xorl %r15d, %r15d
movq %r13, %rdi
leaq 0x9d7d7(%rip), %rsi     # 0xa5e00
movl %ebp, %edx
xorl %eax, %eax
callq 0x41b0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x38c9f
movq %rax, %rbx
movq %rax, %rdi
leaq 0xa1786(%rip), %rsi     # 0xa9dd0
leaq 0x63(%rsp), %rdx
xorl %eax, %eax
callq 0x4070
movq %rbx, %rdi
callq 0x3efb2
movq %rax, (%r14,%r15)
movq %rdx, 0x8(%r14,%r15)
addq $0x10, %r15
incl %ebp
cmpq %r15, %r12
jne 0x861f
movq %rbx, %rdi
callq 0x42a0
jmp 0x867f
xorl %r14d, %r14d
movq %r14, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: print_confusion
void print_confusion(FILE* outfile, int** confusionmatrix, int classno)
{
 /*!Last Changed 02.08.2007*/
 int i, j;
 fprintf(outfile, "%d %d\n", classno, classno);
 for (i = 0; i < classno; i++)
  {
   for (j = 0; j < classno; j++)
     fprintf(outfile, "%d ", confusionmatrix[i][j]);
   fprintf(outfile, "\n");
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x9d781(%rip), %rsi     # 0xa5e2c
movl %edx, %ecx
xorl %eax, %eax
callq 0x42e0
testl %ebp, %ebp
jle 0x86f8
movl %ebp, %r12d
leaq 0xa76c3(%rip), %r15     # 0xafd85
xorl %r13d, %r13d
xorl %ebp, %ebp
movq (%rbx,%r13,8), %rax
movl (%rax,%rbp,4), %edx
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x42e0
incq %rbp
cmpq %rbp, %r12
jne 0x86c7
movl $0xa, %edi
movq %r14, %rsi
callq 0x4150
incq %r13
cmpq %r12, %r13
jne 0x86c5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: print_posterior
void print_posterior(FILE* outfile, double** posteriors, int testsize, Instanceptr data)
{
 /*!Last Changed 01.11.2005*/
 int i = 0, j, classno;
 char pst[READLINELENGTH];
 Instanceptr tmp = data;
 fprintf(outfile, "# %d %d\n", testsize, current_dataset->classno + 1);
 while (tmp)
  {
   classno = give_classno(tmp);
   for (j = 0; j < current_dataset->classno; j++)
    {
     set_precision(pst, NULL, " ");
     fprintf(outfile, pst, posteriors[i][j]);
    }
   fprintf(outfile, "%d\n", classno);
   tmp = tmp->next;
   i++;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7a148, %rsp          # imm = 0x7A148
movq %rcx, %rbp
movq %rsi, 0x10(%rsp)
movq %rdi, %r14
leaq 0xcd125(%rip), %rax     # 0xd5870
movq (%rax), %rax
movl 0x10(%rax), %ecx
incl %ecx
leaq 0x9d6d0(%rip), %rsi     # 0xa5e2a
xorl %eax, %eax
callq 0x42e0
testq %rbp, %rbp
je 0x8811
leaq 0x20(%rsp), %r13
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movq %rbp, 0x18(%rsp)
movq %rbp, %rdi
callq 0x2f33a
movl %eax, 0x4(%rsp)
leaq 0xcd0e2(%rip), %rbx     # 0xd5870
movq (%rbx), %rax
cmpl $0x0, 0x10(%rax)
movq %r14, %r12
leaq 0x9ff46(%rip), %r15     # 0xa86e5
movq 0x10(%rsp), %r14
jle 0x87df
xorl %ebp, %ebp
movq %r13, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x3a535
movq 0x8(%rsp), %rax
movq (%r14,%rax,8), %rax
movsd (%rax,%rbp,8), %xmm0
movq %r12, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x42e0
incq %rbp
movq (%rbx), %rax
movslq 0x10(%rax), %rax
cmpq %rax, %rbp
jl 0x87a8
movq %r12, %rdi
leaq 0xa7df8(%rip), %rsi     # 0xb05e1
movl 0x4(%rsp), %edx
xorl %eax, %eax
callq 0x42e0
movq 0x18(%rsp), %rbp
movq 0x10(%rbp), %rbp
movq 0x8(%rsp), %rax
incq %rax
testq %rbp, %rbp
movq %r12, %r14
jne 0x8771
addq $0x7a148, %rsp          # imm = 0x7A148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: performance_initialize
Classificationresultptr performance_initialize(int testsize)
{
 /*!Last Changed 01.08.2007 added confusion matrix*/
 /*!Last Changed 02.02.2004 added safecalloc*/
 /*!Last Changed 19.03.2002*/
 int i;
 Classificationresultptr result;
 result = safemalloc(sizeof(Classificationresult), "performance_initialize", 2);
 result->performance = 0;
 result->confusion_matrix = (int**) safecalloc_2d(sizeof(int*), sizeof(int), current_dataset->classno, current_dataset->classno, "performance_initialize", 4);
 result->class_performance = safecalloc(current_dataset->classno, sizeof(int), "performance_initialize", 5);
 result->class_counts = safecalloc(current_dataset->classno, sizeof(int), "performance_initialize", 6);
 result->classno = current_dataset->classno;
 result->datasize = testsize;
 result->posteriors = (double **) safecalloc_2d(sizeof(double *), sizeof(double), testsize, current_dataset->classno, "performance_initialize", 8);
 result->hingeloss = 0.0;
 for (i = 0; i < 3; i++)
   result->knnloss[i] = 0.0;
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebp
leaq 0x9d35d(%rip), %r14     # 0xa5e45
movl $0x58, %edi
movq %r14, %rsi
movl $0x2, %edx
callq 0x3a0e1
movq %rax, %rbx
movl $0x0, (%rax)
leaq 0xccd66(%rip), %r15     # 0xd5870
movq (%r15), %rax
movl 0x10(%rax), %ecx
movl $0x8, %edi
movl $0x4, %esi
movl %ecx, %edx
movq %r14, %r8
movl $0x4, %r9d
callq 0x3a231
movq %rax, 0x18(%rbx)
movq (%r15), %rax
movslq 0x10(%rax), %rdi
movl $0x4, %esi
movq %r14, %rdx
movl $0x5, %ecx
callq 0x3a1fc
movq %rax, 0x8(%rbx)
movq (%r15), %rax
movslq 0x10(%rax), %rdi
movl $0x4, %esi
movq %r14, %rdx
movl $0x6, %ecx
callq 0x3a1fc
movq %rax, 0x10(%rbx)
movq (%r15), %rax
movl 0x10(%rax), %ecx
movl %ecx, 0x20(%rbx)
movl %ebp, 0x30(%rbx)
movl $0x8, %edi
movl $0x8, %esi
movl %ebp, %edx
movq %r14, %r8
movl $0x8, %r9d
callq 0x3a231
movq %rax, 0x28(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rbx)
movups %xmm0, 0x48(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: free_performance
void free_performance(Classificationresultptr result){
 /*!Last Changed 01.08.2007*/
 free_2d((void **) result->confusion_matrix, result->classno);
 safe_free(result->class_performance);
 safe_free(result->class_counts);
 free_2d((void **) result->posteriors, result->datasize);
 safe_free(result);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
movl 0x20(%rbx), %esi
callq 0x3a14b
movq 0x8(%rbx), %rdi
callq 0x3a180
movq 0x10(%rbx), %rdi
callq 0x3a180
movq 0x28(%rbx), %rdi
movl 0x30(%rbx), %esi
callq 0x3a14b
movq %rbx, %rdi
popq %rbx
jmp 0x3a180
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: train_select_max
void* train_select_max(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 /*!Last Changed 04.08.2005*/
 /*!Last Changed 14.07.2001*/
 int i, *train_counts, datacount = data_size(*trdata);
 Model_selectmaxptr m;
 m = safemalloc(sizeof(Model_selectmax), "train_select_max", 3); 
 m->priors = safemalloc(current_dataset->classno * sizeof(double), "train_select_max", 4);
 train_counts = find_class_counts(*trdata);
 for (i = 0; i < current_dataset->classno; i++)
   m->priors[i] = train_counts[i] / (datacount + 0.0);
 m->classno = find_max_in_list(train_counts, current_dataset->classno);
 safe_free(train_counts);
 return m;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x30309
movl %eax, %ebp
leaq 0x9ce77(%rip), %r15     # 0xa5e85
movl $0x10, %edi
movq %r15, %rsi
movl $0x3, %edx
callq 0x3a0e1
movq %rax, %rbx
leaq 0xcc846(%rip), %r12     # 0xd5870
movq (%r12), %rax
movslq 0x10(%rax), %rdi
shlq $0x3, %rdi
movq %r15, %rsi
movl $0x4, %edx
callq 0x3a0e1
movq %rax, 0x8(%rbx)
movq (%r14), %rdi
callq 0x115a6
movq %rax, %r14
movq (%r12), %rax
movslq 0x10(%rax), %rsi
testq %rsi, %rsi
jle 0x9083
cvtsi2sd %ebp, %xmm0
movq 0x8(%rbx), %rax
xorl %ecx, %ecx
xorps %xmm1, %xmm1
cvtsi2sdl (%r14,%rcx,4), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rax,%rcx,8)
incq %rcx
cmpq %rcx, %rsi
jne 0x9069
movq %r14, %rdi
callq 0x38002
movl %eax, (%rbx)
movq %r14, %rdi
callq 0x3a180
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: test_select_max
Prediction test_select_max(Instanceptr data, void* model, void* parameters, double* posterior)
{
 /*!Last Changed 01.11.2005*/
 /*!Last Changed 04.08.2005*/
 /*!Last Changed 14.07.2001*/
 Prediction predicted;
 int i;
 Model_selectmaxptr m;
 m = (Model_selectmaxptr)model;
 predicted.classno = m->classno;
 for (i = 0; i < current_dataset->classno; i++)
   posterior[i] = m->priors[i];
 return predicted;
}

// Assembly:
movq %rdi, %rax
movl (%rdx), %ecx
movl %ecx, 0x8(%rdi)
leaq 0xcc7c0(%rip), %rcx     # 0xd5870
movq (%rcx), %rcx
movslq 0x10(%rcx), %rcx
testq %rcx, %rcx
jle 0x90d5
movq 0x8(%rdx), %rdx
xorl %esi, %esi
movsd (%rdx,%rsi,8), %xmm0
movsd %xmm0, (%r8,%rsi,8)
incq %rsi
cmpq %rsi, %rcx
jne 0x90c2
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: train_randomforest
void* train_randomforest(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 int i;
 Randomforest_parameterptr p;
 Decisionnodeptr* forest;
 Decisionnodeptr rootnode;
 Instanceptr data;
 p = (Randomforest_parameterptr) parameters;
 forest = safemalloc(p->forestsize * sizeof(Decisionnodeptr), "train_randomforest", 4);
 for (i = 0; i < p->forestsize; i++)
  {
   rootnode = createnewnode(NULL, 1);
   rootnode->instances = bootstrap_sample_without_stratification(*trdata);
   create_randomforestchildren(rootnode, p);
   data = NULL;
   accumulate_instances_tree(&data, rootnode);
   deallocate(data);
   forest[i] = rootnode;
  }
 return forest;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movslq (%rdx), %rdi
shlq $0x3, %rdi
leaq 0x9cda1(%rip), %rsi     # 0xa5e96
movl $0x4, %edx
callq 0x3a0e1
movq %rax, %r15
cmpl $0x0, (%rbx)
jle 0x915d
xorl %ebp, %ebp
movq %rsp, %r12
xorl %edi, %edi
movl $0x1, %esi
callq 0x1d107
movq %rax, %r13
movq (%r14), %rdi
callq 0x307e8
movq %rax, 0x20(%r13)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1c92d
movq $0x0, (%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x1cef5
movq (%rsp), %rdi
callq 0x2ff55
movq %r13, (%r15,%rbp,8)
incq %rbp
movslq (%rbx), %rax
cmpq %rax, %rbp
jl 0x910c
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: test_randomforest
Prediction test_randomforest(Instanceptr data, void* model, void* parameters, double* posterior)
{
 int i;
 double* votes;
 Randomforest_parameterptr p;
 Decisionnodeptr* forest;
 Prediction predicted, predictedc45;
 forest = (Decisionnodeptr*) model;
 p = (Randomforest_parameterptr) parameters;
 votes = safecalloc(current_dataset->classno, sizeof(double), "test_randomforest", 5);
 for (i = 0; i < p->forestsize; i++) 
  {
   predictedc45 = test_c45(data, forest[i], parameters, posterior);
   votes[predictedc45.classno]++;
  }
 normalize_array_of_doubles(votes, current_dataset->classno);
 memcpy(posterior, votes, current_dataset->classno * sizeof(double));
 safe_free(votes);
 predicted.classno = findMaxOutput(posterior, current_dataset->classno);
 return predicted;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, 0x8(%rsp)
leaq 0xcc6db(%rip), %rax     # 0xd5870
movq (%rax), %rax
movslq 0x10(%rax), %rdi
leaq 0x9cd06(%rip), %rdx     # 0xa5ea9
movl $0x8, %esi
movl $0x5, %ecx
callq 0x3a1fc
movq %rax, %r15
cmpl $0x0, (%r12)
jle 0x91f8
xorl %ebx, %ebx
movq (%r13,%rbx,8), %rdx
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
movq %r14, %r8
callq 0x9253
movslq 0x18(%rsp), %rax
movsd (%r15,%rax,8), %xmm0
addsd 0x9c33a(%rip), %xmm0    # 0xa5520
movsd %xmm0, (%r15,%rax,8)
incq %rbx
movslq (%r12), %rax
cmpq %rax, %rbx
jl 0x91be
leaq 0xcc671(%rip), %rbx     # 0xd5870
movq (%rbx), %rax
movl 0x10(%rax), %esi
movq %r15, %rdi
callq 0x38695
movq (%rbx), %rax
movslq 0x10(%rax), %rdx
shlq $0x3, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4310
movq %r15, %rdi
callq 0x3a180
movq (%rbx), %rax
movl 0x10(%rax), %esi
movq %r14, %rdi
callq 0x38362
movq 0x8(%rsp), %rcx
movl %eax, 0x8(%rcx)
movq %rcx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: test_c45
Prediction test_c45(Instanceptr data, void* model, void* parameters, double* posterior)
{
 /*!Last Changed 11.07.2006 if there is no data at the node the posteriors will be same and 1 / classno*/
 /*!Last Changed 01.11.2005 added posteriors*/
 Decisionnodeptr currentnode, root = (Decisionnodeptr) model;
 Prediction predicted;
 currentnode = root;
 while (currentnode->featureno != LEAF_NODE)
   currentnode = next_node(currentnode, data);
 if (get_parameter_o("laplaceestimate") == ON)
   normalize_array_laplace(currentnode->counts, posterior, current_dataset->classno);
	else
   normalize_array(currentnode->counts, posterior, current_dataset->classno);
 predicted.classno = currentnode->classno;
 return predicted;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rdx, %r14
movq %rdi, %rbx
cmpl $-0x1, 0x30(%rdx)
je 0x9281
movq %rsi, %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x1d407
movq %rax, %r14
cmpl $-0x1, 0x30(%rax)
jne 0x926d
leaq 0x9cc33(%rip), %rdi     # 0xa5ebb
callq 0x54bec
movq 0xa0(%r14), %rdi
leaq 0xcc5d5(%rip), %rcx     # 0xd5870
movq (%rcx), %rcx
movl 0x10(%rcx), %edx
movq %r15, %rsi
cmpl $0x1, %eax
jne 0x92b0
callq 0x38636
jmp 0x92b5
callq 0x38540
movl 0x34(%r14), %eax
movl %eax, 0x8(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: train_kforest
void* train_kforest(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 int i;
 Kforest_parameterptr p;
 Decisionnodeptr* forest;
 Decisionnodeptr rootnode;
 Instanceptr data;
 p = (Kforest_parameterptr) parameters;
 forest = safemalloc(p->forestsize * sizeof(Decisionnodeptr), "train_randomforest", 4);
 for (i = 0; i < p->forestsize; i++)
  {
   rootnode = createnewnode(NULL, 1);
   rootnode->instances = bootstrap_sample_without_stratification(*trdata);
   create_kforestchildren(rootnode, p);
   data = NULL;
   accumulate_instances_tree(&data, rootnode);
   deallocate(data);
   forest[i] = rootnode;
  }
 return forest;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movslq (%rdx), %rdi
shlq $0x3, %rdi
leaq 0x9cbac(%rip), %rsi     # 0xa5e96
movl $0x4, %edx
callq 0x3a0e1
movq %rax, %r15
cmpl $0x0, (%rbx)
jle 0x9352
xorl %ebp, %ebp
movq %rsp, %r12
xorl %edi, %edi
movl $0x1, %esi
callq 0x1d107
movq %rax, %r13
movq (%r14), %rdi
callq 0x307e8
movq %rax, 0x20(%r13)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1c604
movq $0x0, (%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x1cef5
movq (%rsp), %rdi
callq 0x2ff55
movq %r13, (%r15,%rbp,8)
incq %rbp
movslq (%rbx), %rax
cmpq %rax, %rbp
jl 0x9301
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: test_kforest
Prediction test_kforest(Instanceptr data, void* model, void* parameters, double* posterior)
{
 int i;
 double* votes;
 Kforest_parameterptr p;
 Decisionnodeptr* forest;
 Prediction predicted, predictedc45;
 forest = (Decisionnodeptr*) model;
 p = (Kforest_parameterptr) parameters;
 votes = safecalloc(current_dataset->classno, sizeof(double), "test_randomforest", 5);
 for (i = 0; i < p->forestsize; i++)
  {
   predictedc45 = test_c45(data, forest[i], parameters, posterior);
   votes[predictedc45.classno]++;
  }
 normalize_array_of_doubles(votes, current_dataset->classno);
 memcpy(posterior, votes, current_dataset->classno * sizeof(double));
 safe_free(votes);
 predicted.classno = findMaxOutput(posterior, current_dataset->classno);
 return predicted;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, 0x8(%rsp)
leaq 0xcc4e6(%rip), %rax     # 0xd5870
movq (%rax), %rax
movslq 0x10(%rax), %rdi
leaq 0x9cb11(%rip), %rdx     # 0xa5ea9
movl $0x8, %esi
movl $0x5, %ecx
callq 0x3a1fc
movq %rax, %r15
cmpl $0x0, (%r12)
jle 0x93ed
xorl %ebx, %ebx
movq (%r13,%rbx,8), %rdx
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
movq %r14, %r8
callq 0x9253
movslq 0x18(%rsp), %rax
movsd (%r15,%rax,8), %xmm0
addsd 0x9c145(%rip), %xmm0    # 0xa5520
movsd %xmm0, (%r15,%rax,8)
incq %rbx
movslq (%r12), %rax
cmpq %rax, %rbx
jl 0x93b3
leaq 0xcc47c(%rip), %rbx     # 0xd5870
movq (%rbx), %rax
movl 0x10(%rax), %esi
movq %r15, %rdi
callq 0x38695
movq (%rbx), %rax
movslq 0x10(%rax), %rdx
shlq $0x3, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4310
movq %r15, %rdi
callq 0x3a180
movq (%rbx), %rax
movl 0x10(%rax), %esi
movq %r14, %rdi
callq 0x38362
movq 0x8(%rsp), %rcx
movl %eax, 0x8(%rcx)
movq %rcx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: make_tree_stump
void make_tree_stump(Decisionnodeptr rootnode)
{
 int count, i;
 if (!make_children(rootnode))
  {
   setup_node_properties(rootnode);
   make_leaf_node(rootnode);
   return;
  }
 switch (current_dataset->features[rootnode->featureno].type)
  {
   case INTEGER:
   case REAL   :setup_node_properties(rootnode->left);
                make_leaf_node(rootnode->left);
                setup_node_properties(rootnode->right);
                make_leaf_node(rootnode->right);
                break;
   case STRING :count = current_dataset->features[rootnode->featureno].valuecount;
                for (i = 0; i < count; i++)
                 {
                  setup_node_properties(&(rootnode->string[i]));
                  make_leaf_node(&(rootnode->string[i]));
                 }
                break;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0xa0b60
testl %eax, %eax
je 0x94a2
leaq 0xcc410(%rip), %rax     # 0xd5870
movq (%rax), %rax
movslq 0x30(%rbx), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
movl 0x30f08(%rax,%rcx), %edx
cmpl $0x2, %edx
je 0x9483
cmpl $0x1, %edx
je 0x94b7
testl %edx, %edx
jne 0x94f7
movq (%rbx), %rdi
callq 0x1cfd0
movq (%rbx), %rdi
callq 0x1cab0
movq 0x8(%rbx), %rdi
callq 0x1cfd0
movq 0x8(%rbx), %rbx
jmp 0x94aa
movq %rbx, %rdi
callq 0x1cfd0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1cab0
addq %rcx, %rax
addq $0x30f08, %rax          # imm = 0x30F08
movslq 0x18(%rax), %rax
testq %rax, %rax
jle 0x94f7
imulq $0x160, %rax, %r14      # imm = 0x160
xorl %r15d, %r15d
movq 0x10(%rbx), %rdi
addq %r15, %rdi
callq 0x1cfd0
movq 0x10(%rbx), %rdi
addq %r15, %rdi
callq 0x1cab0
addq $0x160, %r15            # imm = 0x160
cmpq %r15, %r14
jne 0x94d3
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: train_c45stump
void* train_c45stump(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 Decisionnodeptr rootnode;
 rootnode = createnewnode(NULL, 1);
 rootnode->instances = *trdata;
 rootnode->conditiontype = UNIVARIATE_CONDITION;
 rootnode->featureno = find_best_feature(rootnode->instances, &(rootnode->split));
 make_tree_stump(rootnode);
 *trdata = NULL;
 return rootnode;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %edi, %edi
movl $0x1, %esi
callq 0x1d107
movq %rax, %r14
movq (%rbx), %rdi
movq %rdi, 0x20(%rax)
movl $0x0, 0x98(%rax)
leaq 0x28(%rax), %rsi
callq 0xa0abe
movl %eax, 0x30(%r14)
movq %r14, %rdi
callq 0x9448
movq $0x0, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: test_c45stump
Prediction test_c45stump(Instanceptr data, void* model, void* parameters, double* posterior)
{
 Decisionnodeptr currentnode, root = (Decisionnodeptr) model;
 Prediction predicted;
 currentnode = root;
 while (currentnode->featureno != LEAF_NODE)
   currentnode = next_node(currentnode, data);
 normalize_array(currentnode->counts, posterior, current_dataset->classno);
 predicted.classno = currentnode->classno;
 return predicted;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rdx, %r15
movq %rdi, %rbx
cmpl $-0x1, 0x30(%rdx)
je 0x9579
movq %rsi, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x1d407
movq %rax, %r15
cmpl $-0x1, 0x30(%rax)
jne 0x9565
movq 0xa0(%r15), %rdi
leaq 0xcc2e9(%rip), %rax     # 0xd5870
movq (%rax), %rax
movl 0x10(%rax), %edx
movq %r14, %rsi
callq 0x38540
movl 0x34(%r15), %eax
movl %eax, 0x8(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: train_ldtstump
void* train_ldtstump(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 Decisionnodeptr rootnode;
 rootnode = createnewnode(NULL, 1);
 rootnode->instances = *trdata;
 rootnode->conditiontype = UNIVARIATE_CONDITION;
 rootnode->featureno = find_best_ldt_feature(rootnode->instances, &(rootnode->split));
 make_tree_stump(rootnode);
 *trdata = NULL;
 return rootnode;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %edi, %edi
movl $0x1, %esi
callq 0x1d107
movq %rax, %r14
movq (%rbx), %rdi
movq %rdi, 0x20(%rax)
movl $0x0, 0x98(%rax)
leaq 0x28(%rax), %rsi
callq 0xa2571
movl %eax, 0x30(%r14)
movq %r14, %rdi
callq 0x9448
movq $0x0, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: train_multildtstump
void* train_multildtstump(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 Decisionnodeptr rootnode;
 rootnode = createnewnode(NULL, 1);
 rootnode->instances = *trdata;
 rootnode->conditiontype = MULTIVARIATE_CONDITION;
 rootnode->lineard = find_best_multi_ldt_split(&(rootnode->instances), &(rootnode->w), &(rootnode->w0), MULTIVARIATE_LINEAR, 0.99);
 if (!(rootnode->lineard))
  {
   matrix_free(rootnode->w);
   setup_node_properties(rootnode);
   make_leaf_node(rootnode);
  }
 else
  {
   rootnode->featureno = LINEAR;
   make_multivariate_children(rootnode);
   setup_node_properties(rootnode->left);
   make_leaf_node(rootnode->left);
   setup_node_properties(rootnode->right);
   make_leaf_node(rootnode->right);
  }
 *trdata = NULL;
 return rootnode;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %edi, %edi
movl $0x1, %esi
callq 0x1d107
movq %rax, %r14
movq (%rbx), %rax
leaq 0x20(%r14), %rdi
movq %rax, 0x20(%r14)
movl $0x1, 0x98(%r14)
leaq 0x38(%r14), %rsi
leaq 0x48(%r14), %rdx
movsd 0x9c76d(%rip), %xmm0    # 0xa5db0
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
callq 0x4e089
movl %eax, 0x90(%r14)
testl %eax, %eax
je 0x9687
movl $0xfffffffe, 0x30(%r14) # imm = 0xFFFFFFFE
movq %r14, %rdi
callq 0x4db5c
movq (%r14), %rdi
callq 0x1cfd0
movq (%r14), %rdi
callq 0x1cab0
movq 0x8(%r14), %rdi
callq 0x1cfd0
movq 0x8(%r14), %rdi
jmp 0x969f
movq 0x38(%r14), %rdi
movq 0x40(%r14), %rsi
callq 0x3ed51
movq %r14, %rdi
callq 0x1cfd0
movq %r14, %rdi
callq 0x1cab0
movq $0x0, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: train_softstump
void* train_softstump(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
	Decisionnodeptr treenode;
	Softregtree_parameterptr p;
	p = (Softregtree_parameterptr) parameters;
 treenode = createnewnode(NULL, 1);
 treenode->weight = 1.0;
 treenode->instances = *trdata;
 treenode->leaftype = p->leaftype;
 if (p->leaftype == CONSTANTLEAF)
   treenode->w0 = produce_random_value(-0.01, +0.01);
 else
   treenode->w = random_matrix(current_dataset->multifeaturecount, 1, -0.01, +0.01);
 find_best_soft_tree_split(treenode, treenode, *trdata, p);
 if (treenode->left != NULL)
  {
   make_leaf_node(treenode->left);
   make_leaf_node(treenode->right);
  }
 else
   make_leaf_node(treenode);
	*trdata = NULL;
	return treenode;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rdi, %rbx
xorl %edi, %edi
movl $0x1, %esi
callq 0x1d107
movq %rax, %r14
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x78(%r14)
movq (%rbx), %rax
movq %rax, 0x20(%r14)
movl (%r15), %eax
movl %eax, 0x60(%r14)
testl %eax, %eax
je 0x9732
leaq 0xcc16b(%rip), %rax     # 0xd5870
movq (%rax), %rax
movl 0x1c0(%rax), %edi
movsd 0x9c6a2(%rip), %xmm0    # 0xa5db8
movsd 0x9c6a2(%rip), %xmm1    # 0xa5dc0
movl $0x1, %esi
callq 0x3ef18
movq %rax, 0x38(%r14)
movq %rdx, 0x40(%r14)
jmp 0x974d
movsd 0x9c67e(%rip), %xmm0    # 0xa5db8
movsd 0x9c67e(%rip), %xmm1    # 0xa5dc0
callq 0x3af6a
movsd %xmm0, 0x48(%r14)
movq (%rbx), %rdx
movq %r14, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x8c341
movq (%r14), %rdi
testq %rdi, %rdi
je 0x9771
callq 0x1cab0
movq 0x8(%r14), %rdi
jmp 0x9774
movq %r14, %rdi
callq 0x1cab0
movq $0x0, (%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: train_c45
void* train_c45(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 Decisionnodeptr rootnode;
 C45_parameterptr p;
 p = (C45_parameterptr) parameters;
 rootnode = createnewnode(NULL, 1);
 rootnode->instances = *trdata;
 create_c45children(rootnode, p);
 if (in_list(p->prunetype, 2, MODELSELECTIONPRUNING, VALIDATIONPRUNING))
  prune_tree(rootnode, rootnode, *cvdata);
 else
  if (p->prunetype == SRMPRUNING)
   {
   if (p->prunemodel == LOCAL)
    prune_tree_according_to_model_selection_method(rootnode, MODEL_SELECTION_SRM);
   else
    prune_tree_global(rootnode, rootnode, MODEL_SELECTION_SRM);
   }
 *trdata = NULL;
 return rootnode;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
xorl %edi, %edi
movl $0x1, %esi
callq 0x1d107
movq %rax, %r14
movq (%rbx), %rax
movq %rax, 0x20(%r14)
movq %r14, %rdi
movq %r15, %rsi
callq 0xa10e8
movl (%r15), %edi
movl $0x2, %esi
movl $0x2, %edx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x3aa8c
testl %eax, %eax
je 0x982d
movq (%r12), %rdx
movq %r14, %rdi
movq %r14, %rsi
callq 0x1d99b
jmp 0x9859
cmpl $0x4, (%r15)
jne 0x9859
cmpl $0x0, 0x4(%r15)
je 0x984c
movq %r14, %rdi
movq %r14, %rsi
movl $0x3, %edx
callq 0x52bc5
jmp 0x9859
movq %r14, %rdi
movl $0x3, %esi
callq 0x52dec
movq $0x0, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: train_ktree
void* train_ktree(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 Decisionnodeptr rootnode;
 C45_parameterptr p;
 p = (C45_parameterptr) parameters;
 rootnode = createnewnode(NULL, 1);
 rootnode->instances = *trdata;
 create_ktreechildren(rootnode, p);
 if (in_list(p->prunetype, 2, MODELSELECTIONPRUNING, VALIDATIONPRUNING))
   prune_tree(rootnode, rootnode, *cvdata);
 *trdata = NULL;
 return rootnode;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
xorl %edi, %edi
movl $0x1, %esi
callq 0x1d107
movq %rax, %r15
movq (%rbx), %rax
movq %rax, 0x20(%r15)
movq %r15, %rdi
movq %r12, %rsi
callq 0x3340b
movl (%r12), %edi
movl $0x2, %esi
movl $0x2, %edx
movl $0x1, %ecx
xorl %eax, %eax
callq 0x3aa8c
testl %eax, %eax
je 0x98cd
movq (%r14), %rdx
movq %r15, %rdi
movq %r15, %rsi
callq 0x1d99b
movq $0x0, (%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: train_nearestmean
void* train_nearestmean(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 /*!Last Changed 22.03.2005*/
 int *counts;
 Instanceptr classmeans;
 counts = find_class_counts(*trdata);
 classmeans = find_class_means(*trdata, counts);
 safe_free(counts);
 return classmeans;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x115a6
movq %rax, %r14
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x118da
movq %rax, %rbx
movq %r14, %rdi
callq 0x3a180
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: test_nearestmean
Prediction test_nearestmean(Instanceptr data, void* model, void* parameters, double* posterior)
{
 /*!Last Changed 22.03.2005*/
 Instanceptr classmeans;
 int j;
 Prediction predicted;
 classmeans = (Instanceptr) model;
 find_nearest_mean(classmeans, data, &(predicted.classno));
 j = give_classno(data);
 posterior[j] = 1.0;
 return predicted;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %r8, %rbx
movq %rdx, %rax
movq %rsi, %r14
movq %rdi, %r15
leaq 0x8(%rdi), %rdx
movq %rax, %rdi
callq 0xcc64
movq %r14, %rdi
callq 0x2f33a
cltq
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, (%rbx,%rax,8)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/classification.c
// Function: train_gaussian
void* train_gaussian(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 /*!Last Changed 19.12.2005*/
 Model_gaussianptr m;
 int* counts, datacount = data_size(*trdata), i;
 m = safemalloc(sizeof(Model_gaussian), "train_gaussian", 3);
 counts = find_class_counts(*trdata);
 m->mean = find_class_means(*trdata, counts);
 m->variance = find_class_variance(*trdata, m->mean, counts);
 m->priors = safemalloc(current_dataset->classno * sizeof(double), "train_gaussian", 7);
 for (i = 0; i < current_dataset->classno; i++)
   m->priors[i] = counts[i] / (datacount + 0.0);
 safe_free(counts);
 return m;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r12
movq (%rdi), %rdi
callq 0x30309
movl %eax, %ebp
leaq 0x9c54d(%rip), %r15     # 0xa5ecb
movl $0x18, %edi
movq %r15, %rsi
movl $0x3, %edx
callq 0x3a0e1
movq %rax, %rbx
movq (%r12), %rdi
callq 0x115a6
movq %rax, %r14
movq (%r12), %rdi
movq %rax, %rsi
callq 0x118da
movq %rax, (%rbx)
movq (%r12), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x11bfd
movq %rax, 0x8(%rbx)
leaq 0xcbea8(%rip), %r12     # 0xd5870
movq (%r12), %rax
movslq 0x10(%rax), %rdi
shlq $0x3, %rdi
movq %r15, %rsi
movl $0x7, %edx
callq 0x3a0e1
movq %rax, 0x10(%rbx)
movq (%r12), %rcx
movslq 0x10(%rcx), %rcx
testq %rcx, %rcx
jle 0x9a12
cvtsi2sd %ebp, %xmm0
xorl %edx, %edx
xorps %xmm1, %xmm1
cvtsi2sdl (%r14,%rdx,4), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rax,%rdx,8)
incq %rdx
cmpq %rdx, %rcx
jne 0x99f8
movq %r14, %rdi
callq 0x3a180
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq