LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: complexity_of_regression_rule
int complexity_of_regression_rule(Regressionruleptr rule)
{
	/*!Last Changed 27.03.2005*/
	/*!Last Changed 02.03.2005*/
	int result = 0;
 Regressionconditionptr tmp;
	tmp = rule->start;
	while (tmp)
	 {
		 if (tmp->featureindex >= 0)
  		 result += 2;
			else
				 if (tmp->featureindex == LINEAR)
						 result += current_dataset->multifeaturecount;
					else
						 if (tmp->featureindex == QUADRATIC)
								 result += multifeaturecount_2d(current_dataset) + 1;
		 tmp = tmp->next;
	 }
	if (rule->leaftype == CONSTANTLEAF)
		 result += 1;
	else
		 result += current_dataset->multifeaturecount;
	return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
xorl %ebx, %ebx
leaq 0x63087(%rip), %r15     # 0xcd870
movq %rdi, %r12
movq 0x20(%r12), %r12
testq %r12, %r12
je 0x6a826
movl (%r12), %eax
testl %eax, %eax
jns 0x6a813
cmpl $-0x3, %eax
je 0x6a818
cmpl $-0x2, %eax
jne 0x6a7ec
movq (%r15), %rax
addl 0x1c0(%rax), %ebx
jmp 0x6a7ec
addl $0x2, %ebx
jmp 0x6a7ec
movq (%r15), %rdi
callq 0x126ea
addl %eax, %ebx
incl %ebx
jmp 0x6a7ec
cmpl $0x0, 0x10(%r14)
je 0x6a838
movq (%r15), %rax
addl 0x1c0(%rax), %ebx
jmp 0x6a83a
incl %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/regressionrule.c
// Function: mse_of_ruleset
double mse_of_ruleset(Regressionruleset set, Instanceptr list, int* count)
{
	/*!Last Changed 02.03.2005*/
	int iscovered;
	Instanceptr tmp;
 Regressionruleptr rule;
	double result = 0;
	*count = 0;
	tmp = list;
	while (tmp)
	 {
		 rule = set.start;
			iscovered = 0;
			while (rule)
			 {
	  	 if (regression_rule_cover_instance(tmp, rule))
					 {
		  			result += instance_regression_error(rule->w, rule->regressionvalue, tmp, rule->leaftype);
							iscovered = 1;
							break;
					 }
					rule = rule->next;
			 }
			if (!iscovered)
				 result += instance_regression_error(set.w, set.regressionvalue, tmp, set.leaftype);
		 tmp = tmp->next;
			(*count)++;
	 }
	return result / (*count);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x50(%rsp), %rbp
movsd 0x28(%rbp), %xmm0
movsd %xmm0, 0x8(%rsp)
movl 0x20(%rbp), %eax
movl %eax, 0x4(%rsp)
movq 0x10(%rbp), %r15
movq 0x18(%rbp), %r12
xorpd %xmm1, %xmm1
xorl %eax, %eax
movl %eax, (%rbx)
testq %r14, %r14
je 0x6a8f2
movsd %xmm1, 0x10(%rsp)
movq %rbp, %r13
movq (%r13), %r13
testq %r13, %r13
je 0x6a8af
movq %r14, %rdi
movq %r13, %rsi
callq 0x6b535
testl %eax, %eax
jne 0x6a8c4
addq $0x38, %r13
jmp 0x6a891
movq %r15, %rdi
movq %r12, %rsi
movsd 0x8(%rsp), %xmm0
movq %r14, %rdx
movl 0x4(%rsp), %ecx
jmp 0x6a8d9
movsd 0x18(%r13), %xmm0
movl 0x10(%r13), %ecx
movq (%r13), %rdi
movq 0x8(%r13), %rsi
movq %r14, %rdx
callq 0x6ce8d
movsd 0x10(%rsp), %xmm1
addsd %xmm0, %xmm1
movq 0x10(%r14), %r14
movl (%rbx), %eax
incl %eax
jmp 0x6a881
cvtsi2sd %eax, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: complexity_of_regression_ruleset
int complexity_of_regression_ruleset(Regressionruleset set)
{
	/*!Last Changed 02.03.2005*/
	int result = 0;
	Regressionruleptr rule;
	rule = set.start;
	while (rule)
	 {
		 result += complexity_of_regression_rule(rule);
		 rule = rule->next;
	 }
	if (set.leaftype == CONSTANTLEAF)
		 result += 1;
	else
		 result += current_dataset->multifeaturecount;
	return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
xorl %ebx, %ebx
leaq 0x20(%rsp), %r15
movq %r15, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x6a934
movq %r14, %rdi
callq 0x6a7d5
addl %eax, %ebx
addq $0x38, %r14
jmp 0x6a91c
cmpl $0x0, 0x20(%r15)
je 0x6a94d
leaq 0x62f2e(%rip), %rax     # 0xcd870
movq (%rax), %rax
addl 0x1c0(%rax), %ebx
jmp 0x6a94f
incl %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: can_be_divided_rule
int can_be_divided_rule(Instanceptr data, double sigma, matrix* w, double* regvalue, LEAF_TYPE leaftype)
{
	/*!Last Changed 03.04.2005 added size < 3*/
	/*!Last Changed 02.03.2005*/
	int size;
	matrix X, r;
	double error;
	size = data_size(data);
	if (size < 3)
		 return 0;
	if (leaftype == CONSTANTLEAF)
	 {
  	*regvalue = find_mean_of_regression_value(data);
			error = find_variance_of_regression_value(data, *regvalue);
	 }
	else
	 {
   create_regression_matrices(data, &X, &r);
		 *w = multivariate_regression(X, r);
			matrix_free(X);
			matrix_free(r);
			error = variance_of_linear_regression(*w, data, leaftype);
	 }
	if (error / size < sigma)
		 return 0;
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %ebp
movq %rdx, %r12
movq %rsi, %r15
movsd %xmm0, (%rsp)
movq %rdi, %r14
callq 0x2c3cc
movl %eax, %ebx
xorl %eax, %eax
cmpl $0x3, %ebx
jl 0x6b144
testl %ebp, %ebp
je 0x6b118
leaq 0x18(%rsp), %r12
leaq 0x8(%rsp), %r13
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x6cf16
movq (%r12), %rdi
movq 0x8(%r12), %rsi
movq (%r13), %rdx
movq 0x8(%r13), %rcx
callq 0x6ca8d
movq %rax, (%r15)
movq %rdx, 0x8(%r15)
movq (%r12), %rdi
movq 0x8(%r12), %rsi
callq 0x3929f
movq (%r13), %rdi
movq 0x8(%r13), %rsi
callq 0x3929f
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq 0x6cebf
jmp 0x6b12e
movq %r14, %rdi
callq 0x2c08f
movsd %xmm0, (%r12)
movq %r14, %rdi
callq 0x2c0e3
cvtsi2sd %ebx, %xmm1
divsd %xmm1, %xmm0
xorl %eax, %eax
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
setbe %al
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/regressionrule.c
// Function: grow_regression_rule
Regressionruleptr grow_regression_rule(Instanceptr* growset, Regrule_parameterptr param)
{
	/*!Last Changed 02.03.2005*/
	Regressionruleptr result;
	Regressionconditionptr newcondition;
	matrix w;
	double regvalue;
	Instanceptr obey, notobey = NULL;
 result = empty_regression_rule();
	result->leaftype = param->leaftype;
	obey = (*growset);
 while (can_be_divided_rule(obey, param->sigma, &w, &regvalue, param->leaftype))
	 {
			newcondition = best_regression_condition(&obey, param);
			if (newcondition->featureindex == LEAF_NODE || newcondition->comparison == '=')
			 {
				 safe_free(newcondition);
				 break;
			 }
			else
			 {
				 add_regression_condition(result, newcondition);
					send_regression_exceptions(newcondition, &obey, &notobey);
			 }
		 if (param->leaftype == LINEARLEAF)
  		 matrix_free(w);
	 }
	result->covered = data_size(obey);
	if (notobey)
	 {
   merge_instancelist(&notobey, obey);
	  (*growset) = notobey;
	 }
	else
		 (*growset) = obey;
 if (param->leaftype == CONSTANTLEAF)
	  result->regressionvalue = regvalue;
	else
   result->w = w;
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x18(%rsp), %r12
andq $0x0, (%r12)
callq 0x6b739
movq %rax, %rbx
movl (%r14), %ecx
movl %ecx, 0x10(%rax)
movq %r15, 0x10(%rsp)
movq (%r15), %rdi
leaq 0x8(%rsp), %r13
movq %rdi, (%r13)
leaq 0x28(%rsp), %rbp
leaq 0x20(%rsp), %r15
movsd 0x10(%r14), %xmm0
movq %rbp, %rsi
movq %r15, %rdx
callq 0x6b081
testl %eax, %eax
je 0x6b218
movq %r13, %rdi
movq %r14, %rsi
callq 0x6c06b
cmpl $-0x1, (%rax)
je 0x6b210
cmpb $0x3d, 0x4(%rax)
je 0x6b210
movl 0x30(%rbx), %edx
leal 0x1(%rdx), %ecx
movl %ecx, 0x30(%rbx)
movq %rbx, %rcx
testl %edx, %edx
je 0x6b1d9
movq 0x28(%rbx), %rcx
movq %rax, 0x20(%rcx)
movq %rax, 0x28(%rbx)
movq %rax, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x6b5b2
movl (%r14), %ecx
cmpl $0x1, %ecx
jne 0x6b209
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x3929f
movl (%r14), %ecx
movq 0x8(%rsp), %rdi
jmp 0x6b19a
movq %rax, %rdi
callq 0x34ff7
movq 0x8(%rsp), %rdi
callq 0x2c3cc
movl %eax, 0x40(%rbx)
cmpq $0x0, 0x18(%rsp)
je 0x6b23d
movq 0x8(%rsp), %rsi
movq %r12, %rdi
callq 0x2c6e4
movq %r12, %r13
movq (%r13), %rax
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
cmpl $0x0, (%r14)
je 0x6b259
movups 0x28(%rsp), %xmm0
movups %xmm0, (%rbx)
jmp 0x6b264
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x18(%rbx)
movq %rbx, %rax
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/regressionrule.c
// Function: prune_regression_rule
void prune_regression_rule(Regressionruleptr rule, Instanceptr dataset, int modelselectionmethod)
{
	/*!Last Changed 04.03.2005*/
	double bestgen, gen;
	int improved = 1;
	Regressioncondition *best, *bestbefore, *tmpcondition, *tmpbefore;
	bestgen = generalization_error_of_regression_rule(rule, dataset, modelselectionmethod);
	while (improved)
	 {
		 improved = 0;
			tmpbefore = NULL;
   tmpcondition = rule->start;
			while (tmpcondition)
			 {
				 remove_regression_condition_after(rule, tmpbefore, tmpcondition);
	    gen = generalization_error_of_regression_rule(rule, dataset, modelselectionmethod);
					if (gen < bestgen)
					 {
						 bestgen = gen;
							bestbefore = tmpbefore;
							best = tmpcondition;
							improved = 1;
					 }
					add_regression_condition_after(rule, tmpbefore, tmpcondition);
				 tmpbefore = tmpcondition;
				 tmpcondition = tmpcondition->next;
			 }
			if (improved)
			 {
				 remove_regression_condition_after(rule, bestbefore, best);
					safe_free(best);
			 }
	 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
callq 0x6a6d5
movsd %xmm0, (%rsp)
xorl %ebp, %ebp
testb $0x1, %bpl
jne 0x6b32d
xorl %r12d, %r12d
movq %r15, %rbp
xorl %r13d, %r13d
movq 0x20(%rbp), %rbp
testq %rbp, %rbp
je 0x6b302
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x6b565
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x6a6d5
movsd (%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x6b2ef
movsd %xmm0, (%rsp)
pushq $0x1
popq %rax
movl %eax, %r12d
movq %rbp, 0x10(%rsp)
movq %r13, 0x8(%rsp)
movq %r15, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x6b581
movq %rbp, %r13
jmp 0x6b2ab
testl %r12d, %r12d
sete %bpl
je 0x6b298
movq %r15, %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %r12
movq %r12, %rdx
callq 0x6b565
movq %r12, %rdi
callq 0x34ff7
jmp 0x6b298
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: grow_regression_revision_rule
Regressionruleptr grow_regression_revision_rule(Instanceptr* growset, Regressionruleptr rule, Regrule_parameterptr param)
{
	/*!Last Changed 05.03.2005*/
	Regressionruleptr result = create_copy_of_regression_rule(rule);
	Regressionconditionptr newcondition;
	matrix w;
	double regvalue;
	Instanceptr obey = NULL, notobey;
	notobey = (*growset);
 remove_regression_covered(&notobey, &obey, result);
 while (can_be_divided_rule(obey, param->sigma, &w, &regvalue, rule->leaftype))
	 {
			newcondition = best_regression_condition(&obey, param);
			if (newcondition->featureindex == LEAF_NODE || newcondition->comparison == '=')
			 {
				 safe_free(newcondition);
				 break;
			 }
			else
			 {
				 add_regression_condition(result, newcondition);
					send_regression_exceptions(newcondition, &obey, &notobey);
			 }
		 if (rule->leaftype == LINEARLEAF)
  		 matrix_free(w);
	 }
	result->covered = data_size(obey);
	if (notobey)
	 {
   merge_instancelist(&notobey, obey);
	  (*growset) = notobey;
	 }
	else
		 (*growset) = obey;
 if (rule->leaftype == CONSTANTLEAF)
	  result->regressionvalue = regvalue;
	else
   result->w = w;
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbp
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
callq 0x6c1ae
leaq 0x10(%rsp), %r13
andq $0x0, (%r13)
movq %rax, %rbx
movq %r15, 0x18(%rsp)
movq (%r15), %rax
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
movq %r13, %rsi
movq %rbx, %rdx
callq 0x6b46d
leaq 0x28(%rsp), %r15
leaq 0x20(%rsp), %r12
movq 0x10(%rsp), %rdi
movsd 0x10(%rbp), %xmm0
movl 0x10(%r14), %ecx
movq %r15, %rsi
movq %r12, %rdx
callq 0x6b081
testl %eax, %eax
je 0x6b40c
movq %r13, %rdi
movq %rbp, %rsi
callq 0x6c06b
cmpl $-0x1, (%rax)
je 0x6b404
cmpb $0x3d, 0x4(%rax)
je 0x6b404
movl 0x30(%rbx), %edx
leal 0x1(%rdx), %ecx
movl %ecx, 0x30(%rbx)
movq %rbx, %rcx
testl %edx, %edx
je 0x6b3d4
movq 0x28(%rbx), %rcx
movq %rax, 0x20(%rcx)
movq %rax, 0x28(%rbx)
movq %rax, %rdi
movq %r13, %rsi
leaq 0x8(%rsp), %rdx
callq 0x6b5b2
cmpl $0x1, 0x10(%r14)
jne 0x6b38d
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x3929f
jmp 0x6b38d
movq %rax, %rdi
callq 0x34ff7
movq 0x10(%rsp), %rdi
callq 0x2c3cc
movl %eax, 0x40(%rbx)
cmpq $0x0, 0x8(%rsp)
je 0x6b433
movq 0x10(%rsp), %rsi
leaq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x2c6e4
movq (%r13), %rax
movq 0x18(%rsp), %rcx
movq %rax, (%rcx)
cmpl $0x0, 0x10(%r14)
je 0x6b450
movups 0x28(%rsp), %xmm0
movups %xmm0, (%rbx)
jmp 0x6b45b
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x18(%rbx)
movq %rbx, %rax
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/regressionrule.c
// Function: remove_regression_covered
void remove_regression_covered(Instanceptr* list1, Instanceptr* list2, Regressionruleptr rule)
{
	/*!Last Changed 04.03.2005*/
	Instanceptr tmp, next, last, tmpbefore;
	last = *list2;
	if (last)
		 while (last->next)
				 last = last->next;
	tmpbefore = NULL;
	tmp = *list1;
	while (tmp)
	 {
		 next = tmp->next;
   if (regression_rule_cover_instance(tmp, rule))
			 {
				 if (last)
						 last->next = tmp;
					else
						 (*list2) = tmp;
					last = tmp;
			 }
			else
			 {
				 if (tmpbefore)
				   tmpbefore->next = tmp;
					else
						 (*list1) = tmp;
			  tmpbefore = tmp;
			 }
			tmp = next;
	 }
	if (last)
	  last->next = NULL;
	if (tmpbefore)
		 tmpbefore->next = NULL;
	else
		 (*list1) = NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, (%rsp)
movq (%rsi), %rax
testq %rax, %rax
je 0x6b498
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x6b48a
jmp 0x6b49b
xorl %r13d, %r13d
movq (%rsp), %rax
movq (%rax), %r12
xorl %ebp, %ebp
testq %r12, %r12
je 0x6b4e8
movq 0x10(%r12), %rbx
movq %r12, %rdi
movq %r14, %rsi
callq 0x6b535
testl %eax, %eax
movq %r15, %rax
cmoveq (%rsp), %rax
movq %r12, %rcx
cmoveq %r13, %rcx
cmoveq %rbp, %r13
cmoveq %r12, %rbp
leaq 0x10(%r13), %rdx
testq %r13, %r13
cmoveq %rax, %rdx
movq %r12, (%rdx)
movq %rbx, %r12
movq %rcx, %r13
jmp 0x6b4a4
testq %r13, %r13
je 0x6b4f2
andq $0x0, 0x10(%r13)
leaq 0x10(%rbp), %rax
testq %rbp, %rbp
cmoveq (%rsp), %rax
andq $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: add_regression_rule
void add_regression_rule(Regressionruleset* set, Regressionruleptr rule)
{
	/*!Last Changed 04.03.2005*/
	if (set->rulecount == 0)
		 set->start = rule;
	else
		 set->end->next = rule;
	set->end = rule;
	rule->next = NULL;
	set->rulecount++;
}

// Assembly:
movl 0x30(%rdi), %eax
movq %rdi, %rcx
testl %eax, %eax
je 0x6b523
movq 0x8(%rdi), %rcx
addq $0x38, %rcx
movq %rsi, (%rcx)
movq %rsi, 0x8(%rdi)
andq $0x0, 0x38(%rsi)
incl %eax
movl %eax, 0x30(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: add_regression_condition_after
void add_regression_condition_after(Regressionruleptr rule, Regressionconditionptr before, Regressionconditionptr inserted)
{
	/*!Last Changed 04.03.2005*/
	rule->conditioncount++;
	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 0x30(%rdi)
testq %rsi, %rsi
je 0x6b59b
movq 0x20(%rsi), %rax
movq %rax, 0x20(%rdx)
movq %rdx, 0x20(%rsi)
movq 0x20(%rdx), %rax
jmp 0x6b5a7
movq 0x20(%rdi), %rax
movq %rax, 0x20(%rdx)
movq %rdx, 0x20(%rdi)
testq %rax, %rax
je 0x6b5ad
retq
movq %rdx, 0x28(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: send_regression_exceptions
void send_regression_exceptions(Regressionconditionptr condition, Instanceptr* obey, Instanceptr* notobey)
{
	/*!Last Changed 02.03.2005*/
	Instanceptr tmp, next, last, tmpbefore;
	last = *notobey;
	if (last)
		 while (last->next)
				 last = last->next;
	tmpbefore = NULL;
	tmp = *obey;
	while (tmp)
	 {
		 next = tmp->next;
   if (!regression_condition_cover_instance(tmp, condition))
			 {
				 if (last)
						 last->next = tmp;
					else
						 (*notobey) = tmp;
					last = tmp;
			 }
			else
			 {
				 if (tmpbefore)
				   tmpbefore->next = tmp;
					else
						 (*obey) = tmp;
			  tmpbefore = tmp;
			 }
			tmp = next;
	 }
	if (last)
	  last->next = NULL;
	if (tmpbefore)
		 tmpbefore->next = NULL;
	else
		 (*obey) = NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, (%rsp)
movq %rdi, %r15
movq (%rdx), %rax
testq %rax, %rax
je 0x6b5dd
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x6b5cf
jmp 0x6b5e0
xorl %r13d, %r13d
movq (%rsp), %rax
movq (%rax), %r12
xorl %ebp, %ebp
testq %r12, %r12
je 0x6b62a
movq 0x10(%r12), %rbx
movq %r12, %rdi
movq %r15, %rsi
callq 0x6b653
testl %eax, %eax
movq %rbp, %rax
cmoveq %r13, %rax
movq (%rsp), %rcx
cmoveq %r14, %rcx
cmoveq %r12, %r13
cmovneq %r12, %rbp
leaq 0x10(%rax), %rdx
testq %rax, %rax
cmoveq %rcx, %rdx
movq %r12, (%rdx)
movq %rbx, %r12
jmp 0x6b5e9
testq %r13, %r13
je 0x6b634
andq $0x0, 0x10(%r13)
leaq 0x10(%rbp), %rax
testq %rbp, %rbp
cmoveq (%rsp), %rax
andq $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: regression_condition_cover_instance
int regression_condition_cover_instance(Instanceptr instance, Regressionconditionptr condition)
{
	/*!Last Changed 27.03.2005*/
	/*!Last Changed 02.03.2005*/
	int fno;
 CHILD_TYPE nearest;
	double value;
	fno = condition->featureindex;
	if (fno >= 0)
	 {
		 value = real_feature(instance, fno);
			if (value < condition->value && condition->comparison == '>')
					return NO;
			if (value > condition->value && condition->comparison == '<')
					return NO;
	 }
	else
	 {
		 nearest = nearest_center_in_regression_tree(instance, condition->featureindex, condition->leftcenter, condition->rightcenter);
		 if (nearest == LEFTCHILD && condition->comparison == '>')
				 return NO;
		 if (nearest == RIGHTCHILD && condition->comparison == '<')
				 return NO;
  }
	return YES;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
movl (%rsi), %esi
testl %esi, %esi
js 0x6b67b
callq 0x2aea2
movsd 0x8(%rbx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x6b673
cmpb $0x3e, 0x4(%rbx)
je 0x6b6a2
ucomisd %xmm1, %xmm0
jbe 0x6b697
jmp 0x6b69c
movq 0x10(%rbx), %rdx
movq 0x18(%rbx), %rcx
callq 0x6c404
cmpl $0x1, %eax
je 0x6b69c
testl %eax, %eax
jne 0x6b697
cmpb $0x3e, 0x4(%rbx)
je 0x6b6a2
pushq $0x1
popq %rax
jmp 0x6b6a4
cmpb $0x3c, 0x4(%rbx)
jne 0x6b697
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: add_regression_condition
void add_regression_condition(Regressionruleptr rule, Regressionconditionptr condition)
{
	/*!Last Changed 02.03.2005*/
	rule->conditioncount++;
	if (rule->conditioncount == 1)
		 rule->start = condition;
	else
	  rule->end->next = condition;
	rule->end = condition;
}

// Assembly:
movl 0x30(%rdi), %ecx
leal 0x1(%rcx), %eax
movl %eax, 0x30(%rdi)
movq %rdi, %rax
testl %ecx, %ecx
je 0x6b6ba
movq 0x28(%rdi), %rax
movq %rsi, 0x20(%rax)
movq %rsi, 0x28(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: free_regression_ruleset
void free_regression_ruleset(Regressionruleset r)
{
 /*!Last Changed 31.08.2008 added freeing weights*/
	/*!Last Changed 02.03.2005*/
	Regressionruleptr tmp, next;
	tmp = r.start;
	while (tmp)
	 {
		 next = tmp->next;
			free_regression_rule(*tmp);
			safe_free(tmp);
			tmp = next;
	 }
 if (r.leaftype == LINEARLEAF)
   matrix_free(r.w);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
leaq 0x70(%rsp), %r15
movq (%r15), %r14
pushq $0x9
popq %rbx
testq %r14, %r14
je 0x6b700
movq 0x38(%r14), %r12
movq %rbx, %rcx
movq %rsp, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x6a646
movq %r14, %rdi
callq 0x34ff7
movq %r12, %r14
jmp 0x6b6d9
cmpl $0x1, 0x20(%r15)
jne 0x6b71f
movq 0x10(%r15), %rdi
movq 0x18(%r15), %rsi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x3929f
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: empty_regression_rule
Regressionruleptr empty_regression_rule()
{
	/*!Last Changed 02.03.2005*/
	Regressionruleptr newrule = safemalloc(sizeof(Regressionrule), "empty_regression_rule", 1);
	newrule->conditioncount = 0;
	newrule->start = NULL;
	newrule->end = NULL;
	newrule->next = NULL;
	return newrule;
}

// Assembly:
pushq %rax
leaq 0x34370(%rip), %rsi     # 0x9fab1
pushq $0x48
popq %rdi
pushq $0x1
popq %rdx
callq 0x34f59
andq $0x0, 0x38(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
andl $0x0, 0x30(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: empty_regression_condition
Regressionconditionptr empty_regression_condition()
{
	/*!Last Changed 27.03.2005*/
	/*!Last Changed 02.03.2005*/
	Regressionconditionptr result = safemalloc(sizeof(Regressioncondition), "empty_regression_condition", 1);
	result->leftcenter = NULL;
	result->rightcenter = NULL;
	result->featureindex = LEAF_NODE;
	result->next = NULL;
	return result;
}

// Assembly:
pushq %rax
leaq 0x34361(%rip), %rsi     # 0x9fac7
pushq $0x28
popq %rdi
pushq $0x1
popq %rdx
callq 0x34f59
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
orl $-0x1, (%rax)
andq $0x0, 0x20(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: separate_which_group
char separate_which_group(Instanceptr* data, Instanceptr left, Instanceptr right, int quadratic, LEAF_TYPE leaftype)
{
	/*!Last Changed 03.04.2005*/
	/*!Last Changed 26.03.2005*/
	int leftsize, rightsize;
	double lefterror, righterror;
	Instanceptr leftinstances, rightinstances;
 divide_instancelist_according_centers(data, &leftinstances, &rightinstances, left, right, quadratic);
	leftsize = data_size(leftinstances);
	rightsize = data_size(rightinstances);
	if (leftsize == 0 || rightsize == 0)
	 {
   *data = restore_instancelist(*data, leftinstances);
  	merge_instancelist(data, rightinstances);	
		 return '=';
	 }
	lefterror = constant_or_linear_model_mse(leftinstances, leftinstances, leaftype);
	righterror = constant_or_linear_model_mse(rightinstances, rightinstances, leaftype);
 *data = restore_instancelist(*data, leftinstances);
	merge_instancelist(data, rightinstances);	
	if ((lefterror / leftsize) < (righterror / rightsize))
		 return '<';
	else
		 return '>';
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movl %r8d, %ebp
movl %ecx, %r9d
movq %rdx, %r8
movq %rsi, %rcx
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movq %rsp, %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0x2ca3c
movq (%r14), %rdi
callq 0x2c3cc
movl %eax, %r14d
movq (%r15), %rdi
callq 0x2c3cc
movl %eax, %r15d
testl %r14d, %r14d
sete %al
testl %r15d, %r15d
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x6b7f7
movq (%rbx), %rdi
movq 0x8(%rsp), %rsi
callq 0x2d2da
movq %rax, (%rbx)
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x2c6e4
movb $0x3d, %al
jmp 0x6b86f
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl %ebp, %edx
callq 0x6d63d
movaps %xmm0, 0x20(%rsp)
movq (%rsp), %rdi
movq %rdi, %rsi
movl %ebp, %edx
callq 0x6d63d
movaps %xmm0, 0x10(%rsp)
movq (%rbx), %rdi
movq 0x8(%rsp), %rsi
callq 0x2d2da
movq %rax, (%rbx)
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x2c6e4
movd %r15d, %xmm0
movd %r14d, %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
cvtdq2pd %xmm1, %xmm0
movapd 0x20(%rsp), %xmm1
unpcklpd 0x10(%rsp), %xmm1       # xmm1 = xmm1[0],mem[0]
divpd %xmm0, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
ucomisd %xmm1, %xmm0
setbe %al
addb %al, %al
orb $0x3c, %al
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: best_single_regression_condition
void best_single_regression_condition(Regressionconditionptr condition, Instanceptr* data, NODE_TYPE nodetype, LEAF_TYPE leaftype)
{
	/*!Last Changed 03.04.2005*/
	/*!Last Changed 26.03.2005*/
	switch (nodetype)
	 {
	  case UNIVARIATE:if (leaftype == CONSTANTLEAF)
		                   condition->featureindex = best_regression_feature(*data, &(condition->value), &(condition->comparison));
	                  else
		                   condition->featureindex = best_regression_feature_linear_leaves(*data, &(condition->value), &(condition->comparison));
																			break;
			case LINEAR    :condition->featureindex = LINEAR;
				               find_linear_regression_condition(data, &(condition->leftcenter), &(condition->rightcenter), &(condition->comparison), leaftype);
				               break;
			case QUADRATIC :condition->featureindex = QUADRATIC;
				               find_quadratic_regression_condition(data, &(condition->leftcenter), &(condition->rightcenter), &(condition->comparison), leaftype);
				               break;
   default        :printf(m1231, nodetype);
                   break;
	 }
}

// Assembly:
pushq %rbx
movl %ecx, %r8d
movq %rdi, %rbx
cmpl $-0x3, %edx
je 0x6b94d
cmpl $-0x2, %edx
je 0x6b92c
testl %edx, %edx
jne 0x6b96e
leaq 0x8(%rbx), %rax
leaq 0x4(%rbx), %rdx
movq (%rsi), %rdi
movq %rax, %rsi
testl %r8d, %r8d
je 0x6b97f
callq 0x6c660
jmp 0x6b984
movl $0xfffffffe, (%rbx)     # imm = 0xFFFFFFFE
leaq 0x10(%rbx), %rax
leaq 0x18(%rbx), %rdx
addq $0x4, %rbx
movq %rsi, %rdi
movq %rax, %rsi
movq %rbx, %rcx
popq %rbx
jmp 0x6b87a
movl $0xfffffffd, (%rbx)     # imm = 0xFFFFFFFD
leaq 0x10(%rbx), %rax
leaq 0x18(%rbx), %rdx
addq $0x4, %rbx
movq %rsi, %rdi
movq %rax, %rsi
movq %rbx, %rcx
popq %rbx
jmp 0x6b8bb
leaq 0x3416d(%rip), %rdi     # 0x9fae2
movl %edx, %esi
xorl %eax, %eax
popq %rbx
jmp 0x4030
callq 0x6cbb5
movl %eax, (%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: find_uni_and_multi_regression_conditions
void find_uni_and_multi_regression_conditions(Regressionconditionptr condition, Instanceptr data, Instanceptr* leftlincenter, Instanceptr* rightlincenter, Instanceptr* leftquacenter, Instanceptr* rightquacenter, LEAF_TYPE leaftype)
{
	/*!Last Changed 27.03.2005*/
 if (leaftype == CONSTANTLEAF)
   condition->featureindex = best_regression_feature(data, &(condition->value), &(condition->comparison));
	else
		 condition->featureindex = best_regression_feature_linear_leaves(data, &(condition->value), &(condition->comparison));
 find_linear_regression_split(data, leftlincenter, rightlincenter);
 find_quadratic_regression_split(data, leftquacenter, rightquacenter);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbp
leaq 0x8(%rdi), %rsi
leaq 0x4(%rdi), %rdx
cmpl $0x0, 0x40(%rsp)
je 0x6be1f
movq %r15, %rdi
callq 0x6c660
jmp 0x6be27
movq %r15, %rdi
callq 0x6cbb5
movl %eax, (%rbp)
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x6d8df
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x6d91e
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: set_best_model_in_regression_rule
void set_best_model_in_regression_rule(Regressionconditionptr condition, MODEL_TYPE bestmodel, Instanceptr leftl, Instanceptr rightl, Instanceptr leftq, Instanceptr rightq)
{
	/*!Last Changed 27.03.2005*/
	switch (bestmodel)
	 {
	  case MODEL_UNI:deallocate(leftl);
										        deallocate(rightl);
				              deallocate(leftq);
				              deallocate(rightq);
										        break;
	  case MODEL_LIN:condition->featureindex = LINEAR;
				              condition->leftcenter = leftl;
				              condition->rightcenter = rightl;
				              deallocate(leftq);
				              deallocate(rightq);
										        break;				      
			case MODEL_QUA:condition->featureindex = QUADRATIC;
				              condition->leftcenter = leftq;
				              condition->rightcenter = rightq;
				              deallocate(leftl);
				              deallocate(rightl);
										        break;				      
	 }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
cmpl $0x2, %esi
je 0x6be92
cmpl $0x1, %esi
je 0x6be82
testl %esi, %esi
jne 0x6bebb
movq %rdx, %rdi
callq 0x2c010
movq %r15, %rdi
callq 0x2c010
jmp 0x6bea6
movl $0xfffffffe, (%rdi)     # imm = 0xFFFFFFFE
movq %rdx, 0x10(%rdi)
movq %r15, 0x18(%rdi)
jmp 0x6bea6
movl $0xfffffffd, (%rdi)     # imm = 0xFFFFFFFD
movq %r14, 0x10(%rdi)
movq %rbx, 0x18(%rdi)
movq %rdx, %r14
movq %r15, %rbx
movq %r14, %rdi
callq 0x2c010
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2c010
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: best_regression_condition
Regressionconditionptr best_regression_condition(Instanceptr* data, Regrule_parameterptr param)
{
	/*!Last Changed 26.03.2005*/
	/*!Last Changed 02.03.2005*/
	Regressionconditionptr result;
	result = empty_regression_condition();
	switch (param->modelselectionmethod)
	 {
	  case MODEL_SELECTION_CV :best_regression_condition_crossvalidation(result, data, param->leaftype, param->correctiontype);
				                        break;
			case MODEL_SELECTION_AIC:
			case MODEL_SELECTION_BIC:best_regression_condition_aic_or_bic(result, data, param->leaftype, param->modelselectionmethod);
				                        break;
			case MODEL_SELECTION_UNI:best_single_regression_condition(result, data, UNIVARIATE, param->leaftype);
				                        break;
			case MODEL_SELECTION_LIN:best_single_regression_condition(result, data, LINEAR, param->leaftype);
				                        break;
			case MODEL_SELECTION_QUA:best_single_regression_condition(result, data, QUADRATIC, param->leaftype);
				                        break;
   default                 :printf(m1230, param->modelselectionmethod);
                            break;
	 }
	return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
callq 0x6b75e
movq %rax, %rbx
movl 0x4(%r15), %ecx
cmpq $0x7, %rcx
ja 0x6c0c3
leaq 0x339c1(%rip), %rax     # 0x9fa50
movslq (%rax,%rcx,4), %rdx
addq %rax, %rdx
jmpq *%rdx
movl (%r15), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6bec1
jmp 0x6c0f3
movl (%r15), %ecx
pushq $-0x3
jmp 0x6c0e7
movl (%r15), %edx
movl 0xc(%r15), %ecx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6b988
jmp 0x6c0f3
leaq 0x339b2(%rip), %rdi     # 0x9fa7c
movl %ecx, %esi
xorl %eax, %eax
callq 0x4030
jmp 0x6c0f3
movl (%r15), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
jmp 0x6c0ee
movl (%r15), %ecx
pushq $-0x2
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6b8fd
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: create_copy_of_regression_condition
Regressionconditionptr create_copy_of_regression_condition(Regressionconditionptr condition)
{
	/*!Last Changed 27.03.2005*/
	/*!Last Changed 05.03.2005*/
	int oldfcount;
	Regressionconditionptr result = safemalloc(sizeof(Regressioncondition), "create_copy_of_regression_condition", 2);
	result->comparison = condition->comparison;
	result->featureindex = condition->featureindex;
	result->value = condition->value;
	if (in_list(result->featureindex, 2, LINEAR, QUADRATIC))
	 {
		 if (result->featureindex == QUADRATIC)
			 {
				 oldfcount = current_dataset->multifeaturecount;
     current_dataset->multifeaturecount = multifeaturecount_2d(current_dataset) + 1;
			 }
  	result->leftcenter = copy_of_instance(condition->leftcenter);
  	result->rightcenter = copy_of_instance(condition->rightcenter);
		 if (result->featureindex == QUADRATIC)
				 current_dataset->multifeaturecount = oldfcount;
	 }
	result->next = NULL;
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x33a27(%rip), %rsi     # 0x9fb34
pushq $0x28
popq %rdi
pushq $0x2
popq %rbp
movl %ebp, %edx
callq 0x34f59
movq %rax, %rbx
movb 0x4(%r14), %al
movb %al, 0x4(%rbx)
movl (%r14), %edi
movl %edi, (%rbx)
movsd 0x8(%r14), %xmm0
movsd %xmm0, 0x8(%rbx)
pushq $-0x2
popq %rdx
pushq $-0x3
popq %rcx
movl %ebp, %esi
xorl %eax, %eax
callq 0x35812
testl %eax, %eax
je 0x6c19b
cmpl $-0x3, (%rbx)
jne 0x6c16c
leaq 0x6171d(%rip), %r15     # 0xcd870
movq (%r15), %rdi
movl 0x1c0(%rdi), %ebp
callq 0x126ea
incl %eax
movq (%r15), %rcx
movl %eax, 0x1c0(%rcx)
movq 0x10(%r14), %rdi
callq 0x2aec7
movq %rax, 0x10(%rbx)
movq 0x18(%r14), %rdi
callq 0x2aec7
movq %rax, 0x18(%rbx)
cmpl $-0x3, (%rbx)
jne 0x6c19b
leaq 0x616de(%rip), %rax     # 0xcd870
movq (%rax), %rax
movl %ebp, 0x1c0(%rax)
andq $0x0, 0x20(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: create_copy_of_regression_rule
Regressionruleptr create_copy_of_regression_rule(Regressionruleptr rule)
{
	/*!Last Changed 05.03.2005*/
	Regressionruleptr result = safemalloc(sizeof(Regressionrule), "create_copy_of_rule", 1);
	Regressionconditionptr newcondition, tmp, last = NULL;
	result->regressionvalue = rule->regressionvalue;
	result->conditioncount = rule->conditioncount;
	result->next = NULL;
	result->start = NULL;
	result->leaftype = rule->leaftype;
	if (rule->leaftype == LINEARLEAF)
  	result->w = matrix_copy(rule->w);
	tmp = rule->start;
	while (tmp)
	 {
		 newcondition = create_copy_of_regression_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 0x33997(%rip), %rsi     # 0x9fb58
pushq $0x48
popq %rdi
pushq $0x1
popq %rdx
callq 0x34f59
movq %rax, %r14
movsd 0x18(%rbx), %xmm0
movsd %xmm0, 0x18(%rax)
movl 0x30(%rbx), %eax
movl %eax, 0x30(%r14)
andq $0x0, 0x38(%r14)
andq $0x0, 0x20(%r14)
movq %r14, %r15
movl 0x10(%rbx), %eax
movl %eax, 0x10(%r14)
cmpl $0x1, %eax
jne 0x6c20c
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
callq 0x383f4
movq %rax, (%r15)
movq %rdx, 0x8(%r15)
addq $0x20, %r14
addq $0x20, %rbx
xorl %r13d, %r13d
movq %rbx, %r12
movq (%r12), %r12
testq %r12, %r12
je 0x6c243
movq %r12, %rdi
callq 0x6c0fc
addq $0x20, %r13
cmpq (%rbx), %r12
cmoveq %r14, %r13
movq %rax, (%r13)
addq $0x20, %r12
movq %rax, %r13
jmp 0x6c21a
movq %r13, 0x28(%r15)
movq %r15, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: nearest_center_in_regression_tree
CHILD_TYPE nearest_center_in_regression_tree(Instanceptr tmp, NODE_TYPE nodetype, Instanceptr leftcenter, Instanceptr rightcenter)
{
	/*!Last Changed 24.03.2005*/
	int oldfcount;
	Instanceptr tmp2d;
	double dist1, dist2;
	if (nodetype == QUADRATIC)
		{
			tmp2d = generate_2d_copy_of_instance(tmp);
   oldfcount = current_dataset->multifeaturecount;
	  current_dataset->multifeaturecount = multifeaturecount_2d(current_dataset) + 1;
			dist1 = distance_between_instances(tmp2d, leftcenter);
			dist2 = distance_between_instances(tmp2d, rightcenter);
   current_dataset->multifeaturecount = oldfcount;
			deallocate(tmp2d);
		}
	else
		{
		 dist1 = distance_between_instances(tmp, leftcenter);
		 dist2 = distance_between_instances(tmp, rightcenter);
		}
	if (dist1 < dist2)
		 return LEFTCHILD;
	else
		 return RIGHTCHILD;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
cmpl $-0x3, %esi
jne 0x6c486
movq %r15, %rdi
callq 0x2afc2
movq %rax, %r15
leaq 0x61440(%rip), %r12     # 0xcd870
movq (%r12), %rdi
movl 0x1c0(%rdi), %ebp
callq 0x126ea
incl %eax
movq (%r12), %rcx
movl %eax, 0x1c0(%rcx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x2beed
movsd %xmm0, (%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2beed
movsd %xmm0, 0x8(%rsp)
movq (%r12), %rax
movl %ebp, 0x1c0(%rax)
movq %r15, %rdi
callq 0x2c010
movsd 0x8(%rsp), %xmm0
jmp 0x6c4a1
movq %r15, %rdi
movq %r14, %rsi
callq 0x2beed
movsd %xmm0, (%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2beed
xorl %eax, %eax
ucomisd (%rsp), %xmm0
setbe %al
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: regressiontree_node_types
void regressiontree_node_types(Regressionnodeptr node, char st[READLINELENGTH], int level)
{
	if (node->featureno != LEAF_NODE)
	 {
		 if (node->featureno >= 0)
				 sprintf(st,"%s%d-U-%d;", st, level, node->covered);
			else
				 if (node->featureno == LINEAR)
						 sprintf(st,"%s%d-L-%d;", st, level, node->covered);
					else
						 if (node->featureno == QUADRATIC) 
								 sprintf(st,"%s%d-Q-%d;", st, level, node->covered);
   regressiontree_node_types(node->left, st, level + 1);
   regressiontree_node_types(node->right, st, level + 1);
	 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x2e43a(%rip), %r12     # 0x9a90c
leaq 0x2e43e(%rip), %r13     # 0x9a917
leaq 0x2e442(%rip), %rbp     # 0x9a922
movl 0x68(%r15), %eax
cmpl $-0x1, %eax
je 0x6c52a
movq %r12, %rsi
testl %eax, %eax
js 0x6c518
movl 0x78(%r15), %r8d
movq %r14, %rdi
movq %r14, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x41b0
movq (%r15), %rdi
incl %ebx
movq %r14, %rsi
movl %ebx, %edx
callq 0x6c4b8
movq 0x8(%r15), %r15
jmp 0x6c4e0
movq %r13, %rsi
cmpl $-0x2, %eax
je 0x6c4f0
cmpl $-0x3, %eax
jne 0x6c503
movq %rbp, %rsi
jmp 0x6c4f0
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/regressiontree.c
// Function: mse_error_of_regression_tree
double mse_error_of_regression_tree(Regressionnodeptr node)
{
 /*!Last Changed 02.03.2005*/
	if (node->featureno == LEAF_NODE)
		 return node->mseerror;
	else
		 return mse_error_of_regression_tree(node->left) + mse_error_of_regression_tree(node->right);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpl $-0x1, 0x68(%rdi)
je 0x6c566
movq (%rbx), %rdi
callq 0x6c539
movsd %xmm0, 0x8(%rsp)
movq 0x8(%rbx), %rdi
callq 0x6c539
addsd 0x8(%rsp), %xmm0
jmp 0x6c56b
movsd 0x60(%rbx), %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: complexity_of_regression_tree
int complexity_of_regression_tree(Regressionnodeptr node)
{
	/*!Last Changed 24.03.2005*/
 /*!Last Changed 02.03.2005*/
	int d;
	if (node->featureno == LEAF_NODE)
  	if (node->leaftype == CONSTANTLEAF)
	  	 return 1;
	  else
		   return current_dataset->multifeaturecount;
	else
	 {
		 if (node->featureno >= 0)
				 d = 2;
			else
				 if (node->featureno == LINEAR)
						 d = current_dataset->multifeaturecount;
					else
       if (node->featureno == QUADRATIC)
						   d = multifeaturecount_2d(current_dataset) + 1;
       else
         d = 2;
		 return d + complexity_of_regression_tree(node->left) + complexity_of_regression_tree(node->right);
	 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
pushq $0x2
popq %r12
leaq 0x6128e(%rip), %r15     # 0xcd870
movl 0x68(%rbx), %eax
cmpl $-0x1, %eax
je 0x6c62d
movl %r12d, %ebp
testl %eax, %eax
js 0x6c607
movq (%rbx), %rdi
callq 0x6c5c9
movq 0x8(%rbx), %rbx
addl %r14d, %ebp
addl %eax, %ebp
movl %ebp, %r14d
jmp 0x6c5e2
cmpl $-0x3, %eax
je 0x6c61f
movl %r12d, %ebp
cmpl $-0x2, %eax
jne 0x6c5f1
movq (%r15), %rax
movl 0x1c0(%rax), %ebp
jmp 0x6c5f1
movq (%r15), %rdi
callq 0x126ea
movl %eax, %ebp
incl %ebp
jmp 0x6c5f1
cmpl $0x0, 0x6c(%rbx)
je 0x6c63e
movq (%r15), %rax
movl 0x1c0(%rax), %eax
jmp 0x6c641
pushq $0x1
popq %rax
addl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: create_regression_matrices_for_array_of_instances
void create_regression_matrices_for_array_of_instances(Instanceptr list, int start, int end, matrix* X, matrix* r)
{
	/*!Last Changed 01.03.2005*/
	int i, size = end - start + 1, j;
	*X = matrix_alloc(size, current_dataset->multifeaturecount);
	*r = matrix_alloc(size, 1);
	for (i = 0; i < size; i++)
	 {
		 (*X).values[i][0] = 1;
		 for (j = 0; j < current_dataset->multifeaturecount - 1; j++)
			  (*X).values[i][j + 1] = real_feature(&(list[start + i]), j);
			(*r).values[i][0] = give_regressionvalue(&(list[start + i]));
	 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movq %rcx, %r14
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, (%rsp)
subl %esi, %r12d
leal 0x1(%r12), %r13d
leaq 0x60eae(%rip), %rbp     # 0xcd870
movq (%rbp), %rax
movl 0x1c0(%rax), %esi
movl %r13d, %edi
callq 0x380d3
movq %rax, (%r14)
movq %rdx, 0x8(%r14)
pushq $0x1
popq %rsi
movl %r13d, %edi
callq 0x380d3
movq %rax, (%rbx)
movq %rbx, 0x8(%rsp)
movq %rdx, 0x8(%rbx)
movslq %r15d, %rax
movslq %r12d, %rcx
movq %rcx, 0x10(%rsp)
imulq $0x30, %rax, %rbx
addq (%rsp), %rbx
xorl %r13d, %r13d
cmpq 0x10(%rsp), %r13
jg 0x6ca7e
movq 0x8(%r14), %rax
movq (%rax,%r13,8), %rax
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, (%rax)
imulq $0x30, %r13, %r15
addq %rbx, %r15
xorl %r12d, %r12d
movq (%rbp), %rax
movslq 0x1c0(%rax), %rax
decq %rax
cmpq %rax, %r12
jge 0x6ca60
movq %r15, %rdi
movl %r12d, %esi
callq 0x2aea2
movq 0x8(%r14), %rax
movq (%rax,%r13,8), %rax
movsd %xmm0, 0x8(%rax,%r12,8)
incq %r12
jmp 0x6ca2e
movq %r15, %rdi
callq 0x2b4a0
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax,%r13,8), %rax
movsd %xmm0, (%rax)
incq %r13
jmp 0x6ca08
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: multivariate_regression
matrix multivariate_regression(matrix X, matrix r)
{
	/*!Last Changed 28.02.2005*/
	matrix XT, XTX, tmpmatrix, result;
	XT = matrix_transpose(X);
	XTX = matrix_multiply(XT, X);
	matrix_inverse(&XTX);
	tmpmatrix = matrix_multiply(XTX, XT);
	matrix_free(XTX);
	matrix_free(XT);
	result = matrix_multiply(tmpmatrix, r);
	matrix_free(tmpmatrix);
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, (%rsp)
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %rbp
callq 0x392ac
movq %rax, %r15
movq %rdx, %r12
movq %rax, %rdi
movq %rdx, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x3933d
leaq 0x8(%rsp), %r13
movq %rax, (%r13)
movq %rdx, 0x8(%r13)
movq %r13, %rdi
callq 0x3a9f7
movq (%r13), %rdi
movq 0x8(%r13), %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x3933d
movq %rax, %rbp
movq %rdx, %rbx
movq (%r13), %rdi
movq 0x8(%r13), %rsi
callq 0x3929f
movq %r15, %rdi
movq %r12, %rsi
callq 0x3929f
movq %rbp, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq (%rsp), %rcx
callq 0x3933d
movq %rax, %r14
movq %rdx, %r15
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x3929f
movq %r14, %rax
movq %r15, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: variance_of_linear_regression_for_array_of_instances
double variance_of_linear_regression_for_array_of_instances(matrix w, Instanceptr list, int start, int end, LEAF_TYPE leaftype)
{
	/*!Last Changed 01.03.2005*/
	int i, size = end - start + 1;
	double variance = 0;
	for (i = 0; i < size; i++)
		 variance += instance_regression_error(w, 0, &(list[start + i]), leaftype);
	return variance;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %r9d, %ebx
movq %rsi, %r14
subl %ecx, %r8d
movslq %ecx, %rax
movslq %r8d, %r12
imulq $0x30, %rax, %r15
addq %rdx, %r15
xorpd %xmm0, %xmm0
xorl %r13d, %r13d
cmpq %r12, %r13
jg 0x6cba7
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %r14, %rsi
movq %r15, %rdx
movl %ebx, %ecx
callq 0x6ce8d
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
incq %r13
addq $0x30, %r15
jmp 0x6cb6c
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: linear_fit_value
double linear_fit_value(matrix w, Instanceptr inst)
{
	/*!Last Changed 28.02.2005*/
	int i;
	double result = w.values[0][0];
	for (i = 0; i < current_dataset->multifeaturecount - 1; i++)
			result += w.values[i + 1][0] * real_feature(inst, i);
	return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq (%rsi), %rax
movsd (%rax), %xmm0
xorl %esi, %esi
leaq 0x60a43(%rip), %r15     # 0xcd870
movq (%r15), %rax
movslq 0x1c0(%rax), %rax
decq %rax
cmpq %rax, %rsi
jge 0x6ce81
leaq 0x1(%rsi), %r12
movq 0x8(%r14,%rsi,8), %rax
movsd (%rax), %xmm1
movsd %xmm1, 0x10(%rsp)
movq %rbx, %rdi
movsd %xmm0, 0x8(%rsp)
callq 0x2aea2
mulsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
movq %r12, %rsi
jmp 0x6ce2d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: instance_regression_error
double instance_regression_error(matrix w, double regressionvalue, Instanceptr instance, LEAF_TYPE leaftype)
{
	/*!Last Changed 02.03.2005*/
	double mean, regvalue;
	if (leaftype == CONSTANTLEAF)
		 mean = regressionvalue;
	else
  	mean = linear_fit_value(w, instance);
	regvalue = give_regressionvalue(instance);
	return (regvalue - mean) * (regvalue - mean);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
testl %ecx, %ecx
je 0x6cea1
movq %rbx, %rdx
callq 0x6ce0c
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x2b4a0
subsd 0x8(%rsp), %xmm0
mulsd %xmm0, %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: variance_of_linear_regression
double variance_of_linear_regression(matrix w, Instanceptr list, LEAF_TYPE leaftype)
{
	/*!Last Changed 28.02.2005*/
	double variance = 0;
	Instanceptr tmp;
	tmp = list;
	while (tmp)
	 {
			variance += instance_regression_error(w, 0, tmp, leaftype);
		 tmp = tmp->next;
	 }
	return variance;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
xorpd %xmm0, %xmm0
testq %r14, %r14
je 0x6cf0c
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
movq %r15, %rsi
movq %r14, %rdx
movl %ebx, %ecx
callq 0x6ce8d
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
movq 0x10(%r14), %r14
jmp 0x6ced4
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq