LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: create_regression_matrices
void create_regression_matrices(Instanceptr list, matrix* X, matrix* r)
{
	/*!Last Changed 01.03.2005*/
	int i, size = data_size(list), j;
	Instanceptr tmp;
	*X = matrix_alloc(size, current_dataset->multifeaturecount);
	*r = matrix_alloc(size, 1);
 tmp = list;
	i = 0;
	while (tmp)
	 {
		 (*X).values[i][0] = 1;
		 for (j = 0; j < current_dataset->multifeaturecount - 1; j++)
			  (*X).values[i][j + 1] = real_feature(tmp, j);
			(*r).values[i][0] = give_regressionvalue(tmp);
			i++;	 
		 tmp = tmp->next;
	 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x2c3cc
movl %eax, %ebp
leaq 0x60938(%rip), %r13     # 0xcd870
movq (%r13), %rax
movl 0x1c0(%rax), %esi
movl %ebp, %edi
callq 0x380d3
movq %rax, (%r14)
movq %rdx, 0x8(%r14)
pushq $0x1
popq %rsi
movl %ebp, %edi
callq 0x380d3
movq %rax, (%rbx)
movq %rdx, 0x8(%rbx)
xorl %ebp, %ebp
testq %r15, %r15
je 0x6cfcc
movq 0x8(%r14), %rax
movq (%rax,%rbp,8), %rax
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, (%rax)
xorl %r12d, %r12d
movq (%r13), %rax
movslq 0x1c0(%rax), %rax
decq %rax
movq %r15, %rdi
cmpq %rax, %r12
jge 0x6cfb2
movl %r12d, %esi
callq 0x2aea2
movq 0x8(%r14), %rax
movq (%rax,%rbp,8), %rax
movsd %xmm0, 0x8(%rax,%r12,8)
incq %r12
jmp 0x6cf80
callq 0x2b4a0
movq 0x8(%rbx), %rax
movq (%rax,%rbp,8), %rax
movsd %xmm0, (%rax)
incq %rbp
movq 0x10(%r15), %r15
jmp 0x6cf63
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: createnewregnode
Regressionnodeptr createnewregnode(Regressionnodeptr parentnode, int howmany, LEAF_TYPE leaftype)
{
	/*!Last Changed 25.08.2005 added leaftype*/
	/*!Last Changed 09.12.2004*/
	int j;
	Regressionnodeptr newnode;
	newnode = (Regressionnodeptr)safemalloc(howmany * sizeof(struct regressionnode), "createnewregnode", 3);
	newnode->featureno = LEAF_NODE;
	newnode->leaftype = leaftype;
	newnode->instances = NULL;
	newnode->cvinstances = NULL;
	for (j = 0; j < howmany; j++)
			newnode[j].parent = parentnode;
	return newnode;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rdi, %rbx
movslq %esi, %r14
imulq $0x98, %r14, %rdi
leaq 0x32ba3(%rip), %rsi     # 0x9fb98
pushq $0x3
popq %rdx
callq 0x34f59
orl $-0x1, 0x68(%rax)
xorl %ecx, %ecx
testl %r14d, %r14d
cmovlel %ecx, %r14d
movl %ebp, 0x6c(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
imulq $0x98, %r14, %rdx
cmpq %rcx, %rdx
je 0x6d02e
movq %rbx, 0x18(%rax,%rcx)
addq $0x98, %rcx
jmp 0x6d01b
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: next_regression_node
Regressionnodeptr next_regression_node(Regressionnodeptr currentnode, Instanceptr tmp)
{
	/*!Last Changed 24.03.2005*/
	/*!Last Changed 09.12.2004*/
	if (currentnode->featureno >= 0)
   if (tmp->values[currentnode->featureno].floatvalue <= currentnode->split)
     return currentnode->left;
   else
     return currentnode->right;
	else
			if (nearest_center_in_regression_tree(tmp, currentnode->featureno, currentnode->leftcenter, currentnode->rightcenter) == LEFTCHILD)
     return currentnode->left;
   else
     return currentnode->right;
}

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

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorpd %xmm0, %xmm0
testq %rbx, %rbx
je 0x6d0d3
movsd %xmm0, (%rsp)
movq %r14, %rax
cmpl $-0x1, 0x68(%rax)
je 0x6d0ac
movq %rax, %rdi
movq %rbx, %rsi
callq 0x6d033
jmp 0x6d099
movsd 0x70(%rax), %xmm0
movl 0x6c(%rax), %ecx
movq 0x38(%rax), %rsi
movq %rbx, %rdx
callq 0x6ce8d
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq 0x10(%rbx), %rbx
jmp 0x6d08c
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: deallocate_regression_tree
void deallocate_regression_tree(Regressionnodeptr node)
{
	/*!Last Changed 23.03.2005 added deallocation of left and right centers*/
	/*!Last Changed 09.12.2004*/
 if (node->featureno == LEAF_NODE)
  {
   if (node->instances)
     deallocate(node->instances);
   if (node->cvinstances)
     deallocate(node->cvinstances);
   if (node->leaftype == LINEARLEAF)
     matrix_free(node->w);
  }
 else
  {
		 if (in_list(node->featureno, 2, LINEAR, QUADRATIC))
			 {
				 deallocate(node->leftcenter);
				 deallocate(node->rightcenter);
			 }
   else
     if (node->featureno == SOFTLIN)
       matrix_free(node->w);
   deallocate_regression_tree(node->left);
   safe_free(node->left);
   deallocate_regression_tree(node->right);
   safe_free(node->right);
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x68(%rdi), %edi
cmpl $-0x1, %edi
je 0x6d115
pushq $0x2
popq %rsi
pushq $-0x2
popq %rdx
pushq $-0x3
popq %rcx
xorl %eax, %eax
callq 0x35812
testl %eax, %eax
je 0x6d145
movq 0x80(%rbx), %rdi
callq 0x2c010
movq 0x88(%rbx), %rdi
callq 0x2c010
jmp 0x6d158
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x6d123
callq 0x2c010
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x6d131
callq 0x2c010
cmpl $0x1, 0x6c(%rbx)
jne 0x6d17b
movq 0x30(%rbx), %rdi
movq 0x38(%rbx), %rsi
popq %rbx
jmp 0x3929f
cmpl $-0x6, 0x68(%rbx)
jne 0x6d158
movq 0x30(%rbx), %rdi
movq 0x38(%rbx), %rsi
callq 0x3929f
movq (%rbx), %rdi
callq 0x6d0db
movq (%rbx), %rdi
callq 0x34ff7
movq 0x8(%rbx), %rdi
callq 0x6d0db
movq 0x8(%rbx), %rdi
popq %rbx
jmp 0x34ff7
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: make_regression_children
int make_regression_children(Regressionnodeptr node, LEAF_TYPE leaftype)
{
	/*!Last Changed 24.03.2005*/
	/*!Last Changed 09.12.2004*/
 Regressionnodeptr left, right;
 if (node->featureno == LEAF_NODE || node->instances == NULL)
	 {
		 make_leaf_regression_node(node, leaftype);
   return 0;
	 }
 left = createnewregnode(node, 1, leaftype);
 right = createnewregnode(node, 1, leaftype);
	if (node->featureno >= 0)
	 {
  	divide_instancelist_according_to_split(&(node->instances), &(left->instances), &(right->instances), node->featureno, node->split);
	  divide_instancelist_according_to_split(&(node->cvinstances), &(left->cvinstances), &(right->cvinstances), node->featureno, node->split);
	 }
	else
		 if (node->featureno == LINEAR)
			 {
				 divide_instancelist_according_centers(&(node->instances), &(left->instances), &(right->instances), node->leftcenter, node->rightcenter, NO);
				 divide_instancelist_according_centers(&(node->cvinstances), &(left->cvinstances), &(right->cvinstances), node->leftcenter, node->rightcenter, NO);
			 }
			else
			 {
				 divide_instancelist_according_centers(&(node->instances), &(left->instances), &(right->instances), node->leftcenter, node->rightcenter, YES);
				 divide_instancelist_according_centers(&(node->cvinstances), &(left->cvinstances), &(right->cvinstances), node->leftcenter, node->rightcenter, YES);
			 }
	node->left = left;
	node->right = right;
 return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %r15d
movq %rdi, %rbx
cmpl $-0x1, 0x68(%rdi)
je 0x6d205
cmpq $0x0, 0x20(%rbx)
je 0x6d205
leaq 0x20(%rbx), %r12
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x6cfdb
movq %rax, %r14
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x6cfdb
movq %rax, %r15
movl 0x68(%rbx), %ecx
leaq 0x20(%r14), %rsi
leaq 0x20(%rax), %rdx
testl %ecx, %ecx
js 0x6d21f
movsd 0x50(%rbx), %xmm0
movq %r12, %rdi
callq 0x2caf4
leaq 0x28(%rbx), %rdi
movq %r14, %rsi
addq $0x28, %rsi
movq %r15, %rdx
addq $0x28, %rdx
movl 0x68(%rbx), %ecx
movsd 0x50(%rbx), %xmm0
callq 0x2caf4
jmp 0x6d2b1
orl $-0x1, 0x68(%rbx)
movl %r15d, 0x6c(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
xorl %ebp, %ebp
jmp 0x6d2b8
leaq 0x28(%rbx), %rax
movq %rax, 0x8(%rsp)
movq %r14, %r13
addq $0x28, %r13
movq %r15, %rax
addq $0x28, %rax
movq %rax, 0x10(%rsp)
movq 0x80(%rbx), %rax
movq 0x88(%rbx), %r8
cmpl $-0x2, %ecx
jne 0x6d27c
movq %r12, %rdi
movq %rax, %rcx
xorl %r9d, %r9d
callq 0x2ca3c
movq 0x80(%rbx), %rcx
movq 0x88(%rbx), %r8
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rdx
xorl %r9d, %r9d
jmp 0x6d2ac
pushq $0x1
popq %r9
movq %r12, %rdi
movq %rax, %rcx
movl %r9d, %r12d
callq 0x2ca3c
movq 0x80(%rbx), %rcx
movq 0x88(%rbx), %r8
movq 0x8(%rsp), %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rdx
movl %r12d, %r9d
callq 0x2ca3c
movq %r14, (%rbx)
movq %r15, 0x8(%rbx)
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: accumulate_instances_regression_tree
void accumulate_instances_regression_tree(Instanceptr* data, Instanceptr* cvdata, Regressionnodeptr root)
{
 /*!Last Changed 02.03.2005*/
	if (root->featureno == LEAF_NODE)
		 accumulate_instances_regression_leaf(data, cvdata, root);
	else
	 {
   accumulate_instances_regression_tree(data, cvdata, root->left);
			accumulate_instances_regression_tree(data, cvdata, root->right);
	 }
}

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

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

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl (%rsi), %esi
callq 0x6d4c5
movl 0x4(%r14), %eax
cmpl $0x1, %eax
je 0x6d5ae
cmpl $0x2, %eax
jne 0x6d5d6
cmpl $0x0, 0x8(%r14)
jne 0x6d5d6
movl (%r14), %ecx
movq 0x28(%rbx), %rdx
testl %ecx, %ecx
je 0x6d5c4
movq 0x38(%rbx), %rsi
callq 0x6cebf
jmp 0x6d5d1
movsd 0x70(%rbx), %xmm0
movq %rdx, %rdi
callq 0x2c0e3
movsd %xmm0, 0x58(%rbx)
movsd 0x60(%rbx), %xmm1
cvtsi2sdl 0x78(%rbx), %xmm0
divsd %xmm0, %xmm1
movsd 0x20(%r14), %xmm2
ucomisd %xmm1, %xmm2
jae 0x6d61c
pushq $0x1
popq %rax
cmpl $0x0, 0x4(%r14)
jne 0x6d635
leaq 0x6026f(%rip), %rcx     # 0xcd870
movq (%rcx), %rcx
cvtsi2sdl 0x1407124(%rcx), %xmm1
divsd %xmm1, %xmm0
movsd 0x10(%r14), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x6d635
movl (%r14), %eax
orl $-0x1, 0x68(%rbx)
movl %eax, 0x6c(%rbx)
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: constant_or_linear_model_mse
double constant_or_linear_model_mse(Instanceptr train, Instanceptr test, LEAF_TYPE leaftype)
{
	/*!Last Changed 26.03.2005*/
	double regvalue, error;
	matrix X, r, w;
	if (leaftype == CONSTANTLEAF)
	 {
  	regvalue = find_mean_of_regression_value(train);
			error = find_variance_of_regression_value(test, regvalue);
	 }
	else
	 {
   create_regression_matrices(train, &X, &r);
		 w = multivariate_regression(X, r);
			matrix_free(X);
			matrix_free(r);
			error = variance_of_linear_regression(w, test, leaftype);
			matrix_free(w);
	}
	return error;
}

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

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

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

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r15
leaq 0x50(%rdi), %rsi
cmpl $0x0, 0x6c(%rdi)
movq 0x20(%rdi), %rdi
leaq 0xf(%rsp), %rdx
je 0x6dec2
callq 0x6c660
jmp 0x6dec7
callq 0x6cbb5
movl %eax, 0x68(%r15)
movq 0x20(%r15), %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x6d8df
movq 0x20(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x6d91e
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: set_best_model_in_regression_tree
void set_best_model_in_regression_tree(Regressionnodeptr node, int bestmodel, Instanceptr leftl, Instanceptr rightl, Instanceptr leftq, Instanceptr rightq)
{
	/*!Last Changed 24.03.2005*/
	switch (bestmodel)
	 {
	  case MODEL_UNI:deallocate(leftl);
										        deallocate(rightl);
				              deallocate(leftq);
				              deallocate(rightq);
        										break;
	  case MODEL_LIN:node->featureno = LINEAR;
				              node->leftcenter = leftl;
				              node->rightcenter = rightl;
				              deallocate(leftq);
				              deallocate(rightq);
										        break;				      
			case MODEL_QUA:node->featureno = QUADRATIC;
				              node->leftcenter = leftq;
				              node->rightcenter = rightq;
				              deallocate(leftl);
				              deallocate(rightl);
										        break;				      
	 }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
cmpl $0x2, %esi
je 0x6df3b
cmpl $0x1, %esi
je 0x6df24
testl %esi, %esi
jne 0x6df6b
movq %rdx, %rdi
callq 0x2c010
movq %r15, %rdi
callq 0x2c010
jmp 0x6df56
movl $0xfffffffe, 0x68(%rdi) # imm = 0xFFFFFFFE
movq %rdx, 0x80(%rdi)
movq %r15, 0x88(%rdi)
jmp 0x6df56
movl $0xfffffffd, 0x68(%rdi) # imm = 0xFFFFFFFD
movq %r14, 0x80(%rdi)
movq %rbx, 0x88(%rdi)
movq %rdx, %r14
movq %r15, %rbx
movq %r14, %rdi
callq 0x2c010
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2c010
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: best_single_regression_tree_split
int best_single_regression_tree_split(Regressionnodeptr node, int nodetype)
{
	/*!Last Changed 23.03.2005*/
	char dummy;
	int found;
	switch (nodetype)
	 {
	  case UNIVARIATE:if (node->leaftype == CONSTANTLEAF)
                     return best_regression_feature(node->instances, &(node->split), &dummy);
	                  else
		                   return best_regression_feature_linear_leaves(node->instances, &(node->split), &dummy);
				               break;
		 case LINEAR    :found = find_linear_regression_split(node->instances, &(node->leftcenter), &(node->rightcenter));
				               break;
		 case QUADRATIC :found = find_quadratic_regression_split(node->instances, &(node->leftcenter), &(node->rightcenter));
				               break;
   default        :printf(m1231, nodetype);
                   found = 0;
                   break;
	 }
	if (found)
		 return nodetype;
	else
		 return LEAF_NODE;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %rdx
cmpl $-0x3, %esi
je 0x6e18f
cmpl $-0x2, %ebx
je 0x6e176
testl %ebx, %ebx
jne 0x6e1ac
leaq 0x50(%rdx), %rsi
cmpl $0x0, 0x6c(%rdx)
movq 0x20(%rdx), %rdi
leaq 0xf(%rsp), %rdx
je 0x6e1c1
callq 0x6c660
jmp 0x6e1c6
movq 0x20(%rdx), %rdi
leaq 0x80(%rdx), %rsi
addq $0x88, %rdx
callq 0x6d8df
jmp 0x6e1a6
movq 0x20(%rdx), %rdi
leaq 0x80(%rdx), %rsi
addq $0x88, %rdx
callq 0x6d91e
testl %eax, %eax
jne 0x6e1c8
jmp 0x6e1bc
leaq 0x3192f(%rip), %rdi     # 0x9fae2
movl %ebx, %esi
xorl %eax, %eax
callq 0x4030
pushq $-0x1
popq %rbx
jmp 0x6e1c8
callq 0x6cbb5
movl %eax, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: best_hybrid_regression_tree_split
int best_hybrid_regression_tree_split(Regressionnodeptr node, Regtree_parameterptr param)
{
	/*!Last Changed 27.03.2005*/
	switch (param->modelselectionmethod)
	 {
	  case MODEL_SELECTION_CV :return best_hybrid_regression_tree_split_crossvalidation(node, param);
				                        break;
			case MODEL_SELECTION_AIC:
			case MODEL_SELECTION_BIC:return best_hybrid_regression_tree_split_aic_or_bic(node, param);
				                        break;
			case MODEL_SELECTION_UNI:return best_single_regression_tree_split(node, UNIVARIATE);
				                        break;
			case MODEL_SELECTION_LIN:return best_single_regression_tree_split(node, LINEAR);
				                        break;
			case MODEL_SELECTION_QUA:return best_single_regression_tree_split(node, QUADRATIC);
				                        break;
   default                 :printf(m1230, param->modelselectionmethod);
                            break;
	 }
	return LEAF_NODE;
}

// Assembly:
pushq %rax
movl 0x8(%rsi), %eax
cmpq $0x7, %rax
ja 0x6e1fd
leaq 0x3198b(%rip), %rcx     # 0x9fb6c
movslq (%rcx,%rax,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
callq 0x6df71
pushq $0x1
jmp 0x6e20f
pushq $-0x3
jmp 0x6e218
popq %rax
jmp 0x6d9a2
leaq 0x31878(%rip), %rdi     # 0x9fa7c
movl %eax, %esi
xorl %eax, %eax
callq 0x4030
pushq $-0x1
popq %rax
popq %rcx
retq
xorl %esi, %esi
jmp 0x6e219
pushq $-0x2
popq %rsi
popq %rax
jmp 0x6e144
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: create_regtree
int create_regtree(Regressionnodeptr node, Regtree_parameterptr param)
{
	/*!Last Changed 09.12.2004 rewritten*/
 /*!Last Changed 11.04.2004*/
	if (!(can_be_divided_regression(node, param)))
   return 1;
	node->featureno = best_hybrid_regression_tree_split(node, param);
 if (!(make_regression_children(node, param->leaftype)))
   return 1;
 create_regtree(node->left, param);
 create_regtree(node->right, param);
 return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6d588
testl %eax, %eax
je 0x6e266
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6e1d0
movl %eax, 0x68(%r14)
movl (%rbx), %esi
movq %r14, %rdi
callq 0x6d17d
testl %eax, %eax
je 0x6e266
movq (%r14), %rdi
movq %rbx, %rsi
callq 0x6e21f
movq 0x8(%r14), %r14
jmp 0x6e229
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: inorder_traversal_regression_tree
void inorder_traversal_regression_tree(Regressionnodeptr node, int* index)
{
 if (node)
  { 
   inorder_traversal_regression_tree(node->left, index);
   node->x = *index;
   (*index)++;
   inorder_traversal_regression_tree(node->right, index);   
  }
}

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

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

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x5f57e(%rip), %r13     # 0xcd870
leaq 0x2c634(%rip), %r12     # 0x9a92d
xorpd %xmm1, %xmm1
cmpl $-0x1, 0x68(%r15)
je 0x6e366
movq (%r13), %rax
movl 0x1c0(%rax), %eax
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
xorl %r8d, %r8d
cmpq %rcx, %rax
je 0x6e33b
movq 0x38(%r15), %rdx
movq (%rdx,%rcx,8), %rdx
movsd (%rdx), %xmm0
cmpneqsd %xmm1, %xmm0
movq %xmm0, %rdx
subl %edx, %r8d
incq %rcx
jmp 0x6e318
movq %r14, %rdi
movq %r12, %rsi
movq %r14, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x41b0
movq (%r15), %rdi
incl %ebx
movq %r14, %rsi
movl %ebx, %edx
callq 0x6e2da
xorpd %xmm1, %xmm1
movq 0x8(%r15), %r15
jmp 0x6e2fd
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: depth_of_regression_tree
int depth_of_regression_tree(Regressionnodeptr node)
{
 /*!Last Changed 12.07.2006*/
 int leftdepth, rightdepth;
 if (node->featureno == LEAF_NODE)
   return 1;
 else
  {
   leftdepth = depth_of_regression_tree(node->left);
   rightdepth = depth_of_regression_tree(node->right);
   if (leftdepth >= rightdepth)
     return leftdepth + 1;
   else
     return rightdepth + 1;
  }
}

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

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r15
callq 0x2c3cc
movslq %eax, %r14
leaq (,%r14,8), %rdi
leaq 0x317fb(%rip), %rsi     # 0x9fbdb
pushq $0x4
popq %rdx
callq 0x34f59
movq %rax, %rbx
movq %rax, %r12
testq %r15, %r15
je 0x6e40b
movq %r15, %rdi
callq 0x2b4a0
movsd %xmm0, (%r12)
movq 0x10(%r15), %r15
addq $0x8, %r12
jmp 0x6e3ee
leaq -0x39053(%rip), %rcx    # 0x353bf
pushq $0x8
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4240
cmpl $0x2, %r14d
pushq $0x1
popq %r15
cmovgel %r14d, %r15d
decl %r15d
movsd 0x270e1(%rip), %xmm0    # 0x95518
movsd %xmm0, 0x8(%rsp)
xorl %r14d, %r14d
cmpq %r14, %r15
je 0x6e47b
movsd 0x8(%rbx,%r14,8), %xmm0
subsd (%rbx,%r14,8), %xmm0
xorps %xmm1, %xmm1
movsd %xmm0, 0x10(%rsp)
callq 0x34c3a
testl %eax, %eax
jne 0x6e476
movsd 0x10(%rsp), %xmm0
minsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
incq %r14
jmp 0x6e440
movq %rbx, %rdi
callq 0x34ff7
movsd 0x8(%rsp), %xmm0
mulsd %xmm0, %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/regressiontree.c
// Function: estimate_sigma_square_with_knn
double estimate_sigma_square_with_knn(Instanceptr data, int nearcount)
{
	/*!Last Changed 01.03.2005*/
	Instanceptr tmp, *nearestneighbors;
	int N = 0, i;
	double result = 0, yvalue, realvalue, h;
	tmp = data;
	while (tmp)
	 {
		 nearestneighbors = find_nearest_neighbors(data, tmp, nearcount);
			yvalue = 0;
			for (i = 0; i < nearcount; i++)
  			yvalue += give_regressionvalue(nearestneighbors[i]);
			yvalue /= nearcount;
			safe_free(nearestneighbors);
   realvalue = give_regressionvalue(tmp);
			result += (double) ((realvalue - yvalue) * (realvalue - yvalue));
			N++;
			tmp = tmp->next;
	 }
	h = pow(N, 0.8) / nearcount;
 return result / (N - h);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cvtsi2sd %esi, %xmm0
movsd %xmm0, 0x20(%rsp)
movq %rdi, %r15
xorl %r13d, %r13d
testl %esi, %esi
movl $0x0, %ebp
movl %esi, 0x1c(%rsp)
cmovgl %esi, %ebp
xorpd %xmm0, %xmm0
movsd %xmm0, 0x10(%rsp)
movq %rdi, %rbx
testq %r15, %r15
je 0x6e565
movq %rbx, %rdi
movq %r15, %rsi
movl 0x1c(%rsp), %edx
callq 0x2d47a
movq %rax, %r12
xorpd %xmm0, %xmm0
xorl %r14d, %r14d
cmpq %r14, %rbp
je 0x6e523
movq (%r12,%r14,8), %rdi
movsd %xmm0, 0x8(%rsp)
callq 0x2b4a0
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
incq %r14
jmp 0x6e4f4
divsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x34ff7
movq %r15, %rdi
callq 0x2b4a0
subsd 0x8(%rsp), %xmm0
mulsd %xmm0, %xmm0
movsd 0x10(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
incl %r13d
movq 0x10(%r15), %r15
jmp 0x6e4d2
cvtsi2sd %r13d, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x29748(%rip), %xmm1    # 0x97cc0
callq 0x42f0
divsd 0x20(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rise.c
// Function: most_specific_generalization
Decisionruleptr most_specific_generalization(Decisionruleptr rule, Instanceptr nearest)
{
 int fno;
 Decisionruleptr newrule;
 Decisionconditionptr current, before = NULL, next;
 newrule = create_copy_of_rule(rule);
 newrule->next = rule->next;
 current = newrule->start;
 while (current)
  {
   next = current->next;
   fno = current->featureindex;
   switch (current_dataset->features[fno].type)
    {
     case  STRING:if (nearest->values[fno].stringindex != current->value)
                    remove_condition_after(newrule, before, current);
                  else
                    before = current;
                  break;
     case INTEGER:if (nearest->values[fno].intvalue > current->upperlimit)
                    current->upperlimit = nearest->values[fno].intvalue;
                  else
                    if (nearest->values[fno].intvalue < current->lowerlimit)
                      current->lowerlimit = nearest->values[fno].intvalue;
                  before = current;
                  break;
     case    REAL:if (nearest->values[fno].floatvalue > current->upperlimit)
                    current->upperlimit = nearest->values[fno].floatvalue;
                  else
                    if (nearest->values[fno].floatvalue < current->lowerlimit)
                      current->lowerlimit = nearest->values[fno].floatvalue;
                  before = current;
                  break;
    }
   current = next;
  }
 return newrule;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
callq 0x717f9
movq %rax, %r14
movq 0x30(%r15), %rax
movq %rax, 0x30(%r14)
movq 0x18(%r14), %r13
xorl %eax, %eax
leaq 0x5de84(%rip), %r12     # 0xcd870
testq %r13, %r13
je 0x6fa92
movq %r13, %rdx
movq %rax, %r15
movq 0x48(%r13), %r13
movslq (%rdx), %rcx
movq (%r12), %rax
imulq $0x340, %rcx, %rsi      # imm = 0x340
movl 0x30f08(%rax,%rsi), %esi
testl %esi, %esi
je 0x6fa57
cmpl $0x2, %esi
je 0x6fa4d
movq %r15, %rax
cmpl $0x1, %esi
jne 0x6f9ec
movq (%rbx), %rax
cvtsi2sdl (%rax,%rcx,8), %xmm0
movsd 0x8(%rdx), %xmm1
ucomisd %xmm0, %xmm1
movq %rdx, %rax
jne 0x6fa3d
jnp 0x6f9ec
movq %r14, %rdi
movq %r15, %rsi
callq 0x720e4
movq %r15, %rax
jmp 0x6f9ec
movq (%rbx), %rax
movsd (%rax,%rcx,8), %xmm0
jmp 0x6fa5f
movq (%rbx), %rax
cvtsi2sdl (%rax,%rcx,8), %xmm0
ucomisd 0x10(%rdx), %xmm0
jbe 0x6fa73
movsd %xmm0, 0x10(%rdx)
movq %rdx, %rax
jmp 0x6f9ec
movsd 0x18(%rdx), %xmm1
ucomisd %xmm0, %xmm1
movq %rdx, %rax
jbe 0x6f9ec
movsd %xmm0, 0x18(%rdx)
movq %rdx, %rax
jmp 0x6f9ec
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rise.c
// Function: nearest_example_not_covered
Instanceptr nearest_example_not_covered(Model_riseptr m, Decisionruleptr rule, Instanceptr instances)
{
 Instanceptr tmp, nearest = NULL;
 double distance, mindistance = +INT_MAX;
 tmp = instances;
 while (tmp)
  {
   if (give_classno(tmp) == rule->classno && !rule_cover_instance(tmp, *rule))
    {
     distance = distance_to_rule(m, tmp, rule);
     if (distance < mindistance)
      {
       mindistance = distance;
       nearest = tmp;
      }
    }
   tmp = tmp->next;
  }
 return nearest;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movsd 0x25a5d(%rip), %xmm0    # 0x95518
movsd %xmm0, 0x40(%rsp)
xorl %r12d, %r12d
testq %rbx, %rbx
je 0x6fb34
movq %rbx, %rdi
callq 0x2b47e
cmpl (%r14), %eax
jne 0x6fb2e
movq 0x30(%r14), %rax
movq %rax, 0x30(%rsp)
movupd (%r14), %xmm0
movupd 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x20(%rsp)
movupd %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x71406
testl %eax, %eax
jne 0x6fb2e
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x6fb43
movsd 0x40(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x6fb2e
movq %rbx, %r12
movsd %xmm0, 0x40(%rsp)
movq 0x10(%rbx), %rbx
jmp 0x6fac4
movq %r12, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rise.c
// Function: nearest_rule
Decisionruleptr nearest_rule(Model_riseptr m, Instanceptr instance, int leaveoneout)
{
 Decisionruleptr rule, nearest = NULL;
 double mindistance = +INT_MAX, distance, minlaplace = +INT_MAX, laplace;
 rule = m->rules.start;
 while (rule)
  {
   if (rule->covered + rule->falsepositives > 1 || !leaveoneout)
    {
     distance = distance_to_rule(m, instance, rule);
     if (distance < mindistance)
      {
       mindistance = distance;
       nearest = rule;
       minlaplace = laplace_estimate_of_rule_kclass(*rule);
      }
     else
       if (distance == mindistance)
        {
         laplace = laplace_estimate_of_rule_kclass(*rule);
         if (laplace < minlaplace)
          {
           minlaplace = laplace;
           nearest = rule;           
          }
         else
           if (laplace == minlaplace && m->counts[rule->classno] > m->counts[nearest->classno])
             nearest = rule;
        }
    }
   rule = rule->next;
  }
 return nearest;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movsd 0x2586b(%rip), %xmm2    # 0x95518
xorl %r13d, %r13d
movapd %xmm2, %xmm1
movq %rdi, %r12
movq (%r12), %r12
testq %r12, %r12
je 0x6fdd8
testl %ebx, %ebx
je 0x6fcdb
movl 0x8(%r12), %eax
addl 0x4(%r12), %eax
cmpl $0x2, %eax
jl 0x6fdcf
movsd %xmm1, 0x48(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
movsd %xmm2, 0x40(%rsp)
callq 0x6fb43
movsd 0x40(%rsp), %xmm2
ucomisd %xmm0, %xmm2
jbe 0x6fd47
movq 0x30(%r12), %rax
movq %rax, 0x30(%rsp)
movups (%r12), %xmm3
movsd %xmm0, 0x40(%rsp)
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm3, (%rsp)
callq 0x724e4
movapd %xmm0, %xmm1
movsd 0x40(%rsp), %xmm2
movq %r12, %r13
jmp 0x6fdcf
ucomisd %xmm2, %xmm0
jne 0x6fd94
jp 0x6fd94
movq 0x30(%r12), %rax
movq %rax, 0x30(%rsp)
movupd (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
callq 0x724e4
movsd 0x48(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x6fd9c
movq %r12, %r13
movapd %xmm0, %xmm1
jmp 0x6fdc9
movsd 0x48(%rsp), %xmm1
jmp 0x6fdcf
ucomisd %xmm1, %xmm0
jne 0x6fdc9
jp 0x6fdc9
movq 0x30(%r15), %rcx
movslq (%r12), %rax
movl (%rcx,%rax,4), %edx
movslq (%r13), %rsi
movq %r12, %rax
cmpl (%rcx,%rsi,4), %edx
movsd 0x40(%rsp), %xmm2
jg 0x6fdc4
movq %r13, %rax
movq %rax, %r13
jmp 0x6fdcf
movsd 0x40(%rsp), %xmm2
addq $0x30, %r12
jmp 0x6fcb7
movq %r13, %rax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rise.c
// Function: create_rule_from_instance
Decisionruleptr create_rule_from_instance(Instanceptr inst)
{
 int i;
 Decisionruleptr result;
 Decisionconditionptr newcondition;
 result = empty_rule(give_classno(inst));
 for (i = 0; i < current_dataset->featurecount; i++)
   if (current_dataset->features[i].type != CLASSDEF)
    {
     newcondition = empty_condition();
     newcondition->conditiontype = UNIVARIATE_CONDITION;
     newcondition->featureindex = i;
     newcondition->freeparam = 1;
     switch (current_dataset->features[i].type)
      {
       case INTEGER:newcondition->lowerlimit = inst->values[i].intvalue;
                    newcondition->upperlimit = inst->values[i].intvalue;
                    newcondition->comparison = '*';
                    break;
       case    REAL:newcondition->lowerlimit = inst->values[i].floatvalue;
                    newcondition->upperlimit = inst->values[i].floatvalue;
                    newcondition->comparison = '*';
                    break;
       case  STRING:newcondition->comparison = '=';
                    newcondition->value = inst->values[i].stringindex;
                    break;
      }
     add_condition(result, newcondition);
    }
 return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
callq 0x2b47e
movl %eax, %edi
callq 0x719a4
movq %rax, %r14
leaq 0x5da65(%rip), %r15     # 0xcd870
movq (%r15), %rax
movl $0x61e1, %r12d          # imm = 0x61E1
xorl %r13d, %r13d
movslq 0x1bc(%rax), %rcx
cmpq %rcx, %r13
jge 0x6feb0
cmpl $0x3, (%rax,%r12,8)
je 0x6fea4
xorl %eax, %eax
callq 0x71cd1
movl %r13d, (%rax)
movq $0x1, 0x3c(%rax)
movq (%r15), %rcx
movl (%rcx,%r12,8), %ecx
cmpl $0x2, %ecx
je 0x6fe7f
cmpl $0x1, %ecx
je 0x6fe6b
testl %ecx, %ecx
jne 0x6fe96
movq (%rbx), %rcx
cvtsi2sdl (%rcx,%r13,8), %xmm0
movsd %xmm0, 0x18(%rax)
cvtsi2sdl (%rcx,%r13,8), %xmm0
jmp 0x6fe8d
movb $0x3d, 0x4(%rax)
movq (%rbx), %rcx
cvtsi2sdl (%rcx,%r13,8), %xmm0
movsd %xmm0, 0x8(%rax)
jmp 0x6fe96
movq (%rbx), %rcx
movsd (%rcx,%r13,8), %xmm0
movsd %xmm0, 0x18(%rax)
movsd %xmm0, 0x10(%rax)
movb $0x2a, 0x4(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x719fe
movq (%r15), %rax
incq %r13
addq $0x68, %r12
jmp 0x6fe17
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rise.c
// Function: accuracy_of_ruleset
int accuracy_of_ruleset(Decisionruleptr* nearestrule, Instanceptr instances)
{
 int accuracy = 0, i = 0;
 Decisionruleptr rule;
 Instanceptr tmp;
 tmp = instances;
 while (tmp)
  {
   rule = nearestrule[i];
   if (rule)
    {
     if (give_classno(tmp) == rule->classno)
       accuracy++;
    }
   i++;
   tmp = tmp->next;
  }
 return accuracy;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %ebp, %ebp
testq %rbx, %rbx
je 0x70261
movq (%r14), %r15
testq %r15, %r15
je 0x70257
movq %rbx, %rdi
callq 0x2b47e
xorl %ecx, %ecx
cmpl (%r15), %eax
sete %cl
addl %ecx, %ebp
movq 0x10(%rbx), %rbx
addq $0x8, %r14
jmp 0x70238
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rule.c
// Function: complexity_of_ruleset
int complexity_of_ruleset(Ruleset set, int positive)
{
 /*!Last Changed 19.02.2005*/
	int result = 0;
	Decisionruleptr rule;
	rule = set.start;
	while (rule)
	 {
		 if (rule->classno == positive)
				 result += complexity_of_rule(rule);
		 rule = rule->next;
	 }
	return result; 
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edi, %ebp
xorl %ebx, %ebx
leaq 0x20(%rsp), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x7067e
cmpl %ebp, (%r14)
jne 0x70678
movq %r14, %rdi
callq 0x70638
addl %eax, %ebx
addq $0x30, %r14
jmp 0x70661
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rule.c
// Function: ruleset_complexity
int ruleset_complexity(Ruleset set)
{
 /*!Last Changed 20.02.2005*/
	int result = 0;
	Decisionruleptr rule;
	rule = set.start;
	while (rule)
	 {
			result += complexity_of_rule(rule);
		 rule = rule->next;
	 }
	return result;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
xorl %ebx, %ebx
leaq 0x20(%rsp), %r14
movq (%r14), %r14
testq %r14, %r14
je 0x706a8
movq %r14, %rdi
callq 0x70638
addl %eax, %ebx
addq $0x30, %r14
jmp 0x70690
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rule.c
// Function: description_length_of_rule
double description_length_of_rule(Decisionrule r, int possibleconditioncount)
{
 /*!Last Changed 02.12.2003*/
 double result = 0;
 if (r.decisioncount != 0)
   result += log2(r.decisioncount);
 if (log2(r.decisioncount) > 1)
   result += log2(log2(r.decisioncount));
 result += S(possibleconditioncount, r.decisioncount, (r.decisioncount + 0.0) / possibleconditioncount);
 return result / 2;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
movl %edi, %ebp
movl 0x58(%rsp), %ebx
cvtsi2sd %ebx, %xmm0
testl %ebx, %ebx
je 0x70763
movsd %xmm0, 0x10(%rsp)
callq 0x34d77
xorpd %xmm1, %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x10(%rsp), %xmm0
jmp 0x7076d
xorpd %xmm1, %xmm1
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, 0x10(%rsp)
callq 0x34d77
ucomisd 0x24da0(%rip), %xmm0    # 0x95520
jbe 0x707a2
movsd 0x10(%rsp), %xmm0
callq 0x34d77
callq 0x34d77
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
cvtsi2sd %ebp, %xmm1
movsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
movl %ebp, %edi
movl %ebx, %esi
callq 0x706b2
addsd 0x8(%rsp), %xmm0
mulsd 0x25559(%rip), %xmm0    # 0x95d20
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rule.c
// Function: description_length_of_ruleset
double description_length_of_ruleset(Ruleset r, int positive)
{
 /*!Last Changed 02.12.2003 added description_length_of_rule*/
 /*!Last Changed 18.05.2003*/
 double result = 0;
 Decisionruleptr tmp;
 tmp = r.start;
 while (tmp)
  {
   if (tmp->classno == positive || positive == -1)
     result += description_length_of_rule(*tmp, r.possibleconditioncount);
   tmp = tmp->next;
  }
 return result;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %edi, %ebx
leaq 0x60(%rsp), %r14
xorps %xmm0, %xmm0
movl 0x20(%r14), %ebp
movq (%r14), %r14
testq %r14, %r14
je 0x70846
cmpl $-0x1, %ebx
je 0x707f6
cmpl %ebx, (%r14)
jne 0x70840
movq 0x30(%r14), %rax
movq %rax, 0x30(%rsp)
movsd %xmm0, 0x38(%rsp)
movupd (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movl %ebp, %edi
callq 0x7072e
movsd 0x38(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x38(%rsp)
movsd 0x38(%rsp), %xmm0
addq $0x30, %r14
jmp 0x707e4
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/rule.c
// Function: description_length_of_exceptions
double description_length_of_exceptions(int C, int U, int fp, int fn, double proportion)
{
 /*!Last Changed 24.11.2003 added S*/
 /*!Last Changed 04.11.2003 added extra checks for zero division*/
 /*!Last Changed 12.06.2003 added proportion*/
 /*!Last Changed 19.05.2003*/
 double result = 0; 
 int e = fp + fn;
 result = result + log2(C + U + 1);
 if (C >= U)
  {
   if (C != 0)
     result += S(C, fp, (proportion * (e + 0.0)) / C);
   if (U != 0)
     result += S(U, fn, (fn + 0.0) / U);
  }
 else
  {
   proportion = 1 - proportion;
   if (C != 0)
     result += S(C, fp, (fp + 0.0) / C);
   if (U != 0)
     result += S(U, fn, (proportion * (e + 0.0)) / U);
  }
 return result / 2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movsd %xmm0, 0x8(%rsp)
movl %ecx, %ebx
movl %edx, %r15d
movl %esi, %r14d
movl %edi, %r12d
leal (%rbx,%r15), %ebp
leal (%r12,%r14), %eax
incl %eax
cvtsi2sd %eax, %xmm0
callq 0x34d77
xorpd %xmm1, %xmm1
addsd %xmm0, %xmm1
cmpl %r14d, %r12d
jge 0x708da
testl %r12d, %r12d
je 0x708b8
cvtsi2sd %r15d, %xmm0
movsd %xmm1, (%rsp)
cvtsi2sd %r12d, %xmm1
divsd %xmm1, %xmm0
movl %r12d, %edi
movl %r15d, %esi
callq 0x706b2
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
testl %r14d, %r14d
je 0x70935
movsd %xmm1, (%rsp)
movsd 0x24c56(%rip), %xmm1    # 0x95520
subsd 0x8(%rsp), %xmm1
cvtsi2sd %ebp, %xmm0
mulsd %xmm1, %xmm0
jmp 0x70919
testl %r12d, %r12d
je 0x7090b
cvtsi2sd %ebp, %xmm0
mulsd 0x8(%rsp), %xmm0
movsd %xmm1, (%rsp)
cvtsi2sd %r12d, %xmm1
divsd %xmm1, %xmm0
movl %r12d, %edi
movl %r15d, %esi
callq 0x706b2
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
testl %r14d, %r14d
je 0x70935
movsd %xmm1, (%rsp)
cvtsi2sd %ebx, %xmm0
cvtsi2sd %r14d, %xmm1
divsd %xmm1, %xmm0
movl %r14d, %edi
movl %ebx, %esi
callq 0x706b2
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
mulsd 0x253e3(%rip), %xmm1    # 0x95d20
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq