LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regression.c
// Function: test_gprocessreg
Prediction test_gprocessreg(Instanceptr data, void* model, void* parameters, double* posterior)
{
 /*!Last Changed 15.01.2009*/
 int i;
 Prediction predicted;
 Gprocess_parameterptr gp;
 Model_gprocessregressionptr m;
 Instanceptr tmp;
 Svm_parameter param;
 Svm_nodeptr x, y;
 predicted.regvalue = 0.0;
 gp = (Gprocess_parameterptr) parameters;
 param.kernel_type = gp->kernel_type;
 param.coef0 = gp->coef0;
 param.gamma = gp->gamma;
 param.degree = gp->degree;
 m = (Model_gprocessregressionptr) model;
 y = instance_to_svmnode(data);
 tmp = m->data;
 for (i = 0; i < m->size; i++)
  {
   x = instance_to_svmnode(tmp);
   predicted.regvalue += k_function(x, y, param) * m->weights[i];
   safe_free(x);
   tmp = tmp->next;
  }
 safe_free(y);
 return predicted;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdx, %r14
movq %rdi, %rbx
movq $0x0, (%rdi)
movl 0x8(%rcx), %eax
movl %eax, 0x74(%rsp)
movsd 0x10(%rcx), %xmm0
movsd %xmm0, 0x88(%rsp)
movsd 0x20(%rcx), %xmm0
movsd %xmm0, 0x80(%rsp)
movl 0x18(%rcx), %eax
movl %eax, 0x78(%rsp)
movq %rsi, %rdi
callq 0x2e3eb
movq %rax, %r15
movq %rbx, 0x68(%rsp)
movsd (%rbx), %xmm0
cmpl $0x0, (%r14)
movsd %xmm0, 0x60(%rsp)
jle 0x71753
leaq 0x8(%r14), %r12
xorl %ebx, %ebx
leaq 0x70(%rsp), %r13
movq (%r12), %r12
movq %r12, %rdi
callq 0x2e3eb
movq %rax, %rbp
movl $0xb, %ecx
movq %rsp, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rax, %rdi
movq %r15, %rsi
callq 0x912a1
movq 0x10(%r14), %rax
mulsd (%rax,%rbx,8), %xmm0
movsd 0x60(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x60(%rsp)
movq %rbp, %rdi
callq 0x39194
addq $0x10, %r12
incq %rbx
movslq (%r14), %rax
cmpq %rax, %rbx
jl 0x716fb
movq 0x68(%rsp), %rbx
movsd 0x60(%rsp), %xmm0
movsd %xmm0, (%rbx)
movq %r15, %rdi
callq 0x39194
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regression.c
// Function: test_linearregression
Prediction test_linearregression(Instanceptr data, void* model, void* parameters, double* posterior)
{
	/*!Last Changed 10.12.2004*/
	Model_linearregressionptr m;
	int i;
 Prediction predicted;
 predicted.regvalue = 0.0;
	m = (Model_linearregressionptr) model;
	for (i = 0; i < current_dataset->multifeaturecount - 1; i++)
		 predicted.regvalue += real_feature(data, i) * m->w.values[0][i];
	predicted.regvalue += m->b;
 return predicted;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rdi, %r14
movq $0x0, (%rdi)
leaq 0x60e64(%rip), %r13     # 0xd2870
movq (%r13), %rax
xorpd %xmm0, %xmm0
cmpl $0x2, 0x1c0(%rax)
jl 0x71a6d
movq %rsi, %r15
xorl %r12d, %r12d
movsd %xmm0, 0x8(%rsp)
movq %r15, %rdi
movl %r12d, %esi
callq 0x2e4b6
movq 0x10(%rbx), %rax
movq (%rax), %rax
mulsd (%rax,%r12,8), %xmm0
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
incq %r12
movq (%r13), %rax
movslq 0x1c0(%rax), %rax
decq %rax
cmpq %rax, %r12
jl 0x71a23
movsd %xmm0, (%r14)
addsd (%rbx), %xmm0
movsd %xmm0, (%r14)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regression.c
// Function: test_quantizereg
Prediction test_quantizereg(Instanceptr data, void* model, void* parameters, double* posterior)
{
	/*!Last Changed 21.12.2004*/
	Model_quantizeregptr m;
	int x, y;
	double xvalue, yvalue;
 Prediction predicted;
	m = (Model_quantizeregptr) model;
	if (current_dataset->featurecount > 2)
		{
   dimension_reduce_with_pca(data, 2, m->eigenvectors);
			xvalue = real_feature(data, 0);
			yvalue = real_feature(data, 1);
			x = (int) ((xvalue - m->minx) / m->binx);
   check_and_put_in_between(&x, 0, m->partitioncount - 1);
			y = (int) ((yvalue - m->miny) / m->biny);
   check_and_put_in_between(&y, 0, m->partitioncount - 1);
   predicted.regvalue = m->meanstwo[x][y];
		}
	else
		{
			xvalue = real_feature(data, 0);
   x = (int) ((xvalue - m->minx) / m->binx);
   check_and_put_in_between(&x, 0, m->partitioncount - 1);
   predicted.regvalue = m->meansone[x];
  }
 return predicted;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x60519(%rip), %rax     # 0xd2870
movq (%rax), %rax
cmpl $0x3, 0x1bc(%rax)
jl 0x72409
movq 0x30(%r14), %rdx
movq 0x38(%r14), %rcx
movq %r15, %rdi
movl $0x2, %esi
callq 0x10980
movq %r15, %rdi
xorl %esi, %esi
callq 0x2e4b6
movsd %xmm0, 0x10(%rsp)
movq %r15, %rdi
movl $0x1, %esi
callq 0x2e4b6
movsd %xmm0, 0x18(%rsp)
movsd 0x10(%rsp), %xmm0
subsd (%r14), %xmm0
divsd 0x8(%r14), %xmm0
cvttsd2si %xmm0, %eax
leaq 0xc(%rsp), %r12
movl %eax, (%r12)
movl 0x40(%r14), %edx
decl %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x398d2
movsd 0x18(%rsp), %xmm0
subsd 0x10(%r14), %xmm0
divsd 0x18(%r14), %xmm0
cvttsd2si %xmm0, %eax
leaq 0x24(%rsp), %r15
movl %eax, (%r15)
movl 0x40(%r14), %edx
decl %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x398d2
movslq (%r12), %rax
shlq $0x3, %rax
addq 0x28(%r14), %rax
jmp 0x72441
movq %r15, %rdi
xorl %esi, %esi
callq 0x2e4b6
subsd (%r14), %xmm0
divsd 0x8(%r14), %xmm0
cvttsd2si %xmm0, %eax
leaq 0xc(%rsp), %r15
movl %eax, (%r15)
movl 0x40(%r14), %edx
decl %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x398d2
addq $0x20, %r14
movq %r14, %rax
movq (%rax), %rax
movslq (%r15), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rbx)
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regression.c
// Function: test_regrule
Prediction test_regrule(Instanceptr data, void* model, void* parameters, double* posterior)
{
	/*!Last Changed 06.03.2005*/
	Regressionruleset r;
 Regressionruleptr rule;
 Prediction predicted;
	r = *((Regressionruleset*) model);
 rule = r.start;
 while (rule)
  {
   if (regression_rule_cover_instance(data, rule))
    {
     if (rule->leaftype == CONSTANTLEAF)
      {
       predicted.regvalue = rule->regressionvalue; 
       return predicted;
      }
     else
      {
       predicted.regvalue = linear_fit_value(rule->w, data); 
       return predicted;
      }
    }
   rule = rule->next;
  }
 if (r.leaftype == CONSTANTLEAF)
   predicted.regvalue = r.regressionvalue;
 else
   predicted.regvalue = linear_fit_value(r.w, data);
 return predicted;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdx), %r15
movq 0x10(%rdx), %r12
movq 0x18(%rdx), %r13
movl 0x20(%rdx), %ebp
movsd 0x28(%rdx), %xmm0
movsd %xmm0, (%rsp)
testq %r15, %r15
je 0x72521
movq %r14, %rdi
movq %r15, %rsi
callq 0x73b5b
testl %eax, %eax
jne 0x72532
movq 0x38(%r15), %r15
jmp 0x72507
testl %ebp, %ebp
movsd (%rsp), %xmm0
je 0x72548
movq %r12, %rdi
movq %r13, %rsi
jmp 0x72540
cmpl $0x0, 0x10(%r15)
je 0x7255e
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %r14, %rdx
callq 0x75608
movsd %xmm0, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsd 0x18(%r15), %xmm0
jmp 0x72548
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regression.c
// Function: test_svmreg
Prediction test_svmreg(Instanceptr data, void* model, void* parameters, double* posterior)
{
	/*!Last Changed 03.05.2005*/
	Svm_nodeptr node;
 Prediction predicted;
	Svm_modelptr m;
 double* dec_values;
 double y = give_regressionvalue(data);
	m = (Svm_modelptr) model;
	node = instance_to_svmnode(data);
 dec_values = safemalloc(sizeof(double), "test_svm", 7);
 svm_predict_values(m, node, dec_values);
 predicted.epsilonloss = epsilon_sensitive_loss(y, dec_values[0], get_parameter_f("svmepsilon"));
 safe_free(dec_values); 
	predicted.regvalue = svm_predict(m, node);
	safe_free(node);
 return predicted;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x2eaee
movsd %xmm0, 0x10(%rsp)
movq %r15, %rdi
callq 0x2e3eb
movq %rax, %r15
leaq 0x309ae(%rip), %rsi     # 0xa2fde
movl $0x8, %edi
movl $0x7, %edx
callq 0x390f5
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x8faf6
movsd (%r12), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x303e5(%rip), %rdi     # 0xa2a48
callq 0x534b6
movaps %xmm0, %xmm2
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
callq 0x46097
movsd %xmm0, 0x18(%rbx)
movq %r12, %rdi
callq 0x39194
movq %r14, %rdi
movq %r15, %rsi
callq 0x90901
movsd %xmm0, (%rbx)
movq %r15, %rdi
callq 0x39194
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressionrule.c
// Function: write_nodetypes_regression_rule
void write_nodetypes_regression_rule(Regressionruleset r, char* st)
{
	/*!Last Changed 06.03.2005*/
	Regressionruleptr tmprule;
	Regressionconditionptr tmpcondition;
 sprintf(st, "%s", "");
	tmprule = r.start;
	while (tmprule)
	 {
		 tmpcondition = tmprule->start;
			while (tmpcondition)
			 {				 
				 if (tmpcondition->featureindex == LINEAR)
  				 sprintf(st, "%sL", st);
					else
						 if (tmpcondition->featureindex == QUADRATIC)
						   sprintf(st, "%sQ", st);
							else
								 sprintf(st, "%sU", st);
				 tmpcondition = tmpcondition->next;
			 }
			sprintf(st, "%s;", st);
		 tmprule = tmprule->next;
	 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movb $0x0, (%rdi)
movq 0x40(%rsp), %r15
testq %r15, %r15
je 0x72756
movq %rdi, %rbx
leaq 0x35116(%rip), %r12     # 0xa7810
leaq 0x35113(%rip), %r13     # 0xa7814
leaq 0x35104(%rip), %rbp     # 0xa780c
movq 0x20(%r15), %r14
testq %r14, %r14
je 0x72739
movl (%r14), %eax
movq %r12, %rsi
cmpl $-0x3, %eax
je 0x7271f
movq %r13, %rsi
cmpl $-0x2, %eax
cmoveq %rbp, %rsi
movq %rbx, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x41b0
movq 0x20(%r14), %r14
jmp 0x7270c
movq %rbx, %rdi
leaq 0x350e3(%rip), %rsi     # 0xa7826
movq %rbx, %rdx
xorl %eax, %eax
callq 0x41b0
movq 0x38(%r15), %r15
testq %r15, %r15
jne 0x72708
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/regressionrule.c
// Function: simplify_regression_ruleset
void simplify_regression_ruleset(Regressionruleset* r, Instanceptr data, int modelselectionmethod)
{
	/*!Last Changed 06.03.2005*/
	Regressionruleptr firstrule, deleted, tmprule, deletedbefore;
	double minerror, error;
	minerror = generalization_error_of_regression_ruleset(*r, data, modelselectionmethod);
	firstrule = r->start;
	deleted = r->end;
	while (deleted && deleted->next != firstrule)
	 {
		 tmprule = r->start;
			if (tmprule != deleted)
			 {
			  while (tmprule->next != deleted)
				   tmprule = tmprule->next;
			  deletedbefore = tmprule;
			 }
			else
				 deletedbefore = NULL;
			remove_regression_rule_after(r, deletedbefore, deleted);
			error = generalization_error_of_regression_ruleset(*r, data, modelselectionmethod);
			if (error > minerror)
				 add_regression_rule_after(r, deletedbefore, deleted);
			else
			 {
				 free_regression_rule(*deleted);
					safe_free(deleted);
				 minerror = error;
			 }
			deleted = deletedbefore;
	 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movq 0x30(%rdi), %rax
movq %rax, 0x30(%rsp)
movupd (%rdi), %xmm0
movups 0x10(%rdi), %xmm1
movups 0x20(%rdi), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movq %rsi, %rdi
movl %edx, %esi
callq 0x728bf
movsd %xmm0, 0x50(%rsp)
movq 0x8(%r15), %rbp
testq %rbp, %rbp
je 0x728b0
movq (%r15), %r13
movq 0x38(%rbp), %rax
cmpq %r13, %rax
je 0x728b0
movq %rbp, %r12
movq (%r15), %rcx
cmpq %rbp, %rcx
je 0x727fb
movq %rcx, %rbp
movq 0x38(%rcx), %rcx
cmpq %r12, %rcx
jne 0x727ed
jmp 0x727fd
xorl %ebp, %ebp
decl 0x30(%r15)
je 0x72817
testq %rax, %rax
jne 0x7280c
movq %rbp, 0x8(%r15)
testq %rbp, %rbp
je 0x72822
movq %rax, 0x38(%rbp)
jmp 0x72825
xorpd %xmm0, %xmm0
movupd %xmm0, (%r15)
jmp 0x72825
movq %rax, (%r15)
movq 0x30(%r15), %rax
movq %rax, 0x30(%rsp)
movupd (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movq %r14, %rdi
movl %ebx, %esi
callq 0x728bf
ucomisd 0x50(%rsp), %xmm0
jbe 0x72886
incl 0x30(%r15)
leaq 0x38(%rbp), %rax
testq %rbp, %rbp
cmoveq %r15, %rax
movq (%rax), %rcx
movq %rcx, 0x38(%r12)
movq %r12, (%rax)
cmpq $0x0, 0x38(%r12)
jne 0x728a7
movq %r12, 0x8(%r15)
jmp 0x728a7
movl $0x9, %ecx
movq %rsp, %rdi
movq %r12, %rsi
rep  movsq (%rsi), %es:(%rdi)
movsd %xmm0, 0x50(%rsp)
callq 0x72a03
movq %r12, %rdi
callq 0x39194
testq %rbp, %rbp
jne 0x727d5
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressionrule.c
// Function: generalization_error_of_regression_ruleset
double generalization_error_of_regression_ruleset(Regressionruleset r, Instanceptr data, MODEL_SELECTION_TYPE modelselectionmethod)
{
	/*!Last Changed 04.03.2005*/
	double error;
	int complexity, size;
	error = mse_of_ruleset(r, data, &size);
	complexity = complexity_of_regression_ruleset(r);
	switch (modelselectionmethod)
	 {
	  case MODEL_SELECTION_CV :return error;
				                        break;
			case MODEL_SELECTION_AIC:return aic_squared_error(error, complexity, size);
				                        break;
			case MODEL_SELECTION_BIC:return bic_squared_error(error, complexity, size);
				                        break;
   default                 :printf(m1230, modelselectionmethod);
                            break;
	 }
	return error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movl %esi, %ebx
movq 0xa0(%rsp), %rax
movq %rax, 0x30(%rsp)
movaps 0x70(%rsp), %xmm0
movaps 0x80(%rsp), %xmm1
movaps 0x90(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x3c(%rsp), %rsi
callq 0x72c19
movsd %xmm0, 0x40(%rsp)
movq 0x70(%rsp), %r14
movl 0x90(%rsp), %r15d
xorl %ebp, %ebp
testq %r14, %r14
je 0x7292f
movq %r14, %rdi
callq 0x72b99
addl %eax, %ebp
movq 0x38(%r14), %r14
jmp 0x7291a
testl %r15d, %r15d
je 0x72946
leaq 0x5ff35(%rip), %rax     # 0xd2870
movq (%rax), %rax
addl 0x1c0(%rax), %ebp
jmp 0x72948
incl %ebp
testl %ebx, %ebx
je 0x729a6
cmpl $0x2, %ebx
je 0x72976
cmpl $0x1, %ebx
jne 0x72996
xorps %xmm1, %xmm1
cvtsi2sd %ebp, %xmm1
movl 0x3c(%rsp), %edi
movsd 0x40(%rsp), %xmm0
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x46491
xorps %xmm1, %xmm1
cvtsi2sd %ebp, %xmm1
movl 0x3c(%rsp), %edi
movsd 0x40(%rsp), %xmm0
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x468e1
leaq 0x3a0e7(%rip), %rdi     # 0xaca84
movl %ebx, %esi
xorl %eax, %eax
callq 0x4030
movsd 0x40(%rsp), %xmm0
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressionrule.c
// Function: free_regression_rule
void free_regression_rule(Regressionrule rule)
{
	/*!Last Changed 27.03.2005*/
	/*!Last Changed 02.03.2005*/
	Regressionconditionptr tmp, next;
	tmp = rule.start;
	while (tmp)
	 {
		 next = tmp->next;
			if (in_list(tmp->featureindex, 2, LINEAR, QUADRATIC))
			 {
				 deallocate(tmp->leftcenter);
				 deallocate(tmp->rightcenter);
			 }
			safe_free(tmp);
			tmp = next;
	 }
	if (rule.leaftype == LINEARLEAF)
		 matrix_free(rule.w);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x20(%rsp), %r14
movq 0x20(%r14), %rbx
testq %rbx, %rbx
je 0x72a58
movq 0x20(%rbx), %r15
movl (%rbx), %edi
movl $0x2, %esi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
xorl %eax, %eax
callq 0x39a80
testl %eax, %eax
je 0x72a48
movq 0x10(%rbx), %rdi
callq 0x2f616
movq 0x18(%rbx), %rdi
callq 0x2f616
movq %rbx, %rdi
callq 0x39194
movq %r15, %rbx
testq %r15, %r15
jne 0x72a16
cmpl $0x1, 0x10(%r14)
jne 0x72a70
movq (%r14), %rdi
movq 0x8(%r14), %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x3dbad
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressionrule.c
// Function: generalization_error_of_regression_rule
double generalization_error_of_regression_rule(Regressionruleptr rule, Instanceptr data, MODEL_SELECTION_TYPE modelselectionmethod)
{
	/*!Last Changed 06.03.2005*/
	double error;
	int complexity, size;
	error = mse_of_rule(rule, data, &size);
	complexity = complexity_of_regression_rule(rule);
	switch (modelselectionmethod)
	 {
	  case MODEL_SELECTION_CV :return error;
				                        break;
			case MODEL_SELECTION_AIC:return aic_squared_error(error, complexity, size);
				                        break;
			case MODEL_SELECTION_BIC:return bic_squared_error(error, complexity, size);
				                        break;
   default                 :printf(m1230, modelselectionmethod);
                            break;
	 }
	return error;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebx
movq %rdi, %r14
leaq 0xc(%rsp), %rdx
callq 0x72afa
movsd %xmm0, 0x10(%rsp)
movq %r14, %rdi
callq 0x72b99
testl %ebx, %ebx
je 0x72aec
cmpl $0x2, %ebx
je 0x72ac2
cmpl $0x1, %ebx
jne 0x72adc
cvtsi2sd %eax, %xmm1
movl 0xc(%rsp), %edi
movsd 0x10(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x46491
cvtsi2sd %eax, %xmm1
movl 0xc(%rsp), %edi
movsd 0x10(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x468e1
leaq 0x39fa1(%rip), %rdi     # 0xaca84
movl %ebx, %esi
xorl %eax, %eax
callq 0x4030
movsd 0x10(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/regressionrule.c
// Function: mse_of_rule
double mse_of_rule(Regressionruleptr c, Instanceptr list, int* covered)
{
	/*!Last Changed 02.03.2005*/
	Instanceptr tmp;
	double result = 0;
	tmp = list;
	*covered = 0;
	while (tmp)
	 {
		 if (regression_rule_cover_instance(tmp, c))
			 {
				 (*covered)++;
					result += instance_regression_error(c->w, c->regressionvalue, tmp, c->leaftype);
			 }
		 tmp = tmp->next;
	 }
	return result / (*covered);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl $0x0, (%rdx)
testq %rsi, %rsi
je 0x72b74
movq %rsi, %r14
movq %rdi, %r15
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
movq %r15, %r12
movq 0x20(%r12), %r12
testq %r12, %r12
je 0x72b40
movq %r14, %rdi
movq %r12, %rsi
callq 0x73c78
testl %eax, %eax
jne 0x72b22
testq %r12, %r12
jne 0x72b69
incl (%rbx)
movsd 0x18(%r15), %xmm0
movl 0x10(%r15), %ecx
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %r14, %rdx
callq 0x75693
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x72b1f
jmp 0x72b7d
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
xorps %xmm1, %xmm1
cvtsi2sdl (%rbx), %xmm1
movsd (%rsp), %xmm0
divsd %xmm1, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x72bf0
leaq 0x5fcba(%rip), %r12     # 0xd2870
movl (%r15), %eax
testl %eax, %eax
js 0x72bcb
addl $0x2, %ebx
movq 0x20(%r15), %r15
testq %r15, %r15
jne 0x72bb6
jmp 0x72bf0
cmpl $-0x3, %eax
je 0x72be1
cmpl $-0x2, %eax
jne 0x72bc0
movq (%r12), %rax
addl 0x1c0(%rax), %ebx
jmp 0x72bc0
movq (%r12), %rdi
callq 0x13726
addl %eax, %ebx
incl %ebx
jmp 0x72bc0
cmpl $0x0, 0x10(%r14)
je 0x72c09
leaq 0x5fc72(%rip), %rax     # 0xd2870
movq (%rax), %rax
addl 0x1c0(%rax), %ebx
jmp 0x72c0b
incl %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x72d46
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x70(%rsp), %rax
movq (%rax), %r12
movq 0x10(%rax), %rcx
movq %rcx, 0x30(%rsp)
testq %r12, %r12
sete 0xf(%rsp)
movsd 0x28(%rax), %xmm0
movsd %xmm0, 0x28(%rsp)
movl 0x20(%rax), %ecx
movl %ecx, 0x1c(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x20(%rsp)
xorpd %xmm1, %xmm1
testq %r12, %r12
je 0x72ce1
movsd %xmm1, 0x10(%rsp)
movb 0xf(%rsp), %bpl
movq %r12, %r15
movq %r15, %r13
movq 0x20(%r13), %r13
testq %r13, %r13
je 0x72cbc
movq %r14, %rdi
movq %r13, %rsi
callq 0x73c78
testl %eax, %eax
jne 0x72c8a
testq %r13, %r13
je 0x72cbc
movq 0x38(%r15), %r15
testq %r15, %r15
sete %bpl
jne 0x72c87
movsd 0x10(%rsp), %xmm1
jmp 0x72ce6
movsd 0x18(%r15), %xmm0
movl 0x10(%r15), %ecx
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %r14, %rdx
callq 0x75693
movsd 0x10(%rsp), %xmm1
addsd %xmm0, %xmm1
jmp 0x72ce6
movb 0xf(%rsp), %bpl
testb $0x1, %bpl
je 0x72d18
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
movsd 0x28(%rsp), %xmm0
movq %r14, %rdx
movl 0x1c(%rsp), %ecx
movsd %xmm1, 0x10(%rsp)
callq 0x75693
movsd 0x10(%rsp), %xmm1
addsd %xmm0, %xmm1
movq 0x10(%r14), %r14
movl (%rbx), %eax
incl %eax
movl %eax, (%rbx)
testq %r14, %r14
jne 0x72c74
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm0, %xmm1
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x72d4e
movsd 0x2ffc2(%rip), %xmm1    # 0xa2d10
movapd %xmm1, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x72d77
movq %r14, %rdi
callq 0x72b99
addl %eax, %ebx
movq 0x38(%r14), %r14
jmp 0x72d62
cmpl $0x0, 0x20(%r15)
je 0x72d90
leaq 0x5faeb(%rip), %rax     # 0xd2870
movq (%rax), %rax
addl 0x1c0(%rax), %ebx
jmp 0x72d92
incl %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x2fa14
movl %eax, %ebx
xorl %eax, %eax
cmpl $0x3, %ebx
jl 0x73685
testl %ebp, %ebp
je 0x73659
leaq 0x18(%rsp), %r12
leaq 0x8(%rsp), %r13
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x75733
movq (%r12), %rdi
movq 0x8(%r12), %rsi
movq (%r13), %rdx
movq 0x8(%r13), %rcx
callq 0x7526c
movq %rax, (%r15)
movq %rdx, 0x8(%r15)
movq (%r12), %rdi
movq 0x8(%r12), %rsi
callq 0x3dbad
movq (%r13), %rdi
movq 0x8(%r13), %rsi
callq 0x3dbad
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %r14, %rdx
movl %ebp, %ecx
callq 0x756c5
jmp 0x7366f
movq %r14, %rdi
callq 0x2f6a1
movsd %xmm0, (%r12)
movq %r14, %rdi
callq 0x2f6f9
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_O1/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 0x39402(%rip), %rsi     # 0xacab9
movl $0x48, %edi
movl $0x1, %edx
callq 0x390f5
movq %rax, %r14
movq %r15, 0x38(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movl $0x0, 0x30(%rax)
movl (%rbx), %eax
movl %eax, 0x10(%r14)
movq %r12, 0x30(%rsp)
movq (%r12), %rdi
movq %rdi, 0x8(%rsp)
movsd 0x10(%rbx), %xmm0
movl (%rbx), %ecx
leaq 0x20(%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq 0x735c2
testl %eax, %eax
je 0x737a3
movq %r14, %r13
addq $0x20, %r13
leaq 0x8(%rsp), %r12
leaq 0x20(%rsp), %rbp
leaq 0x18(%rsp), %r15
movq %r12, %rdi
movq %rbx, %rsi
callq 0x74749
cmpl $-0x1, (%rax)
je 0x7379b
cmpb $0x3d, 0x4(%rax)
je 0x7379b
movl 0x30(%r14), %edx
leal 0x1(%rdx), %ecx
movl %ecx, 0x30(%r14)
movq %r13, %rcx
testl %edx, %edx
je 0x73753
movq 0x28(%r14), %rcx
addq $0x20, %rcx
movq %rax, (%rcx)
movq %rax, 0x28(%r14)
movq %rax, %rdi
movq %r12, %rsi
leaq 0x10(%rsp), %rdx
callq 0x73bcd
cmpl $0x1, (%rbx)
jne 0x7377e
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x3dbad
movq 0x8(%rsp), %rdi
movsd 0x10(%rbx), %xmm0
movl (%rbx), %ecx
movq %rbp, %rsi
movq %r15, %rdx
callq 0x735c2
testl %eax, %eax
jne 0x73723
jmp 0x737a3
movq %rax, %rdi
callq 0x39194
movq 0x8(%rsp), %rdi
callq 0x2fa14
movl %eax, 0x40(%r14)
cmpq $0x0, 0x10(%rsp)
je 0x737cd
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x2fd59
jmp 0x737d2
leaq 0x8(%rsp), %r15
movq (%r15), %rax
movq 0x30(%rsp), %rcx
movq %rax, (%rcx)
cmpl $0x0, (%rbx)
je 0x737ed
movups 0x20(%rsp), %xmm0
movups %xmm0, (%r14)
jmp 0x737f9
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_O1/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 0x72a76
movsd %xmm0, 0x10(%rsp)
movq 0x20(%r15), %rax
testq %rax, %rax
je 0x738d7
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
xorl %r13d, %r13d
xorl %ebp, %ebp
decl 0x30(%r15)
movq %rax, %r12
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x7385b
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 0x72a76
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x73896
movl $0x1, %ebp
movsd %xmm0, 0x10(%rsp)
movq %r12, 0x8(%rsp)
movq %r13, (%rsp)
incl 0x30(%r15)
testq %r13, %r13
cmoveq %r15, %r13
movq 0x20(%r13), %rax
movq %rax, 0x20(%r12)
movq %r12, 0x20(%r13)
cmpq $0x0, 0x20(%r12)
jne 0x738ba
movq %r12, 0x28(%r15)
movq 0x20(%r12), %rax
movq %r12, %r13
testq %rax, %rax
jne 0x73847
testl %ebp, %ebp
sete %al
movq 0x8(%rsp), %r12
movq (%rsp), %r13
jmp 0x738d9
movb $0x1, %al
testb %al, %al
jne 0x7390a
decl 0x30(%r15)
movq 0x20(%r12), %rax
testq %rax, %rax
jne 0x738ef
movq %r13, 0x28(%r15)
testq %r13, %r13
movq %r13, %rcx
cmoveq %r15, %rcx
movq %rax, 0x20(%rcx)
movq %r12, %rdi
callq 0x39194
jmp 0x7382c
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/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 0x748c9
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 0x73a73
movq (%r13), %rdi
movsd 0x10(%rbp), %xmm0
movl 0x10(%r14), %ecx
leaq 0x20(%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq 0x735c2
testl %eax, %eax
je 0x73a12
leaq 0x8(%rsp), %r12
leaq 0x18(%rsp), %r15
movq %r12, %rdi
movq %rbp, %rsi
callq 0x74749
cmpl $-0x1, (%rax)
je 0x73a0a
cmpb $0x3d, 0x4(%rax)
je 0x73a0a
movl 0x30(%rbx), %edx
leal 0x1(%rdx), %ecx
movl %ecx, 0x30(%rbx)
movq %rbx, %rcx
testl %edx, %edx
je 0x739bb
movq 0x28(%rbx), %rcx
movq %rax, 0x20(%rcx)
movq %rax, 0x28(%rbx)
movq %rax, %rdi
movq %r12, %rsi
leaq 0x10(%rsp), %rdx
callq 0x73bcd
cmpl $0x1, 0x10(%r14)
jne 0x739e9
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x3dbad
movq 0x8(%rsp), %rdi
movsd 0x10(%rbp), %xmm0
movl 0x10(%r14), %ecx
leaq 0x20(%rsp), %rsi
movq %r15, %rdx
callq 0x735c2
testl %eax, %eax
jne 0x73991
jmp 0x73a12
movq %rax, %rdi
callq 0x39194
movq 0x8(%rsp), %rdi
callq 0x2fa14
movl %eax, 0x40(%rbx)
cmpq $0x0, 0x10(%rsp)
je 0x73a39
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %r13
movq %r13, %rdi
callq 0x2fd59
movq (%r13), %rax
movq 0x30(%rsp), %rcx
movq %rax, (%rcx)
cmpl $0x0, 0x10(%r14)
je 0x73a56
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rbx)
jmp 0x73a61
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_O1/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 0x73aa4
movq %rax, %rbp
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x73a96
jmp 0x73aa6
xorl %ebp, %ebp
movq 0x8(%rsp), %rax
movq (%rax), %r15
xorl %ebx, %ebx
testq %r15, %r15
je 0x73b04
movq %r15, %r12
movq 0x10(%r15), %r15
movq %r14, %r13
movq 0x20(%r13), %r13
testq %r13, %r13
je 0x73ae9
movq %r12, %rdi
movq %r13, %rsi
callq 0x73c78
testl %eax, %eax
jne 0x73abf
testq %r13, %r13
je 0x73ae9
movq %rbx, %rax
movq 0x8(%rsp), %rcx
movq %r12, %rbx
jmp 0x73af4
movq %rbp, %rax
movq 0x10(%rsp), %rcx
movq %r12, %rbp
leaq 0x10(%rax), %rdx
testq %rax, %rax
cmoveq %rcx, %rdx
movq %r12, (%rdx)
jmp 0x73ab0
testq %rbp, %rbp
je 0x73b11
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_O1/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 0x73b46
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_O1/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 0x73bf7
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x73be9
jmp 0x73bfa
xorl %r13d, %r13d
movq (%r15), %r12
xorl %ebp, %ebp
testq %r12, %r12
je 0x73c4a
movq %rcx, (%rsp)
movq 0x10(%r12), %rbx
movq %r12, %rdi
movq %rcx, %rsi
callq 0x73c78
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 0x73c08
testq %r13, %r13
je 0x73c57
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_O1/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 0x73ca0
callq 0x2e4b6
movsd 0x8(%rbx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x73c98
cmpb $0x3e, 0x4(%rbx)
je 0x73cc7
ucomisd %xmm1, %xmm0
ja 0x73cc1
jmp 0x73ccb
movq 0x10(%rbx), %rdx
movq 0x18(%rbx), %rcx
callq 0x74bac
cmpl $0x1, %eax
je 0x73cc1
testl %eax, %eax
jne 0x73ccb
cmpb $0x3e, 0x4(%rbx)
je 0x73cc7
cmpl $0x1, %eax
jne 0x73ccb
cmpb $0x3c, 0x4(%rbx)
jne 0x73ccb
xorl %eax, %eax
jmp 0x73cd0
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x73ce6
movq 0x28(%rdi), %rax
movq %rsi, 0x20(%rax)
movq %rsi, 0x28(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x73d2c
movq 0x38(%rbx), %r15
movl $0x9, %ecx
movq %rsp, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x72a03
movq %rbx, %rdi
callq 0x39194
movq %r15, %rbx
testq %r15, %r15
jne 0x73d05
cmpl $0x1, 0x20(%r14)
jne 0x73d49
movq 0x10(%r14), %rdi
movq 0x18(%r14), %rsi
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x3dbad
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x38d4d(%rip), %rsi     # 0xacab9
movl $0x48, %edi
movl $0x1, %edx
callq 0x390f5
movq $0x0, 0x38(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movl $0x0, 0x30(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x38d34(%rip), %rsi     # 0xacacf
movl $0x28, %edi
movl $0x1, %edx
callq 0x390f5
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_O1/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 $0x28, %rsp
movl %r8d, %ebp
movl %ecx, %r9d
movq %rdx, %r8
movq %rsi, %rcx
movq %rdi, %rbx
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0x3010e
movq (%r14), %rdi
callq 0x2fa14
movl %eax, %r14d
movq (%r15), %rdi
callq 0x2fa14
movl %eax, %r15d
testl %r14d, %r14d
sete %al
testl %r15d, %r15d
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x73e39
movq (%rbx), %rdi
movq 0x10(%rsp), %rsi
callq 0x30ad5
movq %rax, (%rbx)
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2fd59
movb $0x3d, %al
jmp 0x73eac
movq 0x10(%rsp), %rdi
movq %rdi, %rsi
movl %ebp, %edx
callq 0x75f33
movsd %xmm0, 0x20(%rsp)
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
movl %ebp, %edx
callq 0x75f33
movsd %xmm0, 0x18(%rsp)
movq (%rbx), %rdi
movq 0x10(%rsp), %rsi
callq 0x30ad5
movq %rax, (%rbx)
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x2fd59
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
cvtsi2sd %r15d, %xmm1
movsd 0x20(%rsp), %xmm2
divsd %xmm0, %xmm2
movsd 0x18(%rsp), %xmm0
divsd %xmm1, %xmm0
ucomisd %xmm2, %xmm0
setbe %al
addb %al, %al
orb $0x3c, %al
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x73f91
cmpl $-0x2, %edx
je 0x73f6c
testl %edx, %edx
jne 0x73fc4
leaq 0x8(%rbx), %rsi
leaq 0x4(%rbx), %rdx
movq (%r14), %rdi
testl %ebp, %ebp
je 0x73fd8
callq 0x74e0c
jmp 0x73fdd
movl $0xfffffffe, (%rbx)     # imm = 0xFFFFFFFE
leaq 0x10(%rbx), %rsi
leaq 0x18(%rbx), %rdx
movq (%r14), %rdi
callq 0x761d7
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
movq %r14, %rdi
xorl %ecx, %ecx
jmp 0x73fb7
movl $0xfffffffd, (%rbx)     # imm = 0xFFFFFFFD
leaq 0x10(%rbx), %rsi
leaq 0x18(%rbx), %rdx
movq (%r14), %rdi
callq 0x7621d
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rdx
movq %r14, %rdi
movl $0x1, %ecx
movl %ebp, %r8d
callq 0x73dc1
movb %al, 0x4(%rbx)
jmp 0x73fdf
leaq 0x38b1f(%rip), %rdi     # 0xacaea
movl %edx, %esi
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x4030
callq 0x753a6
movl %eax, (%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x744f1
movq %r15, %rdi
callq 0x74e0c
jmp 0x744f9
movq %r15, %rdi
callq 0x753a6
movl %eax, (%rbp)
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x761d7
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 0x7621d