LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x74564
cmpl $0x1, %esi
je 0x74554
testl %esi, %esi
jne 0x7458d
movq %rdx, %rdi
callq 0x2f616
movq %r15, %rdi
callq 0x2f616
jmp 0x74578
movl $0xfffffffe, (%rdi)     # imm = 0xFFFFFFFE
movq %rdx, 0x10(%rdi)
movq %r15, 0x18(%rdi)
jmp 0x74578
movl $0xfffffffd, (%rdi)     # imm = 0xFFFFFFFD
movq %r14, 0x10(%rdi)
movq %rbx, 0x18(%rdi)
movq %rdx, %r14
movq %r15, %rbx
movq %r14, %rdi
callq 0x2f616
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2f616
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x38374(%rip), %rsi     # 0xacacf
movl $0x28, %edi
movl $0x1, %edx
callq 0x390f5
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 0x747d0
leaq 0x382c5(%rip), %rax     # 0xaca58
movslq (%rax,%rcx,4), %rdx
addq %rax, %rdx
jmpq *%rdx
movl (%r15), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x74593
jmp 0x74802
movl (%r15), %ecx
movq %rbx, %rdi
movq %r14, %rsi
movl $0xfffffffd, %edx       # imm = 0xFFFFFFFD
jmp 0x747fd
movl (%r15), %edx
movl 0xc(%r15), %ecx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x73fe4
jmp 0x74802
leaq 0x382ad(%rip), %rdi     # 0xaca84
movl %ecx, %esi
xorl %eax, %eax
callq 0x4030
jmp 0x74802
movl (%r15), %ecx
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
jmp 0x747fd
movl (%r15), %ecx
movq %rbx, %rdi
movq %r14, %rsi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
callq 0x73f3c
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x38320(%rip), %rsi     # 0xacb3c
movl $0x28, %edi
movl $0x2, %edx
callq 0x390f5
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 0x39a80
testl %eax, %eax
je 0x748b3
cmpl $-0x3, (%rbx)
jne 0x74884
leaq 0x5e005(%rip), %r15     # 0xd2870
movq (%r15), %rdi
movl 0x1c0(%rdi), %ebp
callq 0x13726
incl %eax
movq (%r15), %rcx
movl %eax, 0x1c0(%rcx)
movq 0x10(%r14), %rdi
callq 0x2e4db
movq %rax, 0x10(%rbx)
movq 0x18(%r14), %rdi
callq 0x2e4db
movq %rax, 0x18(%rbx)
cmpl $-0x3, (%rbx)
jne 0x748b3
leaq 0x5dfc6(%rip), %rax     # 0xd2870
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_O1/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 0x38284(%rip), %rsi     # 0xacb60
movl $0x48, %edi
movl $0x1, %edx
callq 0x390f5
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, 0x10(%r14)
jne 0x7492b
movq (%r14), %rdi
movq 0x8(%r14), %rsi
callq 0x3ca3c
movq %rax, (%rbx)
movq %rdx, 0x8(%rbx)
movq 0x20(%r14), %r15
testq %r15, %r15
je 0x74964
movq %rbx, %r12
addq $0x20, %r12
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x7480b
addq $0x20, %r13
cmpq 0x20(%r14), %r15
cmoveq %r12, %r13
movq %rax, (%r13)
movq 0x20(%r15), %r15
movq %rax, %r13
testq %r15, %r15
jne 0x7493e
jmp 0x74966
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_O1/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 0x74c2e
movq %r15, %rdi
callq 0x2e5f1
movq %rax, %r15
leaq 0x5dc98(%rip), %r12     # 0xd2870
movq (%r12), %rdi
movl 0x1c0(%rdi), %ebp
callq 0x13726
incl %eax
movq (%r12), %rcx
movl %eax, 0x1c0(%rcx)
movq %r15, %rdi
movq %r14, %rsi
callq 0x2f4ea
movsd %xmm0, (%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2f4ea
movsd %xmm0, 0x8(%rsp)
movq (%r12), %rax
movl %ebp, 0x1c0(%rax)
movq %r15, %rdi
callq 0x2f616
movsd 0x8(%rsp), %xmm0
jmp 0x74c49
movq %r15, %rdi
movq %r14, %rsi
callq 0x2f4ea
movsd %xmm0, (%rsp)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x2f4ea
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_O1/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 0x32cb6(%rip), %r12     # 0xa7930
leaq 0x32cba(%rip), %r13     # 0xa793b
leaq 0x32cbe(%rip), %rbp     # 0xa7946
movl 0x68(%r15), %eax
cmpl $-0x1, %eax
je 0x74cd2
movq %r12, %rsi
testl %eax, %eax
js 0x74cc0
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 0x74c60
movq 0x8(%r15), %r15
jmp 0x74c88
movq %r13, %rsi
cmpl $-0x2, %eax
je 0x74c98
cmpl $-0x3, %eax
jne 0x74cab
movq %rbp, %rsi
jmp 0x74c98
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/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 0x74d0e
movq (%rbx), %rdi
callq 0x74ce1
movsd %xmm0, 0x8(%rsp)
movq 0x8(%rbx), %rdi
callq 0x74ce1
addsd 0x8(%rsp), %xmm0
jmp 0x74d13
movsd 0x60(%rbx), %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
leaq 0x5daeb(%rip), %r15     # 0xd2870
movl 0x68(%rbx), %eax
cmpl $-0x1, %eax
je 0x74dcf
movl $0x2, %ebp
testl %eax, %eax
js 0x74dac
movq (%rbx), %rdi
callq 0x74d71
movq 0x8(%rbx), %rbx
addl %r14d, %ebp
addl %eax, %ebp
movl %ebp, %r14d
jmp 0x74d85
cmpl $-0x3, %eax
je 0x74dc1
cmpl $-0x2, %eax
jne 0x74d96
movq (%r15), %rax
movl 0x1c0(%rax), %ebp
jmp 0x74d96
movq (%r15), %rdi
callq 0x13726
movl %eax, %ebp
incl %ebp
jmp 0x74d96
cmpl $0x0, 0x6c(%rbx)
je 0x74de0
movq (%r15), %rax
movl 0x1c0(%rax), %eax
jmp 0x74de5
movl $0x1, %eax
addl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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, %r15
movq %rcx, %r14
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, (%rsp)
subl %esi, %ebx
leal 0x1(%rbx), %r13d
leaq 0x5d6f4(%rip), %r12     # 0xd2870
movq (%r12), %rax
movl 0x1c0(%rax), %esi
movl %r13d, %edi
callq 0x3c6e5
movq %rax, (%r14)
movq %rdx, 0x8(%r14)
movq %r13, 0x8(%rsp)
movl %r13d, %edi
movl $0x1, %esi
callq 0x3c6e5
movq %rax, (%r15)
movq %r15, 0x10(%rsp)
movq %rdx, 0x8(%r15)
testl %ebx, %ebx
js 0x7525d
movslq %ebp, %rax
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, (%rsp)
xorl %r15d, %r15d
movq 0x8(%r14), %rax
movq (%rax,%r15,8), %rax
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, (%rax)
movq (%r12), %rax
cmpl $0x2, 0x1c0(%rax)
leaq (%r15,%r15,2), %r13
jl 0x7522e
movq %r13, %rbp
shlq $0x4, %rbp
addq (%rsp), %rbp
xorl %ebx, %ebx
movq %rbp, %rdi
movl %ebx, %esi
callq 0x2e4b6
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 0x75200
shlq $0x4, %r13
addq (%rsp), %r13
movq %r13, %rdi
callq 0x2eaee
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax,%r15,8), %rax
movsd %xmm0, (%rax)
incq %r15
cmpq 0x8(%rsp), %r15
jne 0x751cd
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/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 0x3dbba
movq %rax, %r15
movq %rdx, %r12
movq %rax, %rdi
movq %rdx, %rsi
movq %rbp, %rdx
movq %r13, %rcx
callq 0x3dc8b
leaq 0x8(%rsp), %r13
movq %rax, (%r13)
movq %rdx, 0x8(%r13)
movq %r13, %rdi
callq 0x3f648
movq (%r13), %rdi
movq 0x8(%r13), %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x3dc8b
movq %rax, %rbp
movq %rdx, %rbx
movq (%r13), %rdi
movq 0x8(%r13), %rsi
callq 0x3dbad
movq %r15, %rdi
movq %r12, %rsi
callq 0x3dbad
movq %rbp, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movq (%rsp), %rcx
callq 0x3dc8b
movq %rax, %r14
movq %rdx, %r15
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x3dbad
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_O1/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 %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r14d
xorpd %xmm0, %xmm0
subl %ecx, %r14d
jl 0x7539a
movl %r9d, %ebx
movq %rdx, %r15
movq %rsi, %r12
movslq %ecx, %rax
incl %r14d
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq %rax, %r15
movsd %xmm0, 0x10(%rsp)
xorpd %xmm0, %xmm0
testl %ebx, %ebx
je 0x7536b
movq %r12, %rsi
movq %r15, %rdx
callq 0x75608
movsd %xmm0, 0x8(%rsp)
movq %r15, %rdi
callq 0x2eaee
subsd 0x8(%rsp), %xmm0
mulsd %xmm0, %xmm0
movsd 0x10(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x30, %r15
decq %r14
jne 0x75352
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 (%rsi), %rax
movsd (%rax), %xmm0
leaq 0x5d24f(%rip), %r15     # 0xd2870
movq (%r15), %rax
cmpl $0x2, 0x1c0(%rax)
jl 0x75687
movq %rdx, %rbx
movq %rsi, %r14
xorl %esi, %esi
movsd %xmm0, 0x8(%rsp)
leaq 0x1(%rsi), %r12
movq 0x8(%r14,%rsi,8), %rax
movsd (%rax), %xmm0
movsd %xmm0, 0x10(%rsp)
movq %rbx, %rdi
callq 0x2e4b6
mulsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
movq (%r15), %rax
movslq 0x1c0(%rax), %rax
decq %rax
movq %r12, %rsi
cmpq %rax, %r12
jl 0x75635
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x756a7
movq %rbx, %rdx
callq 0x75608
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x2eaee
subsd 0x8(%rsp), %xmm0
mulsd %xmm0, %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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:
testq %rdx, %rdx
je 0x7572f
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
xorpd %xmm0, %xmm0
testl %ebx, %ebx
je 0x756f8
movq %r15, %rsi
movq %r14, %rdx
callq 0x75608
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x2eaee
subsd (%rsp), %xmm0
mulsd %xmm0, %xmm0
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x756df
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: create_regression_matrices
void create_regression_matrices(Instanceptr list, matrix* X, matrix* r)
{
	/*!Last Changed 01.03.2005*/
	int i, size = data_size(list), j;
	Instanceptr tmp;
	*X = matrix_alloc(size, current_dataset->multifeaturecount);
	*r = matrix_alloc(size, 1);
 tmp = list;
	i = 0;
	while (tmp)
	 {
		 (*X).values[i][0] = 1;
		 for (j = 0; j < current_dataset->multifeaturecount - 1; j++)
			  (*X).values[i][j + 1] = real_feature(tmp, j);
			(*r).values[i][0] = give_regressionvalue(tmp);
			i++;	 
		 tmp = tmp->next;
	 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x2fa14
movl %eax, %ebp
leaq 0x5d11b(%rip), %r13     # 0xd2870
movq (%r13), %rax
movl 0x1c0(%rax), %esi
movl %ebp, %edi
callq 0x3c6e5
movq %rax, (%r14)
movq %rdx, 0x8(%r14)
movl %ebp, %edi
movl $0x1, %esi
callq 0x3c6e5
movq %rax, (%rbx)
movq %rdx, 0x8(%rbx)
testq %r15, %r15
je 0x757fc
xorl %ebp, %ebp
movq 0x8(%r14), %rax
movq (%rax,%rbp,8), %rax
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, (%rax)
movq (%r13), %rax
cmpl $0x2, 0x1c0(%rax)
jl 0x757dc
xorl %r12d, %r12d
movq %r15, %rdi
movl %r12d, %esi
callq 0x2e4b6
movq 0x8(%r14), %rax
movq (%rax,%rbp,8), %rax
movsd %xmm0, 0x8(%rax,%r12,8)
incq %r12
movq (%r13), %rax
movslq 0x1c0(%rax), %rax
decq %rax
cmpq %rax, %r12
jl 0x757ac
movq %r15, %rdi
callq 0x2eaee
movq 0x8(%rbx), %rax
movq (%rax,%rbp,8), %rax
movsd %xmm0, (%rax)
incq %rbp
movq 0x10(%r15), %r15
testq %r15, %r15
jne 0x75787
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: createnewregnode
Regressionnodeptr createnewregnode(Regressionnodeptr parentnode, int howmany, LEAF_TYPE leaftype)
{
	/*!Last Changed 25.08.2005 added leaftype*/
	/*!Last Changed 09.12.2004*/
	int j;
	Regressionnodeptr newnode;
	newnode = (Regressionnodeptr)safemalloc(howmany * sizeof(struct regressionnode), "createnewregnode", 3);
	newnode->featureno = LEAF_NODE;
	newnode->leaftype = leaftype;
	newnode->instances = NULL;
	newnode->cvinstances = NULL;
	for (j = 0; j < howmany; j++)
			newnode[j].parent = parentnode;
	return newnode;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
movslq %esi, %r15
imulq $0x98, %r15, %rdi
leaq 0x37375(%rip), %rsi     # 0xacba0
movl $0x3, %edx
callq 0x390f5
movl $0xffffffff, 0x68(%rax) # imm = 0xFFFFFFFF
movl %r14d, 0x6c(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
testl %r15d, %r15d
jle 0x75868
movl %ebp, %ecx
imulq $0x98, %rcx, %rcx
xorl %edx, %edx
movq %rbx, 0x18(%rax,%rdx)
addq $0x98, %rdx
cmpq %rdx, %rcx
jne 0x75857
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: next_regression_node
Regressionnodeptr next_regression_node(Regressionnodeptr currentnode, Instanceptr tmp)
{
	/*!Last Changed 24.03.2005*/
	/*!Last Changed 09.12.2004*/
	if (currentnode->featureno >= 0)
   if (tmp->values[currentnode->featureno].floatvalue <= currentnode->split)
     return currentnode->left;
   else
     return currentnode->right;
	else
			if (nearest_center_in_regression_tree(tmp, currentnode->featureno, currentnode->leftcenter, currentnode->rightcenter) == LEFTCHILD)
     return currentnode->left;
   else
     return currentnode->right;
}

// Assembly:
pushq %rbx
movq %rsi, %rax
movq %rdi, %rbx
movslq 0x68(%rdi), %rsi
testq %rsi, %rsi
js 0x75898
movq (%rax), %rax
movsd 0x50(%rbx), %xmm0
ucomisd (%rax,%rsi,8), %xmm0
jae 0x758b9
addq $0x8, %rbx
jmp 0x758b9
movq 0x80(%rbx), %rdx
movq 0x88(%rbx), %rcx
movq %rax, %rdi
callq 0x74bac
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
leaq (%rbx,%rcx,8), %rbx
movq (%rbx), %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: test_regtree
double test_regtree(Regressionnodeptr root, Instanceptr testingdata)
{
	/*!Last Changed 28.02.2005*/
	/*!Last Changed 09.12.2004*/
 Instanceptr test = testingdata;
 Regressionnodeptr currentnode;
	double performance = 0;
 while (test)
  {
   currentnode = root;
   while (currentnode->featureno != LEAF_NODE)
     currentnode = next_regression_node(currentnode, test); 
			performance += instance_regression_error(currentnode->w, currentnode->regressionvalue, test, currentnode->leaftype);
   test = test->next;
  }
	return performance;
}

// Assembly:
testq %rsi, %rsi
je 0x7594c
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
xorpd %xmm0, %xmm0
movsd %xmm0, 0x10(%rsp)
cmpl $-0x1, 0x68(%r14)
movq %r14, %rax
je 0x758fc
movq %r14, %rax
movq %rax, %rdi
movq %rbx, %rsi
callq 0x75873
cmpl $-0x1, 0x68(%rax)
jne 0x758eb
cmpl $0x0, 0x6c(%rax)
je 0x75910
movq 0x38(%rax), %rsi
movq %rbx, %rdx
callq 0x75608
jmp 0x75915
movsd 0x70(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x2eaee
subsd 0x8(%rsp), %xmm0
mulsd %xmm0, %xmm0
movsd 0x10(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x758d8
addq $0x18, %rsp
popq %rbx
popq %r14
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: deallocate_regression_tree
void deallocate_regression_tree(Regressionnodeptr node)
{
	/*!Last Changed 23.03.2005 added deallocation of left and right centers*/
	/*!Last Changed 09.12.2004*/
 if (node->featureno == LEAF_NODE)
  {
   if (node->instances)
     deallocate(node->instances);
   if (node->cvinstances)
     deallocate(node->cvinstances);
   if (node->leaftype == LINEARLEAF)
     matrix_free(node->w);
  }
 else
  {
		 if (in_list(node->featureno, 2, LINEAR, QUADRATIC))
			 {
				 deallocate(node->leftcenter);
				 deallocate(node->rightcenter);
			 }
   else
     if (node->featureno == SOFTLIN)
       matrix_free(node->w);
   deallocate_regression_tree(node->left);
   safe_free(node->left);
   deallocate_regression_tree(node->right);
   safe_free(node->right);
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x68(%rdi), %edi
cmpl $-0x1, %edi
je 0x75990
movl $0x2, %esi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
xorl %eax, %eax
callq 0x39a80
testl %eax, %eax
je 0x759c0
movq 0x80(%rbx), %rdi
callq 0x2f616
movq 0x88(%rbx), %rdi
callq 0x2f616
jmp 0x759d3
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x7599e
callq 0x2f616
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x759ac
callq 0x2f616
cmpl $0x1, 0x6c(%rbx)
jne 0x759f6
movq 0x30(%rbx), %rdi
movq 0x38(%rbx), %rsi
popq %rbx
jmp 0x3dbad
cmpl $-0x6, 0x68(%rbx)
jne 0x759d3
movq 0x30(%rbx), %rdi
movq 0x38(%rbx), %rsi
callq 0x3dbad
movq (%rbx), %rdi
callq 0x75950
movq (%rbx), %rdi
callq 0x39194
movq 0x8(%rbx), %rdi
callq 0x75950
movq 0x8(%rbx), %rdi
popq %rbx
jmp 0x39194
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: accumulate_instances_regression_tree
void accumulate_instances_regression_tree(Instanceptr* data, Instanceptr* cvdata, Regressionnodeptr root)
{
 /*!Last Changed 02.03.2005*/
	if (root->featureno == LEAF_NODE)
		 accumulate_instances_regression_leaf(data, cvdata, root);
	else
	 {
   accumulate_instances_regression_tree(data, cvdata, root->left);
			accumulate_instances_regression_tree(data, cvdata, root->right);
	 }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpl $-0x1, 0x68(%rbx)
je 0x75bf8
movq (%rbx), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x75bd0
movq 0x8(%rbx), %rbx
jmp 0x75bde
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x75b81
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: setup_regressionnode_properties
void setup_regressionnode_properties(Regressionnodeptr node, LEAF_TYPE leaftype)
{
	matrix X, r, w;
	node->covered = data_size(node->instances);
	if (leaftype == CONSTANTLEAF)
	 {
   node->regressionvalue = find_mean_of_regression_value(node->instances);
   node->mseerror = find_variance_of_regression_value(node->instances, node->regressionvalue);
	 }
	else
	 {
   create_regression_matrices(node->instances, &X, &r);
   w = multivariate_regression(X, r);
   matrix_free(X);
   matrix_free(r);
   node->w = w;
   node->mseerror = variance_of_linear_regression(w, node->instances, leaftype);
	 } 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
callq 0x2fa14
movl %eax, 0x78(%rbx)
movq 0x20(%rbx), %rdi
testl %ebp, %ebp
je 0x75e49
leaq 0x28(%rsp), %r14
leaq 0x18(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0x75733
movq (%r14), %r12
movq 0x8(%r14), %r14
movq (%r15), %r13
movq 0x8(%r15), %r15
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
callq 0x7526c
movq %rax, 0x10(%rsp)
movl %ebp, 0xc(%rsp)
movq %rdx, %rbp
movq %r12, %rdi
movq %r14, %rsi
callq 0x3dbad
movq %r13, %rdi
movq %r15, %rsi
callq 0x3dbad
movq 0x10(%rsp), %rax
movq %rax, 0x30(%rbx)
movq %rbp, 0x38(%rbx)
movq 0x20(%rbx), %rdx
movq %rbp, %rsi
movl 0xc(%rsp), %ecx
callq 0x756c5
jmp 0x75e5c
callq 0x2f6a1
movsd %xmm0, 0x70(%rbx)
movq 0x20(%rbx), %rdi
callq 0x2f6f9
movsd %xmm0, 0x60(%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: can_be_divided_regression
int can_be_divided_regression(Regressionnodeptr node, Regtree_parameterptr param)
{
	/*!Last Changed 01.03.2005*/
 setup_regressionnode_properties(node, param->leaftype);
 if (param->prunetype == VALIDATIONPRUNING || (param->prunetype == MODELSELECTIONPRUNING && param->modelselectionmethod == MODEL_SELECTION_CV))
  {
  	if (param->leaftype == CONSTANTLEAF)
     node->errorforprune = find_variance_of_regression_value(node->cvinstances, node->regressionvalue);
   else
     node->errorforprune = variance_of_linear_regression(node->w, node->cvinstances, param->leaftype);
  }
	if (node->mseerror / node->covered <= param->sigma)
	 {
		 make_leaf_regression_node(node, param->leaftype);
		 return 0;
	 }
	if (param->prunetype == PREPRUNING)
	 {
			if ((node->covered + 0.0) / current_dataset->traincount < param->pruningthreshold)
			 {
	  	 make_leaf_regression_node(node, param->leaftype);
     return 0;
			 }
	 }
	return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl (%rsi), %esi
callq 0x75dad
movl 0x4(%r14), %eax
cmpl $0x1, %eax
je 0x75e96
cmpl $0x2, %eax
jne 0x75ebe
cmpl $0x0, 0x8(%r14)
jne 0x75ebe
movl (%r14), %ecx
movq 0x28(%rbx), %rdx
testl %ecx, %ecx
je 0x75eac
movq 0x38(%rbx), %rsi
callq 0x756c5
jmp 0x75eb9
movsd 0x70(%rbx), %xmm0
movq %rdx, %rdi
callq 0x2f6f9
movsd %xmm0, 0x58(%rbx)
movsd 0x60(%rbx), %xmm1
xorps %xmm0, %xmm0
cvtsi2sdl 0x78(%rbx), %xmm0
divsd %xmm0, %xmm1
movsd 0x20(%r14), %xmm2
ucomisd %xmm1, %xmm2
jae 0x75f0c
movl $0x1, %eax
cmpl $0x0, 0x4(%r14)
jne 0x75f2b
leaq 0x5c982(%rip), %rcx     # 0xd2870
movq (%rcx), %rcx
xorps %xmm1, %xmm1
cvtsi2sdl 0x1407124(%rcx), %xmm1
divsd %xmm1, %xmm0
movsd 0x10(%r14), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x75f2b
movl (%r14), %eax
movl $0xffffffff, 0x68(%rbx) # imm = 0xFFFFFFFF
movl %eax, 0x6c(%rbx)
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: constant_or_linear_model_mse
double constant_or_linear_model_mse(Instanceptr train, Instanceptr test, LEAF_TYPE leaftype)
{
	/*!Last Changed 26.03.2005*/
	double regvalue, error;
	matrix X, r, w;
	if (leaftype == CONSTANTLEAF)
	 {
  	regvalue = find_mean_of_regression_value(train);
			error = find_variance_of_regression_value(test, regvalue);
	 }
	else
	 {
   create_regression_matrices(train, &X, &r);
		 w = multivariate_regression(X, r);
			matrix_free(X);
			matrix_free(r);
			error = variance_of_linear_regression(w, test, leaftype);
			matrix_free(w);
	}
	return error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
testl %edx, %edx
je 0x75fdc
movl %edx, %ebp
leaq 0x28(%rsp), %r14
leaq 0x18(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0x75733
movq (%r14), %r12
movq 0x8(%r14), %r14
movq (%r15), %r13
movq 0x8(%r15), %r15
movq %r12, %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r15, %rcx
callq 0x7526c
movq %rax, 0x10(%rsp)
movq %rbx, 0x8(%rsp)
movq %rdx, %rbx
movq %r12, %rdi
movq %r14, %rsi
callq 0x3dbad
movq %r13, %rdi
movq %r15, %rsi
callq 0x3dbad
movq %rbx, %rsi
movq 0x8(%rsp), %rdx
movl %ebp, %ecx
callq 0x756c5
movsd %xmm0, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x3dbad
movsd 0x8(%rsp), %xmm0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2f6a1
movq %rbx, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2f6f9
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: find_linear_regression_split
int find_linear_regression_split(Instanceptr data, Instanceptr* left, Instanceptr* right)
{
	/*!Last Changed 24.03.2005*/
	int size = data_size(data);
	Instanceptr list;
	if (size < 2)
		 return 0;
	list = k_means_clustering(data, 2);
	*left = list;
	*right = list->next;
	list->next = NULL;
	return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x2fa14
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x2, %ecx
jl 0x76217
movq %r15, %rdi
movl $0x2, %esi
callq 0xcd5b
movq %rax, (%r14)
movq 0x10(%rax), %rcx
movq %rcx, (%rbx)
movq $0x0, 0x10(%rax)
movl $0x1, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: find_quadratic_regression_split
int find_quadratic_regression_split(Instanceptr data, Instanceptr* left, Instanceptr* right)
{
	/*!Last Changed 23.03.2005*/
	Instanceptr newlist, list;
	int size = data_size(data), oldfcount;
	if (size < 2)
		 return 0;
 newlist = generate_2d_copy_of_instance_list(data);
 oldfcount = current_dataset->multifeaturecount;
	current_dataset->multifeaturecount = multifeaturecount_2d(current_dataset) + 1;
	list = k_means_clustering(newlist, 2);
	*left = list;
	*right = list->next;
	list->next = NULL;
	deallocate(newlist);
 current_dataset->multifeaturecount = oldfcount;
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x2fa14
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x2, %ecx
jl 0x7629f
movq %r15, %rdi
callq 0x2f664
movq %rax, %r15
leaq 0x5c622(%rip), %r12     # 0xd2870
movq (%r12), %rdi
movl 0x1c0(%rdi), %ebp
callq 0x13726
incl %eax
movq (%r12), %rcx
movl %eax, 0x1c0(%rcx)
movq %r15, %rdi
movl $0x2, %esi
callq 0xcd5b
movq %rax, (%r14)
movq 0x10(%rax), %rcx
movq %rcx, (%rbx)
movq $0x0, 0x10(%rax)
movq %r15, %rdi
callq 0x2f616
movq (%r12), %rax
movl %ebp, 0x1c0(%rax)
movl $0x1, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: find_uni_and_multi_regression_splits
void find_uni_and_multi_regression_splits(Regressionnodeptr node, Instanceptr* leftlincenter, Instanceptr* rightlincenter, Instanceptr* leftquacenter, Instanceptr* rightquacenter)
{
	/*!Last Changed 24.03.2005*/
	char dummy3;
 if (node->leaftype == CONSTANTLEAF)
   node->featureno = best_regression_feature(node->instances, &(node->split), &dummy3);
	else
		 node->featureno = best_regression_feature_linear_leaves(node->instances, &(node->split), &dummy3);
 find_linear_regression_split(node->instances, leftlincenter, rightlincenter);
 find_quadratic_regression_split(node->instances, leftquacenter, rightquacenter);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
leaq 0x50(%rdi), %rsi
cmpl $0x0, 0x6c(%rdi)
movq 0x20(%rdi), %rdi
leaq 0xf(%rsp), %rdx
je 0x76848
callq 0x74e0c
jmp 0x7684d
callq 0x753a6
movl %eax, 0x68(%r15)
movq 0x20(%r15), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x761d7
movq 0x20(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x7621d
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: set_best_model_in_regression_tree
void set_best_model_in_regression_tree(Regressionnodeptr node, int bestmodel, Instanceptr leftl, Instanceptr rightl, Instanceptr leftq, Instanceptr rightq)
{
	/*!Last Changed 24.03.2005*/
	switch (bestmodel)
	 {
	  case MODEL_UNI:deallocate(leftl);
										        deallocate(rightl);
				              deallocate(leftq);
				              deallocate(rightq);
        										break;
	  case MODEL_LIN:node->featureno = LINEAR;
				              node->leftcenter = leftl;
				              node->rightcenter = rightl;
				              deallocate(leftq);
				              deallocate(rightq);
										        break;				      
			case MODEL_QUA:node->featureno = QUADRATIC;
				              node->leftcenter = leftq;
				              node->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 0x768c1
cmpl $0x1, %esi
je 0x768aa
testl %esi, %esi
jne 0x768f1
movq %rdx, %rdi
callq 0x2f616
movq %r15, %rdi
callq 0x2f616
jmp 0x768dc
movl $0xfffffffe, 0x68(%rdi) # imm = 0xFFFFFFFE
movq %rdx, 0x80(%rdi)
movq %r15, 0x88(%rdi)
jmp 0x768dc
movl $0xfffffffd, 0x68(%rdi) # imm = 0xFFFFFFFD
movq %r14, 0x80(%rdi)
movq %rbx, 0x88(%rdi)
movq %rdx, %r14
movq %r15, %rbx
movq %r14, %rdi
callq 0x2f616
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2f616
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: best_single_regression_tree_split
int best_single_regression_tree_split(Regressionnodeptr node, int nodetype)
{
	/*!Last Changed 23.03.2005*/
	char dummy;
	int found;
	switch (nodetype)
	 {
	  case UNIVARIATE:if (node->leaftype == CONSTANTLEAF)
                     return best_regression_feature(node->instances, &(node->split), &dummy);
	                  else
		                   return best_regression_feature_linear_leaves(node->instances, &(node->split), &dummy);
				               break;
		 case LINEAR    :found = find_linear_regression_split(node->instances, &(node->leftcenter), &(node->rightcenter));
				               break;
		 case QUADRATIC :found = find_quadratic_regression_split(node->instances, &(node->leftcenter), &(node->rightcenter));
				               break;
   default        :printf(m1231, nodetype);
                   found = 0;
                   break;
	 }
	if (found)
		 return nodetype;
	else
		 return LEAF_NODE;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %rdx
cmpl $-0x3, %esi
je 0x76b37
cmpl $-0x2, %ebx
je 0x76b1e
testl %ebx, %ebx
jne 0x76b52
leaq 0x50(%rdx), %rsi
cmpl $0x0, 0x6c(%rdx)
movq 0x20(%rdx), %rdi
leaq 0x7(%rsp), %rdx
je 0x76b74
callq 0x74e0c
jmp 0x76b6d
movq 0x20(%rdx), %rdi
leaq 0x80(%rdx), %rsi
addq $0x88, %rdx
callq 0x761d7
jmp 0x76b4e
movq 0x20(%rdx), %rdi
leaq 0x80(%rdx), %rsi
addq $0x88, %rdx
callq 0x7621d
movl %eax, %ebp
jmp 0x76b64
leaq 0x35f91(%rip), %rdi     # 0xacaea
xorl %ebp, %ebp
movl %ebx, %esi
xorl %eax, %eax
callq 0x4030
xorl %eax, %eax
cmpl $0x1, %ebp
sbbl %eax, %eax
orl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
callq 0x753a6
jmp 0x76b6d
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: best_hybrid_regression_tree_split
int best_hybrid_regression_tree_split(Regressionnodeptr node, Regtree_parameterptr param)
{
	/*!Last Changed 27.03.2005*/
	switch (param->modelselectionmethod)
	 {
	  case MODEL_SELECTION_CV :return best_hybrid_regression_tree_split_crossvalidation(node, param);
				                        break;
			case MODEL_SELECTION_AIC:
			case MODEL_SELECTION_BIC:return best_hybrid_regression_tree_split_aic_or_bic(node, param);
				                        break;
			case MODEL_SELECTION_UNI:return best_single_regression_tree_split(node, UNIVARIATE);
				                        break;
			case MODEL_SELECTION_LIN:return best_single_regression_tree_split(node, LINEAR);
				                        break;
			case MODEL_SELECTION_QUA:return best_single_regression_tree_split(node, QUADRATIC);
				                        break;
   default                 :printf(m1230, param->modelselectionmethod);
                            break;
	 }
	return LEAF_NODE;
}

// Assembly:
pushq %rax
movl 0x8(%rsi), %eax
cmpq $0x7, %rax
ja 0x76bd5
movq %rdi, %rdx
leaq 0x35fe5(%rip), %rcx     # 0xacb74
movslq (%rcx,%rax,4), %rdi
addq %rcx, %rdi
jmpq *%rdi
movq %rdx, %rdi
callq 0x768f7
movl $0x1, %eax
jmp 0x76c1a
movq 0x20(%rdx), %rdi
leaq 0x80(%rdx), %rsi
addq $0x88, %rdx
callq 0x7621d
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x1, %ecx
sbbl %eax, %eax
orl $-0x3, %eax
jmp 0x76c1a
movq %rdx, %rdi
popq %rax
jmp 0x762a8
leaq 0x35ea8(%rip), %rdi     # 0xaca84
movl %eax, %esi
xorl %eax, %eax
callq 0x4030
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x76c1a
movq %rdx, %rdi
xorl %esi, %esi
popq %rax
jmp 0x76aee
movq 0x20(%rdx), %rdi
leaq 0x80(%rdx), %rsi
addq $0x88, %rdx
callq 0x761d7
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
sete %al
orl $-0x2, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: create_regtree
int create_regtree(Regressionnodeptr node, Regtree_parameterptr param)
{
	/*!Last Changed 09.12.2004 rewritten*/
 /*!Last Changed 11.04.2004*/
	if (!(can_be_divided_regression(node, param)))
   return 1;
	node->featureno = best_hybrid_regression_tree_split(node, param);
 if (!(make_regression_children(node, param->leaftype)))
   return 1;
 create_regtree(node->left, param);
 create_regtree(node->right, param);
 return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movl $0x1, %r12d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x75e70
testl %eax, %eax
je 0x76c7b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x76b7b
movl %eax, 0x68(%r14)
movl (%rbx), %esi
movq %r14, %rdi
callq 0x759f8
testl %eax, %eax
je 0x76c7b
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x76c1c
movq 0x8(%r14), %r14
testb $0x1, %r15b
cmovel %r12d, %ebp
movb $0x1, %r15b
jmp 0x76c33
testb $0x1, %r15b
movl $0x1, %eax
cmovnel %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: inorder_traversal_regression_tree
void inorder_traversal_regression_tree(Regressionnodeptr node, int* index)
{
 if (node)
  { 
   inorder_traversal_regression_tree(node->left, index);
   node->x = *index;
   (*index)++;
   inorder_traversal_regression_tree(node->right, index);   
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testq %r14, %r14
je 0x76cbb
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x76c90
movl (%rbx), %eax
movl %eax, 0x90(%r14)
incl (%rbx)
movq 0x8(%r14), %r14
jmp 0x76c9a
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: level_of_regression_tree
void level_of_regression_tree(Regressionnodeptr node)
{
 if (node)
  {
   if (node->parent)
     node->y = node->parent->y + 1;
   else
     node->y = 0;
   level_of_regression_tree(node->left);
   level_of_regression_tree(node->right);   
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testq %rbx, %rbx
je 0x76cf5
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x76cdf
movl 0x94(%rax), %eax
incl %eax
jmp 0x76ce1
xorl %eax, %eax
movl %eax, 0x94(%rbx)
movq (%rbx), %rdi
callq 0x76cc3
movq 0x8(%rbx), %rbx
jmp 0x76cc7
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: soft_regtree_dimension_reduction
void soft_regtree_dimension_reduction(Regressionnodeptr node, char st[READLINELENGTH], int level)
{
 int i, count;
	if (node->featureno != LEAF_NODE)
	 {
   count = 0;
   for (i = 0; i < current_dataset->multifeaturecount; i++)
     if (node->w.values[i][0] != 0)
       count++;
   sprintf(st,"%s%d-%d;", st, level, count);
   soft_regtree_dimension_reduction(node->left, st, level + 1);
   soft_regtree_dimension_reduction(node->right, st, level + 1);
	 }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x5bb61(%rip), %r13     # 0xd2870
xorpd %xmm1, %xmm1
leaq 0x30c37(%rip), %r12     # 0xa7951
cmpl $-0x1, 0x68(%r15)
je 0x76d87
movq (%r13), %rax
movslq 0x1c0(%rax), %rax
testq %rax, %rax
jle 0x76d59
movq 0x38(%r15), %rcx
xorl %edx, %edx
xorl %r8d, %r8d
movq (%rcx,%rdx,8), %rsi
movsd (%rsi), %xmm0
cmpneqsd %xmm1, %xmm0
movq %xmm0, %rsi
subl %esi, %r8d
incq %rdx
cmpq %rdx, %rax
jne 0x76d3a
jmp 0x76d5c
xorl %r8d, %r8d
movq %r14, %rdi
movq %r12, %rsi
movq %r14, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x41b0
movq (%r15), %rdi
incl %ebx
movq %r14, %rsi
movl %ebx, %edx
callq 0x76cf7
xorpd %xmm1, %xmm1
movq 0x8(%r15), %r15
jmp 0x76d1a
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: depth_of_regression_tree
int depth_of_regression_tree(Regressionnodeptr node)
{
 /*!Last Changed 12.07.2006*/
 int leftdepth, rightdepth;
 if (node->featureno == LEAF_NODE)
   return 1;
 else
  {
   leftdepth = depth_of_regression_tree(node->left);
   rightdepth = depth_of_regression_tree(node->right);
   if (leftdepth >= rightdepth)
     return leftdepth + 1;
   else
     return rightdepth + 1;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpl $-0x1, 0x68(%rdi)
je 0x76dbb
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x76d91
movl %eax, %ebx
movq 0x8(%r14), %rdi
callq 0x76d91
cmpl %eax, %ebx
jge 0x76dc2
incl %eax
movl %eax, %ebx
jmp 0x76dc4
movl $0x1, %ebx
jmp 0x76dc4
incl %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressiontree.c
// Function: estimate_sigma_square_with_heuristic
double estimate_sigma_square_with_heuristic(Instanceptr data)
{
	/*!Last Changed 02.03.2005*/
	double* values, difference = +INT_MAX, d;
	Instanceptr tmp;
	int size = data_size(data), i;
	values = safemalloc(size * sizeof(double), "estimate_sigma_square_with_heuristic", 4);
	tmp = data;
	i = 0;
	while (tmp)
	 {
		 values[i] = give_regressionvalue(tmp);
			tmp = tmp->next;
		 i++;
	 }
	qsort(values, size, sizeof(double), sort_function_double_ascending);
	for (i = 0; i < size - 1; i++)
	 {
		 d = values[i + 1] - values[i];
		 if ((!dequal(d, 0)) && d < difference)
				 difference = d;
	 }
	safe_free(values);
	return difference * difference;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r12
callq 0x2fa14
movl %eax, %ebx
movslq %eax, %r15
leaq (,%r15,8), %rdi
leaq 0x35ddc(%rip), %rsi     # 0xacbe3
movl $0x4, %edx
callq 0x390f5
movq %rax, %r14
testq %r12, %r12
je 0x76e38
movq %r14, %r13
movq %r12, %rdi
callq 0x2eaee
movsd %xmm0, (%r13)
movq 0x10(%r12), %r12
addq $0x8, %r13
testq %r12, %r12
jne 0x76e1c
leaq -0x3d858(%rip), %rcx    # 0x395e7
movl $0x8, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4240
cmpl $0x2, %r15d
jl 0x76ea0
decl %ebx
movsd 0x2b6b9(%rip), %xmm0    # 0xa2518
movsd %xmm0, (%rsp)
xorl %r15d, %r15d
movsd 0x8(%r14,%r15,8), %xmm0
subsd (%r14,%r15,8), %xmm0
xorps %xmm1, %xmm1
movsd %xmm0, 0x8(%rsp)
callq 0x38d52
testl %eax, %eax
jne 0x76e96
movsd 0x8(%rsp), %xmm0
minsd (%rsp), %xmm0
movsd %xmm0, (%rsp)
incq %r15
cmpq %r15, %rbx
jne 0x76e67
jmp 0x76ead
movsd 0x2b670(%rip), %xmm0    # 0xa2518
movsd %xmm0, (%rsp)
movq %r14, %rdi
callq 0x39194
movsd (%rsp), %xmm0
mulsd %xmm0, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq