LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: estimate_sigma_square_with_knn
double estimate_sigma_square_with_knn(Instanceptr data, int nearcount)
{
	/*!Last Changed 01.03.2005*/
	Instanceptr tmp, *nearestneighbors;
	int N = 0, i;
	double result = 0, yvalue, realvalue, h;
	tmp = data;
	while (tmp)
	 {
		 nearestneighbors = find_nearest_neighbors(data, tmp, nearcount);
			yvalue = 0;
			for (i = 0; i < nearcount; i++)
  			yvalue += give_regressionvalue(nearestneighbors[i]);
			yvalue /= nearcount;
			safe_free(nearestneighbors);
   realvalue = give_regressionvalue(tmp);
			result += (double) ((realvalue - yvalue) * (realvalue - yvalue));
			N++;
			tmp = tmp->next;
	 }
	h = pow(N, 0.8) / nearcount;
 return result / (N - h);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cvtsi2sd %esi, %xmm0
movsd %xmm0, 0x18(%rsp)
testq %rdi, %rdi
je 0x76fa7
movl %esi, %r14d
movl %esi, %r13d
xorpd %xmm0, %xmm0
movsd %xmm0, 0x10(%rsp)
xorl %ebp, %ebp
movq %rdi, %r15
movq %rdi, 0x20(%rsp)
movq %r15, %rsi
movl %r14d, %edx
callq 0x30ca9
movq %rax, %r12
xorpd %xmm0, %xmm0
movl %r14d, %ebx
testl %r14d, %r14d
jle 0x76f51
xorl %r14d, %r14d
movsd %xmm0, 0x8(%rsp)
movq (%r12,%r14,8), %rdi
callq 0x2eaee
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
incq %r14
cmpq %r14, %r13
jne 0x76f24
divsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x39194
movq %r15, %rdi
callq 0x2eaee
subsd 0x8(%rsp), %xmm0
mulsd %xmm0, %xmm0
movsd 0x10(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
incl %ebp
movq 0x10(%r15), %r15
testq %r15, %r15
movq 0x20(%rsp), %rdi
movl %ebx, %r14d
jne 0x76f07
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
jmp 0x76fb1
xorpd %xmm0, %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x2dcdf(%rip), %xmm1    # 0xa4c98
movsd %xmm0, 0x8(%rsp)
callq 0x42f0
divsd 0x18(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rise.c
// Function: most_specific_generalization
Decisionruleptr most_specific_generalization(Decisionruleptr rule, Instanceptr nearest)
{
 int fno;
 Decisionruleptr newrule;
 Decisionconditionptr current, before = NULL, next;
 newrule = create_copy_of_rule(rule);
 newrule->next = rule->next;
 current = newrule->start;
 while (current)
  {
   next = current->next;
   fno = current->featureindex;
   switch (current_dataset->features[fno].type)
    {
     case  STRING:if (nearest->values[fno].stringindex != current->value)
                    remove_condition_after(newrule, before, current);
                  else
                    before = current;
                  break;
     case INTEGER:if (nearest->values[fno].intvalue > current->upperlimit)
                    current->upperlimit = nearest->values[fno].intvalue;
                  else
                    if (nearest->values[fno].intvalue < current->lowerlimit)
                      current->lowerlimit = nearest->values[fno].intvalue;
                  before = current;
                  break;
     case    REAL:if (nearest->values[fno].floatvalue > current->upperlimit)
                    current->upperlimit = nearest->values[fno].floatvalue;
                  else
                    if (nearest->values[fno].floatvalue < current->lowerlimit)
                      current->lowerlimit = nearest->values[fno].floatvalue;
                  before = current;
                  break;
    }
   current = next;
  }
 return newrule;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
callq 0x7a54a
movq %rax, %r14
movq 0x30(%r15), %rax
movq %rax, 0x30(%r14)
movq 0x18(%r14), %r12
testq %r12, %r12
je 0x785dd
xorl %r15d, %r15d
leaq 0x5a322(%rip), %r13     # 0xd2870
movq %r12, %rdx
movq 0x48(%r12), %r12
movslq (%rdx), %rax
movq (%r13), %rcx
imulq $0x340, %rax, %rsi      # imm = 0x340
movl 0x30f08(%rcx,%rsi), %ecx
testl %ecx, %ecx
je 0x785a8
cmpl $0x2, %ecx
je 0x7859e
cmpl $0x1, %ecx
jne 0x785d4
movq (%rbx), %rcx
xorps %xmm0, %xmm0
cvtsi2sdl (%rcx,%rax,8), %xmm0
movsd 0x8(%rdx), %xmm1
ucomisd %xmm0, %xmm1
jne 0x78591
jnp 0x785d1
movq %r14, %rdi
movq %r15, %rsi
callq 0x7af03
jmp 0x785d4
movq (%rbx), %rcx
movsd (%rcx,%rax,8), %xmm0
jmp 0x785b3
movq (%rbx), %rcx
xorps %xmm0, %xmm0
cvtsi2sdl (%rcx,%rax,8), %xmm0
ucomisd 0x10(%rdx), %xmm0
jbe 0x785c1
movsd %xmm0, 0x10(%rdx)
jmp 0x785d1
movsd 0x18(%rdx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x785d1
movsd %xmm0, 0x18(%rdx)
movq %rdx, %r15
testq %r12, %r12
jne 0x7854e
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rise.c
// Function: nearest_example_not_covered
Instanceptr nearest_example_not_covered(Model_riseptr m, Decisionruleptr rule, Instanceptr instances)
{
 Instanceptr tmp, nearest = NULL;
 double distance, mindistance = +INT_MAX;
 tmp = instances;
 while (tmp)
  {
   if (give_classno(tmp) == rule->classno && !rule_cover_instance(tmp, *rule))
    {
     distance = distance_to_rule(m, tmp, rule);
     if (distance < mindistance)
      {
       mindistance = distance;
       nearest = tmp;
      }
    }
   tmp = tmp->next;
  }
 return nearest;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
testq %rdx, %rdx
je 0x78688
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movsd 0x29f09(%rip), %xmm0    # 0xa2518
movsd %xmm0, 0x40(%rsp)
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0x2eaca
cmpl (%r14), %eax
jne 0x7867d
movq 0x30(%r14), %rax
movq %rax, 0x30(%rsp)
movupd (%r14), %xmm0
movupd 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x20(%rsp)
movupd %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x7a0fc
testl %eax, %eax
jne 0x7867d
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x7869a
movsd 0x40(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x7867d
movq %rbx, %r12
movsd %xmm0, 0x40(%rsp)
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x78618
jmp 0x7868b
xorl %r12d, %r12d
movq %r12, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rise.c
// Function: nearest_rule
Decisionruleptr nearest_rule(Model_riseptr m, Instanceptr instance, int leaveoneout)
{
 Decisionruleptr rule, nearest = NULL;
 double mindistance = +INT_MAX, distance, minlaplace = +INT_MAX, laplace;
 rule = m->rules.start;
 while (rule)
  {
   if (rule->covered + rule->falsepositives > 1 || !leaveoneout)
    {
     distance = distance_to_rule(m, instance, rule);
     if (distance < mindistance)
      {
       mindistance = distance;
       nearest = rule;
       minlaplace = laplace_estimate_of_rule_kclass(*rule);
      }
     else
       if (distance == mindistance)
        {
         laplace = laplace_estimate_of_rule_kclass(*rule);
         if (laplace < minlaplace)
          {
           minlaplace = laplace;
           nearest = rule;           
          }
         else
           if (laplace == minlaplace && m->counts[rule->classno] > m->counts[nearest->classno])
             nearest = rule;
        }
    }
   rule = rule->next;
  }
 return nearest;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq (%rdi), %r12
testq %r12, %r12
je 0x7892e
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movsd 0x29cf1(%rip), %xmm1    # 0xa2518
xorl %r13d, %r13d
movsd %xmm1, 0x48(%rsp)
testl %ebx, %ebx
je 0x78847
movl 0x8(%r12), %eax
addl 0x4(%r12), %eax
cmpl $0x2, %eax
jl 0x7891e
movsd %xmm1, 0x40(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x7869a
movsd 0x48(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x788a4
movq 0x30(%r12), %rax
movq %rax, 0x30(%rsp)
movups (%r12), %xmm3
movsd %xmm0, 0x48(%rsp)
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm3, (%rsp)
callq 0x7b366
movapd %xmm0, %xmm1
movq %r12, %r13
jmp 0x7891e
ucomisd %xmm1, %xmm0
jne 0x788f1
jp 0x788f1
movq 0x30(%r12), %rax
movq %rax, 0x30(%rsp)
movupd (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
callq 0x7b366
movsd 0x40(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x788f9
movq %r12, %r13
movapd %xmm0, %xmm1
jmp 0x7891e
movsd 0x40(%rsp), %xmm1
jmp 0x7891e
ucomisd %xmm1, %xmm0
jne 0x7891e
jp 0x7891e
movq 0x30(%r15), %rcx
movslq (%r12), %rax
movl (%rcx,%rax,4), %edx
movslq (%r13), %rsi
movq %r12, %rax
cmpl (%rcx,%rsi,4), %edx
jg 0x7891b
movq %r13, %rax
movq %rax, %r13
movq 0x30(%r12), %r12
testq %r12, %r12
jne 0x78830
jmp 0x78931
xorl %r13d, %r13d
movq %r13, %rax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rise.c
// Function: create_rule_from_instance
Decisionruleptr create_rule_from_instance(Instanceptr inst)
{
 int i;
 Decisionruleptr result;
 Decisionconditionptr newcondition;
 result = empty_rule(give_classno(inst));
 for (i = 0; i < current_dataset->featurecount; i++)
   if (current_dataset->features[i].type != CLASSDEF)
    {
     newcondition = empty_condition();
     newcondition->conditiontype = UNIVARIATE_CONDITION;
     newcondition->featureindex = i;
     newcondition->freeparam = 1;
     switch (current_dataset->features[i].type)
      {
       case INTEGER:newcondition->lowerlimit = inst->values[i].intvalue;
                    newcondition->upperlimit = inst->values[i].intvalue;
                    newcondition->comparison = '*';
                    break;
       case    REAL:newcondition->lowerlimit = inst->values[i].floatvalue;
                    newcondition->upperlimit = inst->values[i].floatvalue;
                    newcondition->comparison = '*';
                    break;
       case  STRING:newcondition->comparison = '=';
                    newcondition->value = inst->values[i].stringindex;
                    break;
      }
     add_condition(result, newcondition);
    }
 return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
callq 0x2eaca
movl %eax, %edi
callq 0x7a713
movq %rax, %r14
leaq 0x59f0c(%rip), %r15     # 0xd2870
movq (%r15), %rax
cmpl $0x0, 0x1bc(%rax)
jle 0x78a24
movl $0x61e1, %r12d          # imm = 0x61E1
xorl %r13d, %r13d
cmpl $0x3, (%rax,%r12,8)
je 0x78a0a
xorl %eax, %eax
callq 0x7aa9e
movl %r13d, (%rax)
movq $0x1, 0x3c(%rax)
movq (%r15), %rcx
movl (%rcx,%r12,8), %ecx
cmpl $0x2, %ecx
je 0x789e2
cmpl $0x1, %ecx
je 0x789cb
testl %ecx, %ecx
jne 0x789ff
movq (%rbx), %rcx
xorps %xmm0, %xmm0
cvtsi2sdl (%rcx,%r13,8), %xmm0
movsd %xmm0, 0x18(%rax)
xorps %xmm0, %xmm0
cvtsi2sdl (%rcx,%r13,8), %xmm0
jmp 0x789f6
movb $0x3d, 0x4(%rax)
movq (%rbx), %rcx
xorps %xmm0, %xmm0
cvtsi2sdl (%rcx,%r13,8), %xmm0
movsd %xmm0, 0x8(%rax)
jmp 0x789ff
movq (%rbx), %rcx
movsd (%rcx,%r13,8), %xmm0
movsd %xmm0, 0x18(%rax)
movsd (%rcx,%r13,8), %xmm0
movsd %xmm0, 0x10(%rax)
movb $0x2a, 0x4(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x7a77b
incq %r13
movq (%r15), %rax
movslq 0x1bc(%rax), %rcx
addq $0x68, %r12
cmpq %rcx, %r13
jl 0x7897d
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rise.c
// Function: distance_between_discrete_values_of_feature
matrix distance_between_discrete_values_of_feature(int*** feature_counts, int fno)
{
 int i, j, k, count = current_dataset->features[fno].valuecount, *counts;
 double distance;
 matrix result;
 counts = safecalloc(count, sizeof(int), "distance_between_discrete_values_of_feature", 3);
 result = matrix_alloc(count, count);
 for (i = 0; i < count; i++)
   for (j = 0; j < current_dataset->classno; j++)
     counts[i] += feature_counts[j][fno][i];
 for (i = 0; i < count; i++)
   for (j = i + 1; j < count; j++)
    {
     distance = 0.0;
     for (k = 0; k < current_dataset->classno; k++)
       if (counts[i] > 0 && counts[j] > 0)
         distance += fabs(feature_counts[k][fno][i] / (counts[i] + 0.0) - feature_counts[k][fno][j] / (counts[j] + 0.0));
     result.values[i][j] = distance * distance;
     result.values[j][i] = distance * distance;
    }
 safe_free(counts);
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x59e27(%rip), %r12     # 0xd2870
movq (%r12), %rax
movslq %esi, %rbp
imulq $0x340, %rbp, %rcx      # imm = 0x340
movslq 0x30f20(%rax,%rcx), %r14
leaq 0x341bf(%rip), %rdx     # 0xacc25
movl $0x4, %esi
movq %r14, %rdi
movl $0x3, %ecx
callq 0x39210
movq %rax, %r15
movl %r14d, %edi
movl %r14d, %esi
callq 0x3c6e5
movq %rax, 0x8(%rsp)
movq %rdx, %r13
testq %r14, %r14
jle 0x78ac4
movq (%r12), %rax
xorl %ecx, %ecx
cmpl $0x0, 0x10(%rax)
jle 0x78abc
xorl %edx, %edx
movq (%rbx,%rdx,8), %rsi
movq (%rsi,%rbp,8), %rsi
movl (%rsi,%rcx,4), %esi
addl %esi, (%r15,%rcx,4)
incq %rdx
movslq 0x10(%rax), %rsi
cmpq %rsi, %rdx
jl 0x78aa1
incq %rcx
cmpq %r14, %rcx
jne 0x78a99
testl %r14d, %r14d
jle 0x78b98
movq (%r12), %rax
movq %rax, 0x10(%rsp)
movl $0x1, %ecx
xorl %edx, %edx
movapd 0x2a6fb(%rip), %xmm0    # 0xa31e0
movq %rdx, %rsi
incq %rdx
cmpq %r14, %rdx
jae 0x78b8c
movq 0x10(%rsp), %rax
movl 0x10(%rax), %edi
movq (%r13,%rsi,8), %r8
movq %rcx, %r9
testl %edi, %edi
jle 0x78b68
movl (%r15,%rsi,4), %r10d
xorps %xmm2, %xmm2
cvtsi2sd %r10d, %xmm2
xorpd %xmm1, %xmm1
xorl %r11d, %r11d
testl %r10d, %r10d
jle 0x78b5e
movl (%r15,%r9,4), %r12d
testl %r12d, %r12d
jle 0x78b5e
movq (%rbx,%r11,8), %rax
movq (%rax,%rbp,8), %rax
xorps %xmm3, %xmm3
cvtsi2sdl (%rax,%rsi,4), %xmm3
divsd %xmm2, %xmm3
xorps %xmm4, %xmm4
cvtsi2sdl (%rax,%r9,4), %xmm4
xorps %xmm5, %xmm5
cvtsi2sd %r12d, %xmm5
divsd %xmm5, %xmm4
subsd %xmm4, %xmm3
andpd %xmm0, %xmm3
addsd %xmm3, %xmm1
incq %r11
cmpq %r11, %rdi
jne 0x78b1b
jmp 0x78b6c
xorpd %xmm1, %xmm1
mulsd %xmm1, %xmm1
movsd %xmm1, (%r8,%r9,8)
movq (%r13,%r9,8), %rax
movsd %xmm1, (%rax,%rsi,8)
incq %r9
cmpq %r14, %r9
jne 0x78b04
incq %rcx
cmpq %r14, %rdx
jne 0x78ae5
movq %r15, %rdi
callq 0x39194
movq 0x8(%rsp), %rax
movq %r13, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rise.c
// Function: accuracy_of_ruleset
int accuracy_of_ruleset(Decisionruleptr* nearestrule, Instanceptr instances)
{
 int accuracy = 0, i = 0;
 Decisionruleptr rule;
 Instanceptr tmp;
 tmp = instances;
 while (tmp)
  {
   rule = nearestrule[i];
   if (rule)
    {
     if (give_classno(tmp) == rule->classno)
       accuracy++;
    }
   i++;
   tmp = tmp->next;
  }
 return accuracy;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x78dcb
movq %rsi, %rbx
movq %rdi, %r14
xorl %ebp, %ebp
movq (%r14), %r15
testq %r15, %r15
je 0x78dbc
movq %rbx, %rdi
callq 0x2eaca
xorl %ecx, %ecx
cmpl (%r15), %eax
sete %cl
addl %ecx, %ebp
movq 0x10(%rbx), %rbx
addq $0x8, %r14
testq %rbx, %rbx
jne 0x78da2
jmp 0x78dcd
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: complexity_of_ruleset
int complexity_of_ruleset(Ruleset set, int positive)
{
 /*!Last Changed 19.02.2005*/
	int result = 0;
	Decisionruleptr rule;
	rule = set.start;
	while (rule)
	 {
		 if (rule->classno == positive)
				 result += complexity_of_rule(rule);
		 rule = rule->next;
	 }
	return result; 
}

// Assembly:
movq 0x8(%rsp), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x7929d
cmpl %edi, (%rcx)
jne 0x79297
movq 0x18(%rcx), %rsi
xorl %edx, %edx
testq %rsi, %rsi
je 0x79293
movl 0x3c(%rsi), %r8d
addl %r8d, %edx
incl %edx
movq 0x48(%rsi), %rsi
jmp 0x7927f
addl %eax, %edx
movl %edx, %eax
movq 0x30(%rcx), %rcx
jmp 0x79270
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: ruleset_complexity
int ruleset_complexity(Ruleset set)
{
 /*!Last Changed 20.02.2005*/
	int result = 0;
	Decisionruleptr rule;
	rule = set.start;
	while (rule)
	 {
			result += complexity_of_rule(rule);
		 rule = rule->next;
	 }
	return result;
}

// Assembly:
movq 0x8(%rsp), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x792d2
movq 0x18(%rcx), %rsi
movl $0x0, %edx
testq %rsi, %rsi
je 0x792ca
xorl %edx, %edx
movl 0x3c(%rsi), %edi
addl %edi, %edx
incl %edx
movq 0x48(%rsi), %rsi
testq %rsi, %rsi
jne 0x792ba
addl %edx, %eax
movq 0x30(%rcx), %rcx
jmp 0x792a5
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: description_length_of_rule
double description_length_of_rule(Decisionrule r, int possibleconditioncount)
{
 /*!Last Changed 02.12.2003*/
 double result = 0;
 if (r.decisioncount != 0)
   result += log2(r.decisioncount);
 if (log2(r.decisioncount) > 1)
   result += log2(log2(r.decisioncount));
 result += S(possibleconditioncount, r.decisioncount, (r.decisioncount + 0.0) / possibleconditioncount);
 return result / 2;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
movl %edi, %ebp
movl 0x58(%rsp), %ebx
cvtsi2sd %ebx, %xmm0
testl %ebx, %ebx
movsd %xmm0, 0x10(%rsp)
je 0x79390
movsd 0x10(%rsp), %xmm0
callq 0x38e99
xorpd %xmm1, %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x10(%rsp), %xmm0
jmp 0x7939a
xorpd %xmm1, %xmm1
movsd %xmm1, 0x8(%rsp)
callq 0x38e99
ucomisd 0x29179(%rip), %xmm0    # 0xa2520
jbe 0x793c9
movsd 0x10(%rsp), %xmm0
callq 0x38e99
callq 0x38e99
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
xorps %xmm1, %xmm1
cvtsi2sd %ebp, %xmm1
movsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
movl %ebp, %edi
movl %ebx, %esi
callq 0x792d3
addsd 0x8(%rsp), %xmm0
mulsd 0x29927(%rip), %xmm0    # 0xa2d18
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: description_length_of_ruleset
double description_length_of_ruleset(Ruleset r, int positive)
{
 /*!Last Changed 02.12.2003 added description_length_of_rule*/
 /*!Last Changed 18.05.2003*/
 double result = 0;
 Decisionruleptr tmp;
 tmp = r.start;
 while (tmp)
  {
   if (tmp->classno == positive || positive == -1)
     result += description_length_of_rule(*tmp, r.possibleconditioncount);
   tmp = tmp->next;
  }
 return result;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq 0x60(%rsp), %r14
testq %r14, %r14
je 0x79476
movl %edi, %ebx
leaq 0x60(%rsp), %rax
movl 0x20(%rax), %ebp
xorps %xmm0, %xmm0
cmpl $-0x1, %ebx
je 0x79421
cmpl %ebx, (%r14)
jne 0x7946b
movq 0x30(%r14), %rax
movq %rax, 0x30(%rsp)
movsd %xmm0, 0x38(%rsp)
movupd (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movl %ebp, %edi
callq 0x79355
movsd 0x38(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x38(%rsp)
movsd 0x38(%rsp), %xmm0
movq 0x30(%r14), %r14
testq %r14, %r14
jne 0x79417
jmp 0x79479
xorps %xmm0, %xmm0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: description_length_of_exceptions
double description_length_of_exceptions(int C, int U, int fp, int fn, double proportion)
{
 /*!Last Changed 24.11.2003 added S*/
 /*!Last Changed 04.11.2003 added extra checks for zero division*/
 /*!Last Changed 12.06.2003 added proportion*/
 /*!Last Changed 19.05.2003*/
 double result = 0; 
 int e = fp + fn;
 result = result + log2(C + U + 1);
 if (C >= U)
  {
   if (C != 0)
     result += S(C, fp, (proportion * (e + 0.0)) / C);
   if (U != 0)
     result += S(U, fn, (fn + 0.0) / U);
  }
 else
  {
   proportion = 1 - proportion;
   if (C != 0)
     result += S(C, fp, (fp + 0.0) / C);
   if (U != 0)
     result += S(U, fn, (proportion * (e + 0.0)) / U);
  }
 return result / 2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, 0x8(%rsp)
movl %ecx, %ebx
movl %edx, %r15d
movl %esi, %r14d
movl %edi, %r12d
leal (%rbx,%r15), %ebp
leal (%r12,%r14), %eax
incl %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
callq 0x38e99
xorpd %xmm1, %xmm1
addsd %xmm0, %xmm1
cmpl %r14d, %r12d
jge 0x7951d
testl %r12d, %r12d
je 0x794f4
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
movsd %xmm1, (%rsp)
xorps %xmm1, %xmm1
cvtsi2sd %r12d, %xmm1
divsd %xmm1, %xmm0
movl %r12d, %edi
movl %r15d, %esi
callq 0x792d3
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
testl %r14d, %r14d
je 0x79584
movsd %xmm1, (%rsp)
movsd 0x29016(%rip), %xmm1    # 0xa2520
subsd 0x8(%rsp), %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
mulsd %xmm1, %xmm0
jmp 0x79565
testl %r12d, %r12d
je 0x79554
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
mulsd 0x8(%rsp), %xmm0
movsd %xmm1, (%rsp)
xorps %xmm1, %xmm1
cvtsi2sd %r12d, %xmm1
divsd %xmm1, %xmm0
movl %r12d, %edi
movl %r15d, %esi
callq 0x792d3
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
testl %r14d, %r14d
je 0x79584
movsd %xmm1, (%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %r14d, %xmm1
divsd %xmm1, %xmm0
movl %r14d, %edi
movl %ebx, %esi
callq 0x792d3
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
mulsd 0x2978c(%rip), %xmm1    # 0xa2d18
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: error_of_condition
int error_of_condition(Decisionconditionptr c, Instanceptr list, int positive)
{
	/*!Last Changed 21.01.2004*/
	int error = 0;
	Instanceptr tmp;
	tmp = list;
	while (tmp)
	 {
		 if (condition_cover_instance(tmp, c))
			 {
				 if (give_classno(tmp) != positive)
						 error++;
			 }
			else
				 if (give_classno(tmp) == positive)
						 error++;
		 tmp = tmp->next;
	 }
	return error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rsi, %rsi
je 0x795e5
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
xorl %ebp, %ebp
movq %r14, %rdi
movq %r15, %rsi
callq 0x795f2
testl %eax, %eax
sete %r12b
movq %r14, %rdi
callq 0x2eaca
cmpl %ebx, %eax
setne %al
xorb %r12b, %al
movzbl %al, %eax
addl %eax, %ebp
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x795b4
jmp 0x795e7
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: count_examples_for_condition
void count_examples_for_condition(Decisionconditionptr c, int* p, int* n, int posclass, Instanceptr list)
{
	/*!Last Changed 02.12.2003*/
	Instanceptr tmp;
	*p = 0;
	*n = 0;
	tmp = list;
	while (tmp)
	 {
		 if (condition_cover_instance(tmp, c))
    {
				 if (give_classno(tmp) == posclass)
						 (*p)++;
					else
						 (*n)++;
    }
		 tmp = tmp->next;
	 }
}

// Assembly:
xorl %eax, %eax
movl %eax, (%rsi)
movl %eax, (%rdx)
testq %r8, %r8
je 0x7989f
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %rbx
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x795f2
testl %eax, %eax
je 0x7988e
movq %rbx, %rdi
callq 0x2eaca
movq %r15, %rcx
cmpl %ebp, %eax
je 0x7988c
movq %r14, %rcx
incl (%rcx)
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x7986b
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: error_of_ruleset
int error_of_ruleset(Ruleset set,Instanceptr traindata)
{
	/*!Last Changed 14.01.2004*/
 /*!Last Changed 04.11.2003*/
 int instanceclassno, covered, error;
 Instanceptr test = traindata;
	Decisionruleptr tmp;
	error = 0;
 while (test)
  {
   instanceclassno = give_classno(test);
			covered = 0;
			tmp = set.start;
			while (tmp)
			 {
				 if (rule_cover_instance(test, *tmp))
					 {
       if (instanceclassno != tmp->classno)
								 error++;
							covered = 1;
							break;
					 }
				 tmp = tmp->next;
			 }
			if (!covered)
				 if (instanceclassno != set.defaultclass)
						 error++;
   test=test->next;
  }
	return error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x7a0e9
movq %rdi, %rbx
leaq 0x50(%rsp), %rax
movq (%rax), %r12
testq %r12, %r12
sete 0xb(%rsp)
movl 0x14(%rax), %eax
movl %eax, 0xc(%rsp)
xorl %ebp, %ebp
movq %r12, 0x10(%rsp)
movq %rbx, %rdi
callq 0x2eaca
movl %eax, %r14d
testq %r12, %r12
je 0x7a0c9
movb 0xb(%rsp), %r13b
movq 0x18(%r12), %r15
testq %r15, %r15
je 0x7a0b7
movq %rbx, %rdi
movq %r15, %rsi
callq 0x795f2
testl %eax, %eax
je 0x7a0a7
movq 0x48(%r15), %r15
jmp 0x7a08d
movq 0x30(%r12), %r12
testq %r12, %r12
sete %r13b
jne 0x7a088
jmp 0x7a0c2
xorl %eax, %eax
cmpl (%r12), %r14d
setne %al
addl %eax, %ebp
movq 0x10(%rsp), %r12
jmp 0x7a0ce
movb 0xb(%rsp), %r13b
cmpl 0xc(%rsp), %r14d
setne %al
andb %r13b, %al
movzbl %al, %eax
addl %eax, %ebp
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x7a073
jmp 0x7a0eb
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: exception_handling
void exception_handling(Ruleset r, Instanceptr instances, int positive, int* C, int* U, int* fp, int* fn)
{
	/*!Last Changed 19.05.2003 More than two classes are considered again*/
 /*!Last Changed 18.05.2003*/
	Instanceptr tmp = instances;
	Decisionruleptr rule;
	int covered, instanceclassno;
 while (tmp)
	 {
	  instanceclassno = give_classno(tmp);
		 rule = r.start;
			covered = 0;
			while (rule)
			 {
				 if ((rule->classno == positive || positive == -1) && rule_cover_instance(tmp, *rule))
					 {
						 covered = 1;
							(*C)++;
				   if (instanceclassno != rule->classno)
								 (*fp)++;
						 break;
					 }
				 rule = rule->next;
			 }
			if (!covered)
			 {
				 (*U)++;
				 if (instanceclassno == positive || (positive == -1 && instanceclassno != r.defaultclass))
						 (*fn)++;
			 }
		 tmp = tmp -> next;
	 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, 0x8(%rsp)
movq %r8, 0x20(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
testq %rdi, %rdi
je 0x7a20a
movl %esi, %ebp
movq %rdi, %r13
leaq 0x60(%rsp), %rax
movq (%rax), %rbx
movl 0x14(%rax), %eax
movl %eax, 0x4(%rsp)
movq %r13, %rdi
callq 0x2eaca
movl %eax, %r15d
testq %rbx, %rbx
je 0x7a1d3
movq %rbx, %r12
cmpl $-0x1, %ebp
je 0x7a1a0
cmpl %ebp, (%r12)
je 0x7a1a0
movq 0x30(%r12), %r12
testq %r12, %r12
jne 0x7a189
jmp 0x7a1d3
movq 0x18(%r12), %r14
testq %r14, %r14
je 0x7a1bf
movq %r13, %rdi
movq %r14, %rsi
callq 0x795f2
testl %eax, %eax
je 0x7a194
movq 0x48(%r14), %r14
jmp 0x7a1a5
movq 0x18(%rsp), %rax
incl (%rax)
movq 0x20(%rsp), %rax
cmpl (%r12), %r15d
jne 0x7a1fb
jmp 0x7a1fd
cmpl $-0x1, %ebp
setne %cl
movq 0x10(%rsp), %rax
incl (%rax)
cmpl 0x4(%rsp), %r15d
sete %dl
movq 0x8(%rsp), %rax
cmpl %ebp, %r15d
je 0x7a1fb
orb %dl, %cl
movq 0x8(%rsp), %rax
jne 0x7a1fd
incl (%rax)
movq 0x10(%r13), %r13
testq %r13, %r13
jne 0x7a176
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: copy_of_condition
Decisioncondition copy_of_condition(Decisioncondition condition)
{
	/* Last Changed 04.10.2004*/
	Decisioncondition result;
 result.conditiontype = condition.conditiontype;
	result.comparison = condition.comparison;
	result.featureindex = condition.featureindex;
 result.upperlimit = condition.upperlimit;
 result.lowerlimit = condition.lowerlimit;
	result.w0 = condition.w0;
	if (in_list(condition.featureindex, 2, LINEAR, QUADRATIC))
		 result.w = matrix_copy(condition.w);
	result.value = condition.value;
	result.datasize = condition.datasize;
	result.freeparam = condition.freeparam;
	if (condition.featureindex == DISCRETEMIX)
	  result.ksplit = copy_of_korderingsplit(condition.ksplit);
	result.next = NULL;
	return result;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x40(%rsp), %r14
movl 0x40(%r14), %eax
movl %eax, 0x40(%rdi)
movb 0x4(%r14), %al
movb %al, 0x4(%rdi)
movl (%r14), %edi
movl %edi, (%rbx)
movsd 0x10(%r14), %xmm0
movsd %xmm0, 0x10(%rbx)
movsd 0x18(%r14), %xmm0
movsd %xmm0, 0x18(%rbx)
movsd 0x30(%r14), %xmm0
movsd %xmm0, 0x30(%rbx)
movl $0x2, %esi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
xorl %eax, %eax
callq 0x39a80
testl %eax, %eax
je 0x7a410
movq 0x20(%r14), %rdi
movq 0x28(%r14), %rsi
callq 0x3ca3c
movq %rax, 0x20(%rbx)
movq %rdx, 0x28(%rbx)
movsd 0x8(%r14), %xmm0
movsd %xmm0, 0x8(%rbx)
movl 0x38(%r14), %eax
movl %eax, 0x38(%rbx)
movl 0x3c(%r14), %eax
movl %eax, 0x3c(%rbx)
cmpl $-0x5, (%r14)
jne 0x7a44b
leaq 0x50(%rbx), %rdi
movups 0x50(%r14), %xmm0
movups 0x60(%r14), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x31e4c
movq $0x0, 0x48(%rbx)
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: create_copy_of_condition
Decisionconditionptr create_copy_of_condition(Decisionconditionptr condition)
{
	/* Last Changed 02.02.2004 added safemalloc*/
	/* Last Changed 27.01.2004*/
	/* Last Changed 13.01.2004*/
	/* Last Changed 20.05.2003*/
	Decisionconditionptr result = safemalloc(sizeof(Decisioncondition), "create_copy_of_condition", 1);
	result->comparison = condition->comparison;
	result->featureindex = condition->featureindex;
	result->conditiontype = condition->conditiontype;
	result->upperlimit = condition->upperlimit;
	result->lowerlimit = condition->lowerlimit;
	result->w0 = condition->w0;
	if (in_list(condition->featureindex, 2, LINEAR, QUADRATIC))
		 result->w = matrix_copy(condition->w);
	result->value = condition->value;
	result->datasize = condition->datasize;
	result->freeparam = condition->freeparam;
	if (condition->featureindex == DISCRETEMIX)
  	result->ksplit = copy_of_korderingsplit(condition->ksplit);
	result->next = NULL;
	return result;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
leaq 0x32879(%rip), %rsi     # 0xacce8
movl $0x70, %edi
movl $0x1, %edx
callq 0x390f5
movq %rax, %rbx
movb 0x4(%r14), %al
movb %al, 0x4(%rbx)
movl (%r14), %eax
movl %eax, (%rbx)
movl 0x40(%r14), %eax
movl %eax, 0x40(%rbx)
movsd 0x10(%r14), %xmm0
movsd %xmm0, 0x10(%rbx)
movsd 0x18(%r14), %xmm0
movsd %xmm0, 0x18(%rbx)
movsd 0x30(%r14), %xmm0
movsd %xmm0, 0x30(%rbx)
movl (%r14), %edi
movl $0x2, %esi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
xorl %eax, %eax
callq 0x39a80
testl %eax, %eax
je 0x7a4e7
movq 0x20(%r14), %rdi
movq 0x28(%r14), %rsi
callq 0x3ca3c
movq %rax, 0x20(%rbx)
movq %rdx, 0x28(%rbx)
movsd 0x8(%r14), %xmm0
movsd %xmm0, 0x8(%rbx)
movl 0x38(%r14), %eax
movl %eax, 0x38(%rbx)
movl 0x3c(%r14), %eax
movl %eax, 0x3c(%rbx)
cmpl $-0x5, (%r14)
jne 0x7a537
movups 0x50(%r14), %xmm0
movups 0x60(%r14), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x31e4c
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x60(%rbx)
movups %xmm0, 0x50(%rbx)
movq $0x0, 0x48(%rbx)
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: create_copy_of_rule
Decisionruleptr create_copy_of_rule(Decisionruleptr rule)
{
	/*!Last Changed 02.02.2004 added safemalloc*/
	/*!Last Changed 20.05.2003*/
 int i;
	Decisionruleptr result = safemalloc(sizeof(Decisionrule), "create_copy_of_rule", 1);
	Decisionconditionptr newcondition, tmp, last = NULL;
	result->classno = rule->classno;
	result->decisioncount = rule->decisioncount;
 result->covered = rule->covered;
 result->falsepositives = rule->falsepositives;
	result->next = NULL;
	result->start = NULL;
 result->counts = safecalloc(current_dataset->classno, sizeof(int), "create_copy_of_rule", 7);
 for (i = 0; i < current_dataset->classno; i++)
   result->counts[i] = rule->counts[i];
	tmp = rule->start;
	while (tmp)
	 {
		 newcondition = create_copy_of_condition(tmp);
			if (tmp == rule->start)
				 result->start = newcondition;
			else
				 last->next = newcondition;
			last = newcondition;
			tmp = tmp->next;
	 }
	result->end = last;
	return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
leaq 0x32603(%rip), %r15     # 0xacb60
movl $0x38, %edi
movq %r15, %rsi
movl $0x1, %edx
callq 0x390f5
movq %rax, %rbx
movl (%r14), %eax
movl %eax, (%rbx)
movl 0x28(%r14), %eax
movl %eax, 0x28(%rbx)
movl 0x4(%r14), %eax
movl %eax, 0x4(%rbx)
movl 0x8(%r14), %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
movq %rax, 0x30(%rbx)
movq %rax, 0x18(%rbx)
leaq 0x582d3(%rip), %r12     # 0xd2870
movq (%r12), %rax
movslq 0x10(%rax), %rdi
movl $0x4, %esi
movq %r15, %rdx
movl $0x7, %ecx
callq 0x39210
movq %rax, 0x10(%rbx)
movq (%r12), %rcx
cmpl $0x0, 0x10(%rcx)
jle 0x7a5dd
movq 0x10(%r14), %rdx
xorl %esi, %esi
movl (%rdx,%rsi,4), %edi
movl %edi, (%rax,%rsi,4)
incq %rsi
movslq 0x10(%rcx), %rdi
cmpq %rdi, %rsi
jl 0x7a5cb
movq 0x18(%r14), %r15
testq %r15, %r15
je 0x7a616
movq %rbx, %r12
addq $0x18, %r12
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x7a45e
addq $0x48, %r13
cmpq 0x18(%r14), %r15
cmoveq %r12, %r13
movq %rax, (%r13)
movq 0x48(%r15), %r15
movq %rax, %r13
testq %r15, %r15
jne 0x7a5f0
jmp 0x7a618
xorl %eax, %eax
movq %rax, 0x20(%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: extract_rule_from_leaf
Decisionruleptr extract_rule_from_leaf(Decisionnodeptr leaf)
{
 /*!Last Changed 18.03.2004 added covered and falsepositives*/
 /*!Last Changed 02.02.2004 added safemalloc*/
 /*!Last Changed 27.10.2003*/
 int i;
 Decisionruleptr newrule = empty_rule(leaf->classno);
 Decisionconditionptr newcondition;
 for (i = 0; i < leaf->conditioncount; i++)
  {
   newcondition = (Decisionconditionptr) safemalloc(sizeof(Decisioncondition), "add_rule_from_leave", 6);
   *newcondition = copy_of_condition(leaf->rule[i]);
   newcondition->next = NULL;
   add_condition(newrule, newcondition);
  }
 newrule->covered = leaf->covered;
 newrule->falsepositives = leaf->falsepositives;
 return newrule;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, %rbx
movl 0x34(%rdi), %edi
callq 0x7a713
movq %rax, %r14
cmpl $0x0, 0x80(%rbx)
jle 0x7a6ea
movq %r14, %rax
addq $0x18, %rax
movq %rax, 0x70(%rsp)
xorl %r15d, %r15d
leaq 0x78(%rsp), %r12
xorl %ebp, %ebp
movl $0x70, %edi
leaq 0x3268a(%rip), %rsi     # 0xacd01
movl $0x6, %edx
callq 0x390f5
movq %rax, %r13
movq 0x58(%rbx), %rsi
addq %r15, %rsi
movl $0xe, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %r12, %rdi
callq 0x7a39e
movl $0xe, %ecx
movq %r13, %rdi
movq %r12, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq $0x0, 0x48(%r13)
movl 0x28(%r14), %ecx
leal 0x1(%rcx), %eax
movl %eax, 0x28(%r14)
movq 0x70(%rsp), %rax
testl %ecx, %ecx
je 0x7a6d0
movq 0x20(%r14), %rax
addq $0x48, %rax
movq %r13, (%rax)
movq %r13, 0x20(%r14)
incq %rbp
movslq 0x80(%rbx), %rax
addq $0x70, %r15
cmpq %rax, %rbp
jl 0x7a66b
movl 0x84(%rbx), %eax
movl %eax, 0x4(%r14)
movl 0x88(%rbx), %eax
movl %eax, 0x8(%r14)
movq %r14, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: empty_rule
Decisionruleptr empty_rule(int classno)
{
 /*!Last Changed 02.02.2004 added safemalloc*/
	/*!Last Changed 13.05.2003*/
	Decisionruleptr newrule = safemalloc(sizeof(Decisionrule), "empty_rule", 1);
	newrule->decisioncount = 0;
	newrule->start = NULL;
	newrule->end = NULL;
	newrule->classno = classno;
	newrule->next = NULL;
 newrule->counts = safecalloc(current_dataset->classno, sizeof(int), "empty_rule", 8);
	return newrule;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edi, %ebx
leaq 0x32619(%rip), %r14     # 0xacd3a
movl $0x38, %edi
movq %r14, %rsi
movl $0x1, %edx
callq 0x390f5
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movl $0x0, 0x28(%rax)
movl %ebx, (%rax)
movq $0x0, 0x30(%rax)
leaq 0x5811b(%rip), %rax     # 0xd2870
movq (%rax), %rax
movslq 0x10(%rax), %rdi
movl $0x4, %esi
movq %r14, %rdx
movl $0x8, %ecx
callq 0x39210
movq %rax, 0x10(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: add_condition
void add_condition(Decisionruleptr rule, Decisionconditionptr condition)
{
	/*!Last Changed 09.05.2003*/
	rule->decisioncount++;
	if (rule->decisioncount == 1)
		 rule->start = condition;
	else
	  rule->end->next = condition;
	rule->end = condition;
}

// Assembly:
movl 0x28(%rdi), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x28(%rdi)
testl %eax, %eax
je 0x7a792
movq 0x20(%rdi), %rax
addq $0x48, %rax
jmp 0x7a796
leaq 0x18(%rdi), %rax
movq %rsi, (%rax)
movq %rsi, 0x20(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: create_copy_of_ruleset
Ruleset* create_copy_of_ruleset(Ruleset* r)
{
	/*!Last Changed 02.02.2004 added safemalloc*/
	/*!Last Changed 20.05.2003*/
	Ruleset* result = safemalloc(sizeof(Ruleset), "create_copy_of_ruleset", 1);
	Decisionruleptr newrule, tmp, last = NULL;
	result->defaultclass = r->defaultclass;
	result->possibleconditioncount = r->possibleconditioncount;
	result->rulecount = r->rulecount;
	result->start = NULL;
 result->counts = safecalloc(current_dataset->classno, sizeof(int), "create_copy_of_ruleset", 7);
	tmp = r->start;
	while (tmp)
	 {
		 newrule = create_copy_of_rule(tmp);
			if (tmp == r->start)
				 result->start = newrule;
			else
			  last->next = newrule;
			last = newrule;
			tmp = tmp->next;
	 }
	result->end = last;
	return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x32565(%rip), %r15     # 0xacd15
movl $0x28, %edi
movq %r15, %rsi
movl $0x1, %edx
callq 0x390f5
movq %rax, %rbx
movl 0x14(%r14), %eax
movl %eax, 0x14(%rbx)
movl 0x20(%r14), %eax
movl %eax, 0x20(%rbx)
movl 0x10(%r14), %eax
movl %eax, 0x10(%rbx)
movq $0x0, (%rbx)
leaq 0x58088(%rip), %rax     # 0xd2870
movq (%rax), %rax
movslq 0x10(%rax), %rdi
movl $0x4, %esi
movq %r15, %rdx
movl $0x7, %ecx
callq 0x39210
movq %rax, 0x18(%rbx)
movq (%r14), %r15
testq %r15, %r15
je 0x7a835
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x7a54a
addq $0x30, %r12
cmpq (%r14), %r15
cmoveq %rbx, %r12
movq %rax, (%r12)
movq 0x30(%r15), %r15
movq %rax, %r12
testq %r15, %r15
jne 0x7a810
jmp 0x7a837
xorl %eax, %eax
movq %rax, 0x8(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: calculate_performance_for_prune
void calculate_performance_for_prune(Instanceptr pruneset, Decisionrule rule, int* p, int* n, int positive)
{
 /*!Last Changed 10.05.2003*/
 Instanceptr tmp;
 tmp = pruneset;
 *p = 0;
 *n = 0;
 while (tmp)
  {
   if (rule_cover_instance(tmp, rule))
    {
     if (give_classno(tmp) == positive)
       (*p)++;
     else
       (*n)++;
    }
   tmp = tmp->next;
  }
}

// Assembly:
xorl %eax, %eax
movl %eax, (%rsi)
movl %eax, (%rdx)
testq %rdi, %rdi
je 0x7a8bf
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x40(%rsp), %rax
movq 0x18(%rax), %rbp
movq %rbp, %r13
testq %rbp, %rbp
je 0x7a894
movq %r12, %rdi
movq %r13, %rsi
callq 0x795f2
testl %eax, %eax
je 0x7a8a7
movq 0x48(%r13), %r13
testq %r13, %r13
jne 0x7a87c
movq %r12, %rdi
callq 0x2eaca
cmpl %ebx, %eax
movq %r14, %rax
cmoveq %r15, %rax
incl (%rax)
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0x7a874
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: check_ruleset_consistency
BOOLEAN check_ruleset_consistency(Ruleset set)
{
 int count = 0;
 Decisionruleptr rule = set.start;
 while (rule)
  {
   if (!check_rule_consistency(rule))
     return BOOLEAN_FALSE;
   count++;
   rule = rule->next;
  }
 if (count == set.rulecount)
   return BOOLEAN_TRUE;
 else
   return BOOLEAN_FALSE;
}

// Assembly:
movq 0x8(%rsp), %rax
xorl %ecx, %ecx
testq %rax, %rax
je 0x7a910
movq 0x18(%rax), %rdx
movl $0x0, %esi
testq %rdx, %rdx
je 0x7a903
xorl %esi, %esi
incl %esi
movq 0x48(%rdx), %rdx
testq %rdx, %rdx
jne 0x7a8f8
cmpl 0x28(%rax), %esi
jne 0x7a91e
incl %ecx
movq 0x30(%rax), %rax
jmp 0x7a8e3
leaq 0x8(%rsp), %rdx
xorl %eax, %eax
cmpl 0x10(%rdx), %ecx
sete %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: free_condition
void free_condition(Decisioncondition condition)
{
	/*!Last Changed 09.01.2004*/
	if (in_list(condition.featureindex, 2, LINEAR, QUADRATIC))
  	matrix_free(condition.w);
	if (condition.featureindex == DISCRETEMIX)
		 deallocate_korderingsplit(condition.ksplit);
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
leaq 0x30(%rsp), %rbx
movl (%rbx), %edi
movl $0x2, %esi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
xorl %eax, %eax
callq 0x39a80
testl %eax, %eax
je 0x7a968
movq 0x20(%rbx), %rdi
movq 0x28(%rbx), %rsi
callq 0x3dbad
cmpl $-0x5, (%rbx)
jne 0x7a983
movups 0x50(%rbx), %xmm0
movups 0x60(%rbx), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x1cf7e
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: free_rule
void free_rule(Decisionrule rule)
{
	/*!Last Changed 10.05.2003*/
	Decisionconditionptr tmp, next;
	tmp = rule.start;
	while (tmp)
	 {
		 next = tmp->next;
			free_condition(*tmp);
			safe_free(tmp);
			tmp = next;
	 }
 safe_free(rule.counts);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
leaq 0x90(%rsp), %r14
movq 0x18(%r14), %rbx
testq %rbx, %rbx
je 0x7a9ca
movq 0x48(%rbx), %r15
movl $0xe, %ecx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7a935
movq %rbx, %rdi
callq 0x39194
movq %r15, %rbx
testq %r15, %r15
jne 0x7a9a3
movq 0x10(%r14), %rdi
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x39194
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: free_ruleset
void free_ruleset(Ruleset r)
{
	/*!Last Changed 21.05.2003*/
	Decisionruleptr tmp, next;
	tmp = r.start;
	while (tmp)
	 {
		 next = tmp->next;
			free_rule(*tmp);
			safe_free(tmp);
			tmp = next;
	 }
 safe_free(r.counts);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
leaq 0xb0(%rsp), %r12
movq (%r12), %rbx
testq %rbx, %rbx
je 0x7aa4b
movq 0x30(%rbx), %r13
movq 0x10(%rbx), %r14
movq 0x18(%rbx), %r15
testq %r15, %r15
je 0x7aa33
movq 0x48(%r15), %rbp
movl $0xe, %ecx
movq %rsp, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7a935
movq %r15, %rdi
callq 0x39194
movq %rbp, %r15
testq %rbp, %rbp
jne 0x7aa0c
movq %r14, %rdi
callq 0x39194
movq %rbx, %rdi
callq 0x39194
movq %r13, %rbx
testq %r13, %r13
jne 0x7a9fb
movq 0x18(%r12), %rdi
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x39194
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: empty_condition
Decisionconditionptr empty_condition()
{
	/*!Last Changed 02.02.2004 added safemalloc*/
	/*!Last Changed 21.01.2004*/
	Decisionconditionptr result = safemalloc(sizeof(Decisioncondition), "empty_condition", 1);
	result->featureindex = -1;
	result->next = NULL;
	return result;
}

// Assembly:
pushq %rax
leaq 0x3229f(%rip), %rsi     # 0xacd45
movl $0x70, %edi
movl $0x1, %edx
callq 0x390f5
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq $0x0, 0x48(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: merge_ruleset
void merge_ruleset(Ruleset* set1, Ruleset set2)
{
 if (set2.rulecount != 0)
  {
   if (set1->rulecount == 0)
     set1->start = set2.start;
   if (set1->rulecount != 0)
     set1->end->next = set2.start;
   set1->end = set2.end;
   set1->rulecount += set2.rulecount;
  }
}

// Assembly:
movl 0x18(%rsp), %eax
testl %eax, %eax
je 0x7aaf7
leaq 0x8(%rsp), %rdx
movl 0x10(%rdi), %ecx
movq (%rdx), %rsi
movq %rdi, %r8
testl %ecx, %ecx
je 0x7aae7
movq 0x8(%rdi), %r8
addq $0x30, %r8
movq %rsi, (%r8)
movq 0x8(%rdx), %rdx
movq %rdx, 0x8(%rdi)
addl %eax, %ecx
movl %ecx, 0x10(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: ruleset_cover_instance
int ruleset_cover_instance(Instanceptr instance, Ruleset r)
{
	/*!Last Changed 03.11.2003*/
	Decisionruleptr tmp = r.start;
	while (tmp)
	 {
		 if (rule_cover_instance(instance, *tmp))
				 return YES;
		 tmp = tmp->next;
	 }
	return NO;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x30(%rsp), %r12
xorl %ebx, %ebx
testq %r12, %r12
je 0x7ad02
movq %rdi, %r14
movq 0x18(%r12), %r15
testq %r15, %r15
je 0x7acfd
movq %r14, %rdi
movq %r15, %rsi
callq 0x795f2
testl %eax, %eax
je 0x7acf1
movq 0x48(%r15), %r15
jmp 0x7acd7
movq 0x30(%r12), %r12
testq %r12, %r12
jne 0x7acd2
jmp 0x7ad02
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: rule_cover_negative
int rule_cover_negative(Instanceptr instances, Decisionrule rule)
{
	/*!Last Changed 09.05.2003*/
	Instanceptr tmp;
	tmp = instances;
	while (tmp)
	 {
		 if (give_classno(tmp) != rule.classno)
		   if (rule_cover_instance(tmp, rule))
				   return YES;
		 tmp = tmp->next;
	 }
	return NO;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
xorl %ebx, %ebx
testq %rdi, %rdi
je 0x7ada4
movq %rdi, %r14
leaq 0x30(%rsp), %rax
movl (%rax), %ebp
movq 0x18(%rax), %r12
movq %r14, %rdi
callq 0x2eaca
cmpl %ebp, %eax
jne 0x7ad7f
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x7ad68
jmp 0x7ada4
movq %r12, %r15
testq %r12, %r12
je 0x7ad9f
movq %r14, %rdi
movq %r15, %rsi
callq 0x795f2
testl %eax, %eax
je 0x7ad74
movq 0x48(%r15), %r15
testq %r15, %r15
jne 0x7ad87
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: false_positive_count
int false_positive_count(Ruleset r, Instanceptr instances)
{
	/*!Last Changed 03.11.2003*/
	int total = 0;
	Decisionruleptr tmprule;
	Instanceptr tmp;
	tmp = instances;
	while (tmp)
	 {
		 tmprule = r.start;
			while (tmprule)
			 {
				 if (rule_cover_instance(tmp, *tmprule))
					 {
		     if (give_classno(tmp) != tmprule->classno)
					  	 total++;
							break;
					 }
					tmprule = tmprule->next;
			 }
			tmp = tmp->next;
	 }
	return total;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x7ae43
movq %rdi, %rbx
leaq 0x30(%rsp), %rax
movq (%rax), %r15
xorl %ebp, %ebp
testq %r15, %r15
je 0x7ae38
movq %r15, %r12
movq 0x18(%r12), %r14
movq %rbx, %rdi
testq %r14, %r14
je 0x7ae28
movq %r14, %rsi
callq 0x795f2
testl %eax, %eax
je 0x7ae1c
movq 0x48(%r14), %r14
jmp 0x7ae02
movq 0x30(%r12), %r12
testq %r12, %r12
jne 0x7adfd
jmp 0x7ae38
callq 0x2eaca
xorl %ecx, %ecx
cmpl (%r12), %eax
setne %cl
addl %ecx, %ebp
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x7adf5
jmp 0x7ae45
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/rule.c
// Function: return_error_and_free_condition
int return_error_and_free_condition(Decisionconditionptr condition, Instanceptr test, int positive)
{
	/*!Last Changed 03.12.2004*/
	int error;
	if (condition)
		 if (condition->featureindex != -1)
			 {
  			error = error_of_condition(condition, test, positive);
  			free_condition(*condition);
	  		safe_free(condition);
					return error;
			 }
			else
			 {
				 free_condition(*condition);
					safe_free(condition);
			  return 0;
			 }
	else
	  return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x78, %rsp
testq %rdi, %rdi
je 0x7ae6f
movq %rdi, %rbx
cmpl $-0x1, (%rdi)
je 0x7ae73
movq %rbx, %rdi
callq 0x7959d
movl %eax, %ebp
jmp 0x7ae75
xorl %ebp, %ebp
jmp 0x7ae90
xorl %ebp, %ebp
movl $0xe, %ecx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7a935
movq %rbx, %rdi
callq 0x39194
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %rbp
retq