LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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
movq 0x20(%rdi), %r15
xorl %ebx, %ebx
testq %r15, %r15
je 0x744cc
leaq 0x613de(%rip), %r12     # 0xd5870
movl (%r15), %eax
testl %eax, %eax
js 0x744a7
addl $0x2, %ebx
movq 0x20(%r15), %r15
testq %r15, %r15
jne 0x74492
jmp 0x744cc
cmpl $-0x3, %eax
je 0x744bd
cmpl $-0x2, %eax
jne 0x7449c
movq (%r12), %rax
addl 0x1c0(%rax), %ebx
jmp 0x7449c
movq (%r12), %rdi
callq 0x1372c
addl %eax, %ebx
incl %ebx
jmp 0x7449c
cmpl $0x0, 0x10(%r14)
je 0x744e5
leaq 0x61396(%rip), %rax     # 0xd5870
movq (%rax), %rax
addl 0x1c0(%rax), %ebx
jmp 0x744e7
incl %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/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:
movl $0x0, (%rsi)
testq %rdi, %rdi
je 0x745d9
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x60(%rsp), %rax
movq (%rax), %rbp
movq 0x10(%rax), %rcx
movq %rcx, 0x18(%rsp)
movsd 0x28(%rax), %xmm0
movsd %xmm0, 0x10(%rsp)
movl 0x20(%rax), %ecx
movl %ecx, 0xc(%rsp)
movq 0x18(%rax), %r12
xorpd %xmm1, %xmm1
movsd %xmm1, 0x20(%rsp)
testq %rbp, %rbp
je 0x74575
movq %rbp, %r15
movq %r15, %r13
movq 0x20(%r13), %r13
testq %r13, %r13
je 0x7458c
movq %r14, %rdi
movq %r13, %rsi
callq 0x7554c
testl %eax, %eax
jne 0x74554
movq 0x38(%r15), %r15
testq %r15, %r15
jne 0x74551
movq 0x18(%rsp), %rdi
movq %r12, %rsi
movsd 0x10(%rsp), %xmm0
movq %r14, %rdx
movl 0xc(%rsp), %ecx
jmp 0x745a0
movsd 0x18(%r15), %xmm0
movl 0x10(%r15), %ecx
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %r14, %rdx
callq 0x76f96
movsd 0x20(%rsp), %xmm1
addsd %xmm0, %xmm1
movq 0x10(%r14), %r14
movl (%rbx), %eax
incl %eax
movl %eax, (%rbx)
testq %r14, %r14
jne 0x74543
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm0, %xmm1
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x745e1
movsd 0x3172f(%rip), %xmm1    # 0xa5d10
movapd %xmm1, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/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
leaq 0x20(%rsp), %r15
movq (%r15), %r14
xorl %ebx, %ebx
testq %r14, %r14
je 0x7460a
movq %r14, %rdi
callq 0x74475
addl %eax, %ebx
movq 0x38(%r14), %r14
jmp 0x745f5
cmpl $0x0, 0x20(%r15)
je 0x74623
leaq 0x61258(%rip), %rax     # 0xd5870
movq (%rax), %rax
addl 0x1c0(%rax), %ebx
jmp 0x74625
incl %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x30309
movl %eax, %ebx
xorl %eax, %eax
cmpl $0x3, %ebx
jl 0x74f43
testl %ebp, %ebp
je 0x74f17
leaq 0x18(%rsp), %r12
leaq 0x8(%rsp), %r13
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x77036
movq (%r12), %rdi
movq 0x8(%r12), %rsi
movq (%r13), %rdx
movq 0x8(%r13), %rcx
callq 0x76b4b
movq %rax, (%r15)
movq %rdx, 0x8(%r15)
movq (%r12), %rdi
movq 0x8(%r12), %rsi
callq 0x3ed51
movq (%r13), %rdi
movq 0x8(%r13), %rsi
callq 0x3ed51
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq 0x76fc8
jmp 0x74f2d
movq %r14, %rdi
callq 0x2ffe1
movsd %xmm0, (%r12)
movq %r14, %rdi
callq 0x3002f
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_O3/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, %rbx
movq %rdi, %r12
xorl %r15d, %r15d
movq %r15, 0x10(%rsp)
leaq 0x3ac1c(%rip), %rsi     # 0xafb91
movl $0x48, %edi
movl $0x1, %edx
callq 0x3a0e1
movq %rax, %r14
movq %r15, 0x38(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movl $0x0, 0x30(%rax)
movl (%rbx), %ecx
movl %ecx, 0x10(%rax)
movq %r12, 0x30(%rsp)
movq (%r12), %rdi
movq %rdi, 0x8(%rsp)
movsd 0x10(%rbx), %xmm0
leaq 0x20(%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq 0x74e80
testl %eax, %eax
je 0x75059
leaq 0x8(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x20(%rsp), %rbp
leaq 0x18(%rsp), %r15
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7602b
cmpl $-0x1, (%rax)
je 0x75051
cmpb $0x3d, 0x4(%rax)
je 0x75051
movl 0x30(%r14), %edx
leal 0x1(%rdx), %ecx
movl %ecx, 0x30(%r14)
movq %r14, %rcx
testl %edx, %edx
je 0x75008
movq 0x28(%r14), %rcx
movq %rax, 0x20(%rcx)
movq %rax, 0x28(%r14)
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x754a1
movl (%rbx), %ecx
cmpl $0x1, %ecx
jne 0x75036
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x3ed51
movl (%rbx), %ecx
movq 0x8(%rsp), %rdi
movsd 0x10(%rbx), %xmm0
movq %rbp, %rsi
movq %r15, %rdx
callq 0x74e80
testl %eax, %eax
jne 0x74fdc
jmp 0x75059
movq %rax, %rdi
callq 0x3a180
movq 0x8(%rsp), %rdi
callq 0x30309
movl %eax, 0x40(%r14)
cmpq $0x0, 0x10(%rsp)
je 0x75083
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x30648
jmp 0x75088
leaq 0x8(%rsp), %r15
movq (%r15), %rax
movq 0x30(%rsp), %rcx
movq %rax, (%rcx)
cmpl $0x0, (%rbx)
je 0x750a3
movups 0x20(%rsp), %xmm0
movups %xmm0, (%r14)
jmp 0x750af
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x18(%r14)
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x74353
movsd %xmm0, 0x8(%rsp)
movq 0x20(%r15), %rcx
testq %rcx, %rcx
je 0x751d3
movl 0x30(%r15), %eax
decl %eax
xorl %r13d, %r13d
xorl %ebp, %ebp
movq %rcx, %r12
movl %eax, 0x30(%r15)
movq 0x20(%rcx), %rax
testq %rax, %rax
jne 0x7510e
movq %r13, 0x28(%r15)
testq %r13, %r13
movq %r13, %rcx
cmoveq %r15, %rcx
movq %rax, 0x20(%rcx)
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x74353
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x75149
movl $0x1, %ebp
movsd %xmm0, 0x8(%rsp)
movq %r12, 0x10(%rsp)
movq %r13, (%rsp)
movl 0x30(%r15), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x30(%r15)
testq %r13, %r13
je 0x7516d
movq 0x20(%r13), %rcx
movq %rcx, 0x20(%r12)
movq %r12, 0x20(%r13)
movq 0x20(%r12), %rcx
jmp 0x7517a
movq 0x20(%r15), %rcx
movq %rcx, 0x20(%r12)
movq %r12, 0x20(%r15)
testq %rcx, %rcx
jne 0x75183
movq %r12, 0x28(%r15)
movq 0x20(%r12), %rcx
movq %r12, %r13
testq %rcx, %rcx
jne 0x750fa
testl %ebp, %ebp
je 0x751d3
decl 0x30(%r15)
movq 0x10(%rsp), %rdi
movq 0x20(%rdi), %rax
testq %rax, %rax
jne 0x751b2
movq (%rsp), %rcx
movq %rcx, 0x28(%r15)
movq (%rsp), %rcx
testq %rcx, %rcx
cmoveq %r15, %rcx
movq %rax, 0x20(%rcx)
callq 0x3a180
movq 0x20(%r15), %rcx
testq %rcx, %rcx
jne 0x750ef
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/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 0x761ab
movq %rax, %rbx
leaq 0x8(%rsp), %r13
movq $0x0, (%r13)
movq %r15, 0x30(%rsp)
movq (%r15), %rax
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
movq %r13, %rsi
movq %rbx, %rdx
callq 0x7533e
movq (%r13), %rdi
movsd 0x10(%rbp), %xmm0
movl 0x10(%r14), %ecx
leaq 0x20(%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq 0x74e80
testl %eax, %eax
je 0x752dd
leaq 0x8(%rsp), %r12
leaq 0x18(%rsp), %r15
movq %r12, %rdi
movq %rbp, %rsi
callq 0x7602b
cmpl $-0x1, (%rax)
je 0x752d5
cmpb $0x3d, 0x4(%rax)
je 0x752d5
movl 0x30(%rbx), %edx
leal 0x1(%rdx), %ecx
movl %ecx, 0x30(%rbx)
movq %rbx, %rcx
testl %edx, %edx
je 0x75284
movq 0x28(%rbx), %rcx
movq %rax, 0x20(%rcx)
movq %rax, 0x28(%rbx)
movq %rax, %rdi
movq %r12, %rsi
leaq 0x10(%rsp), %rdx
callq 0x754a1
movl 0x10(%r14), %ecx
cmpl $0x1, %ecx
jne 0x752b8
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x3ed51
movl 0x10(%r14), %ecx
movq 0x8(%rsp), %rdi
movsd 0x10(%rbp), %xmm0
leaq 0x20(%rsp), %rsi
movq %r15, %rdx
callq 0x74e80
testl %eax, %eax
jne 0x7525a
jmp 0x752dd
movq %rax, %rdi
callq 0x3a180
movq 0x8(%rsp), %rdi
callq 0x30309
movl %eax, 0x40(%rbx)
cmpq $0x0, 0x10(%rsp)
je 0x75304
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %r13
movq %r13, %rdi
callq 0x30648
movq (%r13), %rax
movq 0x30(%rsp), %rcx
movq %rax, (%rcx)
cmpl $0x0, 0x10(%r14)
je 0x75321
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rbx)
jmp 0x7532c
movsd 0x18(%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_O3/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
subq $0x18, %rsp
movq %rdx, %r14
movq %rdi, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq (%rsi), %rax
testq %rax, %rax
je 0x7536f
movq %rax, %rbp
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x75361
jmp 0x75371
xorl %ebp, %ebp
movq 0x8(%rsp), %rax
movq (%rax), %r15
xorl %ebx, %ebx
testq %r15, %r15
je 0x753ca
movq %r15, %r12
movq 0x10(%r15), %r15
movq %r14, %r13
movq 0x20(%r13), %r13
testq %r13, %r13
je 0x753af
movq %r12, %rdi
movq %r13, %rsi
callq 0x7554c
testl %eax, %eax
jne 0x7538a
movq %rbx, %rax
movq 0x8(%rsp), %rcx
movq %r12, %rbx
jmp 0x753ba
movq %rbp, %rax
movq 0x10(%rsp), %rcx
movq %r12, %rbp
leaq 0x10(%rax), %rdx
testq %rax, %rax
cmoveq %rcx, %rdx
movq %r12, (%rdx)
jmp 0x7537b
testq %rbp, %rbp
je 0x753d7
movq $0x0, 0x10(%rbp)
leaq 0x10(%rbx), %rax
testq %rbx, %rbx
cmoveq 0x8(%rsp), %rax
movq $0x0, (%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/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 0x7540c
movq 0x8(%rdi), %rcx
addq $0x38, %rcx
movq %rsi, (%rcx)
movq %rsi, 0x8(%rdi)
movq $0x0, 0x38(%rsi)
incl %eax
movl %eax, 0x30(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7548a
movq 0x20(%rsi), %rax
movq %rax, 0x20(%rdx)
movq %rdx, 0x20(%rsi)
movq 0x20(%rdx), %rax
jmp 0x75496
movq 0x20(%rdi), %rax
movq %rax, 0x20(%rdx)
movq %rdx, 0x20(%rdi)
testq %rax, %rax
je 0x7549c
retq
movq %rdx, 0x28(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/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, %r15
movq %rdi, %rcx
movq (%rdx), %rax
testq %rax, %rax
je 0x754cb
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x754bd
jmp 0x754ce
xorl %r13d, %r13d
movq (%r15), %r12
xorl %ebp, %ebp
testq %r12, %r12
je 0x7551e
movq %rcx, (%rsp)
movq 0x10(%r12), %rbx
movq %r12, %rdi
movq %rcx, %rsi
callq 0x7554c
testl %eax, %eax
movq %rbp, %rax
cmoveq %r13, %rax
movq %r15, %rcx
cmoveq %r14, %rcx
cmoveq %r12, %r13
cmovneq %r12, %rbp
leaq 0x10(%rax), %rdi
testq %rax, %rax
cmoveq %rcx, %rdi
movq (%rsp), %rcx
movq %r12, (%rdi)
movq %rbx, %r12
testq %rbx, %rbx
jne 0x754dc
testq %r13, %r13
je 0x7552b
movq $0x0, 0x10(%r13)
leaq 0x10(%rbp), %rax
testq %rbp, %rbp
cmoveq %r15, %rax
movq $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/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 0x75574
callq 0x2ed6a
movsd 0x8(%rbx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x7556c
cmpb $0x3e, 0x4(%rbx)
je 0x7559d
ucomisd %xmm1, %xmm0
jbe 0x75590
jmp 0x75597
movq 0x10(%rbx), %rdx
movq 0x18(%rbx), %rcx
callq 0x76460
cmpl $0x1, %eax
je 0x75597
testl %eax, %eax
jne 0x75590
cmpb $0x3e, 0x4(%rbx)
je 0x7559d
movl $0x1, %eax
jmp 0x7559f
cmpb $0x3c, 0x4(%rbx)
jne 0x75590
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x755b5
movq 0x28(%rdi), %rax
movq %rsi, 0x20(%rax)
movq %rsi, 0x28(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/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 %rbx
subq $0x50, %rsp
leaq 0x70(%rsp), %r14
movq (%r14), %rbx
testq %rbx, %rbx
je 0x755fb
movq 0x38(%rbx), %r15
movl $0x9, %ecx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x742e0
movq %rbx, %rdi
callq 0x3a180
movq %r15, %rbx
testq %r15, %r15
jne 0x755d4
cmpl $0x1, 0x20(%r14)
jne 0x75618
movq 0x10(%r14), %rdi
movq 0x18(%r14), %rsi
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x3ed51
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3a556(%rip), %rsi     # 0xafb91
movl $0x48, %edi
movl $0x1, %edx
callq 0x3a0e1
movq $0x0, 0x38(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movl $0x0, 0x30(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x3a53d(%rip), %rsi     # 0xafba7
movl $0x28, %edi
movl $0x1, %edx
callq 0x3a0e1
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq $0x0, 0x20(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x30a0d
movq (%r14), %rdi
callq 0x30309
movl %eax, %r14d
movq (%r15), %rdi
callq 0x30309
movl %eax, %r15d
testl %r14d, %r14d
sete %al
testl %r15d, %r15d
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x75705
movq (%rbx), %rdi
movq 0x8(%rsp), %rsi
callq 0x31345
movq %rax, (%rbx)
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x30648
movb $0x3d, %al
jmp 0x7577d
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl %ebp, %edx
callq 0x77900
movaps %xmm0, 0x20(%rsp)
movq (%rsp), %rdi
movq %rdi, %rsi
movl %ebp, %edx
callq 0x77900
movaps %xmm0, 0x10(%rsp)
movq (%rbx), %rdi
movq 0x8(%rsp), %rsi
callq 0x31345
movq %rax, (%rbx)
movq (%rsp), %rsi
movq %rbx, %rdi
callq 0x30648
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_O3/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 %rbp
pushq %r14
pushq %rbx
movl %ecx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
cmpl $-0x3, %edx
je 0x75862
cmpl $-0x2, %edx
je 0x7583d
testl %edx, %edx
jne 0x75895
leaq 0x8(%rbx), %rsi
leaq 0x4(%rbx), %rdx
movq (%r14), %rdi
testl %ebp, %ebp
je 0x758a9
callq 0x766e3
jmp 0x758ae
movl $0xfffffffe, (%rbx)     # imm = 0xFFFFFFFE
leaq 0x10(%rbx), %rsi
leaq 0x18(%rbx), %rdx
movq (%r14), %rdi
callq 0x77ba4
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
movq %r14, %rdi
xorl %ecx, %ecx
jmp 0x75888
movl $0xfffffffd, (%rbx)     # imm = 0xFFFFFFFD
leaq 0x10(%rbx), %rsi
leaq 0x18(%rbx), %rdx
movq (%r14), %rdi
callq 0x77bea
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
movq %r14, %rdi
movl $0x1, %ecx
movl %ebp, %r8d
callq 0x75690
movb %al, 0x4(%rbx)
jmp 0x758b0
leaq 0x3a326(%rip), %rdi     # 0xafbc2
movl %edx, %esi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x4030
callq 0x76c85
movl %eax, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x75ddb
movq %r15, %rdi
callq 0x766e3
jmp 0x75de3
movq %r15, %rdi
callq 0x76c85
movl %eax, (%rbp)
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x77ba4
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 0x77bea
// File: /workspace/github_c_makefile_star2_O3/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 0x75e4e
cmpl $0x1, %esi
je 0x75e3e
testl %esi, %esi
jne 0x75e77
movq %rdx, %rdi
callq 0x2ff55
movq %r15, %rdi
callq 0x2ff55
jmp 0x75e62
movl $0xfffffffe, (%rdi)     # imm = 0xFFFFFFFE
movq %rdx, 0x10(%rdi)
movq %r15, 0x18(%rdi)
jmp 0x75e62
movl $0xfffffffd, (%rdi)     # imm = 0xFFFFFFFD
movq %r14, 0x10(%rdi)
movq %rbx, 0x18(%rdi)
movq %rdx, %r14
movq %r15, %rbx
movq %r14, %rdi
callq 0x2ff55
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2ff55
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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
leaq 0x39b6a(%rip), %rsi     # 0xafba7
movl $0x28, %edi
movl $0x1, %edx
callq 0x3a0e1
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq $0x0, 0x20(%rax)
movl 0x4(%r15), %ecx
cmpq $0x7, %rcx
ja 0x760b2
leaq 0x39abb(%rip), %rax     # 0xafb30
movslq (%rax,%rcx,4), %rdx
addq %rax, %rdx
jmpq *%rdx
movl (%r15), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x75e7d
jmp 0x760e4
movl (%r15), %ecx
movq %rbx, %rdi
movq %r14, %rsi
movl $0xfffffffd, %edx       # imm = 0xFFFFFFFD
jmp 0x760df
movl (%r15), %edx
movl 0xc(%r15), %ecx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x758b5
jmp 0x760e4
leaq 0x39aa3(%rip), %rdi     # 0xafb5c
movl %ecx, %esi
xorl %eax, %eax
callq 0x4030
jmp 0x760e4
movl (%r15), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
jmp 0x760df
movl (%r15), %ecx
movq %rbx, %rdi
movq %r14, %rsi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
callq 0x7580d
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x39b16(%rip), %rsi     # 0xafc14
movl $0x28, %edi
movl $0x2, %edx
callq 0x3a0e1
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)
movl $0x2, %esi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
xorl %eax, %eax
callq 0x3aa8c
testl %eax, %eax
je 0x76195
cmpl $-0x3, (%rbx)
jne 0x76166
leaq 0x5f723(%rip), %r15     # 0xd5870
movq (%r15), %rdi
movl 0x1c0(%rdi), %ebp
callq 0x1372c
incl %eax
movq (%r15), %rcx
movl %eax, 0x1c0(%rcx)
movq 0x10(%r14), %rdi
callq 0x2ed8f
movq %rax, 0x10(%rbx)
movq 0x18(%r14), %rdi
callq 0x2ed8f
movq %rax, 0x18(%rbx)
cmpl $-0x3, (%rbx)
jne 0x76195
leaq 0x5f6e4(%rip), %rax     # 0xd5870
movq (%rax), %rax
movl %ebp, 0x1c0(%rax)
movq $0x0, 0x20(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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, %r14
leaq 0x39a7a(%rip), %rsi     # 0xafc38
movl $0x48, %edi
movl $0x1, %edx
callq 0x3a0e1
movq %rax, %rbx
movsd 0x18(%r14), %xmm0
movsd %xmm0, 0x18(%rax)
movl 0x30(%r14), %eax
movl %eax, 0x30(%rbx)
xorl %eax, %eax
movq %rax, 0x38(%rbx)
movq %rax, 0x20(%rbx)
movl 0x10(%r14), %eax
movl %eax, 0x10(%rbx)
cmpl $0x1, %eax
jne 0x7620b
movq (%r14), %rdi
movq 0x8(%r14), %rsi
callq 0x3dae3
movq %rax, (%rbx)
movq %rdx, 0x8(%rbx)
movq 0x20(%r14), %r15
testq %r15, %r15
je 0x76244
movq %rbx, %r12
addq $0x20, %r12
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x760ed
addq $0x20, %r13
cmpq 0x20(%r14), %r15
cmoveq %r12, %r13
movq %rax, (%r13)
movq 0x20(%r15), %r15
movq %rax, %r13
testq %r15, %r15
jne 0x7621e
jmp 0x76246
xorl %eax, %eax
movq %rax, 0x28(%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/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 0x764e2
movq %r15, %rdi
callq 0x2eea5
movq %rax, %r15
leaq 0x5f3e4(%rip), %r12     # 0xd5870
movq (%r12), %rdi
movl 0x1c0(%rdi), %ebp
callq 0x1372c
incl %eax
movq (%r12), %rcx
movl %eax, 0x1c0(%rcx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x2fe29
movsd %xmm0, (%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2fe29
movsd %xmm0, 0x8(%rsp)
movq (%r12), %rax
movl %ebp, 0x1c0(%rax)
movq %r15, %rdi
callq 0x2ff55
movsd 0x8(%rsp), %xmm0
jmp 0x764fd
movq %r15, %rdi
movq %r14, %rsi
callq 0x2fe29
movsd %xmm0, (%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2fe29
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_O3/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:
movl 0x68(%rdi), %eax
cmpl $-0x1, %eax
je 0x765a0
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x344a2(%rip), %r12     # 0xaa9dc
leaq 0x344a6(%rip), %r13     # 0xaa9e7
leaq 0x344aa(%rip), %rbp     # 0xaa9f2
movq %r12, %rsi
testl %eax, %eax
js 0x76580
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 0x76514
movq 0x8(%r15), %r15
movl 0x68(%r15), %eax
cmpl $-0x1, %eax
jne 0x76548
jmp 0x76592
movq %r13, %rsi
cmpl $-0x2, %eax
je 0x7654f
cmpl $-0x3, %eax
jne 0x76562
movq %rbp, %rsi
jmp 0x7654f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/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 0x765ce
movq (%rbx), %rdi
callq 0x765a1
movsd %xmm0, 0x8(%rsp)
movq 0x8(%rbx), %rdi
callq 0x765a1
addsd 0x8(%rsp), %xmm0
jmp 0x765d3
movsd 0x60(%rbx), %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/regressiontree.c
// Function: regressiontree_leaf_count
int regressiontree_leaf_count(Regressionnodeptr node)
{
 int result = 0;
 if (node->featureno == LEAF_NODE)
   return 1;
 else
  {
   result += regressiontree_leaf_count(node->left);
   result += regressiontree_leaf_count(node->right);
   return result;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpl $-0x1, 0x68(%rdi)
je 0x76601
movq %rdi, %r14
xorl %ebx, %ebx
movq (%r14), %rdi
callq 0x765d9
movq 0x8(%r14), %r14
addl %eax, %ebx
cmpl $-0x1, 0x68(%r14)
jne 0x765e8
incl %ebx
jmp 0x76606
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/regressiontree.c
// Function: regressiontree_node_count
int regressiontree_node_count(Regressionnodeptr node)
{
 int result = 1;
 if (node->featureno == LEAF_NODE)
   return 0;
 else
  {
   result += regressiontree_node_count(node->left);
   result += regressiontree_node_count(node->right);
  }
 return result;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpl $-0x1, 0x68(%rdi)
je 0x76638
movq %rdi, %r14
xorl %ebx, %ebx
movq (%r14), %rdi
callq 0x76610
movq 0x8(%r14), %r14
addl %eax, %ebx
incl %ebx
cmpl $-0x1, 0x68(%r14)
jne 0x7661f
jmp 0x7663a
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r14
pushq %rbx
movq %rdi, %rbx
movl 0x68(%rdi), %ecx
cmpl $-0x1, %ecx
je 0x766a2
xorl %ebp, %ebp
leaq 0x5f214(%rip), %r14     # 0xd5870
movl $0x2, %eax
testl %ecx, %ecx
js 0x76681
addl %eax, %ebp
movq (%rbx), %rdi
callq 0x76644
movq 0x8(%rbx), %rbx
addl %ebp, %eax
movl 0x68(%rbx), %ecx
movl %eax, %ebp
cmpl $-0x1, %ecx
jne 0x7665c
jmp 0x766a4
cmpl $-0x3, %ecx
je 0x76696
cmpl $-0x2, %ecx
jne 0x76665
movq (%r14), %rax
movl 0x1c0(%rax), %eax
jmp 0x76665
movq (%r14), %rdi
callq 0x1372c
incl %eax
jmp 0x76665
xorl %eax, %eax
cmpl $0x0, 0x6c(%rbx)
je 0x766bc
leaq 0x5f1bf(%rip), %rcx     # 0xd5870
movq (%rcx), %rcx
movl 0x1c0(%rcx), %ecx
jmp 0x766c1
movl $0x1, %ecx
addl %eax, %ecx
movl %ecx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 $0x28, %rsp
movq %r8, %r15
movq %rcx, %r14
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, 0x8(%rsp)
subl %esi, %ebx
leal 0x1(%rbx), %r13d
leaq 0x5ee18(%rip), %r12     # 0xd5870
movq (%r12), %rax
movl 0x1c0(%rax), %esi
movl %r13d, %edi
callq 0x3d79d
movq %rax, (%r14)
movq %rdx, 0x8(%r14)
movq %r13, 0x18(%rsp)
movl %r13d, %edi
movl $0x1, %esi
callq 0x3d79d
movq %rax, (%r15)
movq %r15, 0x20(%rsp)
movq %rdx, 0x8(%r15)
testl %ebx, %ebx
js 0x76b3c
movslq %ebp, %rax
movq %rax, 0x10(%rsp)
xorl %r15d, %r15d
movq 0x8(%r14), %rax
movq (%rax,%r15,8), %rax
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, (%rax)
movq (%r12), %rax
movq 0x10(%rsp), %rcx
addq %r15, %rcx
cmpl $0x2, 0x1c0(%rax)
leaq (%rcx,%rcx,2), %r13
jl 0x76b0c
movq %r13, %rbp
shlq $0x4, %rbp
addq 0x8(%rsp), %rbp
xorl %ebx, %ebx
movq %rbp, %rdi
movl %ebx, %esi
callq 0x2ed6a
movq 0x8(%r14), %rax
movq (%rax,%r15,8), %rax
movsd %xmm0, 0x8(%rax,%rbx,8)
incq %rbx
movq (%r12), %rax
movslq 0x1c0(%rax), %rax
decq %rax
cmpq %rax, %rbx
jl 0x76ade
shlq $0x4, %r13
addq 0x8(%rsp), %r13
movq %r13, %rdi
callq 0x2f35e
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax,%r15,8), %rax
movsd %xmm0, (%rax)
incq %r15
cmpq 0x18(%rsp), %r15
jne 0x76aa2
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/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 0x3ed5e
movq %rax, %r15
movq %rdx, %r12
movq %rax, %rdi
movq %rdx, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x3ee2f
leaq 0x8(%rsp), %r13
movq %rax, (%r13)
movq %rdx, 0x8(%r13)
movq %r13, %rdi
callq 0x409b7
movq (%r13), %rdi
movq 0x8(%r13), %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x3ee2f
movq %rax, %rbp
movq %rdx, %rbx
movq (%r13), %rdi
movq 0x8(%r13), %rsi
callq 0x3ed51
movq %r15, %rdi
movq %r12, %rsi
callq 0x3ed51
movq %rbp, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq (%rsp), %rcx
callq 0x3ee2f
movq %rax, %r14
movq %rdx, %r15
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x3ed51
movq %r14, %rax
movq %r15, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq