LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/algorithm.c
// Function: get_algorithm_type
SUPERVISED_ALGORITHM_TYPE get_algorithm_type(int algorithm)
{
 int i;
 for (i = 0; i < CLASSIFICATION_ALGORITHM_COUNT; i++)
   if (algorithm == SELECTMAX + i)
     return CLASSIFICATION;
 for (i = 0; i < REGRESSION_ALGORITHM_COUNT; i++)
   if (algorithm == ONEFEATURE + i)
     return REGRESSION;
 return UNDEFINED_ALGORITHM;
}

// Assembly:
leal -0x411(%rdi), %ecx
xorl %eax, %eax
cmpl $-0x2a, %ecx
ja 0x4489
xorl %ecx, %ecx
pushq $0x11
popq %rdx
pushq $-0x1
popq %rax
pushq $0x1
popq %rsi
subl $0x1, %edx
jb 0x4489
leal 0x7d0(%rcx), %r8d
incl %ecx
cmpl %edi, %r8d
jne 0x4474
movl %esi, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/algorithm.c
// Function: check_supervised_algorithm_type
int check_supervised_algorithm_type(int algorithm, Datasetptr current_dataset)
{
 /*!Last Changed 05.03.2006*/
 if (in_list(algorithm, 1, HMM) && current_dataset->storetype != STORE_SEQUENTIAL)
  {
   printf(m1471);
   return 0;
  }
 if (current_dataset->storetype == STORE_KERNEL && !in_list(algorithm, 6, SVM, SIMPLEXSVM, SVMREG, SIMPLEXSVMREG, KNN, KNNREG))
  {
   printf(m1472);
   return 0;
  }
 if (get_algorithm_type(algorithm) == CLASSIFICATION && current_dataset->classno == 0)
  {
   printf(m1132);
   return 0;
  }
 if (get_algorithm_type(algorithm) == REGRESSION && current_dataset->classno != 0)
  {
   printf(m1133);
   return 0;
  }
 return 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movl %edi, %ebp
pushq $0x1
popq %rbx
movl %ebx, %esi
movl $0x3fe, %edx            # imm = 0x3FE
xorl %eax, %eax
callq 0x35812
movl 0x140713c(%r14), %ecx
testl %eax, %eax
je 0x45c2
cmpl $0x2, %ecx
je 0x45f9
leaq 0x915b4(%rip), %rdi     # 0x95b74
jmp 0x4630
cmpl $0x3, %ecx
jne 0x45f9
pushq $0x6
popq %rsi
movl %ebp, %edi
movl $0x3f9, %edx            # imm = 0x3F9
movl $0x3fa, %ecx            # imm = 0x3FA
movl $0x7d8, %r8d            # imm = 0x7D8
movl $0x7d9, %r9d            # imm = 0x7D9
xorl %eax, %eax
pushq $0x7d1                  # imm = 0x7D1
pushq $0x3e9                  # imm = 0x3E9
callq 0x35812
popq %rcx
popq %rdx
testl %eax, %eax
je 0x4629
movl %ebp, %edi
callq 0x445c
cmpl $0x1, %eax
je 0x4619
testl %eax, %eax
jne 0x4637
cmpl $0x0, 0x10(%r14)
jne 0x4637
leaq 0x91528(%rip), %rdi     # 0x95b3f
jmp 0x4630
cmpl $0x0, 0x10(%r14)
je 0x4637
leaq 0x914e3(%rip), %rdi     # 0x95b0a
jmp 0x4630
leaq 0x9146e(%rip), %rdi     # 0x95a9e
callq 0x4090
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/algorithm.c
// Function: get_supervised_algorithm_index
int get_supervised_algorithm_index(char* algname)
{
 /*!Last Changed 11.03.2006*/
 int i;
 for (i = 0; i < CLASSIFICATION_ALGORITHM_COUNT; i++)
   if (strIcmp(algname, classification_algorithms[SELECTMAX + i].name) == 0)
     return SELECTMAX + i;
 for (i = 0; i < REGRESSION_ALGORITHM_COUNT; i++)
   if (strIcmp(algname, regression_algorithms[ONEFEATURE + i].name) == 0)
     return ONEFEATURE + i;
 return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
movl $0x3e7, %ebx            # imm = 0x3E7
xorl %r15d, %r15d
leaq 0xc776c(%rip), %r12     # 0xcc1c0
cmpq $0x668, %r15            # imm = 0x668
je 0x4a79
movq 0x9c50(%r15,%r12), %rsi
movq %r14, %rdi
callq 0x35f65
addq $0x28, %r15
incl %ebx
testl %eax, %eax
jne 0x4a54
jmp 0x4ab2
movl $0x7cf, %ebx            # imm = 0x7CF
xorl %r15d, %r15d
pushq $-0x1
popq %rbp
leaq 0xc7da5(%rip), %r12     # 0xcc830
cmpq $0x2a8, %r15            # imm = 0x2A8
je 0x4ab0
movq 0x13890(%r15,%r12), %rsi
movq %r14, %rdi
callq 0x35f65
addq $0x28, %r15
incl %ebx
testl %eax, %eax
jne 0x4a8b
jmp 0x4ab2
movl %ebp, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/binary.c
// Function: empty_binary_function
Binaryfunctionptr empty_binary_function()
{
 /*!Last Changed 19.04.2008*/
 Binaryfunctionptr result;
 result = (Binaryfunctionptr) safemalloc(sizeof(Binaryfunction), "empty_binary_function", 2);
 result->termcount = 0;
 result->terms = NULL;
 return result;
}

// Assembly:
pushq %rax
leaq 0x8f610(%rip), %rsi     # 0x95cc0
pushq $0x10
popq %rdi
pushq $0x2
popq %rdx
callq 0x34f59
andl $0x0, 0x8(%rax)
andq $0x0, (%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/binary.c
// Function: free_binary_function
void free_binary_function(Binaryfunctionptr bf)
{
 /*!Last Changed 19.04.2008*/
 int i;
 for (i = 0; i < bf->termcount; i++)
  {
   safe_free(bf->terms[i].complement);
   safe_free(bf->terms[i].variables);
  }
 safe_free(bf);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
movslq 0x8(%rbx), %rax
cmpq %rax, %r15
jge 0x66fe
movq (%rbx), %rax
movq 0x8(%rax,%r14), %rdi
callq 0x34ff7
movq (%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x34ff7
incq %r15
addq $0x18, %r14
jmp 0x66d3
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x34ff7
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/binary.c
// Function: evaluate_binary_function
BOOLEAN evaluate_binary_function(Binaryfunctionptr bf, int* values)
{
 /*!Last Changed 20.04.2008*/
 int i, j, index, complement;
 for (i = 0; i < bf->termcount; i++)
  {
   for (j = 0; j < bf->terms[i].count; j++)
    {
     index = bf->terms[i].variables[j];
     complement = bf->terms[i].complement[j];
     if ((values[index] && complement) || (!values[index] && !complement))
       break;
    }
   if (j == bf->terms[i].count)
     return BOOLEAN_TRUE;
  }
 return BOOLEAN_FALSE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
movl 0x8(%rdi), %ecx
xorl %eax, %eax
testl %ecx, %ecx
cmovlel %eax, %ecx
movl $0x1, %edx
xorl %r8d, %r8d
cmpq %rcx, %r8
je 0x6922
movq (%rdi), %r9
imulq $0x18, %r8, %r10
leaq (%r9,%r10), %r11
movl 0x10(%r9,%r10), %r9d
testl %r9d, %r9d
movl $0x0, %r10d
cmovgl %r9d, %r10d
xorl %ebx, %ebx
cmpq %rbx, %r10
je 0x6918
movq (%r11), %r14
movq 0x8(%r11), %r15
movslq (%r14,%rbx,4), %r14
cmpl $0x0, (%rsi,%r14,4)
setne %bpl
cmpl $0x0, (%r15,%rbx,4)
setne %r14b
cmpb %bpl, %r14b
je 0x6915
incq %rbx
jmp 0x68e9
movl %ebx, %r10d
incq %r8
cmpl %r9d, %r10d
jne 0x68c5
movl %edx, %eax
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/binary.c
// Function: generate_random_data_from_binary_function
void generate_random_data_from_binary_function(Binaryfunctionptr bf, int d, char* fname)
{
 /*!Last Changed 20.04.2008*/
 FILE* outfile;
 int* iterator;
 int result, i;
 outfile = fopen(fname, "w");
 if (!outfile)
  {
   printf(m1306);
   return;
  }
 iterator = first_iterator(d);
 do{
   result = evaluate_binary_function(bf, iterator);
   for (i = 0; i < d; i++)
     switch (iterator[i])
      {
       case BOOLEAN_FALSE:fprintf(outfile, "F ");
                          break;
       case  BOOLEAN_TRUE:fprintf(outfile, "T ");
                          break;
      }
   switch (result)
    {
     case BOOLEAN_FALSE:fprintf(outfile, "F\n");
                        break;
     case  BOOLEAN_TRUE:fprintf(outfile, "T\n");
                        break;
    }
 }while(next_iterator(iterator, d, 1));
 safe_free(iterator);
 fclose(outfile);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %r13d
movq %rdi, 0x10(%rsp)
leaq 0x94f4b(%rip), %rsi     # 0x9b891
movq %rdx, %rdi
callq 0x40f0
testq %rax, %rax
je 0x6a16
movq %rax, %r15
movl %r13d, %edi
callq 0x3463b
xorl %ebx, %ebx
testl %r13d, %r13d
cmovgl %r13d, %ebx
movq %rax, %r12
pushq $0x1
popq %rbp
leaq 0x8f90b(%rip), %r14     # 0x96283
movl %r13d, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x68ad
movl %eax, 0xc(%rsp)
xorl %r13d, %r13d
cmpq %r13, %rbx
je 0x69c0
movl (%r12,%r13,4), %eax
movq %r14, %rdi
testl %eax, %eax
je 0x69ad
cmpl $0x1, %eax
jne 0x69bb
leaq 0x8f329(%rip), %rdi     # 0x95cd6
pushq $0x2
popq %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x42c0
incq %r13
jmp 0x6991
testb $0x1, 0xc(%rsp)
leaq 0x928fb(%rip), %rdi     # 0x992c7
leaq 0x94f69(%rip), %rax     # 0x9b93c
cmovneq %rax, %rdi
pushq $0x2
popq %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x42c0
movq %r12, %rdi
movl 0x8(%rsp), %esi
pushq $0x1
popq %rdx
callq 0x34ae8
testl %eax, %eax
jne 0x697d
movq %r12, %rdi
callq 0x34ff7
movq %r15, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x42a0
leaq 0x8f2bc(%rip), %rdi     # 0x95cd9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4090
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/binary.c
// Function: generate_random_noisy_data_from_binary_function
void generate_random_noisy_data_from_binary_function(Binaryfunctionptr bf, int d, double p, char* fname)
{
 /*!Last Changed 21.04.2008*/
 FILE* outfile;
 int* iterator;
 int result, i;
 outfile = fopen(fname, "w");
 if (!outfile)
  {
   printf(m1306);
   return;
  }
 iterator = first_iterator(d);
 do{
   result = evaluate_binary_function(bf, iterator);
   for (i = 0; i < d; i++)
     switch (iterator[i])
      {
       case BOOLEAN_FALSE:fprintf(outfile, "F ");
                          break;
       case  BOOLEAN_TRUE:fprintf(outfile, "T ");
                          break;
      }
   if (produce_random_value(0.0, 1.0) < p)
     result = 1 - result;
   switch (result)
    {
     case BOOLEAN_FALSE:fprintf(outfile, "F\n");
                        break;
     case  BOOLEAN_TRUE:fprintf(outfile, "T\n");
                        break;
    }
 }while(next_iterator(iterator, d, 1));
 safe_free(iterator);
 fclose(outfile);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movsd %xmm0, 0x10(%rsp)
movl %esi, %r13d
movq %rdi, 0x8(%rsp)
leaq 0x94e3e(%rip), %rsi     # 0x9b891
movq %rdx, %rdi
callq 0x40f0
testq %rax, %rax
je 0x6b44
movq %rax, %r15
movl %r13d, %edi
callq 0x3463b
movq %rax, %r12
xorl %ebx, %ebx
testl %r13d, %r13d
cmovgl %r13d, %ebx
pushq $0x1
popq %rbp
leaq 0x8f7fe(%rip), %r14     # 0x96283
movl %r13d, (%rsp)
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x68ad
movl %eax, 0x4(%rsp)
xorl %r13d, %r13d
cmpq %r13, %rbx
je 0x6acc
movl (%r12,%r13,4), %eax
movq %r14, %rdi
testl %eax, %eax
je 0x6ab9
cmpl $0x1, %eax
jne 0x6ac7
leaq 0x8f21d(%rip), %rdi     # 0x95cd6
pushq $0x2
popq %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x42c0
incq %r13
jmp 0x6a9d
xorpd %xmm0, %xmm0
movsd 0x8ea48(%rip), %xmm1    # 0x95520
callq 0x35cae
xorl %eax, %eax
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
seta %al
cmpl %eax, 0x4(%rsp)
leaq 0x94e45(%rip), %rdi     # 0x9b93c
leaq 0x927c9(%rip), %rax     # 0x992c7
cmoveq %rax, %rdi
pushq $0x2
popq %rsi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x42c0
movq %r12, %rdi
movl (%rsp), %esi
pushq $0x1
popq %rdx
callq 0x34ae8
testl %eax, %eax
jne 0x6a89
movq %r12, %rdi
callq 0x34ff7
movq %r15, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x42a0
leaq 0x8f18e(%rip), %rdi     # 0x95cd9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4090
nop
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/cart.c
// Function: create_cartchildren
int create_cartchildren(Decisionnodeptr node, C45_parameterptr param)
{
 node->conditiontype = MULTIVARIATE_CONDITION;
 if (!(can_be_divided(node, param)))
   return 1;
 if (!find_best_cart_split(node))
  {
   make_leaf_node(node);
   return 1;
  }
 node->lineard = current_dataset->multifeaturecount - 1;
 node->featureno = LINEAR; 
 if (!(make_multivariate_children(node)))
   return 1;
 create_cartchildren(node->left, param);
 create_cartchildren(node->right, param);
 return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xc68df(%rip), %r15     # 0xcd870
movl $0x1, 0x98(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1abee
testl %eax, %eax
je 0x6ff3
movq %rbx, %rdi
callq 0x6b60
testl %eax, %eax
je 0x6feb
movq (%r15), %rax
movl 0x1c0(%rax), %eax
decl %eax
movl %eax, 0x90(%rbx)
movl $0xfffffffe, 0x30(%rbx) # imm = 0xFFFFFFFE
movq %rbx, %rdi
callq 0x4692e
testl %eax, %eax
je 0x6ff3
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x6f7f
movq 0x8(%rbx), %rbx
jmp 0x6f91
movq %rbx, %rdi
callq 0x1a6ac
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/c45rules.c
// Function: sort_rules
void sort_rules(Ruleset* r)
{
 /*!Last Changed 05.11.2003 If i is r->end then after exchange j will be  r->end*/
 /*!Last Changed 30.10.2003*/
 Decisionruleptr i;
 Decisionruleptr j;
 Decisionruleptr ibefore;
 Decisionruleptr tmp;
 Decisionruleptr jbefore;
 if (r->start == NULL)
   return;
 for (ibefore = r->start, i = r->start->next; i != NULL; ibefore = i, i = i->next)
   for (jbefore = NULL, j = r->start; j != i; jbefore = j, j = j->next)
     if (j->classno > i->classno)
      {
       ibefore->next = j;
       if (jbefore)
         jbefore->next = i;
       else
         r->start = i;
       if (i->next == NULL)
         r->end = j;
       tmp = j->next;
       j->next = i->next;
       i->next = tmp;
       break;
      }
}

// Assembly:
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x705b
movq 0x30(%rcx), %rax
testq %rax, %rax
je 0x705b
movq %rdi, %r8
xorl %esi, %esi
movq (%r8), %rdx
cmpq %rax, %rdx
je 0x7056
movl (%rdx), %r8d
cmpl (%rax), %r8d
jg 0x702b
leaq 0x30(%rdx), %r8
movq %rdx, %rsi
jmp 0x7012
leaq 0x30(%rsi), %r8
testq %rsi, %rsi
cmoveq %rdi, %r8
movq %rdx, 0x30(%rcx)
movq %rax, (%r8)
movq 0x30(%rax), %rcx
testq %rcx, %rcx
jne 0x704a
movq %rdx, 0x8(%rdi)
movq 0x30(%rdx), %rsi
movq %rcx, 0x30(%rdx)
movq %rsi, 0x30(%rax)
movq %rax, %rcx
jmp 0x7004
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/c45rules.c
// Function: create_subset_of_ruleset
void create_subset_of_ruleset(Ruleset* result, Decisionruleptr* rules, int* subset, int subsetcount)
{
 /*!Last Changed 30.10.2003*/
 int i;
 result->start = NULL;
 result->end = NULL;
 result->rulecount = subsetcount;
 if (subsetcount == 0)
   return;
 result->start = rules[subset[0]];
 result->end = rules[subset[subsetcount-1]];
 result->end->next = NULL;
 for (i = 0; i < subsetcount - 1; i++)
   rules[subset[i]]->next = rules[subset[i + 1]];
}

// Assembly:
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movl %ecx, 0x10(%rdi)
testl %ecx, %ecx
je 0x72da
movslq (%rdx), %rax
movq (%rsi,%rax,8), %r8
movq %r8, (%rdi)
movslq %ecx, %r8
decl %ecx
movslq -0x4(%rdx,%r8,4), %r8
movq (%rsi,%r8,8), %r8
movq %r8, 0x8(%rdi)
andq $0x0, 0x30(%r8)
xorl %edi, %edi
testl %ecx, %ecx
cmovlel %edi, %ecx
cmpq %rdi, %rcx
je 0x72da
cltq
movslq 0x4(%rdx,%rdi,4), %r8
incq %rdi
movq (%rsi,%r8,8), %r9
movq (%rsi,%rax,8), %rax
movq %r9, 0x30(%rax)
movl %r8d, %eax
jmp 0x72ba
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/c45rules.c
// Function: remove_rules_according_indexes_of_rule
void remove_rules_according_indexes_of_rule(Decisionruleptr* rules, int rulecount, int* subset, int subsetcount)
{
 /*!Last Changed 02.12.2004*/
 int i, j;
 BOOLEAN found;
 for (i = 0; i < rulecount; i++)
  {
   found = BOOLEAN_FALSE;
   for (j = 0; j < subsetcount; j++)
     if (subset[j] == i)
      {
       found = BOOLEAN_TRUE;
       break;
      }
   if (!found)
    {
     free_rule(*(rules[i]));
     safe_free(rules[i]);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %ecx, %ebx
movq %rdx, %r14
movl %esi, %r15d
xorl %r13d, %r13d
testl %ecx, %ecx
cmovlel %r13d, %ebx
movq %rdi, %r12
testl %esi, %esi
cmovlel %r13d, %r15d
cmpq %r15, %r13
je 0x7355
xorl %eax, %eax
cmpq %rax, %rbx
je 0x731c
movl (%r14,%rax,4), %ecx
incq %rax
cmpq %rcx, %r13
jne 0x7309
jmp 0x7350
movq (%r12,%r13,8), %rax
movq 0x30(%rax), %rcx
movq %rcx, 0x30(%rsp)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x71be8
movq (%r12,%r13,8), %rdi
callq 0x34ff7
incq %r13
jmp 0x7302
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/c45rules.c
// Function: remove_rules_according_rules_themselves
void remove_rules_according_rules_themselves(Decisionruleptr* rules, int rulecount, Decisionruleptr* subsetrules, int subsetcount)
{
 /*!Last Changed 02.12.2004*/
 int i, j;
 BOOLEAN found;
 for (i = 0; i < rulecount; i++)
  {
   found = BOOLEAN_FALSE;
   for (j = 0; j < subsetcount; j++)
     if (rules[i] == subsetrules[j])
      {
       found = BOOLEAN_TRUE;
       break;
      }
   if (!found)
    {
     free_rule(*(rules[i]));
     safe_free(rules[i]);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %ecx, %ebx
movq %rdx, %r14
movl %esi, %r15d
xorl %r13d, %r13d
testl %ecx, %ecx
cmovlel %r13d, %ebx
movq %rdi, %r12
testl %esi, %esi
cmovlel %r13d, %r15d
cmpq %r15, %r13
je 0x73de
movq (%r12,%r13,8), %rax
xorl %ecx, %ecx
cmpq %rcx, %rbx
je 0x73a9
leaq 0x1(%rcx), %rdx
cmpq (%r14,%rcx,8), %rax
movq %rdx, %rcx
jne 0x7395
jmp 0x73d9
movq 0x30(%rax), %rcx
movq %rcx, 0x30(%rsp)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x71be8
movq (%r12,%r13,8), %rdi
callq 0x34ff7
incq %r13
jmp 0x738a
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/c45rules.c
// Function: check_all_subsets
Ruleset check_all_subsets(Decisionruleptr start, int rulecount, Instanceptr traindata, int conditioncount)
{
 /*!Last Changed 02.12.2004 added remove_rules_according_indexes_of_rule*/
 /*!Last Changed 30.10.2003*/
 Ruleset result;
 Decisionruleptr* rules;
 int **subsets, *counts, res, i, minindex = -1;
 double minlength = +1000000, length;
 empty_ruleset(&result);
 result.possibleconditioncount = conditioncount;
 rules = create_array_from_link_list_of_rules(start, rulecount);
 subsets = generate_subsets(rulecount, &res, &counts);
 for (i = 0; i < res; i++)
  {
   create_subset_of_ruleset(&result, rules, subsets[i], counts[i]);
   length = description_length_of_all(result, rules[0]->classno, 1, traindata);
   if (dless(length,minlength))
    {
     minlength = length;
     minindex = i;
    }
  }
 create_subset_of_ruleset(&result, rules, subsets[minindex], counts[minindex]);
 remove_rules_according_indexes_of_rule(rules, rulecount, subsets[minindex], counts[minindex]);
 for (i = 0; i < res; i++) 
   if (counts[i] > 0)
     safe_free(subsets[i]);
 safe_free(subsets);
 safe_free(counts);
 safe_free(rules);
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r8d, %r14d
movq %rcx, %r12
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
callq 0x71c9d
movl %r14d, 0x20(%rbx)
movq %r15, %rdi
movl %ebp, %esi
callq 0x7548
movq %rax, %r14
leaq 0x30(%rsp), %rsi
leaq 0x28(%rsp), %rdx
movl %ebp, 0x34(%rsp)
movl %ebp, %edi
callq 0x34903
movq %rax, %r15
movsd 0x8e8ea(%rip), %xmm0    # 0x95d28
movsd %xmm0, 0x38(%rsp)
pushq $-0x1
popq %rbp
xorl %r13d, %r13d
movslq 0x30(%rsp), %rax
cmpq %rax, %r13
jge 0x74c1
movq (%r15,%r13,8), %rdx
movq 0x28(%rsp), %rax
movl (%rax,%r13,4), %ecx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7285
movq (%r14), %rax
movl (%rax), %edi
movq 0x20(%rbx), %rax
movq %rax, 0x20(%rsp)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
pushq $0x1
popq %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x705c
movsd %xmm0, 0x40(%rsp)
movsd 0x38(%rsp), %xmm1
callq 0x34c76
testl %eax, %eax
cmovnel %r13d, %ebp
je 0x74bc
movsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x38(%rsp)
incq %r13
jmp 0x744a
movslq %ebp, %r12
movq (%r15,%r12,8), %rdx
movq 0x28(%rsp), %rax
movl (%rax,%r12,4), %ecx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7285
movq (%r15,%r12,8), %rdx
movq 0x28(%rsp), %rax
movl (%rax,%r12,4), %ecx
movq %r14, %rdi
movl 0x34(%rsp), %esi
callq 0x72db
xorl %r12d, %r12d
movslq 0x30(%rsp), %rax
cmpq %rax, %r12
jge 0x751c
movq 0x28(%rsp), %rax
cmpl $0x0, (%rax,%r12,4)
jle 0x7517
movq (%r15,%r12,8), %rdi
callq 0x34ff7
incq %r12
jmp 0x74f8
movq %r15, %rdi
callq 0x34ff7
movq 0x28(%rsp), %rdi
callq 0x34ff7
movq %r14, %rdi
callq 0x34ff7
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq %esi, %r14
leaq (,%r14,8), %rdi
leaq 0x8e7cf(%rip), %rsi     # 0x95d30
pushq $0x4
popq %rdx
callq 0x34f59
leal -0x1(%r14), %ecx
xorl %edx, %edx
testl %r14d, %r14d
cmovlel %edx, %r14d
cmpq %rdx, %r14
je 0x758d
movq %rbx, (%rax,%rdx,8)
cmpq %rdx, %rcx
je 0x7588
movq 0x30(%rbx), %rbx
incq %rdx
jmp 0x7576
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, (%rsp)
movq %rcx, %r12
movq %rcx, %rdi
callq 0x71c9d
movq %rbx, %r14
movq %rbx, %rdi
callq 0x71c9d
movl %r15d, %edi
callq 0x35cf7
movq %rax, %r13
imull %r15d, %ebp
pushq $0xa
popq %rcx
movl %ebp, %eax
cltd
idivl %ecx
movslq %eax, %rbp
xorl %ebx, %ebx
testl %r15d, %r15d
cmovlel %ebx, %r15d
cmpq %rbx, %r15
je 0x783f
cmpq %rbp, %rbx
movslq (%r13,%rbx,4), %rax
movq (%rsp), %rcx
movq (%rcx,%rax,8), %rsi
movq %r14, %rdi
cmovlq %r12, %rdi
callq 0x7228a
incq %rbx
jmp 0x7819
movq %r13, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x34ff7
// File: /workspace/github_c_makefile_star2_O2/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 0x34ff7
movq %r14, %rdi
callq 0x71c9d
xorl %r15d, %r15d
testl %ebp, %ebp
cmovgl %ebp, %r15d
subq $0x1, %r15
jb 0x7a41
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 0x71cee
addq $0x28, %rbx
jmp 0x7a14
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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, %rcx
movq %rdi, %rbx
movq (%rdi), %rsi
movq 0x30(%rsi), %r13
xorl %ebp, %ebp
pushq $0x1
popq %r14
leaq 0x8(%rsp), %rdi
movl (%rsi), %eax
movq %r13, %r15
movl %r14d, %edx
movl %ebp, %r12d
testq %r15, %r15
je 0x7af4
movq 0x30(%r15), %r13
cmpl %eax, (%r15)
jne 0x7a95
incl %edx
movq %r13, %r15
jmp 0x7a7d
imulq $0x28, %r12, %rax
leaq (%rsp,%rax), %r12
addq $0x30, %r12
cmpl $0xa, %edx
movq %rbx, (%rsp)
ja 0x7ab8
movl 0x20(%rbx), %r8d
movq %rcx, %rbx
callq 0x73ec
jmp 0x7ac4
movl 0x20(%rbx), %r8d
movq %rcx, %rbx
callq 0x7855
movq 0x28(%rsp), %rax
movq %rax, 0x20(%r12)
movups 0x8(%rsp), %xmm0
movups 0x18(%rsp), %xmm1
movups %xmm1, 0x10(%r12)
movups %xmm0, (%r12)
incl %ebp
movq %r15, %rsi
movq %rbx, %rcx
movq (%rsp), %rbx
jmp 0x7a70
imulq $0x28, %r12, %rax
leaq (%rsp,%rax), %r13
addq $0x30, %r13
cmpl $0xa, %edx
ja 0x7b18
movl 0x20(%rbx), %r8d
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x73ec
jmp 0x7b29
movl 0x20(%rbx), %r8d
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x7855
movq 0x20(%r15), %rax
movq %rax, 0x20(%r13)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups %xmm1, 0x10(%r13)
movups %xmm0, (%r13)
incl %ebp
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
movl %ebp, %edx
callq 0x79e8
leaq 0x48(%rsp), %rbx
xorl %r14d, %r14d
cmpq %r12, %r14
ja 0x7b73
movq (%rbx), %rdi
callq 0x34ff7
incq %r14
addq $0x28, %rbx
jmp 0x7b5d
addq $0x808, %rsp            # imm = 0x808
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/c45rules.c
// Function: is_pessimistic_error_rate_smaller
int is_pessimistic_error_rate_smaller(int Y1, int Y2, int E1, int E2)
{
/*!Last Changed 27.10.2003*/
 double ucfr, ucfrnegative;
 ucfr = (E1 + 0.0) / (Y1 + E1);
 ucfrnegative = (E1 + E2 + 0.0) / (Y1 + E1 + Y2 + E2);
 if (ucfr >= ucfrnegative)
   return YES;
 return NO;
}

// Assembly:
leal (%rcx,%rdx), %eax
movd %eax, %xmm0
movd %edx, %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
cvtdq2pd %xmm1, %xmm0
addl %edx, %edi
addl %ecx, %esi
addl %edi, %esi
movd %edi, %xmm1
movd %esi, %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]
xorl %eax, %eax
ucomisd %xmm1, %xmm0
setae %al
retq
// File: /workspace/github_c_makefile_star2_O2/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
leaq 0x18(%rdi), %rbp
movq 0x18(%rdi), %r15
movl (%rdi), %ecx
movq 0x30(%rdi), %rax
movq %rax, 0x30(%rsp)
movups (%rdi), %xmm0
movups 0x10(%rdi), %xmm1
movups 0x20(%rdi), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x7c(%rsp), %rsi
leaq 0x74(%rsp), %rdx
movq %rbx, %rdi
callq 0x71ab8
movq %r15, %rax
xorl %r13d, %r13d
leaq 0x70(%rsp), %r12
movq %rbp, 0x80(%rsp)
leaq 0x48(%r13), %r15
testq %r13, %r13
cmoveq %rbp, %r15
movq %rax, %rbp
testq %rbp, %rbp
je 0x7cf5
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x720e4
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
leaq 0x78(%rsp), %rsi
movq %r12, %rdx
callq 0x71ab8
movl 0x7c(%rsp), %edi
movl 0x78(%rsp), %esi
movl 0x74(%rsp), %edx
movl 0x70(%rsp), %ecx
callq 0x7b85
testl %eax, %eax
je 0x7cd3
pushq $0xe
popq %rcx
movq %rsp, %rdi
movq %rbp, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x71b91
movq %rbp, %rdi
callq 0x34ff7
movq (%r15), %rbp
movl 0x78(%rsp), %eax
movl %eax, 0x7c(%rsp)
movl 0x70(%rsp), %eax
movl %eax, 0x74(%rsp)
jmp 0x7c3a
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x7208c
movq 0x48(%rbp), %rax
movq %rbp, %r13
movq 0x80(%rsp), %rbp
jmp 0x7c2c
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/c45rules.c
// Function: generalize_c45rules
void generalize_c45rules(Ruleset* r, Instanceptr traindata)
{
 /*!Last Changed 27.10.2003*/
 Decisionruleptr rule;
 rule = r->start;
 while (rule)
  {
   generalize_rule(rule, traindata);
   rule = rule->next;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x7d2a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7bc4
addq $0x30, %r14
jmp 0x7d11
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0xc5b26(%rip), %r12     # 0xcd870
movq (%r12), %rax
movslq 0x10(%rax), %rdi
leaq 0x8dffc(%rip), %rdx     # 0x95d55
pushq $0x4
popq %rsi
pushq $0x3
popq %rcx
callq 0x35067
movq %rax, %r14
testq %r15, %r15
je 0x7da5
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 0x71ecd
testl %eax, %eax
jne 0x7d9f
movq %r15, %rdi
callq 0x2b47e
cltq
incl (%r14,%rax,4)
movq 0x10(%r15), %r15
jmp 0x7d67
movq (%r12), %rax
movl 0x10(%rax), %eax
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
pushq $-0x1
popq %rdx
cmpq %rcx, %rax
je 0x7dcd
cmpl %edx, (%r14,%rcx,4)
jle 0x7dc8
movl %ecx, 0x14(%rbx)
movl (%r14,%rcx,4), %edx
incq %rcx
jmp 0x7db6
movq %r14, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x34ff7
// File: /workspace/github_c_makefile_star2_O2/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 0x71374
movl %eax, %ebp
xorl %ebx, %ebx
testb $0x1, %bl
jne 0x81a2
movq (%r14), %r13
xorl %r12d, %r12d
xorl %r15d, %r15d
testq %r13, %r13
je 0x814e
movq 0x30(%r13), %rbx
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x721ae
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 0x71374
cmpl %ebp, %eax
jge 0x8138
movq %r13, 0x48(%rsp)
movq %r12, 0x40(%rsp)
pushq $0x1
popq %r15
movl %eax, %ebp
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x7217f
movq %r13, %r12
movq %rbx, %r13
jmp 0x80e8
testl %r15d, %r15d
sete %bl
je 0x80d6
movq %r14, %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %r15
movq %r15, %rdx
callq 0x721ae
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 0x71be8
movq %r15, %rdi
callq 0x34ff7
jmp 0x80d6
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 $0xffffffff, %r13d      # imm = 0xFFFFFFFF
leaq 0xc56a1(%rip), %r15     # 0xcd870
movl 0x30(%r14), %ecx
cmpq %r13, %rcx
je 0x8208
testl %ecx, %ecx
js 0x81f7
movq (%r15), %rax
imulq $0x340, %rcx, %r12      # imm = 0x340
movl 0x30f08(%rax,%r12), %ecx
testl %ecx, %ecx
je 0x81f7
cmpl $0x2, %ecx
jne 0x8229
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x81b1
movq 0x8(%r14), %r14
jmp 0x81cf
movq %r14, %rdi
callq 0x718c1
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7228a
cmpl $0x1, %ecx
jne 0x825e
xorl %r13d, %r13d
xorl %ebp, %ebp
movslq 0x30f20(%rax,%r12), %rax
cmpq %rax, %rbp
jge 0x825e
movq 0x10(%r14), %rsi
addq %r13, %rsi
movq %rbx, %rdi
callq 0x81b1
incq %rbp
movq (%r15), %rax
addq $0x160, %r13            # imm = 0x160
jmp 0x8233
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x935d1(%rip), %rsi     # 0x9b87f
movq %rax, %rdi
callq 0x40f0
xorl %r15d, %r15d
testq %rax, %rax
je 0x8354
movq %rax, %rbx
movslq %ebp, %r12
movq %r12, %rdi
shlq $0x4, %rdi
leaq 0x8db22(%rip), %rsi     # 0x95df8
pushq $0x6
popq %rdx
callq 0x34f59
movq %rax, %r14
testl %r12d, %r12d
cmovlel %r15d, %r12d
shlq $0x4, %r12
pushq $0x1
popq %rbp
movq %rsp, %r13
xorl %r15d, %r15d
cmpq %r15, %r12
je 0x834a
movq %r13, %rdi
leaq 0x8db04(%rip), %rsi     # 0x95e08
movl %ebp, %edx
xorl %eax, %eax
callq 0x41b0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x34175
movq %rax, %rbx
movq %rax, %rdi
leaq 0x919d3(%rip), %rsi     # 0x99cf8
leaq 0x63(%rsp), %rdx
xorl %eax, %eax
callq 0x4070
movq %rbx, %rdi
callq 0x39474
movq %rax, (%r14,%r15)
movq %rdx, 0x8(%r14,%r15)
addq $0x10, %r15
incl %ebp
jmp 0x82f5
movq %rbx, %rdi
callq 0x42a0
jmp 0x8357
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_O2/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 0x8dab1(%rip), %rsi     # 0x95e34
movl %edx, %ecx
xorl %eax, %eax
callq 0x42e0
testl %ebp, %ebp
movl $0x0, %eax
cmovgl %ebp, %eax
movq %rax, (%rsp)
movl %ebp, %r13d
leaq 0x97914(%rip), %r15     # 0x9fcb8
xorl %ebp, %ebp
cmpq (%rsp), %rbp
je 0x83de
xorl %r12d, %r12d
cmpq %r12, %r13
je 0x83ce
movq (%rbx,%rbp,8), %rax
movl (%rax,%r12,4), %edx
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x42e0
incq %r12
jmp 0x83af
pushq $0xa
popq %rdi
movq %r14, %rsi
callq 0x4150
incq %rbp
jmp 0x83a6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 $0x7a138, %rsp          # imm = 0x7A138
movq %rcx, %rbp
movq %rsi, %r14
movq %rdi, %r15
leaq 0xc5441(%rip), %rax     # 0xcd870
movq (%rax), %rax
movl 0x10(%rax), %ecx
incl %ecx
leaq 0x8d9f4(%rip), %rsi     # 0x95e32
xorl %eax, %eax
callq 0x42e0
leaq 0x90219(%rip), %r12     # 0x98665
leaq 0x10(%rsp), %r13
xorl %ebx, %ebx
testq %rbp, %rbp
je 0x84c9
movq %rbp, 0x8(%rsp)
movq %rbp, %rdi
callq 0x2b47e
movl %eax, 0x4(%rsp)
xorl %ebp, %ebp
leaq 0xc53fe(%rip), %rax     # 0xcd870
movq (%rax), %rax
movslq 0x10(%rax), %rax
cmpq %rax, %rbp
jge 0x84a6
movq %r13, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x35305
movq (%r14,%rbx,8), %rax
movsd (%rax,%rbp,8), %xmm0
movq %r15, %rdi
movq %r13, %rsi
movb $0x1, %al
callq 0x42e0
incq %rbp
jmp 0x846b
movq %r15, %rdi
leaq 0x98095(%rip), %rsi     # 0xa0545
movl 0x4(%rsp), %edx
xorl %eax, %eax
callq 0x42e0
movq 0x8(%rsp), %rbp
movq 0x10(%rbp), %rbp
incq %rbx
jmp 0x8453
addq $0x7a138, %rsp          # imm = 0x7A138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebp
leaq 0x8d6e1(%rip), %r15     # 0x95e4d
pushq $0x58
popq %rdi
pushq $0x2
popq %rdx
movq %r15, %rsi
callq 0x34f59
movq %rax, %rbx
andl $0x0, (%rax)
leaq 0xc50e9(%rip), %r13     # 0xcd870
movq (%r13), %rax
movl 0x10(%rax), %ecx
pushq $0x8
popq %r14
pushq $0x4
popq %r12
pushq $0x4
popq %r9
movq %r14, %rdi
movq %r12, %rsi
movl %ecx, %edx
movq %r15, %r8
callq 0x3509c
movq %rax, 0x18(%rbx)
movq (%r13), %rax
movslq 0x10(%rax), %rdi
pushq $0x5
popq %rcx
movq %r12, %rsi
movq %r15, %rdx
callq 0x35067
movq %rax, 0x8(%rbx)
movq (%r13), %rax
movslq 0x10(%rax), %rdi
pushq $0x6
popq %rcx
movq %r12, %rsi
movq %r15, %rdx
callq 0x35067
movq %rax, 0x10(%rbx)
movq (%r13), %rax
movl 0x10(%rax), %ecx
movl %ecx, 0x20(%rbx)
movl %ebp, 0x30(%rbx)
pushq $0x8
popq %r9
movq %r14, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq %r15, %r8
callq 0x3509c
movq %rax, 0x28(%rbx)
andq $0x0, 0x38(%rbx)
cmpq $0xb, %r14
je 0x881c
andq $0x0, (%rbx,%r14,8)
incq %r14
jmp 0x880c
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x34fc3
movq 0x8(%rbx), %rdi
callq 0x34ff7
movq 0x10(%rbx), %rdi
callq 0x34ff7
movq 0x28(%rbx), %rdi
movl 0x30(%rbx), %esi
callq 0x34fc3
movq %rbx, %rdi
popq %rbx
jmp 0x34ff7
// File: /workspace/github_c_makefile_star2_O2/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 0x2c3cc
movl %eax, %ebp
leaq 0x8d23b(%rip), %r15     # 0x95e8d
pushq $0x10
popq %rdi
pushq $0x3
popq %rdx
movq %r15, %rsi
callq 0x34f59
movq %rax, %rbx
leaq 0xc4c06(%rip), %r12     # 0xcd870
movq (%r12), %rax
movslq 0x10(%rax), %rdi
shlq $0x3, %rdi
pushq $0x4
popq %rdx
movq %r15, %rsi
callq 0x34f59
movq %rax, 0x8(%rbx)
movq (%r14), %rdi
callq 0x108c8
movq %rax, %r14
movq (%r12), %rax
movl 0x10(%rax), %esi
cvtsi2sd %ebp, %xmm0
xorl %eax, %eax
testl %esi, %esi
movl $0x0, %ecx
cmovgl %esi, %ecx
cmpq %rax, %rcx
je 0x8cc4
cvtsi2sdl (%r14,%rax,4), %xmm1
divsd %xmm0, %xmm1
movq 0x8(%rbx), %rdx
movsd %xmm1, (%rdx,%rax,8)
incq %rax
jmp 0x8ca7
movq %r14, %rdi
callq 0x336b5
movl %eax, (%rbx)
movq %r14, %rdi
callq 0x34ff7
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0xc4b7f(%rip), %rcx     # 0xcd870
movq (%rcx), %rcx
movslq 0x10(%rcx), %rcx
xorl %esi, %esi
cmpq %rcx, %rsi
jge 0x8d13
movq 0x8(%rdx), %rdi
movsd (%rdi,%rsi,8), %xmm0
movsd %xmm0, (%r8,%rsi,8)
incq %rsi
jmp 0x8cfa
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x8d16b(%rip), %rsi     # 0x95e9e
pushq $0x4
popq %rdx
callq 0x34f59
movq %rax, %r15
xorl %ebp, %ebp
movq %rsp, %r12
movslq (%rbx), %rax
cmpq %rax, %rbp
jge 0x8d91
xorl %edi, %edi
pushq $0x1
popq %rsi
callq 0x1ac98
movq %rax, %r13
movq (%r14), %rdi
callq 0x2c859
movq %rax, 0x20(%r13)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x1a545
andq $0x0, (%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x1aad3
movq (%rsp), %rdi
callq 0x2c010
movq %r13, (%r15,%rbp,8)
incq %rbp
jmp 0x8d43
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq