LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
xorl %ebp, %ebp
testq %r14, %r14
je 0x70991
movq %r14, %rdi
movq %r15, %rsi
callq 0x7099c
testl %eax, %eax
sete %r12b
movq %r14, %rdi
callq 0x2b47e
cmpl %ebx, %eax
setne %al
xorb %r12b, %al
movzbl %al, %eax
addl %eax, %ebp
movq 0x10(%r14), %r14
jmp 0x70960
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %rbx
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
andl $0x0, (%rsi)
movq %rdi, %r12
andl $0x0, (%rdx)
testq %rbx, %rbx
je 0x70bef
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7099c
testl %eax, %eax
je 0x70be9
movq %rbx, %rdi
callq 0x2b47e
movq %r15, %rcx
cmpl %ebp, %eax
je 0x70be7
movq %r14, %rcx
incl (%rcx)
movq 0x10(%rbx), %rbx
jmp 0x70bc1
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rule.c
// Function: write_rule
void write_rule(Decisionruleptr rule)
{
	/*!Last Changed 30.10.2003*/
	Decisionconditionptr condition;
	condition = rule->start;
	while (condition)
	 {
		 write_condition(condition);
		 condition = condition->next;
	 }
	fprintf(output, " THEN CLASS = %s.(%d/%d)\n",current_dataset->features[current_dataset->classdefno].strings[rule->classno], rule->covered, rule->falsepositives);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x7130a
movq %r14, %rdi
callq 0x70c11
addq $0x48, %r14
jmp 0x712f4
leaq 0x338d97(%rip), %rax    # 0x3aa0a8
movq (%rax), %rdi
leaq 0x5c555(%rip), %rax     # 0xcd870
movq (%rax), %rax
movslq 0x1407128(%rax), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
addq %rax, %rcx
movslq (%rbx), %rax
movq 0x30f28(%rcx,%rax,8), %rdx
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
leaq 0x2e974(%rip), %rsi     # 0x9fcbc
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x42e0
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rule.c
// Function: write_ruleset
void write_ruleset(Ruleset r)
{
	/*!Last Changed 30.10.2003*/
	Decisionruleptr rule;
	rule = r.start;
	while (rule)
	 {
		 write_rule(rule);
		 rule = rule->next;
	 }
}

// Assembly:
pushq %rbx
leaq 0x10(%rsp), %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x71372
movq %rbx, %rdi
callq 0x712e9
addq $0x30, %rbx
jmp 0x7135c
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq %rax
movq %rdi, %rbx
leaq 0x40(%rsp), %rax
xorl %ebp, %ebp
movl 0x14(%rax), %r13d
testq %rbx, %rbx
je 0x713f5
movq %rbx, %rdi
callq 0x2b47e
movl %eax, %r14d
leaq 0x40(%rsp), %r12
movq (%r12), %r12
testq %r12, %r12
je 0x713dc
leaq 0x18(%r12), %r15
movq (%r15), %r15
testq %r15, %r15
je 0x713d1
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7099c
addq $0x48, %r15
testl %eax, %eax
jne 0x713b0
addq $0x30, %r12
jmp 0x713a2
xorl %eax, %eax
cmpl (%r12), %r14d
setne %al
addl %eax, %ebp
testq %r12, %r12
sete %al
cmpl %r13d, %r14d
setne %cl
andb %al, %cl
movzbl %cl, %eax
addl %eax, %ebp
movq 0x10(%rbx), %rbx
jmp 0x7138d
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rule.c
// Function: rule_cover_instance
int rule_cover_instance(Instanceptr instance, Decisionrule rule)
{
	/*!Last Changed 10.05.2003*/
	Decisionconditionptr tmp = rule.start;
	while (tmp)
	 {
		 if (!condition_cover_instance(instance, tmp))
				 return NO;
		 tmp = tmp->next;
	 }
	return YES;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x38(%rsp), %r15
pushq $0x1
popq %rbx
movq (%r15), %r15
testq %r15, %r15
je 0x71433
movq %r14, %rdi
movq %r15, %rsi
callq 0x7099c
addq $0x48, %r15
testl %eax, %eax
jne 0x71416
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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, 0x10(%rsp)
movq %r8, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r13
leaq 0x60(%rsp), %rax
movl 0x14(%rax), %eax
movl %eax, 0xc(%rsp)
testq %r13, %r13
je 0x714fc
movq %r13, %rdi
callq 0x2b47e
movl %eax, %r15d
leaq 0x60(%rsp), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x714d2
cmpl $-0x1, %ebp
je 0x71497
cmpl %ebp, (%r14)
jne 0x714b6
leaq 0x18(%r14), %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x714bc
movq %r13, %rdi
movq %rbx, %rsi
callq 0x7099c
addq $0x48, %rbx
testl %eax, %eax
jne 0x7149b
addq $0x30, %r14
jmp 0x71485
incl (%r12)
movq 0x20(%rsp), %rax
cmpl (%r14), %r15d
je 0x714cc
incl (%rax)
movq 0x10(%r13), %r13
jmp 0x7146c
cmpl $-0x1, %ebp
setne %cl
movq 0x18(%rsp), %rax
incl (%rax)
cmpl 0xc(%rsp), %r15d
sete %dl
movq 0x10(%rsp), %rax
cmpl %ebp, %r15d
je 0x714ca
orb %dl, %cl
movq 0x10(%rsp), %rax
jne 0x714cc
jmp 0x714ca
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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)
pushq $0x2
popq %rsi
pushq $-0x2
popq %rdx
pushq $-0x3
popq %rcx
movl %ebp, %edi
xorl %eax, %eax
callq 0x35812
testl %eax, %eax
je 0x716eb
movq 0x20(%r14), %rdi
movq 0x28(%r14), %rsi
callq 0x383f4
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 0x7171f
leaq 0x50(%rbx), %rdi
movups 0x50(%r14), %xmm0
movups 0x60(%r14), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x2e56c
andq $0x0, 0x48(%rbx)
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2e5b2(%rip), %rsi     # 0x9fcf3
pushq $0x70
popq %rdi
pushq $0x1
popq %rdx
callq 0x34f59
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)
pushq $0x2
popq %rsi
pushq $-0x2
popq %rdx
pushq $-0x3
popq %rcx
xorl %eax, %eax
callq 0x35812
testl %eax, %eax
je 0x7179f
movq 0x20(%r14), %rdi
movq 0x28(%r14), %rsi
callq 0x383f4
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 0x717e9
movups 0x50(%r14), %xmm0
movups 0x60(%r14), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x2e56c
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x60(%rbx)
movups %xmm0, 0x50(%rbx)
andq $0x0, 0x48(%rbx)
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
leaq 0x2e34c(%rip), %r15     # 0x9fb58
pushq $0x38
popq %rdi
pushq $0x1
popq %rdx
movq %r15, %rsi
callq 0x34f59
movq %rax, %r14
movl 0x28(%rbx), %eax
movl %eax, 0x28(%r14)
movq (%rbx), %rax
movq %rax, (%r14)
movl 0x8(%rbx), %eax
movl %eax, 0x8(%r14)
andq $0x0, 0x30(%r14)
andq $0x0, 0x18(%r14)
leaq 0x18(%r14), %r12
leaq 0x5c02a(%rip), %r13     # 0xcd870
movq (%r13), %rax
movslq 0x10(%rax), %rdi
pushq $0x4
popq %rsi
pushq $0x7
popq %rcx
movq %r15, %rdx
callq 0x35067
movq %rax, 0x10(%r14)
movq (%r13), %rcx
xorl %edx, %edx
movslq 0x10(%rcx), %rsi
cmpq %rsi, %rdx
jge 0x7187e
movq 0x10(%rbx), %rsi
movl (%rsi,%rdx,4), %esi
movl %esi, (%rax,%rdx,4)
incq %rdx
jmp 0x71866
addq $0x18, %rbx
xorl %r13d, %r13d
movq %rbx, %r15
movq (%r15), %r15
testq %r15, %r15
je 0x718b0
movq %r15, %rdi
callq 0x71730
addq $0x48, %r13
cmpq (%rbx), %r15
cmoveq %r12, %r13
movq %rax, (%r13)
addq $0x48, %r15
movq %rax, %r13
jmp 0x71888
movq %r13, 0x20(%r14)
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 $0xf8, %rsp
movq %rdi, %rbx
movl 0x34(%rdi), %edi
callq 0x719a4
movq %rax, %r14
addq $0x18, %rax
movq %rax, 0x80(%rsp)
xorl %ebp, %ebp
xorl %r13d, %r13d
movq %rbx, 0x78(%rsp)
pushq $0xe
popq %r15
movslq 0x80(%rbx), %rax
cmpq %rax, %r13
jge 0x71984
pushq $0x70
popq %rdi
leaq 0x2e3fc(%rip), %rsi     # 0x9fd0c
pushq $0x6
popq %rdx
callq 0x34f59
movq %rax, %r12
movq 0x58(%rbx), %rsi
addq %rbp, %rsi
movq %r15, %rcx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x88(%rsp), %rbx
movq %rbx, %rdi
callq 0x71689
movq %r15, %rcx
movq %r12, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
andq $0x0, 0x48(%r12)
movl 0x28(%r14), %ecx
leal 0x1(%rcx), %eax
movl %eax, 0x28(%r14)
movq 0x80(%rsp), %rax
testl %ecx, %ecx
je 0x7196c
movq 0x20(%r14), %rax
addq $0x48, %rax
movq %r12, (%rax)
movq %r12, 0x20(%r14)
incq %r13
addq $0x70, %rbp
movq 0x78(%rsp), %rbx
jmp 0x718fa
movq 0x84(%rbx), %rax
movq %rax, 0x4(%r14)
movq %r14, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2e393(%rip), %r14     # 0x9fd45
pushq $0x38
popq %rdi
pushq $0x1
popq %rdx
movq %r14, %rsi
callq 0x34f59
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rax)
andl $0x0, 0x28(%rax)
movl %ebx, (%rax)
andq $0x0, 0x30(%rax)
leaq 0x5be94(%rip), %rax     # 0xcd870
movq (%rax), %rax
movslq 0x10(%rax), %rdi
pushq $0x4
popq %rsi
pushq $0x8
popq %rcx
movq %r14, %rdx
callq 0x35067
movq %rax, 0x10(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x71a15
movq 0x20(%rdi), %rax
addq $0x48, %rax
jmp 0x71a19
leaq 0x18(%rdi), %rax
movq %rsi, (%rax)
movq %rsi, 0x20(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/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, %rbx
leaq 0x2e2ed(%rip), %r15     # 0x9fd20
pushq $0x28
popq %rdi
pushq $0x1
popq %rdx
movq %r15, %rsi
callq 0x34f59
movq %rax, %r14
movl 0x20(%rbx), %eax
movl %eax, 0x20(%r14)
movq 0x10(%rbx), %rax
movq %rax, 0x10(%r14)
andq $0x0, (%r14)
leaq 0x5be12(%rip), %rax     # 0xcd870
movq (%rax), %rax
movslq 0x10(%rax), %rdi
pushq $0x4
popq %rsi
pushq $0x7
popq %rcx
movq %r15, %rdx
callq 0x35067
movq %rax, 0x18(%r14)
xorl %r12d, %r12d
movq %rbx, %r15
movq (%r15), %r15
testq %r15, %r15
je 0x71aa5
movq %r15, %rdi
callq 0x717f9
addq $0x30, %r12
cmpq (%rbx), %r15
cmoveq %r14, %r12
movq %rax, (%r12)
addq $0x30, %r15
movq %rax, %r12
jmp 0x71a7d
movq %r12, 0x8(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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:
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
andl $0x0, (%rsi)
andl $0x0, (%rdx)
leaq 0x58(%rsp), %rbp
testq %r12, %r12
je 0x71b16
movq %rbp, %r13
movq (%r13), %r13
movq %r12, %rdi
testq %r13, %r13
je 0x71aff
movq %r13, %rsi
callq 0x7099c
addq $0x48, %r13
testl %eax, %eax
jne 0x71ae1
jmp 0x71b0f
callq 0x2b47e
cmpl %ebx, %eax
movq %r14, %rax
cmoveq %r15, %rax
incl (%rax)
movq 0x10(%r12), %r12
jmp 0x71ad9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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:
pushq %rbp
pushq %r14
pushq %rbx
xorl %ebp, %ebp
leaq 0x20(%rsp), %r14
movq %r14, %rbx
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x71b6e
movq %rbx, %rdi
callq 0x71b25
testl %eax, %eax
je 0x71b79
incl %ebp
addq $0x30, %rbx
jmp 0x71b52
xorl %eax, %eax
cmpl %ebp, 0x10(%r14)
sete %al
jmp 0x71b7b
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x2
popq %rsi
pushq $-0x2
popq %rdx
pushq $-0x3
popq %rcx
movl %ebx, %edi
xorl %eax, %eax
callq 0x35812
testl %eax, %eax
je 0x71bc3
movq 0x20(%r14), %rdi
movq 0x28(%r14), %rsi
callq 0x3929f
cmpl $-0x5, %ebx
jne 0x71be0
movups 0x50(%r14), %xmm0
movups 0x60(%r14), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x1b264
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
subq $0x78, %rsp
leaq 0xa0(%rsp), %r15
movq 0x18(%r15), %r14
pushq $0xe
popq %rbx
testq %r14, %r14
je 0x71c29
movq 0x48(%r14), %r12
movq %rbx, %rcx
movq %rsp, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x71b91
movq %r14, %rdi
callq 0x34ff7
movq %r12, %r14
jmp 0x71c02
movq 0x10(%r15), %rdi
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x34ff7
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
leaq 0x60(%rsp), %r14
movq (%r14), %rbx
testq %rbx, %rbx
je 0x71c8b
movq 0x30(%rbx), %r15
movq 0x30(%rbx), %rax
movq %rax, 0x30(%rsp)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x71be8
movq %rbx, %rdi
callq 0x34ff7
movq %r15, %rbx
jmp 0x71c4e
movq 0x18(%r14), %rdi
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x34ff7
// File: /workspace/github_c_makefile_star2_O2/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 0x2e077(%rip), %rsi     # 0x9fd50
pushq $0x70
popq %rdi
pushq $0x1
popq %rdx
callq 0x34f59
orl $-0x1, (%rax)
andq $0x0, 0x48(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x71d20
leaq 0x8(%rsp), %rdx
movl 0x10(%rdi), %ecx
movq (%rdx), %rsi
movq %rdi, %r8
testl %ecx, %ecx
je 0x71d10
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_O2/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 %rdi, %r14
leaq 0x30(%rsp), %r12
pushq $0x1
popq %rbx
movq (%r12), %r12
testq %r12, %r12
je 0x71f0f
leaq 0x18(%r12), %r15
movq (%r15), %r15
testq %r15, %r15
je 0x71f11
movq %r14, %rdi
movq %r15, %rsi
callq 0x7099c
addq $0x48, %r15
testl %eax, %eax
jne 0x71eee
addq $0x30, %r12
jmp 0x71ee0
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rule.c
// Function: rule_cover_instance2
int rule_cover_instance2(Instanceptr instance, Decisionrule rule)
{
	/*!Last Changed 19.09.2004*/
	Decisionconditionptr tmp = rule.start;
	while (tmp)
	 {
		 if (!condition_cover_instance2(instance, tmp))
				 return NO;
		 tmp = tmp->next;
	 }
	return YES;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x38(%rsp), %r15
pushq $0x1
popq %rbx
movq (%r15), %r15
testq %r15, %r15
je 0x71f4c
movq %r14, %rdi
movq %r15, %rsi
callq 0x71d21
addq $0x48, %r15
testl %eax, %eax
jne 0x71f2f
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
movq %rdi, %r14
leaq 0x48(%rsp), %r12
movl -0x18(%r12), %ebp
pushq $0x1
popq %rbx
testq %r14, %r14
je 0x71fa1
movq %r14, %rdi
callq 0x2b47e
cmpl %ebp, %eax
je 0x71f9b
movq %r12, %r15
movq (%r15), %r15
testq %r15, %r15
je 0x71fa3
movq %r14, %rdi
movq %r15, %rsi
callq 0x7099c
addq $0x48, %r15
testl %eax, %eax
jne 0x71f80
movq 0x10(%r14), %r14
jmp 0x71f6c
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r14
xorl %ebx, %ebx
leaq 0x30(%rsp), %r12
testq %r14, %r14
je 0x72039
movq %r12, %r13
movq (%r13), %r13
testq %r13, %r13
je 0x72033
leaq 0x18(%r13), %r15
movq (%r15), %r15
movq %r14, %rdi
testq %r15, %r15
je 0x72023
movq %r15, %rsi
callq 0x7099c
addq $0x48, %r15
testl %eax, %eax
jne 0x72002
addq $0x30, %r13
jmp 0x71ff5
callq 0x2b47e
xorl %ecx, %ecx
cmpl (%r13), %eax
setne %cl
addl %ecx, %ebx
movq 0x10(%r14), %r14
jmp 0x71fed
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x72064
movq %rdi, %rbx
cmpl $-0x1, (%rdi)
je 0x72068
movq %rbx, %rdi
callq 0x7094e
movl %eax, %ebp
jmp 0x7206a
xorl %ebp, %ebp
jmp 0x72083
xorl %ebp, %ebp
pushq $0xe
popq %rcx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x71b91
movq %rbx, %rdi
callq 0x34ff7
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x720a6
movq 0x48(%rsi), %rax
movq %rax, 0x48(%rdx)
movq %rdx, 0x48(%rsi)
movq 0x48(%rdx), %rax
jmp 0x720b2
movq 0x18(%rdi), %rax
movq %rax, 0x48(%rdx)
movq %rdx, 0x18(%rdi)
testq %rax, %rax
je 0x720b8
retq
movq %rdx, 0x20(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x720f4
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_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x58(%rsp), %r15
xorl %ebp, %ebp
movl -0x18(%r15), %r13d
xorl %r12d, %r12d
testq %rbx, %rbx
je 0x72163
movq %r15, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x72148
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7099c
addq $0x48, %r14
testl %eax, %eax
jne 0x7212b
jmp 0x7215d
incl %r12d
movq %rbx, %rdi
callq 0x2b47e
xorl %ecx, %ecx
cmpl %r13d, %eax
setne %cl
addl %ecx, %ebp
movq 0x10(%rbx), %rbx
jmp 0x72123
cvtsi2sd %ebp, %xmm0
cvtsi2sd %r12d, %xmm1
divsd %xmm1, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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 0x72199
movq 0x30(%rsi), %rax
movq %rax, 0x30(%rdx)
movq %rdx, 0x30(%rsi)
movq 0x30(%rdx), %rax
jmp 0x721a3
movq (%rdi), %rax
movq %rax, 0x30(%rdx)
movq %rdx, (%rdi)
testq %rax, %rax
je 0x721a9
retq
movq %rdx, 0x8(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/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 $0x38, %rsp
movl %esi, %ebx
movq %rdi, %r14
movq (%rdi), %r13
xorl %r12d, %r12d
leaq 0x30(%r12), %rbp
testq %r12, %r12
cmoveq %r14, %rbp
movq %r13, %r15
testq %r13, %r13
je 0x72255
movq 0x30(%r15), %r13
cmpl %ebx, (%r15)
jne 0x72250
movq %r13, (%rbp)
testq %r13, %r13
jne 0x72218
movq %r12, 0x8(%r14)
decl 0x10(%r14)
movq 0x30(%r15), %rax
movq %rax, 0x30(%rsp)
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x71be8
movq %r15, %rdi
callq 0x34ff7
jmp 0x721fa
movq %r15, %r12
jmp 0x721ee
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x7229c
movq 0x8(%rdi), %rcx
addq $0x30, %rcx
movq %rsi, (%rcx)
movq %rsi, 0x8(%rdi)
andq $0x0, 0x30(%rsi)
incl %eax
movl %eax, 0x10(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testl %edx, %edx
je 0x722c5
andq $0x0, 0x4(%r14)
leaq 0x18(%r14), %r12
testq %rbx, %rbx
je 0x72308
movq %r12, %r15
movq (%r15), %r15
movq %rbx, %rdi
testq %r15, %r15
je 0x722ee
movq %r15, %rsi
callq 0x7099c
addq $0x48, %r15
testl %eax, %eax
jne 0x722d1
jmp 0x72302
callq 0x2b47e
cmpl (%r14), %eax
jne 0x722fe
incl 0x4(%r14)
jmp 0x72302
incl 0x8(%r14)
movq 0x10(%rbx), %rbx
jmp 0x722c9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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), %rcx
leaq 0x5b542(%rip), %rax     # 0xcd870
movq (%rax), %rax
movq 0x18(%rcx), %r12
xorl %edx, %edx
movslq 0x10(%rax), %rcx
cmpq %rcx, %rdx
jge 0x7234a
andl $0x0, (%r12,%rdx,4)
incq %rdx
jmp 0x72337
leaq 0x40(%rsp), %rdx
movq (%rdx), %rdx
testq %rdx, %rdx
je 0x723e2
andq $0x0, 0x4(%rdx)
xorl %esi, %esi
movslq %ecx, %rdi
cmpq %rdi, %rsi
jge 0x7237a
movq 0x10(%rdx), %rcx
andl $0x0, (%rcx,%rsi,4)
incq %rsi
movl 0x10(%rax), %ecx
jmp 0x72362
addq $0x30, %rdx
jmp 0x7234f
movq %rbx, %rdi
callq 0x2b47e
movl %eax, %ebp
leaq 0x40(%rsp), %r13
movq (%r13), %r13
movslq %ebp, %r15
testq %r13, %r13
je 0x723dc
leaq 0x18(%r13), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x723c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7099c
addq $0x48, %r14
testl %eax, %eax
jne 0x7239f
addq $0x30, %r13
jmp 0x7238f
movq 0x10(%r13), %rax
incl (%rax,%r15,4)
incl 0x4(%r13)
cmpl (%r13), %ebp
je 0x723d6
incl 0x8(%r13)
movq 0x10(%rbx), %rbx
jmp 0x723e2
incl (%r12,%r15,4)
jmp 0x723d6
testq %rbx, %rbx
jne 0x72380
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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 0x108c8
movq %rax, %rbx
leaq 0x23f0d(%rip), %r15     # 0x96320
movq %r15, %rdi
callq 0x4090
movq %r14, %rdi
callq 0x4090
movq %r15, %rdi
callq 0x4090
leaq 0x5b43e(%rip), %r12     # 0xcd870
leaq 0x2d927(%rip), %r14     # 0x9fd60
xorl %r15d, %r15d
movq (%r12), %rax
movslq 0x10(%rax), %rax
cmpq %rax, %r15
jge 0x7245f
movl (%rbx,%r15,4), %edx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x4030
incq %r15
jmp 0x7243c
leaq 0x23eba(%rip), %rdi     # 0x96320
callq 0x4090
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x34ff7
// File: /workspace/github_c_makefile_star2_O2/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 %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
incl 0x337c8c(%rip)          # 0x3aa1e8
pushq $0x4
popq %rsi
pushq $0x1
popq %rcx
pushq $0x3
popq %r8
pushq $0x2
popq %r9
movl %ebp, %edi
xorl %edx, %edx
xorl %eax, %eax
callq 0x35812
testl %eax, %eax
je 0x72581
movq %rbx, %rdi
callq 0x72524
cmpl $0x2, %ebp
jb 0x7258d
je 0x72598
cmpl $0x3, %ebp
jne 0x725ad
leaq 0x2ec76(%rip), %rdi     # 0xa120a
pushq $0x2
jmp 0x725a1
leaq 0x2dad5(%rip), %rdi     # 0xa0074
pushq $0x6
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x42c0
incl 0x337c35(%rip)          # 0x3aa1e8
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x726d2
movl %edx, %eax
movq %rsi, %rdx
movl %ecx, %ecx
leaq 0x2d6e9(%rip), %rsi     # 0x9fd70
movslq (%rsi,%rcx,4), %rcx
addq %rsi, %rcx
jmpq *%rcx
leaq 0x2da2c(%rip), %rsi     # 0xa00c3
jmp 0x726bb
leaq 0x2dabb(%rip), %rsi     # 0xa015b
jmp 0x726bb
leaq 0x2da5c(%rip), %rsi     # 0xa0105
jmp 0x726c9
leaq 0x2da7c(%rip), %rsi     # 0xa012e
jmp 0x726bb
leaq 0x2da26(%rip), %rsi     # 0xa00e1
xorl %eax, %eax
jmp 0x42e0
leaq 0x2dab2(%rip), %rsi     # 0xa017b
movl %eax, %ecx
xorl %eax, %eax
jmp 0x42e0
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/savecode.c
// Function: code_start
void code_start(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language)
{
 /*!Last Changed 05.06.2006*/
 switch (language){   
   case PASCAL_LANGUAGE :fprintf(testcodefile, "begin\n");
                         break;
   default              :break;
 };
 indentation++;
}

// Assembly:
cmpl $0x2, %esi
jne 0x726f2
pushq %rax
movq %rdi, %rcx
leaq 0x2d991(%rip), %rdi     # 0xa0074
pushq $0x6
popq %rsi
pushq $0x1
popq %rdx
callq 0x42c0
addq $0x8, %rsp
incl 0x337af0(%rip)          # 0x3aa1e8
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x72732
movb $0x2c, %bpl
cmpl $0x5, %r15d
ja 0x7273f
leaq 0x2d822(%rip), %rax     # 0x9ff48
movl (%rax,%r12,4), %edi
movq %rbx, %rsi
callq 0x4150
cmpl $0x4, %r15d
pushq $0x20
popq %rax
pushq $0x2c
popq %rbp
cmovel %eax, %ebp
cmpl $0x5, %r15d
ja 0x72785
leaq 0x2d63c(%rip), %rax     # 0x9fd88
movslq (%rax,%r12,4), %rcx
addq %rax, %rcx
jmpq *%rcx
pushq $0x7b
jmp 0x7277c
pushq $0x28
jmp 0x7277c
leaq 0x2df68(%rip), %rdi     # 0xa06cc
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x42c0
jmp 0x72785
cmpl $-0x1, %r14d
jne 0x72785
pushq $0x5b
popq %rdi
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_O2/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 0x727be
movl %esi, %eax
leaq 0x2d5fa(%rip), %rcx     # 0x9fda0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x7d
jmp 0x727b5
pushq $0x29
popq %rdi
movq %rbx, %rsi
callq 0x4150
cmpl $-0x1, %ebp
je 0x727f1
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x2d9d8(%rip), %rdi     # 0xa01a9
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x42c0
jmp 0x727be
cmpl $-0x1, %ebp
jne 0x727c3
pushq $0x5d
popq %rdi
movq %rbx, %rsi
callq 0x4150
leaq 0x2705f(%rip), %rdi     # 0x99857
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x42c0
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/savecode.c
// Function: code_constant_subarray
void code_constant_subarray(FILE* testcodefile, PROGRAMMING_LANGUAGE_TYPE language, int size, double* values, int index)
{
 /*!Last Changed 24.06.2006 added code_1d_array_start and code_1d_array_end*/
 /*!Last Changed 12.06.2006*/
 int i;
 char ch;
 ch = code_1d_array_start(testcodefile, language, index);
 fprintf(testcodefile, "%.6f", values[0]);
 for (i = 1; i < size; i++)
   fprintf(testcodefile, "%c%.6f", ch, values[i]);
	code_1d_array_end(testcodefile, language, index);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %r13d
movq %rdi, %r15
movl %esi, (%rsp)
movl %r8d, 0x4(%rsp)
movl %r8d, %edx
callq 0x726f9
movl %eax, %r12d
movsd (%r14), %xmm0
leaq 0x2d96f(%rip), %rsi     # 0xa01ae
movq %r15, %rdi
movb $0x1, %al
callq 0x42e0
movzbl %r12b, %r12d
movslq %r13d, %rbx
pushq $0x1
popq %rbp
leaq 0x2d952(%rip), %r13     # 0xa01ac
cmpq %rbx, %rbp
jge 0x7287a
movsd (%r14,%rbp,8), %xmm0
movq %r15, %rdi
movq %r13, %rsi
movl %r12d, %edx
movb $0x1, %al
callq 0x42e0
incq %rbp
jmp 0x7285a
movq %r15, %rdi
movl (%rsp), %esi
movl 0x4(%rsp), %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x72790