LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 0x7adb6
movl %edi, %ebx
leaq 0x60(%rsp), %rax
movl 0x20(%rax), %ebp
xorps %xmm0, %xmm0
cmpl $-0x1, %ebx
je 0x7ad61
cmpl %ebx, (%r14)
jne 0x7adab
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 0x7ac95
movsd 0x38(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x38(%rsp)
movsd 0x38(%rsp), %xmm0
movq 0x30(%r14), %r14
testq %r14, %r14
jne 0x7ad57
jmp 0x7adb9
xorps %xmm0, %xmm0
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x39bdc
xorpd %xmm1, %xmm1
addsd %xmm0, %xmm1
cmpl %r14d, %r12d
jge 0x7ae5d
testl %r12d, %r12d
je 0x7ae34
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 0x7ac13
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
testl %r14d, %r14d
je 0x7aec4
movsd %xmm1, (%rsp)
movsd 0x2a6d6(%rip), %xmm1    # 0xa5520
subsd 0x8(%rsp), %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
mulsd %xmm1, %xmm0
jmp 0x7aea5
testl %r12d, %r12d
je 0x7ae94
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 0x7ac13
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
testl %r14d, %r14d
je 0x7aec4
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 0x7ac13
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
mulsd 0x2ae4c(%rip), %xmm1    # 0xa5d18
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7af25
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
xorl %ebp, %ebp
movq %r14, %rdi
movq %r15, %rsi
callq 0x7af32
testl %eax, %eax
sete %r12b
movq %r14, %rdi
callq 0x2f33a
cmpl %ebx, %eax
setne %al
xorb %r12b, %al
movzbl %al, %eax
addl %eax, %ebp
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x7aef4
jmp 0x7af27
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7b196
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 0x7af32
testl %eax, %eax
je 0x7b185
movq %rbx, %rdi
callq 0x2f33a
movq %r15, %rcx
cmpl %ebp, %eax
je 0x7b183
movq %r14, %rcx
incl (%rcx)
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x7b162
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7b9db
movq %rdi, %rbx
leaq 0x50(%rsp), %rax
movq (%rax), %r12
movl 0x14(%rax), %eax
movl %eax, 0xc(%rsp)
xorl %ebp, %ebp
movq %r12, 0x10(%rsp)
movq %rbx, %rdi
callq 0x2f33a
movl %eax, %r14d
movb $0x1, %r13b
testq %r12, %r12
je 0x7b9c0
movq 0x18(%r12), %r15
testq %r15, %r15
je 0x7b9ad
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7af32
testl %eax, %eax
je 0x7b9a1
movq 0x48(%r15), %r15
jmp 0x7b987
movq 0x30(%r12), %r12
testq %r12, %r12
jne 0x7b982
jmp 0x7b9bb
xorl %eax, %eax
cmpl (%r12), %r14d
setne %al
addl %eax, %ebp
xorl %r13d, %r13d
movq 0x10(%rsp), %r12
cmpl 0xc(%rsp), %r14d
setne %al
andb %r13b, %al
movzbl %al, %eax
addl %eax, %ebp
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x7b96f
jmp 0x7b9dd
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_O3/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 0x7bafc
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 0x2f33a
movl %eax, %r15d
testq %rbx, %rbx
je 0x7bac5
movq %rbx, %r12
cmpl $-0x1, %ebp
je 0x7ba92
cmpl %ebp, (%r12)
je 0x7ba92
movq 0x30(%r12), %r12
testq %r12, %r12
jne 0x7ba7b
jmp 0x7bac5
movq 0x18(%r12), %r14
testq %r14, %r14
je 0x7bab1
movq %r13, %rdi
movq %r14, %rsi
callq 0x7af32
testl %eax, %eax
je 0x7ba86
movq 0x48(%r14), %r14
jmp 0x7ba97
movq 0x18(%rsp), %rax
incl (%rax)
movq 0x20(%rsp), %rax
cmpl (%r12), %r15d
jne 0x7baed
jmp 0x7baef
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 0x7baed
orb %dl, %cl
movq 0x8(%rsp), %rax
jne 0x7baef
incl (%rax)
movq 0x10(%r13), %r13
testq %r13, %r13
jne 0x7ba68
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %rbp
pushq %r14
pushq %rbx
subq $0x20, %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), %ebp
movl %ebp, (%rdi)
movaps 0x10(%r14), %xmm0
movups %xmm0, 0x10(%rdi)
movsd 0x30(%r14), %xmm0
movsd %xmm0, 0x30(%rdi)
movl %ebp, %edi
movl $0x2, %esi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
xorl %eax, %eax
callq 0x3aa8c
testl %eax, %eax
je 0x7bd00
movq 0x20(%r14), %rdi
movq 0x28(%r14), %rsi
callq 0x3dae3
movq %rax, 0x20(%rbx)
movq %rdx, 0x28(%rbx)
movsd 0x8(%r14), %xmm0
movsd %xmm0, 0x8(%rbx)
movq 0x38(%r14), %rax
movq %rax, 0x38(%rbx)
cmpl $-0x5, %ebp
jne 0x7bd34
leaq 0x50(%rbx), %rdi
movups 0x50(%r14), %xmm0
movups 0x60(%r14), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x32780
movq $0x0, 0x48(%rbx)
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x34067(%rip), %rsi     # 0xafdc0
movl $0x70, %edi
movl $0x1, %edx
callq 0x3a0e1
movq %rax, %rbx
movb 0x4(%r14), %al
movb %al, 0x4(%rbx)
movl (%r14), %edi
movl %edi, (%rbx)
movl 0x40(%r14), %eax
movl %eax, 0x40(%rbx)
movups 0x10(%r14), %xmm0
movups %xmm0, 0x10(%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 0x3aa8c
testl %eax, %eax
je 0x7bdc1
movq 0x20(%r14), %rdi
movq 0x28(%r14), %rsi
callq 0x3dae3
movq %rax, 0x20(%rbx)
movq %rdx, 0x28(%rbx)
movsd 0x8(%r14), %xmm0
movsd %xmm0, 0x8(%rbx)
movq 0x38(%r14), %rax
movq %rax, 0x38(%rbx)
cmpl $-0x5, (%r14)
jne 0x7be0b
movups 0x50(%r14), %xmm0
movups 0x60(%r14), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x32780
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_O3/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 0x33e07(%rip), %r15     # 0xafc38
movl $0x38, %edi
movq %r15, %rsi
movl $0x1, %edx
callq 0x3a0e1
movq %rax, %rbx
movl 0x28(%r14), %eax
movl %eax, 0x28(%rbx)
movq (%r14), %rax
movq %rax, (%rbx)
movl 0x8(%r14), %eax
movl %eax, 0x8(%rbx)
xorl %eax, %eax
movq %rax, 0x30(%rbx)
movq %rax, 0x18(%rbx)
leaq 0x59a05(%rip), %r12     # 0xd5870
movq (%r12), %rax
movslq 0x10(%rax), %rdi
movl $0x4, %esi
movq %r15, %rdx
movl $0x7, %ecx
callq 0x3a1fc
movq %rax, 0x10(%rbx)
movq (%r12), %rcx
cmpl $0x0, 0x10(%rcx)
jle 0x7beab
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 0x7be99
movq 0x18(%r14), %r15
testq %r15, %r15
je 0x7bee4
movq %rbx, %r12
addq $0x18, %r12
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x7bd48
addq $0x48, %r13
cmpq 0x18(%r14), %r15
cmoveq %r12, %r13
movq %rax, (%r13)
movq 0x48(%r15), %r15
movq %rax, %r13
testq %r15, %r15
jne 0x7bebe
jmp 0x7bee6
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_O3/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 0x7bfd8
movq %rax, %r14
cmpl $0x0, 0x80(%rbx)
jle 0x7bfb8
movq %r14, %rax
addq $0x18, %rax
movq %rax, 0x70(%rsp)
xorl %r15d, %r15d
leaq 0x78(%rsp), %r12
xorl %ebp, %ebp
movl $0x70, %edi
leaq 0x33e94(%rip), %rsi     # 0xafdd9
movl $0x6, %edx
callq 0x3a0e1
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 0x7bc98
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 0x7bf9e
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 0x7bf39
movq 0x84(%rbx), %rax
movq %rax, 0x4(%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_O3/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 0x33e2c(%rip), %r14     # 0xafe12
movl $0x38, %edi
movq %r14, %rsi
movl $0x1, %edx
callq 0x3a0e1
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
movl $0x0, 0x28(%rax)
movl %ebx, (%rax)
movq $0x0, 0x30(%rax)
leaq 0x59856(%rip), %rax     # 0xd5870
movq (%rax), %rax
movslq 0x10(%rax), %rdi
movl $0x4, %esi
movq %r14, %rdx
movl $0x8, %ecx
callq 0x3a1fc
movq %rax, 0x10(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7c057
movq 0x20(%rdi), %rax
addq $0x48, %rax
jmp 0x7c05b
leaq 0x18(%rdi), %rax
movq %rsi, (%rax)
movq %rsi, 0x20(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x33d78(%rip), %r15     # 0xafded
movl $0x28, %edi
movq %r15, %rsi
movl $0x1, %edx
callq 0x3a0e1
movq %rax, %rbx
movl 0x20(%r14), %eax
movl %eax, 0x20(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x10(%rbx)
movq $0x0, (%rbx)
leaq 0x597c9(%rip), %rax     # 0xd5870
movq (%rax), %rax
movslq 0x10(%rax), %rdi
movl $0x4, %esi
movq %r15, %rdx
movl $0x7, %ecx
callq 0x3a1fc
movq %rax, 0x18(%rbx)
movq (%r14), %r15
testq %r15, %r15
je 0x7c0f4
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x7be1e
addq $0x30, %r12
cmpq (%r14), %r15
cmoveq %rbx, %r12
movq %rax, (%r12)
movq 0x30(%r15), %r15
movq %rax, %r12
testq %r15, %r15
jne 0x7c0cf
jmp 0x7c0f6
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_O3/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 0x7c17e
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 0x7c153
movq %r12, %rdi
movq %r13, %rsi
callq 0x7af32
testl %eax, %eax
je 0x7c166
movq 0x48(%r13), %r13
testq %r13, %r13
jne 0x7c13b
movq %r12, %rdi
callq 0x2f33a
cmpl %ebx, %eax
movq %r14, %rax
cmoveq %r15, %rax
incl (%rax)
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0x7c133
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/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 0x7c1cf
movq 0x18(%rax), %rdx
movl $0x0, %esi
testq %rdx, %rdx
je 0x7c1c2
xorl %esi, %esi
incl %esi
movq 0x48(%rdx), %rdx
testq %rdx, %rdx
jne 0x7c1b7
cmpl 0x28(%rax), %esi
jne 0x7c1dd
incl %ecx
movq 0x30(%rax), %rax
jmp 0x7c1a2
leaq 0x8(%rsp), %rdx
xorl %eax, %eax
cmpl 0x10(%rdx), %ecx
sete %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
subq $0x28, %rsp
leaq 0x40(%rsp), %r14
movl (%r14), %ebx
movl %ebx, %edi
movl $0x2, %esi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
xorl %eax, %eax
callq 0x3aa8c
testl %eax, %eax
je 0x7c22c
movq 0x20(%r14), %rdi
movq 0x28(%r14), %rsi
callq 0x3ed51
cmpl $-0x5, %ebx
jne 0x7c249
movups 0x50(%r14), %xmm0
movups 0x60(%r14), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x1d703
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7c292
movq 0x48(%rbx), %r15
movl $0xe, %ecx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7c1f4
movq %rbx, %rdi
callq 0x3a180
movq %r15, %rbx
testq %r15, %r15
jne 0x7c26b
movq 0x10(%r14), %rdi
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x3a180
// File: /workspace/github_c_makefile_star2_O3/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 0x7c313
movq 0x30(%rbx), %r13
movq 0x10(%rbx), %r14
movq 0x18(%rbx), %r15
testq %r15, %r15
je 0x7c2fb
movq 0x48(%r15), %rbp
movl $0xe, %ecx
movq %rsp, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7c1f4
movq %r15, %rdi
callq 0x3a180
movq %rbp, %r15
testq %rbp, %rbp
jne 0x7c2d4
movq %r14, %rdi
callq 0x3a180
movq %rbx, %rdi
callq 0x3a180
movq %r13, %rbx
testq %r13, %r13
jne 0x7c2c3
movq 0x18(%r12), %rdi
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3a180
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/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 0x33aaf(%rip), %rsi     # 0xafe1d
movl $0x70, %edi
movl $0x1, %edx
callq 0x3a0e1
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq $0x0, 0x48(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7c3bf
leaq 0x8(%rsp), %rdx
movl 0x10(%rdi), %ecx
movq (%rdx), %rsi
movq %rdi, %r8
testl %ecx, %ecx
je 0x7c3af
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_O3/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 0x7c5bb
movq %rdi, %r14
movq 0x18(%r12), %r15
testq %r15, %r15
je 0x7c5b6
movq %r14, %rdi
movq %r15, %rsi
callq 0x7af32
testl %eax, %eax
je 0x7c5aa
movq 0x48(%r15), %r15
jmp 0x7c590
movq 0x30(%r12), %r12
testq %r12, %r12
jne 0x7c58b
jmp 0x7c5bb
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7c65d
movq %rdi, %r14
leaq 0x30(%rsp), %rax
movl (%rax), %ebp
movq 0x18(%rax), %r12
movq %r14, %rdi
callq 0x2f33a
cmpl %ebp, %eax
jne 0x7c638
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x7c621
jmp 0x7c65d
movq %r12, %r15
testq %r12, %r12
je 0x7c658
movq %r14, %rdi
movq %r15, %rsi
callq 0x7af32
testl %eax, %eax
je 0x7c62d
movq 0x48(%r15), %r15
testq %r15, %r15
jne 0x7c640
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7c6fc
movq %rdi, %rbx
leaq 0x30(%rsp), %rax
movq (%rax), %r15
xorl %ebp, %ebp
testq %r15, %r15
je 0x7c6f1
movq %r15, %r12
movq 0x18(%r12), %r14
movq %rbx, %rdi
testq %r14, %r14
je 0x7c6e1
movq %r14, %rsi
callq 0x7af32
testl %eax, %eax
je 0x7c6d5
movq 0x48(%r14), %r14
jmp 0x7c6bb
movq 0x30(%r12), %r12
testq %r12, %r12
jne 0x7c6b6
jmp 0x7c6f1
callq 0x2f33a
xorl %ecx, %ecx
cmpl (%r12), %eax
setne %cl
addl %ecx, %ebp
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x7c6ae
jmp 0x7c6fe
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7c728
movq %rdi, %rbx
cmpl $-0x1, (%rdi)
je 0x7c72c
movq %rbx, %rdi
callq 0x7aedd
movl %eax, %ebp
jmp 0x7c72e
xorl %ebp, %ebp
jmp 0x7c749
xorl %ebp, %ebp
movl $0xe, %ecx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7c1f4
movq %rbx, %rdi
callq 0x3a180
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/rule.c
// Function: add_condition_after
void add_condition_after(Decisionruleptr rule, Decisionconditionptr before, Decisionconditionptr inserted)
{
	/*!Last Changed 10.05.2003*/
	rule->decisioncount++;
	if (before == NULL)
	 {
		 inserted->next = rule->start;
		 rule->start = inserted;
	 }
	else
	 {
		 inserted->next = before->next;
		 before->next = inserted;
	 }
	if (inserted->next == NULL)
			rule->end = inserted;
}

// Assembly:
incl 0x28(%rdi)
testq %rsi, %rsi
je 0x7c76c
movq 0x48(%rsi), %rax
movq %rax, 0x48(%rdx)
movq %rdx, 0x48(%rsi)
movq 0x48(%rdx), %rax
jmp 0x7c778
movq 0x18(%rdi), %rax
movq %rax, 0x48(%rdx)
movq %rdx, 0x18(%rdi)
testq %rax, %rax
je 0x7c77e
retq
movq %rdx, 0x20(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/rule.c
// Function: remove_condition
void remove_condition(Decisionruleptr rule, Decisionconditionptr deleted)
{
	/*!Last Changed 19.12.2003*/
 Decisionconditionptr before = NULL, tmp;
	tmp = rule->start;
	while (tmp)
	 { 
		 if (tmp == deleted)
				 break;
			before = tmp;
			tmp = tmp->next;
	 }
	if (tmp)
	  remove_condition_after(rule, before, deleted);
}

// Assembly:
leaq 0x18(%rdi), %rax
xorl %edx, %edx
movq %rax, %r8
movq %rdx, %rcx
movq (%r8), %rdx
testq %rdx, %rdx
je 0x7c7a0
leaq 0x48(%rdx), %r8
cmpq %rsi, %rdx
jne 0x7c78c
testq %rdx, %rdx
je 0x7c7c3
decl 0x28(%rdi)
movq 0x48(%rsi), %rdx
testq %rdx, %rdx
jne 0x7c7b5
movq %rcx, 0x20(%rdi)
leaq 0x48(%rcx), %rsi
testq %rcx, %rcx
cmoveq %rax, %rsi
movq %rdx, (%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/rule.c
// Function: remove_condition_after
void remove_condition_after(Decisionruleptr rule, Decisionconditionptr before, Decisionconditionptr deleted)
{
	/*!Last Changed 10.05.2003*/
	rule->decisioncount--;
	if (deleted->next == NULL)
		 rule->end = before;
	if (before == NULL)
		 rule->start = deleted->next;
	else
		 before->next = deleted->next;
}

// Assembly:
decl 0x28(%rdi)
movq 0x48(%rdx), %rax
testq %rax, %rax
jne 0x7c7d4
movq %rsi, 0x20(%rdi)
leaq 0x48(%rsi), %rcx
addq $0x18, %rdi
testq %rsi, %rsi
cmovneq %rcx, %rdi
movq %rax, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/rule.c
// Function: test_rule
double test_rule(Decisionrule rule, Instanceptr instances)
{
	/*!Last Changed 10.05.2003*/
	int negative = 0, total = 0;
	Instanceptr tmp;
	tmp = instances;
	while (tmp)
	 {
			if (rule_cover_instance(tmp, rule))
			 {
			  total++;
		   if (give_classno(tmp) != rule.classno)
						 negative++;
			 }
			tmp = tmp->next;
	 }
	return negative/(total+0.0);
}

// Assembly:
testq %rdi, %rdi
je 0x7c865
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x40(%rsp), %rax
movq 0x18(%rax), %r15
movl (%rax), %r12d
xorl %ebp, %ebp
xorl %r13d, %r13d
movq %r15, %r14
testq %r15, %r15
je 0x7c82b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7af32
testl %eax, %eax
je 0x7c840
movq 0x48(%r14), %r14
testq %r14, %r14
jne 0x7c813
incl %ebp
movq %rbx, %rdi
callq 0x2f33a
xorl %ecx, %ecx
cmpl %r12d, %eax
setne %cl
addl %ecx, %r13d
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x7c80b
cvtsi2sd %r13d, %xmm0
cvtsi2sd %ebp, %xmm1
divsd %xmm1, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsd 0x294a3(%rip), %xmm0    # 0xa5d10
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/rule.c
// Function: add_rule_after
void add_rule_after(Ruleset* r, Decisionruleptr before, Decisionruleptr inserted)
{
	/*!Last Changed 18.05.2003*/
	r->rulecount++;
	if (before == NULL)
	 {
		 inserted->next = r->start;
		 r->start = inserted;
	 }
	else
	 {
		 inserted->next = before->next;
		 before->next = inserted;
	 }
	if (inserted->next == NULL)
			r->end = inserted;
}

// Assembly:
incl 0x10(%rdi)
testq %rsi, %rsi
je 0x7c888
movq 0x30(%rsi), %rax
movq %rax, 0x30(%rdx)
movq %rdx, 0x30(%rsi)
movq 0x30(%rdx), %rax
jmp 0x7c892
movq (%rdi), %rax
movq %rax, 0x30(%rdx)
movq %rdx, (%rdi)
testq %rax, %rax
je 0x7c898
retq
movq %rdx, 0x8(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/rule.c
// Function: remove_rules_of_class
void remove_rules_of_class(Ruleset* set, int index)
{
 Decisionruleptr tmp, before = NULL, tmpnext;
 tmp = set->start;
 while (tmp)
  {
   tmpnext = tmp->next;
   if (tmp->classno == index)
    {
     if (before)
       before->next = tmp->next;
     else
       set->start = tmp->next;
     if (tmpnext == NULL)
       set->end = before;
     set->rulecount--;
     free_rule(*tmp);
     safe_free(tmp);
    }
   else
     before = tmp;
   tmp = tmpnext;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq (%rdi), %r15
testq %r15, %r15
je 0x7c96f
xorl %ebp, %ebp
movl %esi, 0x7c(%rsp)
movq %rdi, 0x80(%rsp)
movq 0x30(%r15), %rbx
cmpl %esi, (%r15)
jne 0x7c964
leaq 0x30(%rbp), %rax
testq %rbp, %rbp
cmoveq %rdi, %rax
movq %rbx, (%rax)
testq %rbx, %rbx
jne 0x7c90f
movq %rbp, 0x8(%rdi)
decl 0x10(%rdi)
movq 0x10(%r15), %r12
movq 0x18(%r15), %r13
testq %r13, %r13
je 0x7c946
movq 0x48(%r13), %r14
movl $0xe, %ecx
movq %rsp, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7c1f4
movq %r13, %rdi
callq 0x3a180
movq %r14, %r13
testq %r14, %r14
jne 0x7c91f
movq %r12, %rdi
callq 0x3a180
movq %r15, %rdi
callq 0x3a180
movl 0x7c(%rsp), %esi
movq 0x80(%rsp), %rdi
jmp 0x7c967
movq %r15, %rbp
movq %rbx, %r15
testq %rbx, %rbx
jne 0x7c8ef
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/rule.c
// Function: remove_rule
void remove_rule(Ruleset* set, Decisionruleptr rule)
{
	/*!Last Changed 16.06.2003*/
 Decisionruleptr before = NULL, tmp;
	tmp = set->start;
	while (tmp)
	 { 
		 if (tmp == rule)
				 break;
			before = tmp;
			tmp = tmp->next;
	 }
	if (tmp)
	  remove_rule_after(set, before, rule);
}

// Assembly:
xorl %ecx, %ecx
movq %rdi, %rdx
movq %rcx, %rax
movq (%rdx), %rcx
testq %rcx, %rcx
je 0x7c99a
leaq 0x30(%rcx), %rdx
cmpq %rsi, %rcx
jne 0x7c986
testq %rcx, %rcx
je 0x7c9ba
decl 0x10(%rdi)
je 0x7c9bb
movq 0x30(%rsi), %rcx
testq %rcx, %rcx
jne 0x7c9b1
movq %rax, 0x8(%rdi)
testq %rax, %rax
je 0x7c9c2
movq %rcx, 0x30(%rax)
retq
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
retq
movq %rcx, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/rule.c
// Function: add_rule
void add_rule(Ruleset* set, Decisionruleptr rule)
{
	/*!Last Changed 04.11.2003 Added rule->next = NULL*/
	/*!Last Changed 13.05.2003*/
	if (set->rulecount == 0)
		 set->start = rule;
	else
		 set->end->next = rule;
	set->end = rule;
	rule->next = NULL;
	set->rulecount++;
}

// Assembly:
movl 0x10(%rdi), %eax
movq %rdi, %rcx
testl %eax, %eax
je 0x7c9d8
movq 0x8(%rdi), %rcx
addq $0x30, %rcx
movq %rsi, (%rcx)
movq %rsi, 0x8(%rdi)
movq $0x0, 0x30(%rsi)
incl %eax
movl %eax, 0x10(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/rule.c
// Function: update_counts
void update_counts(Decisionruleptr rule, Instanceptr list1, int initialize)
{
	/*!Last Changed 02.11.2003*/
 int classno;
	Instanceptr tmp;
	if (initialize)
	 {
		 rule->covered = 0;
			rule->falsepositives = 0;
	 }
	tmp = list1;
	while (tmp)
	 {
		 if (rule_cover_instance(tmp, *rule))
    {
     classno = give_classno(tmp);
				 if (classno != rule->classno)
						 rule->falsepositives++;
					else
						 rule->covered++;
    }
		 tmp = tmp->next;
	 }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
testl %edx, %edx
je 0x7ca3c
movq $0x0, 0x4(%r14)
jmp 0x7ca3c
movq 0x18(%r14), %r15
movq %rbx, %rdi
testq %r15, %r15
je 0x7ca24
movq %r15, %rsi
callq 0x7af32
testl %eax, %eax
je 0x7ca38
movq 0x48(%r15), %r15
jmp 0x7ca0a
callq 0x2f33a
cmpl (%r14), %eax
jne 0x7ca34
incl 0x4(%r14)
jmp 0x7ca38
incl 0x8(%r14)
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x7ca06
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/rule.c
// Function: update_counts_ruleset
void update_counts_ruleset(Ruleset r, Instanceptr list)
{
	/*!Last Changed 18.03.2004*/
	int i;
 BOOLEAN covered;
	Decisionruleptr tmp;
	Instanceptr test = list;
 for (i = 0; i < current_dataset->classno; i++)
   r.counts[i] = 0;
	tmp = r.start;
	while (tmp)
	 {
		 tmp->covered = 0;
			tmp->falsepositives = 0;
   for (i = 0; i < current_dataset->classno; i++)
     tmp->counts[i] = 0;
		 tmp = tmp->next;
	 }
 while (test)
  {
   i = give_classno(test);
   covered = BOOLEAN_FALSE;
			tmp = r.start;
			while (tmp)
			 {
				 if (rule_cover_instance(test, *tmp))
					 {
       tmp->counts[i]++;
						 tmp->covered++;
       if (i != tmp->classno)
								 tmp->falsepositives++;
       covered = BOOLEAN_TRUE;
							break;
					 }
				 tmp = tmp->next;
			 }
   if (!covered)
     r.counts[i]++;
   test = test->next;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x40(%rsp), %rax
leaq 0x58e0f(%rip), %rcx     # 0xd5870
movq (%rcx), %rcx
movl 0x10(%rcx), %edx
testl %edx, %edx
jle 0x7ca84
movq 0x18(%rax), %rsi
xorl %edi, %edi
movl $0x0, (%rsi,%rdi,4)
incq %rdi
movslq 0x10(%rcx), %rdx
cmpq %rdx, %rdi
jl 0x7ca71
movq (%rax), %r12
testq %r12, %r12
je 0x7cabf
movq %r12, %rsi
movq $0x0, 0x4(%rsi)
testl %edx, %edx
jle 0x7cab6
movq 0x10(%rsi), %rdi
xorl %r8d, %r8d
movl $0x0, (%rdi,%r8,4)
incq %r8
movslq 0x10(%rcx), %rdx
cmpq %rdx, %r8
jl 0x7caa2
movq 0x30(%rsi), %rsi
testq %rsi, %rsi
jne 0x7ca8f
testq %rbx, %rbx
je 0x7cb30
movq 0x18(%rax), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
callq 0x2f33a
movslq %eax, %r13
testq %r12, %r12
je 0x7cb08
movl %eax, %ebp
movq %r12, %r15
movq 0x18(%r15), %r14
testq %r14, %r14
je 0x7cb12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7af32
testl %eax, %eax
je 0x7caff
movq 0x48(%r14), %r14
jmp 0x7cae5
movq 0x30(%r15), %r15
testq %r15, %r15
jne 0x7cae1
movq (%rsp), %rax
incl (%rax,%r13,4)
jmp 0x7cb27
movq 0x10(%r15), %rax
incl (%rax,%r13,4)
incl 0x4(%r15)
cmpl (%r15), %ebp
je 0x7cb27
incl 0x8(%r15)
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x7cacc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/rule.c
// Function: print_counts
void print_counts(char* st,Instanceptr list)
{
	int* counts, i;
	counts = find_class_counts(list);
	printf("----------\n");
	printf("%s\n",st);
	printf("----------\n");
 for (i = 0; i < current_dataset->classno; i++)
		 printf(m1309, i, counts[i]);
	printf("----------\n");
	safe_free(counts);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq %rsi, %rdi
callq 0x115a6
movq %rax, %rbx
leaq 0x297c4(%rip), %r15     # 0xa6320
movq %r15, %rdi
callq 0x4090
movq %r14, %rdi
callq 0x4090
movq %r15, %rdi
callq 0x4090
leaq 0x58cf5(%rip), %r12     # 0xd5870
movq (%r12), %rax
cmpl $0x0, 0x10(%rax)
jle 0x7cbb0
leaq 0x332a1(%rip), %r14     # 0xafe2d
xorl %r15d, %r15d
movl (%rbx,%r15,4), %edx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x4030
incq %r15
movq (%r12), %rax
movslq 0x10(%rax), %rax
cmpq %rax, %r15
jl 0x7cb8f
leaq 0x29769(%rip), %rdi     # 0xa6320
callq 0x4090
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x3a180
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/savecode.c
// Function: code_start_block
void code_start_block(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language)
{
 /*!Last Changed 14.06.2006*/
 indentation++;
 if (in_list(language, 4, C_LANGUAGE, CPP_LANGUAGE, JAVA_LANGUAGE, PASCAL_LANGUAGE))
   code_indentation(testcodefile);
 switch (language){
   case C_LANGUAGE      :
   case CPP_LANGUAGE    :
   case JAVA_LANGUAGE   :fprintf(testcodefile, "{\n");
                         break;
   case PASCAL_LANGUAGE :fprintf(testcodefile, "begin\n");
                         break;
   case MATLAB_LANGUAGE :
   case FORTRAN_LANGUAGE:break;
 };
 indentation++;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
incl 0x335536(%rip)          # 0x3b21e8
movl %esi, %edi
movl $0x4, %esi
xorl %edx, %edx
movl $0x1, %ecx
movl $0x3, %r8d
movl $0x2, %r9d
xorl %eax, %eax
callq 0x3aa8c
testl %eax, %eax
je 0x7ccfc
cmpl $0x0, 0x33550a(%rip)    # 0x3b21e8
jle 0x7ccfc
xorl %r14d, %r14d
movl $0x20, %edi
movq %rbx, %rsi
callq 0x4150
incl %r14d
cmpl 0x3354ee(%rip), %r14d   # 0x3b21e8
jl 0x7cce3
cmpl $0x2, %ebp
jb 0x7cd08
je 0x7cd16
cmpl $0x3, %ebp
jne 0x7cd2f
leaq 0x34597(%rip), %rdi     # 0xb12a6
movl $0x2, %esi
jmp 0x7cd22
leaq 0x333f3(%rip), %rdi     # 0xb0110
movl $0x6, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
incl 0x3354b3(%rip)          # 0x3b21e8
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/savecode.c
// Function: code_function_header
void code_function_header(FILE* testcodefile, char* functionname, int featurecount, PROGRAMMING_LANGUAGE_TYPE language)
{
 /*!Last Changed 18.05.2006*/
 switch (language){
   case C_LANGUAGE      :fprintf(testcodefile, "double %s(double* testdata){\n", functionname);
                         break;
   case CPP_LANGUAGE    :fprintf(testcodefile, "double test::%s(double* testdata){\n", functionname);
                         break;
   case PASCAL_LANGUAGE :fprintf(testcodefile, "function %s(real testdata[1..%d]):real;\n", functionname, featurecount);
                         break;
   case JAVA_LANGUAGE   :fprintf(testcodefile, "public static double %s(double[] testdata){\n", functionname);
                         break;
   case MATLAB_LANGUAGE :fprintf(testcodefile, "function result = %s(testdata)\n", functionname);
                         break;
   case FORTRAN_LANGUAGE:fprintf(testcodefile, "real function %s(testdata)\nreal testdata(%d)\n", functionname, featurecount);
                         break;
 };
}

// Assembly:
cmpl $0x5, %ecx
ja 0x7ce7f
movl %edx, %eax
movq %rsi, %rdx
movl %ecx, %ecx
leaq 0x33008(%rip), %rsi     # 0xafe3c
movslq (%rsi,%rcx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
leaq 0x3331b(%rip), %rsi     # 0xb015f
jmp 0x7ce68
leaq 0x333aa(%rip), %rsi     # 0xb01f7
jmp 0x7ce68
leaq 0x3334b(%rip), %rsi     # 0xb01a1
jmp 0x7ce76
leaq 0x3336b(%rip), %rsi     # 0xb01ca
jmp 0x7ce68
leaq 0x33315(%rip), %rsi     # 0xb017d
xorl %eax, %eax
jmp 0x42e0
leaq 0x333a1(%rip), %rsi     # 0xb0217
movl %eax, %ecx
xorl %eax, %eax
jmp 0x42e0
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/savecode.c
// Function: code_1d_array_start
char code_1d_array_start(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, int index)
{
 /*!Last Changed 24.06.2006*/
 char ch = ',';
 if (index != 0 && index != -1)
  {
   switch (language){
     case C_LANGUAGE      :
     case CPP_LANGUAGE    :
     case JAVA_LANGUAGE   :
     case PASCAL_LANGUAGE :
     case FORTRAN_LANGUAGE:fprintf(testcodefile, ",");
                           break;
     case MATLAB_LANGUAGE :fprintf(testcodefile, "\n");
                           break;
   }
  }
 switch (language){
   case MATLAB_LANGUAGE:ch = ' ';
                        break;
   default             :break;
 }  
 switch (language){
   case C_LANGUAGE      :
   case CPP_LANGUAGE    :
   case JAVA_LANGUAGE   :fprintf(testcodefile, "{");
                         break;
   case PASCAL_LANGUAGE :fprintf(testcodefile, "(");
                         break;
   case FORTRAN_LANGUAGE:fprintf(testcodefile, "(/");
                         break;
			case MATLAB_LANGUAGE :if (index == - 1)
																										 fprintf(testcodefile, "[");
																									break;
 }
	return ch;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %rbx
leal -0x1(%r14), %eax
movl %esi, %r12d
cmpl $-0x3, %eax
ja 0x7cee3
movb $0x2c, %bpl
cmpl $0x5, %r15d
ja 0x7cef4
leaq 0x33185(%rip), %rax     # 0xb005c
movl (%rax,%r12,4), %edi
movq %rbx, %rsi
callq 0x4150
cmpl $0x4, %r15d
movl $0x20, %eax
movl $0x2c, %ebp
cmovel %eax, %ebp
cmpl $0x5, %r15d
ja 0x7cf46
leaq 0x32f53(%rip), %rax     # 0xafe54
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0x7b, %edi
jmp 0x7cf3e
movl $0x28, %edi
jmp 0x7cf3e
leaq 0x33849(%rip), %rdi     # 0xb0768
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
jmp 0x7cf46
cmpl $-0x1, %r14d
jne 0x7cf46
movl $0x5b, %edi
movq %rbx, %rsi
callq 0x4150
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/savecode.c
// Function: code_1d_array_end
void code_1d_array_end(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, int index)
{
 /*!Last Changed 24.06.2006*/
 switch (language){
   case C_LANGUAGE      :
   case CPP_LANGUAGE    :
   case JAVA_LANGUAGE   :fprintf(testcodefile, "}");  
                         break;
   case PASCAL_LANGUAGE :fprintf(testcodefile, ")");
                         break;
   case FORTRAN_LANGUAGE:fprintf(testcodefile, "/)");
                         break;
			case MATLAB_LANGUAGE :if (index == - 1)
																										 fprintf(testcodefile, "]");
																									break;
 }
	if (index == -1)
		 fprintf(testcodefile, ";\n");  
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rdi, %rbx
cmpl $0x5, %esi
ja 0x7cf84
movl %esi, %eax
leaq 0x32f05(%rip), %rcx     # 0xafe6c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x7d, %edi
jmp 0x7cf7c
movl $0x29, %edi
movq %rbx, %rsi
callq 0x4150
cmpl $-0x1, %ebp
je 0x7cfbd
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x332ae(%rip), %rdi     # 0xb0245
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
jmp 0x7cf84
cmpl $-0x1, %ebp
jne 0x7cf89
movl $0x5d, %edi
movq %rbx, %rsi
callq 0x4150
leaq 0x2c923(%rip), %rdi     # 0xa98e7
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x42c0