LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rbf.c
// Function: update_rbfweights
void update_rbfweights(Rbfnetworkptr network, Rbfweights delta, Rbfweights prevweights, Rbf_parameterptr params)
{
 /*!Last Changed 21.08.2007*/
 int i, h, j;
 for (i = 0; i < network->output; i++)
   for (h = 0; h < network->hidden + 1; h++)
     network->weights.w.values[i][h] = network->weights.w.values[i][h] + delta.w.values[i][h] + params->alpha * prevweights.w.values[i][h];
 for (h = 0; h < network->hidden; h++)
   for (j = 0; j < network->input; j++)
     network->weights.m.values[h][j] = network->weights.m.values[h][j] + delta.m.values[h][j] + params->alpha * prevweights.m.values[h][j];
 for (h = 0; h < network->hidden; h++)
   network->weights.s.values[0][h] = network->weights.s.values[0][h] + delta.s.values[0][h] + params->alpha * prevweights.s.values[0][h];
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0x58(%rsp), %rcx
leaq 0x28(%rsp), %rdx
movl 0x4(%rdi), %r8d
movq 0x28(%rdx), %r9
movq 0x28(%rcx), %r10
xorl %r11d, %r11d
testl %r8d, %r8d
cmovlel %r11d, %r8d
movslq (%rdi), %rax
cmpq %r8, %r11
je 0x66d05
xorl %ebx, %ebx
cmpq %rax, %rbx
jg 0x66d00
movq 0x38(%rdi), %r14
movq (%r14,%r11,8), %r14
movsd (%r14,%rbx,8), %xmm0
movq (%r9,%r11,8), %r15
addsd (%r15,%rbx,8), %xmm0
movsd 0x38(%rsi), %xmm1
movq (%r10,%r11,8), %r15
mulsd (%r15,%rbx,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%r14,%rbx,8)
incq %rbx
jmp 0x66cc5
incq %r11
jmp 0x66cbe
movq 0x8(%rdx), %r8
movq 0x8(%rcx), %r9
xorl %r10d, %r10d
testl %eax, %eax
cmovlel %r10d, %eax
xorl %r11d, %r11d
cmpq %rax, %r11
je 0x66d6a
movl 0x8(%rdi), %ebx
testl %ebx, %ebx
cmovlel %r10d, %ebx
xorl %r14d, %r14d
cmpq %r14, %rbx
je 0x66d65
movq 0x18(%rdi), %r15
movq (%r15,%r11,8), %r15
movsd (%r15,%r14,8), %xmm0
movq (%r8,%r11,8), %r12
addsd (%r12,%r14,8), %xmm0
movsd 0x38(%rsi), %xmm1
movq (%r9,%r11,8), %r12
mulsd (%r12,%r14,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%r15,%r14,8)
incq %r14
jmp 0x66d2a
incq %r11
jmp 0x66d19
movq 0x18(%rdx), %rdx
movq 0x18(%rcx), %rcx
xorl %r8d, %r8d
cmpq %r8, %rax
je 0x66dad
movq 0x28(%rdi), %r9
movq (%r9), %r9
movsd (%r9,%r8,8), %xmm0
movq (%rdx), %r10
addsd (%r10,%r8,8), %xmm0
movsd 0x38(%rsi), %xmm1
movq (%rcx), %r10
mulsd (%r10,%r8,8), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%r9,%r8,8)
incq %r8
jmp 0x66d75
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rbf.c
// Function: test_rbfnetwork_cls
int test_rbfnetwork_cls(Rbfnetworkptr network, Instanceptr data)
{
	/*!Last Changed 19.08.2007*/
	double *p, *y;
	Instanceptr inst;
	int correct = 0, classno;
	p = safemalloc((network->hidden + 1) * sizeof(double), "test_rbfnetwork_cls", 3);
	y = safemalloc(network->output * sizeof(double), "test_rbfnetwork_cls", 4);
	inst = data;
	while (inst)
	 {
		 rbf_forward_propagation(network, inst, p, y);
			classno = findMaxOutput(y, network->output);
			if (classno == give_classno(inst))
				 correct++;
		 inst = inst->next;
	 }
	safe_free(p);
	safe_free(y);
	return correct;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movslq (%rdi), %rax
leaq 0x8(,%rax,8), %rdi
leaq 0x3887d(%rip), %r12     # 0x9f655
pushq $0x3
popq %rdx
movq %r12, %rsi
callq 0x34f59
movq %rax, %r15
movslq 0x4(%r14), %rdi
shlq $0x3, %rdi
pushq $0x4
popq %rdx
movq %r12, %rsi
callq 0x34f59
movq %rax, %r12
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x66e3b
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x668fe
movl 0x4(%r14), %esi
movq %r12, %rdi
callq 0x339b7
movl %eax, %r13d
movq %rbx, %rdi
callq 0x2b47e
xorl %ecx, %ecx
cmpl %eax, %r13d
sete %cl
addl %ecx, %ebp
movq 0x10(%rbx), %rbx
jmp 0x66dfe
movq %r15, %rdi
callq 0x34ff7
movq %r12, %rdi
callq 0x34ff7
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rbf.c
// Function: test_rbfnetwork_reg
double test_rbfnetwork_reg(Rbfnetworkptr network, Instanceptr data)
{
	/*!Last Changed 19.08.2007*/
	double *p, *y, squaredError = 0.0;
	Instanceptr inst;
	p = safemalloc((network->hidden + 1) * sizeof(double), "test_rbfnetwork_reg", 3);
	y = safemalloc(sizeof(double), "test_rbfnetwork_reg", 4);
	inst = data;
	while (inst)
	 {
		 rbf_forward_propagation(network, inst, p, y);
			squaredError += (y[0] - give_regressionvalue(inst)) * (y[0] - give_regressionvalue(inst));
		 inst = inst->next;
	 }
	safe_free(p);
	safe_free(y);
	return squaredError;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movslq (%rdi), %rax
leaq 0x8(,%rax,8), %rdi
leaq 0x38545(%rip), %r12     # 0x9f67e
pushq $0x3
popq %rdx
movq %r12, %rsi
callq 0x34f59
movq %rax, %r15
pushq $0x8
popq %rdi
pushq $0x4
popq %rdx
movq %r12, %rsi
callq 0x34f59
movq %rax, %r12
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
testq %rbx, %rbx
je 0x671d3
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x668fe
movsd (%r12), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0x2b4a0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd (%r12), %xmm0
movsd %xmm0, 0x10(%rsp)
movq %rbx, %rdi
callq 0x2b4a0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
mulsd 0x8(%rsp), %xmm1
movsd (%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rsp)
movq 0x10(%rbx), %rbx
jmp 0x67161
movq %r15, %rdi
callq 0x34ff7
movq %r12, %rdi
callq 0x34ff7
movsd (%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: print_regression_results
void print_regression_results(Instanceptr testdata, Regressionresultptr result, double runtime, int printbinary, int displayruntime)
{
 /*!Last Changed 25.05.2006 added regression value*/
	/*!Last Changed 13.12.2004 added printbinary*/
 /*!Last Changed 10.03.2004*/
	char pst[READLINELENGTH], pst2[READLINELENGTH];
	int i;
 double regvalue;
 Instanceptr tmp;
	if (printbinary)
	 {
   set_precision(pst, NULL, "\n");
   set_precision(pst2, NULL, " ");
   tmp = testdata;
		 for (i = 0; i < result->datasize; i++)
    {
     regvalue = give_regressionvalue(tmp);
     fprintf(output, "%d ", tmp->index);
     fprintf(output, pst2, regvalue);
     fprintf(output, pst, result->absoluteerrors[i]);
     tmp = tmp->next;
    }
	 }
	else
  	if (displayruntime)
			 {
				 set_precision(pst, NULL, " %.3lf\n");
	  		fprintf(output, pst, result->regressionperformance / result->datasize, runtime); 		 
			 }
	  else
			 {
				 set_precision(pst, NULL, "\n");
		  	fprintf(output, pst, result->regressionperformance / result->datasize); 		 
			 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf4258, %rsp          # imm = 0xF4258
movq %rsi, %rbx
testl %edx, %edx
je 0x688f7
movq %rdi, %r14
leaq 0x308ad(%rip), %rdx     # 0x9910b
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x35305
leaq 0x2fdf4(%rip), %rdx     # 0x98665
leaq 0x7a130(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x35305
leaq 0x34181e(%rip), %rbp    # 0x3aa0a8
leaq 0x37427(%rip), %r13     # 0x9fcb8
xorl %r15d, %r15d
movslq 0x10(%rbx), %rax
cmpq %rax, %r15
jge 0x68979
movq %r14, %rdi
callq 0x2b4a0
movsd %xmm0, 0x8(%rsp)
movq (%rbp), %rdi
movl 0x18(%r14), %edx
movq %r13, %rsi
xorl %eax, %eax
callq 0x42e0
movq (%rbp), %rdi
movq %r12, %rsi
movsd 0x8(%rsp), %xmm0
movb $0x1, %al
callq 0x42e0
movq (%rbp), %rdi
movq (%rbx), %rax
movsd (%rax,%r15,8), %xmm0
leaq 0x10(%rsp), %rsi
movb $0x1, %al
callq 0x42e0
movq 0x10(%r14), %r14
incq %r15
jmp 0x68894
testl %ecx, %ecx
je 0x68941
leaq 0x2d539(%rip), %rdx     # 0x95e3b
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
movsd %xmm0, 0x8(%rsp)
callq 0x35305
leaq 0x34178a(%rip), %rax    # 0x3aa0a8
movq (%rax), %rdi
movsd 0x8(%rbx), %xmm0
cvtsi2sdl 0x10(%rbx), %xmm1
divsd %xmm1, %xmm0
movq %r14, %rsi
movsd 0x8(%rsp), %xmm1
movb $0x2, %al
callq 0x42e0
jmp 0x68979
leaq 0x307c3(%rip), %rdx     # 0x9910b
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x35305
leaq 0x34174a(%rip), %rax    # 0x3aa0a8
movq (%rax), %rdi
movsd 0x8(%rbx), %xmm0
cvtsi2sdl 0x10(%rbx), %xmm1
divsd %xmm1, %xmm0
movq %r14, %rsi
movb $0x1, %al
callq 0x42e0
addq $0xf4258, %rsp          # imm = 0xF4258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: performance_initialize_regression
Regressionresultptr performance_initialize_regression(int datasize)
{
	/*!Last Changed 13.12.2004*/
 Regressionresultptr result;
 result = safemalloc(sizeof(Regressionresult), "performance_initialize_regression", 2);
	result->regressionperformance = 0;
 result->absoluteerrors = safemalloc(datasize * sizeof(double), "performance_initialize_regression", 4);
 result->datasize = datasize;
 result->epsilonloss = 0.0;
 return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edi, %ebx
leaq 0x36ff8(%rip), %r14     # 0x9f991
pushq $0x20
popq %rdi
pushq $0x2
popq %rdx
movq %r14, %rsi
callq 0x34f59
movq %rax, %r15
andq $0x0, 0x8(%rax)
movslq %ebx, %rbx
leaq (,%rbx,8), %rdi
pushq $0x4
popq %rdx
movq %r14, %rsi
callq 0x34f59
movq %rax, (%r15)
movl %ebx, 0x10(%r15)
andq $0x0, 0x18(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: train_onefeature
void* train_onefeature(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
	/*!Last Changed 11.08.2005 added model for onefeature algorithm*/
	/*!Last Changed 10.12.2004*/
	char dummy;
 Model_onefeatureptr m;
	Instanceptr leftgroup = NULL, rightgroup = NULL;
	m = safemalloc(sizeof(Model_onefeature), "train_onefeature", 4);
	m->bestfeature = best_regression_feature(*trdata, &(m->bestsplit), &dummy);
	divide_instancelist_according_to_split(trdata, &leftgroup, &rightgroup, m->bestfeature, m->bestsplit);
	m->leftmean = find_mean_of_regression_value(leftgroup);
	m->rightmean = find_mean_of_regression_value(rightgroup);
	deallocate(leftgroup);
	deallocate(rightgroup);
	return m;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r12
leaq 0x10(%rsp), %r14
andq $0x0, (%r14)
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
leaq 0x36f9d(%rip), %rsi     # 0x9f9b3
pushq $0x20
popq %rdi
pushq $0x4
popq %rdx
callq 0x34f59
movq %rax, %r15
movq (%r12), %rdi
leaq 0x8(%rax), %rsi
leaq 0x7(%rsp), %rdx
callq 0x6cbb5
movl %eax, (%r15)
movsd 0x8(%r15), %xmm0
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl %eax, %ecx
callq 0x2caf4
movq (%r14), %rdi
callq 0x2c08f
movsd %xmm0, 0x10(%r15)
movq (%rbx), %rdi
callq 0x2c08f
movsd %xmm0, 0x18(%r15)
movq (%r14), %rdi
callq 0x2c010
movq (%rbx), %rdi
callq 0x2c010
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: test_knnreg
Prediction test_knnreg(Instanceptr data, void* model, void* parameters, double* posterior)
{
	/*!Last Changed 19.04.2004*/
	/*!Last Changed 10.03.2004*/
	int i;
	Prediction predicted;
	Instanceptr *nearestneighbors, trdata;
	Knn_parameterptr p;
 p = (Knn_parameterptr) parameters;
	trdata = (Instanceptr) model;
 if (current_dataset->storetype == STORE_KERNEL)
   nearestneighbors = find_all_neighbors(trdata, data, &(p->nearcount));
 else
	  nearestneighbors = find_nearest_neighbors(trdata, data, p->nearcount);
	predicted.regvalue = 0;
 for (i = 0; i < p->nearcount; i++)
			predicted.regvalue += give_regressionvalue(nearestneighbors[i]);
	predicted.regvalue /= p->nearcount;
	safe_free(nearestneighbors);
 return predicted;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rax
movq %rdi, %rbx
leaq 0x64da6(%rip), %rcx     # 0xcd870
movq (%rcx), %rcx
cmpl $0x3, 0x140713c(%rcx)
jne 0x68ae3
movq %rax, %rdi
movq %r14, %rdx
callq 0x2d37f
jmp 0x68aee
movl (%r14), %edx
movq %rax, %rdi
callq 0x2d47a
movq %rax, %r15
xorpd %xmm1, %xmm1
xorl %r12d, %r12d
movslq (%r14), %rax
cmpq %rax, %r12
jge 0x68b1c
movq (%r15,%r12,8), %rdi
movsd %xmm1, (%rsp)
callq 0x2b4a0
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
incq %r12
jmp 0x68af8
cvtsi2sd %eax, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
movq %r15, %rdi
callq 0x34ff7
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: train_regstump
void* train_regstump(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
	Regressionnodeptr regtreenode;
	Regtree_parameterptr p;
	p = (Regtree_parameterptr) parameters;
 regtreenode = createnewregnode(NULL, 1, p->leaftype);
 regtreenode->cvinstances = *trdata;
 regtreenode->instances = *trdata;
	regtreenode->featureno = best_hybrid_regression_tree_split(regtreenode, p);
 make_regression_children(regtreenode, p->leaftype);
 setup_regressionnode_properties(regtreenode->left, p->leaftype);
 setup_regressionnode_properties(regtreenode->right, p->leaftype);
 make_leaf_regression_node(regtreenode->left, p->leaftype);
 make_leaf_regression_node(regtreenode->right, p->leaftype);
	*trdata = NULL;
	return regtreenode;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
movl (%rdx), %edx
pushq $0x1
popq %rsi
xorl %edi, %edi
callq 0x6cfdb
movq %rax, %r15
movq (%rbx), %rax
movq %rax, 0x28(%r15)
movq %rax, 0x20(%r15)
movq %r15, %rdi
movq %r14, %rsi
callq 0x6e1d0
movl %eax, 0x68(%r15)
movl (%r14), %esi
movq %r15, %rdi
callq 0x6d17d
movq (%r15), %rdi
movl (%r14), %esi
callq 0x6d4c5
movq 0x8(%r15), %rdi
movl (%r14), %esi
callq 0x6d4c5
movq (%r15), %rdi
movl (%r14), %esi
callq 0x6c64d
movq 0x8(%r15), %rdi
movl (%r14), %esi
callq 0x6c64d
andq $0x0, (%rbx)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: test_regressiontree
Prediction test_regressiontree(Instanceptr data, void* model, void* parameters, double* posterior)
{
	/*!Last Changed 06.03.2005*/
	/*!Last Changed 09.12.2004*/
	Regressionnodeptr regtreenode;
 Prediction predicted;
	regtreenode = (Regressionnodeptr) model;
 while (regtreenode->featureno != -1)
   regtreenode = next_regression_node(regtreenode, data); 
 if (regtreenode->leaftype == CONSTANTLEAF)
   predicted.regvalue = regtreenode->regressionvalue;
 else
   predicted.regvalue = linear_fit_value(regtreenode->w, data);
 return predicted;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rax
movq %rsi, %r14
movq %rdi, %rbx
cmpl $-0x1, 0x68(%rax)
je 0x68be7
movq %rax, %rdi
movq %r14, %rsi
callq 0x6d033
jmp 0x68bd4
cmpl $0x0, 0x6c(%rax)
je 0x68bff
movq 0x30(%rax), %rdi
movq 0x38(%rax), %rsi
movq %r14, %rdx
callq 0x6ce0c
jmp 0x68c04
movsd 0x70(%rax), %xmm0
movsd %xmm0, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: train_softregstump
void* train_softregstump(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
	Regressionnodeptr regtreenode;
	Softregtree_parameterptr p;
	p = (Softregtree_parameterptr) parameters;
 regtreenode = createnewregnode(NULL, 1, p->leaftype);
 regtreenode->weight = 1.0;
 regtreenode->instances = *trdata;
 if (p->leaftype == CONSTANTLEAF)
   regtreenode->regressionvalue = produce_random_value(-0.01, +0.01);
 else
   regtreenode->w = random_matrix(current_dataset->multifeaturecount, 1, -0.01, +0.01);
 regtreenode->cvinstances = NULL;
 find_best_soft_regtree_split(regtreenode, regtreenode, *trdata, p);
 make_leaf_regression_node(regtreenode->left, p->leaftype);
 make_leaf_regression_node(regtreenode->right, p->leaftype);
 if (regtreenode->featureno != LEAF_NODE)
   deallocate(regtreenode->instances);
	*trdata = NULL;
	return regtreenode;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rdi, %rbx
movl (%rdx), %edx
pushq $0x1
popq %rsi
xorl %edi, %edi
callq 0x6cfdb
movq %rax, %r14
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x48(%r14)
movq (%rbx), %rax
movq %rax, 0x20(%r14)
cmpl $0x0, (%r15)
je 0x68c7a
leaq 0x64c21(%rip), %rax     # 0xcd870
movq (%rax), %rax
movl 0x1c0(%rax), %edi
pushq $0x1
popq %rsi
movsd 0x2d15d(%rip), %xmm0    # 0x95dc0
movsd 0x2d15d(%rip), %xmm1    # 0x95dc8
callq 0x393f5
movq %rax, 0x30(%r14)
movq %rdx, 0x38(%r14)
jmp 0x68c95
movsd 0x2d13e(%rip), %xmm0    # 0x95dc0
movsd 0x2d13e(%rip), %xmm1    # 0x95dc8
callq 0x35cae
movsd %xmm0, 0x70(%r14)
andq $0x0, 0x28(%r14)
movq (%rbx), %rdx
movq %r14, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x7d7ce
movq (%r14), %rdi
movl (%r15), %esi
callq 0x6c64d
movq 0x8(%r14), %rdi
movl (%r15), %esi
callq 0x6c64d
cmpl $-0x1, 0x68(%r14)
je 0x68cd2
movq 0x20(%r14), %rdi
callq 0x2c010
andq $0x0, (%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: train_regressiontree
void* train_regressiontree(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 /*!Last Changed 25.05.2006 added in_list ...*/
	/*!Last Changed 06.03.2005*/
	/*!Last Changed 09.12.2004*/
	Regressionnodeptr regtreenode;
	Regtree_parameterptr p;
	p = (Regtree_parameterptr) parameters;
 regtreenode = createnewregnode(NULL, 1, p->leaftype);
 regtreenode->cvinstances = *cvdata;
 regtreenode->instances = *trdata;
	create_regtree(regtreenode, p);
 if (in_list(p->modelselectionmethod, 3, MODEL_SELECTION_CV, MODEL_SELECTION_AIC, MODEL_SELECTION_BIC) || p->prunetype == VALIDATIONPRUNING)
  	prune_regression_tree(regtreenode, p);
	*trdata = NULL;
	return regtreenode;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movl (%rdx), %edx
pushq $0x1
popq %rbp
xorl %edi, %edi
movl %ebp, %esi
callq 0x6cfdb
movq %rax, %r15
movq (%r12), %rax
movq %rax, 0x28(%r15)
movq (%rbx), %rax
movq %rax, 0x20(%r15)
movq %r15, %rdi
movq %r14, %rsi
callq 0x6e21f
movl 0x8(%r14), %edi
pushq $0x3
popq %rsi
pushq $0x2
popq %r8
xorl %edx, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x35812
testl %eax, %eax
jne 0x68d66
cmpl $0x1, 0x4(%r14)
jne 0x68d71
movq %r15, %rdi
movq %r14, %rsi
callq 0x6d34d
andq $0x0, (%rbx)
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: train_softregressiontree
void* train_softregressiontree(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
	Regressionnodeptr regtreenode;
	Softregtree_parameterptr p;
	p = (Softregtree_parameterptr) parameters;
 regtreenode = createnewregnode(NULL, 1, p->leaftype);
 regtreenode->weight = 1.0;
 regtreenode->instances = *trdata;
 if (p->leaftype == CONSTANTLEAF)
   regtreenode->regressionvalue = produce_random_value(-0.01, +0.01);
 else
   regtreenode->w = random_matrix(current_dataset->multifeaturecount, 1, -0.01, +0.01);
 create_softregtree(regtreenode, regtreenode, *cvdata, p);
 if (regtreenode->featureno != LEAF_NODE)
   deallocate(regtreenode->instances);
 deallocate(*cvdata);
	*trdata = NULL;
	return regtreenode;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movl (%rdx), %edx
pushq $0x1
popq %rsi
xorl %edi, %edi
callq 0x6cfdb
movq %rax, %r15
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x48(%r15)
movq (%rbx), %rax
movq %rax, 0x20(%r15)
cmpl $0x0, (%r12)
je 0x68def
leaq 0x64aac(%rip), %rax     # 0xcd870
movq (%rax), %rax
movl 0x1c0(%rax), %edi
pushq $0x1
popq %rsi
movsd 0x2cfe8(%rip), %xmm0    # 0x95dc0
movsd 0x2cfe8(%rip), %xmm1    # 0x95dc8
callq 0x393f5
movq %rax, 0x30(%r15)
movq %rdx, 0x38(%r15)
jmp 0x68e0a
movsd 0x2cfc9(%rip), %xmm0    # 0x95dc0
movsd 0x2cfc9(%rip), %xmm1    # 0x95dc8
callq 0x35cae
movsd %xmm0, 0x70(%r15)
movq (%r14), %rdx
movq %r15, %rdi
movq %r15, %rsi
movq %r12, %rcx
callq 0x7dc4c
cmpl $-0x1, 0x68(%r15)
je 0x68e2b
movq 0x20(%r15), %rdi
callq 0x2c010
movq (%r14), %rdi
callq 0x2c010
andq $0x0, (%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: train_svmregtree
void* train_svmregtree(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 /*!Last Changed 01.11.2009*/
 Regressionnodeptr regtreenode;
 Regtree_parameterptr p;
 p = (Regtree_parameterptr) parameters;
 regtreenode = createnewregnode(NULL, 1, p->leaftype);
 regtreenode->cvinstances = *cvdata;
 regtreenode->instances = *trdata;
 create_svmregtree(regtreenode, p);
 if (in_list(p->modelselectionmethod, 3, MODEL_SELECTION_CV, MODEL_SELECTION_AIC, MODEL_SELECTION_BIC) || p->prunetype == VALIDATIONPRUNING)
   prune_regression_tree(regtreenode, p);
 *trdata = NULL;
 return regtreenode;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movl (%rdx), %edx
pushq $0x1
popq %rbp
xorl %edi, %edi
movl %ebp, %esi
callq 0x6cfdb
movq %rax, %r15
movq (%r12), %rax
movq %rax, 0x28(%r15)
movq (%rbx), %rax
movq %rax, 0x20(%r15)
movq %r15, %rdi
movq %r14, %rsi
callq 0x866fd
movl 0x8(%r14), %edi
pushq $0x3
popq %rsi
pushq $0x2
popq %r8
xorl %edx, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x35812
testl %eax, %eax
jne 0x68ea3
cmpl $0x1, 0x4(%r14)
jne 0x68eae
movq %r15, %rdi
movq %r14, %rsi
callq 0x6d34d
andq $0x0, (%rbx)
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: train_mlpgenericreg
void* train_mlpgenericreg(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
	/*!Last Changed 08.12.2004 added matrix_free(cv)*/
	Mlpparameters mlpparams;
 Mlpnetworkptr neuralnetwork;
	matrix train, cv;
	neuralnetwork = safemalloc(sizeof(Mlpnetwork), "train_mlpgenericreg", 4);
 mlpparams = *((Mlpparametersptr) parameters);
	mlpparams.inputnum = data_size(*trdata);
	mlpparams.trnum = mlpparams.inputnum;
	mlpparams.cvnum = data_size(*cvdata);
	train = instancelist_to_matrix(*trdata, REGRESSION, -1, MULTIVARIATE_LINEAR);
	cv = instancelist_to_matrix(*cvdata, REGRESSION, -1, MULTIVARIATE_LINEAR);
	*neuralnetwork = mlpn_general(train, cv, &mlpparams, REGRESSION);
	matrix_free(train);
	matrix_free(cv);
	return neuralnetwork;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %r12
leaq 0x36a6d(%rip), %rsi     # 0x9f9d0
pushq $0x4
popq %rdx
movl $0x98, %edi
callq 0x34f59
movq %rax, 0x8(%rsp)
leaq 0x10(%rsp), %rbx
movl $0x90, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x4310
movq (%r12), %rdi
callq 0x2c3cc
movl %eax, 0x8(%rbx)
movl %eax, 0x10(%rbx)
movq (%r15), %rdi
callq 0x2c3cc
movl %eax, 0xc(%rbx)
movq (%r12), %rdi
pushq $0x1
popq %rbp
pushq $-0x1
popq %rbx
pushq $-0x2
popq %r14
movl %ebp, %esi
movl %ebx, %edx
movl %r14d, %ecx
callq 0x2c130
movq %rax, %r12
movq %rdx, %r13
movq (%r15), %rdi
movl %ebp, %esi
movl %ebx, %edx
movl %r14d, %ecx
callq 0x2c130
movq %rax, %rbx
movq %rdx, %r14
movl $0x1, (%rsp)
leaq 0xa0(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rax, %rcx
movq %r14, %r8
leaq 0x10(%rsp), %r9
callq 0x3d96a
movl $0x98, %edx
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x4310
movq %r12, %rdi
movq %r13, %rsi
callq 0x3929f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3929f
movq %rbp, %rax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: test_mlpgenericreg
Prediction test_mlpgenericreg(Instanceptr data, void* model, void* parameters, double* posterior)
{
	/*!Last Changed 08.12.2004 added matrix_free(cv)*/
 Mlpnetwork neuralnetwork;
	matrix test, testY, output_error;
 Prediction predicted;
 neuralnetwork = *((Mlpnetworkptr) model);
 output_error = matrix_alloc(1, 1);
	test = instancelist_to_matrix(data, REGRESSION, -1, MULTIVARIATE_LINEAR);
 testMlpnInput_reg(test.values[0], &testY, neuralnetwork, &output_error);
 matrix_free(output_error);
 matrix_free(testY);
	matrix_free(test);
 return predicted;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rdx, %rax
movq %rsi, %r15
movq %rdi, %rbx
leaq 0xc0(%rsp), %r14
movl $0x98, %edx
movq %r14, %rdi
movq %rax, %rsi
callq 0x4310
pushq $0x1
popq %rbp
movl %ebp, %edi
movl %ebp, %esi
callq 0x380d3
leaq 0xa0(%rsp), %r13
movq %rax, (%r13)
movq %rdx, 0x8(%r13)
pushq $-0x1
popq %rdx
pushq $-0x2
popq %rcx
movq %r15, %rdi
movl %ebp, %esi
callq 0x2c130
movq %rax, %r15
movq %rdx, %r12
movq (%rdx), %rax
pushq $0x13
popq %rcx
movq %rsp, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0xb0(%rsp), %r14
movq %rax, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x3fc66
movq (%r13), %rdi
movq 0x8(%r13), %rsi
callq 0x3929f
movq (%r14), %rdi
movq 0x8(%r14), %rsi
callq 0x3929f
movq %r15, %rdi
movq %r12, %rsi
callq 0x3929f
movq %rbx, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: train_dncreg
void* train_dncreg(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 /*!Last Changed 16.04.2007*/
 Mlpparameters mlpparams;
 Mlpnetworkptr neuralnetwork;
 matrix train;
 neuralnetwork = safemalloc(sizeof(Mlpnetwork), "train_dncreg", 4);
 mlpparams = *((Mlpparametersptr) parameters);
 mlpparams.inputnum = data_size(*trdata);
 mlpparams.trnum = mlpparams.inputnum;
 train = instancelist_to_matrix(*trdata, REGRESSION, -1, MULTIVARIATE_LINEAR);
 *neuralnetwork = dnc_reg(train, &mlpparams);
 matrix_free(train);
 return neuralnetwork;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x130, %rsp            # imm = 0x130
movq %rdx, %r15
movq %rdi, %r12
leaq 0x368c4(%rip), %rsi     # 0x9f9e4
pushq $0x4
popq %rdx
movl $0x98, %edi
callq 0x34f59
movq %rax, %rbx
leaq 0x8(%rsp), %r14
movl $0x90, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x4310
movq (%r12), %rdi
callq 0x2c3cc
movl %eax, 0x8(%r14)
movl %eax, 0x10(%r14)
movq (%r12), %rdi
pushq $0x1
popq %rsi
pushq $-0x1
popq %rdx
pushq $-0x2
popq %rcx
callq 0x2c130
movq %rax, %r15
movq %rdx, %r12
leaq 0x98(%rsp), %r13
movq %r13, %rdi
movq %rax, %rsi
movq %r14, %rcx
callq 0x403f5
movl $0x98, %edx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x4310
movq %r15, %rdi
movq %r12, %rsi
callq 0x3929f
movq %rbx, %rax
addq $0x130, %rsp            # imm = 0x130
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: train_selectaverage
void* train_selectaverage(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
 /*!Last Changed 08.12.2004*/
	double* trainmean;
	trainmean = safemalloc(sizeof(double), "train_selectaverage", 2);
	*trainmean = find_mean_of_regression_value(*trdata);
 return trainmean;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x36822(%rip), %rsi     # 0x9f9f1
pushq $0x8
popq %rdi
pushq $0x2
popq %rdx
callq 0x34f59
movq %rax, %r14
movq (%rbx), %rdi
callq 0x2c08f
movsd %xmm0, (%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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, 0x68(%rsp)
movl 0x8(%rcx), %eax
leaq 0x70(%rsp), %rdx
movl %eax, 0x4(%rdx)
movsd 0x10(%rcx), %xmm0
movsd %xmm0, 0x18(%rdx)
movsd 0x20(%rcx), %xmm0
movsd %xmm0, 0x10(%rdx)
movl 0x18(%rcx), %eax
movl %eax, 0x8(%rdx)
movq %rsi, %rdi
callq 0x2add8
movq %rax, %r12
leaq 0x8(%r14), %r13
xorpd %xmm0, %xmm0
movsd %xmm0, 0x60(%rsp)
xorl %r15d, %r15d
pushq $0xb
popq %rbp
movslq (%r14), %rax
cmpq %rax, %r15
jge 0x694fc
movq (%r13), %r13
movq %r13, %rdi
callq 0x2add8
movq %rax, %rbx
movq %rbp, %rcx
movq %rsp, %rdi
leaq 0x70(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rax, %rdi
movq %r12, %rsi
callq 0x8591e
movq 0x10(%r14), %rax
mulsd (%rax,%r15,8), %xmm0
movsd 0x60(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x60(%rsp)
movq %rbx, %rdi
callq 0x34ff7
addq $0x10, %r13
incq %r15
jmp 0x694a1
movq 0x68(%rsp), %rbx
movsd 0x60(%rsp), %xmm0
movsd %xmm0, (%rbx)
movq %r12, %rdi
callq 0x34ff7
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_O2/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 %rsi, %r15
movq %rdi, %r14
xorpd %xmm0, %xmm0
xorl %r12d, %r12d
leaq 0x640ef(%rip), %r13     # 0xcd870
movq (%r13), %rax
movslq 0x1c0(%rax), %rax
decq %rax
cmpq %rax, %r12
jge 0x697cd
movq %r15, %rdi
movl %r12d, %esi
movsd %xmm0, 0x8(%rsp)
callq 0x2aea2
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
jmp 0x69781
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_O2/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 0x63875(%rip), %rax     # 0xcd870
movq (%rax), %rax
cmpl $0x3, 0x1bc(%rax)
jl 0x6a0a9
movq 0x30(%r14), %rdx
movq 0x38(%r14), %rcx
pushq $0x2
popq %rsi
movq %r15, %rdi
callq 0xfc9a
movq %r15, %rdi
xorl %esi, %esi
callq 0x2aea2
movsd %xmm0, 0x10(%rsp)
pushq $0x1
popq %rsi
movq %r15, %rdi
callq 0x2aea2
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 0x3566e
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 0x3566e
movslq (%r12), %rax
shlq $0x3, %rax
addq 0x28(%r14), %rax
jmp 0x6a0e1
movq %r15, %rdi
xorl %esi, %esi
callq 0x2aea2
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 0x3566e
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_O2/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 %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rdx), %r12
movq 0x18(%rdx), %r13
movl 0x20(%rdx), %ebp
movsd 0x28(%rdx), %xmm0
movsd %xmm0, (%rsp)
movq (%r15), %r15
testq %r15, %r15
je 0x6a1c5
movq %r14, %rdi
movq %r15, %rsi
callq 0x6b535
testl %eax, %eax
jne 0x6a1d1
addq $0x38, %r15
movsd (%rsp), %xmm0
jmp 0x6a1a3
testl %ebp, %ebp
je 0x6a1ef
movq %r12, %rdi
movq %r13, %rsi
jmp 0x6a1df
cmpl $0x0, 0x10(%r15)
je 0x6a1e9
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %r14, %rdx
callq 0x6ce0c
jmp 0x6a1ef
movsd 0x18(%r15), %xmm0
movsd %xmm0, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regression.c
// Function: train_svmreg
void* train_svmreg(Instanceptr* trdata, Instanceptr *cvdata, void* parameters)
{
	/*!Last Changed 03.05.2005*/
 Partition dummyp;
	Svm_modelptr model;
	Svm_problem prob;
	Svm_parameterptr param;
	dummyp = get_two_class_partition();
	prepare_svm_problem(&prob, EPSILON_SVR, *trdata, dummyp);
	free_partition(dummyp);
	param = (Svm_parameter*) parameters;
 model = svm_train(prob, *param, 0);
	return model;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rdx, %rbx
movq %rdi, %r14
leaq 0x78(%rsp), %r15
movq %r15, %rdi
xorl %eax, %eax
callq 0x4db9c
movq (%r14), %rdx
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
leaq 0x90(%rsp), %r14
pushq $0x3
popq %rsi
movq %r14, %rdi
callq 0x85b64
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
callq 0x4dd42
leaq 0x20(%rsp), %rdi
pushq $0xb
popq %rcx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
xorl %edi, %edi
callq 0x8362c
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2b4a0
movsd %xmm0, 0x10(%rsp)
movq %r15, %rdi
callq 0x2add8
movq %rax, %r15
leaq 0x2bd1b(%rip), %rsi     # 0x95fe6
pushq $0x8
popq %rdi
pushq $0x7
popq %rdx
callq 0x34f59
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x84490
movsd (%r12), %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x2b74e(%rip), %rdi     # 0x95a48
callq 0x4cdcf
movaps %xmm0, %xmm2
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
callq 0x407e2
movsd %xmm0, 0x18(%rbx)
movq %r12, %rdi
callq 0x34ff7
movq %r14, %rdi
movq %r15, %rsi
callq 0x85125
movsd %xmm0, (%rbx)
movq %r15, %rdi
callq 0x34ff7
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
movq %rdi, %rbx
leaq 0x40(%rsp), %r14
movb $0x0, (%rdi)
leaq 0x30453(%rip), %r12     # 0x9a7e0
leaq 0x30450(%rip), %r13     # 0x9a7e4
leaq 0x30441(%rip), %rbp     # 0x9a7dc
movq (%r14), %r14
testq %r14, %r14
je 0x6a3ec
movq %r14, %r15
movq 0x20(%r15), %r15
testq %r15, %r15
je 0x6a3d2
movl (%r15), %eax
cmpl $-0x3, %eax
movq %r13, %rsi
cmoveq %r12, %rsi
cmpl $-0x2, %eax
cmoveq %rbp, %rsi
movq %rbx, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x41b0
jmp 0x6a3a6
movq %rbx, %rdi
leaq 0x3041a(%rip), %rsi     # 0x9a7f6
movq %rbx, %rdx
xorl %eax, %eax
callq 0x41b0
addq $0x38, %r14
jmp 0x6a39b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: 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 0x6a520
movsd %xmm0, 0x50(%rsp)
movq (%r15), %r12
movq 0x8(%r15), %rbp
movq %rbp, %r13
testq %rbp, %rbp
je 0x6a511
cmpq %r12, 0x38(%r13)
je 0x6a511
movq (%r15), %rax
cmpq %r13, %rax
je 0x6a491
movq %rax, %rbp
movq 0x38(%rax), %rax
cmpq %r13, %rax
jne 0x6a483
jmp 0x6a493
xorl %ebp, %ebp
movq %r15, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x6a5f0
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 0x6a520
ucomisd 0x50(%rsp), %xmm0
jbe 0x6a4ed
movq %r15, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x6a617
jmp 0x6a465
pushq $0x9
popq %rcx
movq %rsp, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
movsd %xmm0, 0x50(%rsp)
callq 0x6a646
movq %r13, %rdi
callq 0x34ff7
jmp 0x6a465
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: 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 %rbx
subq $0x50, %rsp
movl %esi, %ebx
movq 0x90(%rsp), %rax
movq %rax, 0x30(%rsp)
movaps 0x60(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movaps 0x80(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x44(%rsp), %rsi
callq 0x6a848
movsd %xmm0, 0x48(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x30(%rsp)
movaps 0x60(%rsp), %xmm0
movaps 0x70(%rsp), %xmm1
movaps 0x80(%rsp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x6a90d
testl %ebx, %ebx
je 0x6a5e4
cmpl $0x2, %ebx
je 0x6a5bc
cmpl $0x1, %ebx
jne 0x6a5d4
cvtsi2sd %eax, %xmm1
movl 0x44(%rsp), %edi
movsd 0x48(%rsp), %xmm0
addq $0x50, %rsp
popq %rbx
jmp 0x40b9e
cvtsi2sd %eax, %xmm1
movl 0x44(%rsp), %edi
movsd 0x48(%rsp), %xmm0
addq $0x50, %rsp
popq %rbx
jmp 0x40f59
leaq 0x354a1(%rip), %rdi     # 0x9fa7c
movl %ebx, %esi
xorl %eax, %eax
callq 0x4030
movsd 0x48(%rsp), %xmm0
addq $0x50, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: add_regression_rule_after
void add_regression_rule_after(Regressionruleset* r, Regressionruleptr before, Regressionruleptr inserted)
{
	/*!Last Changed 04.03.2005*/
	r->rulecount++;
	if (before == NULL)
	 {
		 inserted->next = r->start;
		 r->start = inserted;
	 }
	else
	 {
		 inserted->next = before->next;
		 before->next = inserted;
	 }
	if (inserted->next == NULL)
			r->end = inserted;
}

// Assembly:
incl 0x30(%rdi)
testq %rsi, %rsi
je 0x6a631
movq 0x38(%rsi), %rax
movq %rax, 0x38(%rdx)
movq %rdx, 0x38(%rsi)
movq 0x38(%rdx), %rax
jmp 0x6a63b
movq (%rdi), %rax
movq %rax, 0x38(%rdx)
movq %rdx, (%rdi)
testq %rax, %rax
je 0x6a641
retq
movq %rdx, 0x8(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x40(%rsp), %r12
movq 0x20(%r12), %r14
pushq $0x2
popq %rbx
pushq $-0x2
popq %rbp
pushq $-0x3
popq %r15
testq %r14, %r14
je 0x6a6a2
movq 0x20(%r14), %r13
movl (%r14), %edi
movl %ebx, %esi
movl %ebp, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x35812
testl %eax, %eax
je 0x6a695
movq 0x10(%r14), %rdi
callq 0x2c010
movq 0x18(%r14), %rdi
callq 0x2c010
movq %r14, %rdi
callq 0x34ff7
movq %r13, %r14
jmp 0x6a665
cmpl $0x1, 0x10(%r12)
jne 0x6a6c6
movq (%r12), %rdi
movq 0x8(%r12), %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3929f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressionrule.c
// Function: 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 0x6a759
movsd %xmm0, 0x10(%rsp)
movq %r14, %rdi
callq 0x6a7d5
testl %ebx, %ebx
je 0x6a74b
cmpl $0x2, %ebx
je 0x6a721
cmpl $0x1, %ebx
jne 0x6a73b
cvtsi2sd %eax, %xmm1
movl 0xc(%rsp), %edi
movsd 0x10(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x40b9e
cvtsi2sd %eax, %xmm1
movl 0xc(%rsp), %edi
movsd 0x10(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x40f59
leaq 0x3533a(%rip), %rdi     # 0x9fa7c
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_O2/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 %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
andl $0x0, (%rdx)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
testq %r14, %r14
je 0x6a7bd
movq %r14, %rdi
movq %r15, %rsi
callq 0x6b535
testl %eax, %eax
je 0x6a7b7
incl (%rbx)
movsd 0x18(%r15), %xmm0
movl 0x10(%r15), %ecx
movq (%r15), %rdi
movq 0x8(%r15), %rsi
movq %r14, %rdx
callq 0x6ce8d
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq 0x10(%r14), %r14
jmp 0x6a778
cvtsi2sdl (%rbx), %xmm1
movsd 0x8(%rsp), %xmm0
divsd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq