LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/metaclassification.c
// Function: free_model_of_meta_classification_algorithm
void free_model_of_meta_classification_algorithm(int meta_algorithm, int algorithm, void** model, Datasetptr current_dataset)
{
 int i, d;
 d = current_dataset->classno;
 switch (meta_algorithm)
  {
   case         ONE_VERSUS_ONE:current_dataset->classno = 2;
                               for (i = 0; i < d * (d - 1) / 2; i++)
                                 free_model_of_supervised_algorithm(algorithm, model[i], current_dataset);
                               current_dataset->classno = d;
                               break;
   case        ONE_VERSUS_REST:current_dataset->classno = 2;
                               for (i = 0; i < d; i++)
                                 free_model_of_supervised_algorithm(algorithm, model[i], current_dataset);
                               current_dataset->classno = d;
                               break;
   case BAGGING_CLASSIFICATION:for (i = 0; i < get_parameter_i("weaklearnercount"); i++)
                                 free_model_of_supervised_algorithm(algorithm, model[i], current_dataset);
                               break;
  }
 safe_free(model);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %ebp
movl 0x10(%rcx), %r15d
cmpl $0x64, %edi
je 0x43299
cmpl $0x65, %edi
je 0x43271
cmpl $0x66, %edi
jne 0x432cf
leaq 0x6705e(%rip), %rdi     # 0xaa296
callq 0x54920
testl %eax, %eax
jle 0x432cf
xorl %r12d, %r12d
leaq 0x67047(%rip), %r15     # 0xaa296
movq (%rbx,%r12,8), %rsi
movl %ebp, %edi
movq %r14, %rdx
callq 0x4d38
incq %r12
movq %r15, %rdi
callq 0x54920
cltq
cmpq %rax, %r12
jl 0x4324f
jmp 0x432cf
movl $0x2, 0x10(%r14)
testl %r15d, %r15d
jle 0x432cb
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movl %ebp, %edi
movq %r14, %rdx
callq 0x4d38
incq %r12
cmpq %r12, %r15
jne 0x43281
jmp 0x432cb
movl $0x2, 0x10(%r14)
leal -0x1(%r15), %r12d
imull %r15d, %r12d
cmpl $0x2, %r12d
jl 0x432cb
shrl %r12d
xorl %r13d, %r13d
movq (%rbx,%r13,8), %rsi
movl %ebp, %edi
movq %r14, %rdx
callq 0x4d38
incq %r13
cmpq %r13, %r12
jne 0x432b5
movl %r15d, 0x10(%r14)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3a180
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/metaregression.c
// Function: train_bagging_regression
void** train_bagging_regression(Instanceptr* trdata, Instanceptr* cvdata, int algorithm, void* parameters)
{
 int i, learner_count;
 Instanceptr traindata, validationdata;
 void** model;
 learner_count = get_parameter_i("weaklearnercount");
 model = safemalloc(sizeof(void*) * learner_count, "train_bagging_regression", 4);
 for (i = 0; i < learner_count; i++)
  {
   traindata = bootstrap_sample_without_stratification(*trdata);
   if (is_cvdata_needed(algorithm))
     validationdata = bootstrap_sample_without_stratification(*cvdata);
   else
     validationdata = NULL;
   model[i] = regression_algorithms[algorithm - ONEFEATURE].train_algorithm(&traindata, &validationdata, parameters);
  }
 return model;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, 0x10(%rsp)
movl %edx, %r14d
movq %rsi, 0x8(%rsp)
movq %rdi, %r12
leaq 0x66d09(%rip), %rdi     # 0xaa296
callq 0x54920
movl %eax, %r15d
movslq %eax, %rbx
leaq (,%rbx,8), %rdi
leaq 0x66d84(%rip), %rsi     # 0xaa32b
movl $0x4, %edx
callq 0x3a0e1
movq %rax, %r13
testl %ebx, %ebx
jle 0x43624
leal -0x7d0(%r14), %eax
cltq
leaq (%rax,%rax,4), %rbp
shlq $0x3, %rbp
addq 0x90a18(%rip), %rbp     # 0xd3fe8
movl %r15d, %r15d
xorl %ebx, %ebx
movq (%r12), %rdi
callq 0x307e8
movq %rax, 0x20(%rsp)
movl %r14d, %edi
callq 0x595b
testl %eax, %eax
je 0x435fe
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x307e8
jmp 0x43600
xorl %eax, %eax
movq %rax, 0x18(%rsp)
leaq 0x20(%rsp), %rdi
leaq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq *(%rbp)
movq %rax, (%r13,%rbx,8)
incq %rbx
cmpq %rbx, %r15
jne 0x435d5
movq %r13, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/metaregression.c
// Function: test_bagging_regression
Prediction test_bagging_regression(Instanceptr data, void** model, int algorithm, void* parameters, double* posterior)
{
 int i, learner_count;
 double* outputs;
 Prediction result, prediction;
 learner_count = get_parameter_i("weaklearnercount");
 outputs = safemalloc(sizeof(double) * learner_count, "test_bagging_regression", 4);
 for (i = 0; i < learner_count; i++)
  {
   prediction = regression_algorithms[algorithm - ONEFEATURE].test_algorithm(data, model[i], parameters, NULL);
   outputs[i] = prediction.regvalue;
  }
 qsort(outputs, learner_count, sizeof(double), sort_function_double_ascending);
 result.regvalue = outputs[learner_count / 2];
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, 0x8(%rsp)
movl %ecx, %ebx
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, (%rsp)
leaq 0x66c3a(%rip), %rdi     # 0xaa296
callq 0x54920
movslq %eax, %r14
leaq (,%r14,8), %rdi
leaq 0x66cd1(%rip), %rsi     # 0xaa344
movl $0x4, %edx
callq 0x3a0e1
movq %rax, %r12
testl %r14d, %r14d
jle 0x436cf
addl $0xfffff830, %ebx       # imm = 0xFFFFF830
movslq %ebx, %rax
leaq (%rax,%rax,4), %rax
leaq 0x91197(%rip), %rcx     # 0xd4830
leaq (%rcx,%rax,8), %rbx
addq $0x8, %rbx
xorl %r15d, %r15d
movq (%r13,%r15,8), %rdx
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
movq 0x8(%rsp), %rcx
xorl %r8d, %r8d
callq *(%rbx)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%r12,%r15,8)
incq %r15
cmpq %r15, %r14
jne 0x436a4
leaq -0x90e3(%rip), %rcx     # 0x3a5f3
movl $0x8, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x4240
movl %r14d, %eax
shrl $0x1f, %eax
addl %r14d, %eax
sarl %eax
cltq
movsd (%r12,%rax,8), %xmm0
movq (%rsp), %rax
movsd %xmm0, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/metaregression.c
// Function: free_model_of_meta_regression_algorithm
void free_model_of_meta_regression_algorithm(int meta_algorithm, int algorithm, void** model, Datasetptr current_dataset)
{
 int i;
 switch (meta_algorithm)
  {
   case BAGGING_REGRESSION:for (i = 0; i < get_parameter_i("weaklearnercount"); i++)
                             free_model_of_supervised_algorithm(algorithm, model[i], current_dataset);
                           break;
  }
 safe_free(model);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
cmpl $0xc8, %edi
jne 0x43762
movq %rcx, %r14
movl %esi, %ebp
leaq 0x66b67(%rip), %rdi     # 0xaa296
callq 0x54920
testl %eax, %eax
jle 0x43762
xorl %r12d, %r12d
leaq 0x66b54(%rip), %r15     # 0xaa296
movq (%rbx,%r12,8), %rsi
movl %ebp, %edi
movq %r14, %rdx
callq 0x4d38
incq %r12
movq %r15, %rdi
callq 0x54920
cltq
cmpq %rax, %r12
jl 0x43742
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3a180
nop
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mixture.c
// Function: mixture_class_at_value
int mixture_class_at_value(Mixtureptr mix, double value)
{
	/*!Last Changed 26.01.2005*/
	int i, j, index;
	double maxprob = -1, prob;
	for (i = 0; i < mix->classcount; i++)
	 {
		 prob = 0;
			for (j = 0; j < mix->numberofmodels[i]; j++)
				 prob += mix->mixtureprob[i][j] * gaussian(value, mix->mixturemeans[i][j], mix->mixturedeviations[i][j]);
			if (prob > maxprob)
			 {
				 maxprob = prob;
					index = i;
			 }
	 }
	return index;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl (%rdi), %ecx
testl %ecx, %ecx
jle 0x43ab1
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movsd 0x623a3(%rip), %xmm1    # 0xa5da8
xorl %r14d, %r14d
movsd %xmm0, 0x10(%rsp)
cmpl $0x0, (%rax,%r14,4)
jle 0x43a8c
movsd %xmm1, 0x8(%rsp)
xorps %xmm2, %xmm2
xorl %r15d, %r15d
movsd %xmm2, 0x20(%rsp)
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
movq (%rax,%r14,8), %rax
movsd (%rax,%r15,8), %xmm0
movsd %xmm0, 0x18(%rsp)
movq (%rcx,%r14,8), %rax
movsd (%rax,%r15,8), %xmm1
movq 0x28(%rbx), %rax
movq (%rax,%r14,8), %rax
movsd (%rax,%r15,8), %xmm2
movsd 0x10(%rsp), %xmm0
callq 0x8dd8e
movsd 0x20(%rsp), %xmm2
mulsd 0x18(%rsp), %xmm0
addsd %xmm0, %xmm2
incq %r15
movq 0x8(%rbx), %rax
movslq (%rax,%r14,4), %rcx
cmpq %rcx, %r15
jl 0x43a21
movl (%rbx), %ecx
movsd 0x8(%rsp), %xmm1
jmp 0x43a90
xorpd %xmm2, %xmm2
ucomisd %xmm1, %xmm2
cmoval %r14d, %ebp
maxsd %xmm1, %xmm2
incq %r14
movslq %ecx, %rdx
movapd %xmm2, %xmm1
cmpq %rdx, %r14
jl 0x43a0e
jmp 0x43ab1
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mixture.c
// Function: mixture_value
double mixture_value(Mixtureptr mix, double value, int classno)
{
	/*!Last Changed 26.01.2005*/
	int i, j;
	double totalprob = 0, prob, realprob;
	for (i = 0; i < mix->classcount; i++)
	 {
		 prob = 0;
			for (j = 0; j < mix->numberofmodels[i]; j++)
				 prob += mix->mixtureprob[i][j] * gaussian(value, mix->mixturemeans[i][j], mix->mixturedeviations[i][j]);
			if (i == classno)
				 realprob = prob;
			totalprob += prob;
	 }
	return realprob / totalprob;
}

// Assembly:
movl (%rdi), %ecx
testl %ecx, %ecx
jle 0x43bb1
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movapd %xmm0, %xmm3
movq %rdi, %rbx
movl %esi, %r14d
movq 0x8(%rdi), %rax
xorpd %xmm1, %xmm1
xorl %r15d, %r15d
movsd %xmm0, 0x10(%rsp)
cmpl $0x0, (%rax,%r15,4)
xorpd %xmm4, %xmm4
jle 0x43b7d
movsd %xmm2, (%rsp)
movsd %xmm1, 0x8(%rsp)
xorl %r12d, %r12d
movsd %xmm4, 0x20(%rsp)
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rcx
movq (%rax,%r15,8), %rax
movsd (%rax,%r12,8), %xmm0
movsd %xmm0, 0x18(%rsp)
movq (%rcx,%r15,8), %rax
movsd (%rax,%r12,8), %xmm1
movq 0x28(%rbx), %rax
movq (%rax,%r15,8), %rax
movsd (%rax,%r12,8), %xmm2
movapd %xmm3, %xmm0
callq 0x8dd8e
movsd 0x20(%rsp), %xmm4
movsd 0x10(%rsp), %xmm3
mulsd 0x18(%rsp), %xmm0
addsd %xmm0, %xmm4
incq %r12
movq 0x8(%rbx), %rax
movslq (%rax,%r15,4), %rcx
cmpq %rcx, %r12
jl 0x43b0b
movl (%rbx), %ecx
movsd 0x8(%rsp), %xmm1
movsd (%rsp), %xmm2
movapd %xmm4, %xmm0
cmpq %r14, %r15
je 0x43b8a
movapd %xmm2, %xmm0
addsd %xmm4, %xmm1
incq %r15
movslq %ecx, %rdx
movapd %xmm0, %xmm2
cmpq %rdx, %r15
jl 0x43aee
divsd %xmm1, %xmm0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movsd 0x62157(%rip), %xmm0    # 0xa5d10
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mixture.c
// Function: free_mixture
void free_mixture(Mixtureptr mix)
{
	/*!Last Changed 26.01.2005*/
	safe_free(mix->numberofmodels);
	safe_free(mix->classpriors);
	free_2d((void**)mix->mixtureprob, mix->classcount);
	free_2d((void**)mix->mixturemeans, mix->classcount);
	free_2d((void**)mix->mixturedeviations, mix->classcount);
	safe_free(mix);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x3a180
movq 0x10(%rbx), %rdi
callq 0x3a180
movq 0x18(%rbx), %rdi
movl (%rbx), %esi
callq 0x3a14b
movq 0x20(%rbx), %rdi
movl (%rbx), %esi
callq 0x3a14b
movq 0x28(%rbx), %rdi
movl (%rbx), %esi
callq 0x3a14b
movq %rbx, %rdi
popq %rbx
jmp 0x3a180
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mixture.c
// Function: generate_data_from_mixture_file
double** generate_data_from_mixture_file(char* modeldefinition, int datasize)
{
	/*!Last Changed 26.01.2005*/
	Mixtureptr mix;
	double** data;
	mix = read_mixture_from_file(modeldefinition);
 data = generate_data_from_mixture_model(mix, datasize);
	free_mixture(mix);
	return data;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
callq 0x43774
movq %rax, %r14
movq %rax, %rdi
movl %ebx, %esi
callq 0x43c28
movq %rax, %rbx
movq %r14, %rdi
callq 0x43bba
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mixture.c
// Function: generate_data_from_mixture_model
double** generate_data_from_mixture_model(Mixtureptr mix, int datasize)
{
	/*!Last Changed 26.01.2005*/
	int i, whichclass, whichmodel;
	double** data, prob;
 data = (double**) safemalloc_2d(sizeof(double*), sizeof(double), datasize, 2, "generate_data_from_mixture_model", 5); 
	for (i = 0; i < datasize; i++)
	 {
		 prob = produce_random_value(0, 1);
   whichclass = find_bin(mix->classpriors, mix->classcount, prob);
			data[i][1] = whichclass;
			prob = produce_random_value(0, 1);
   whichmodel = find_bin(mix->mixtureprob[whichclass], mix->numberofmodels[whichclass], prob);
			data[i][0] = produce_normal_value(mix->mixturemeans[whichclass][whichmodel], mix->mixturedeviations[whichclass][whichmodel]);
	 }
	return data;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x66734(%rip), %r8      # 0xaa373
movl $0x8, %edi
movl $0x8, %esi
movl %ebp, %edx
movl $0x2, %ecx
movl $0x5, %r9d
callq 0x3a3ac
movq %rax, %r14
testl %ebp, %ebp
jle 0x43cf7
movl %ebp, %r15d
xorl %r12d, %r12d
xorps %xmm0, %xmm0
movsd 0x618a9(%rip), %xmm1    # 0xa5520
callq 0x3af6a
movq 0x10(%rbx), %rdi
movl (%rbx), %esi
callq 0x37fdb
movl %eax, %ebp
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq (%r14,%r12,8), %rax
movsd %xmm0, 0x8(%rax)
xorpd %xmm0, %xmm0
movsd 0x6187b(%rip), %xmm1    # 0xa5520
callq 0x3af6a
movq 0x8(%rbx), %rax
movq 0x18(%rbx), %rcx
movslq %ebp, %r13
movq (%rcx,%r13,8), %rdi
movl (%rax,%r13,4), %esi
callq 0x37fdb
movq 0x20(%rbx), %rcx
movq 0x28(%rbx), %rdx
movq (%rcx,%r13,8), %rcx
cltq
movsd (%rcx,%rax,8), %xmm0
movq (%rdx,%r13,8), %rcx
movsd (%rcx,%rax,8), %xmm1
callq 0x8f4b0
movq (%r14,%r12,8), %rax
movsd %xmm0, (%rax)
incq %r12
cmpq %r12, %r15
jne 0x43c6c
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: copy_of_Mlpnetwork
Mlpnetwork copy_of_Mlpnetwork(Mlpnetwork source)
{
	/*!Last Changed 29.06.2005*/
 Mlpnetwork dest;
	int li;
	dest = allocate_mlpnnetwork(source.P);
	dest.P = source.P;
	for (li = 0; li < source.P.layernum + 1; li++)
		 matrix_identical(&(dest.weights[li]), source.weights[li]);
	return dest;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x90, %rsp
movq %rdi, %rbx
leaq 0xc8(%rsp), %r15
leaq 0x8(%rdi), %r12
movl $0x12, %ecx
movq %rsp, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
xorl %edi, %edi
xorl %esi, %esi
callq 0x452e5
movq %rax, %r14
movq %rax, (%rbx)
movl $0x90, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x4310
movl 0x54(%r15), %r15d
testl %r15d, %r15d
js 0x43d92
leaq 0xc0(%rsp), %rax
movq (%rax), %r12
shlq $0x4, %r15
addq $0x10, %r15
xorl %r13d, %r13d
leaq (%r14,%r13), %rdi
movq (%r12,%r13), %rsi
movq 0x8(%r12,%r13), %rdx
callq 0x406d5
addq $0x10, %r13
cmpq %r13, %r15
jne 0x43d77
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: mlp_network_train_general
Mlpnetwork mlp_network_train_general(matrix train, matrix cv, Mlpparametersptr mlpparams)
{
	/*!Last Changed 26.06.2005*/
	mlpparams->inputnum = train.row;
	mlpparams->trnum = train.row;
	mlpparams->cvnum = cv.row;
 if (current_dataset->classno == 0)
  	return mlpn_general(train, cv, mlpparams, REGRESSION);
	else
  	return mlpn_general(train, cv, mlpparams, CLASSIFICATION);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl %esi, 0x8(%r9)
movl %esi, 0x10(%r9)
movl %ecx, 0xc(%r9)
leaq 0x91a5e(%rip), %rax     # 0xd5870
movq (%rax), %rax
xorl %esi, %esi
cmpl $0x0, 0x10(%rax)
sete %sil
movl %esi, (%rsp)
callq 0x43e30
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: testMlpnNetwork_cls
int testMlpnNetwork_cls(matrix Data, Mlpnetwork N, double* loglikelihood)
{
	/*!Last Changed 22.05.2005 fixed class results*/
	/*!Last Changed 09.02.2004 Oya*/
	int k, res, performance = 0;
	double prob;
	matrix testY;
	*loglikelihood = 0;
	for (k = 0; k < Data.row; k++)
	 {
		 testMlpnInput_cls(Data.values[k], &testY, N, &res, &prob);
			if (prob != 0)
				 *loglikelihood += log2(prob);
   performance += res;				 
			matrix_free(testY);
	 }
	return performance;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %r15
movq $0x0, (%rdx)
testl %r15d, %r15d
jle 0x44450
movq %rdx, %rbx
movq %rsi, %r14
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
xorl %r12d, %r12d
leaq 0xa0(%rsp), %r13
xorl %ebp, %ebp
movq (%r14,%r12,8), %rax
movl $0x13, %ecx
movq %rsp, %rdi
leaq 0xf0(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rax, %rdi
leaq 0xa8(%rsp), %rsi
leaq 0x9c(%rsp), %rdx
movq %r13, %rcx
callq 0x463c2
movsd 0xa0(%rsp), %xmm0
ucomisd 0x618ef(%rip), %xmm0    # 0xa5d08
jne 0x4441d
jnp 0x4442a
callq 0x39bdc
addsd (%rbx), %xmm0
movsd %xmm0, (%rbx)
addl 0x9c(%rsp), %ebp
movq 0xa8(%rsp), %rdi
movq 0xb0(%rsp), %rsi
callq 0x3ed51
incq %r12
cmpq %r12, %r15
jne 0x443d6
jmp 0x44452
xorl %ebp, %ebp
movl %ebp, %eax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: test_mlp_network
double test_mlp_network(Mlpnetwork neuralnetwork, matrix test)
{
	/*!Last Changed 26.06.2005*/
	double loglikelihood;
	int performance;
	if (current_dataset->classno == 0)
	  return testMlpnNetwork_reg(test, neuralnetwork) / test.row;
	else
		{
	  performance = testMlpnNetwork_cls(test, neuralnetwork, &loglikelihood);
			return 100.0 * ((test.row - performance + 0.0) / test.row);
		}
}

// Assembly:
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %rax
movq %rdi, %rbx
leaq 0xb0(%rsp), %rsi
leaq 0x913ed(%rip), %rcx     # 0xd5870
movq (%rcx), %rcx
cmpl $0x0, 0x10(%rcx)
je 0x444c2
movl $0x13, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x98(%rsp), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x44398
cvtsi2sd %ebx, %xmm1
subl %eax, %ebx
cvtsi2sd %ebx, %xmm0
divsd %xmm1, %xmm0
mulsd 0x618e0(%rip), %xmm0    # 0xa5da0
jmp 0x444e0
movl $0x13, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x444e9
cvtsi2sd %ebx, %xmm1
divsd %xmm1, %xmm0
addq $0xa0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: number_of_weights_in_mlp_network
int number_of_weights_in_mlp_network(Mlpnetwork N)
{
	/*!Last Changed 18.06.2005*/
	int result = 0, i;
	for (i = 0; i <= N.P.layernum; i++)
		 result += N.weights[i].row * N.weights[i].col;
	return result;
}

// Assembly:
movl 0x64(%rsp), %ecx
testl %ecx, %ecx
js 0x447a2
leaq 0x8(%rsp), %rax
movq (%rax), %rdx
shlq $0x4, %rcx
addq $0x10, %rcx
xorl %esi, %esi
xorl %eax, %eax
movl 0x4(%rdx,%rsi), %edi
imull (%rdx,%rsi), %edi
addl %edi, %eax
addq $0x10, %rsi
cmpq %rsi, %rcx
jne 0x4478e
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: calculate_hidden_values
void calculate_hidden_values(double *inputdata, matrix weight, matrixptr hidden)
{
	/*!Last Changed 09.02.2004 Oya*/
	int i, hi;
	double sum;	
	for (hi = 0; hi < weight.row; hi++)
  {
		 sum = weight.values[hi][0];
		 for (i = 1; i < weight.col; i++)
    {
				 sum = sum + weight.values[hi][i] * inputdata[i - 1];
		  }
		 hidden->values[0][hi] = sigmoid(sum);
	 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, (%rsp)
movq %rsi, %r15
testl %r15d, %r15d
jle 0x44d99
movq %rdx, %r14
movq %rdi, %r12
movq %r15, %r13
shrq $0x20, %r13
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movq %r13, %rbp
decq %rbp
xorl %ebx, %ebx
movq (%r14,%rbx,8), %rax
movsd (%rax), %xmm0
cmpl $0x2, %r13d
jl 0x44d7c
xorl %ecx, %ecx
movsd 0x8(%rax,%rcx,8), %xmm1
mulsd (%r12,%rcx,8), %xmm1
addsd %xmm1, %xmm0
incq %rcx
cmpq %rcx, %rbp
jne 0x44d64
callq 0x55a80
movq (%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movsd %xmm0, (%rax,%rbx,8)
incq %rbx
cmpq %r15, %rbx
jne 0x44d54
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: calculate_output_values_reg
void calculate_output_values_reg(double *inputdata, matrix weight, matrixptr output)
{	
	/*!Last Changed 16.03.2004 Oya*/
	int i, hi;
	double sum;	
	for (hi=0; hi<weight.row; hi++)
  {
		 sum = weight.values[hi][0];
		 for (i=1; i<weight.col; i++)
    {
		 		sum = sum + weight.values[hi][i] * inputdata[i-1];
		  }
		 output->values[0][hi] = sum;
	 }
}

// Assembly:
testl %esi, %esi
jle 0x4521d
movq %rsi, %rax
shrq $0x20, %rax
movq 0x8(%rcx), %rcx
movq (%rcx), %rcx
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq %rax, %r8
decq %r8
xorl %r9d, %r9d
movq (%rdx,%r9,8), %r10
movsd (%r10), %xmm0
cmpl $0x2, %eax
jl 0x4520f
xorl %r11d, %r11d
movsd 0x8(%r10,%r11,8), %xmm1
mulsd (%rdi,%r11,8), %xmm1
addsd %xmm1, %xmm0
incq %r11
cmpq %r11, %r8
jne 0x451f6
movsd %xmm0, (%rcx,%r9,8)
incq %r9
cmpq %rsi, %r9
jne 0x451e5
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: softmax_with_calculation_of_outputs
void softmax_with_calculation_of_outputs(double *inputdata, matrix weights, matrixptr Y)
{
	/*!Last Changed 09.02.2004 Oya*/
	int i, j;
	double sum;
	sum = 0;
	for (i = 0; i < Y->col; i++)
	 {
 		Y->values[0][i] = weights.values[i][0];     /*for bias term*/
 		for (j = 1; j < weights.col; j++)
  			Y->values[0][i] = Y->values[0][i] + weights.values[i][j] * inputdata[j - 1];
 		Y->values[0][i] = exp(Y->values[0][i]);
 		sum = sum + Y->values[0][i];
	 }
	for (i = 0; i < Y->col; i++)
 		Y->values[0][i] = Y->values[0][i] / sum;
}

// Assembly:
cmpl $0x0, 0x4(%rcx)
jle 0x452e4
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
shrq $0x20, %r15
movq 0x8(%rcx), %rax
movq (%rax), %rax
movq %r15, %r13
decq %r13
xorpd %xmm1, %xmm1
xorl %ebp, %ebp
movq (%r14,%rbp,8), %rcx
movsd (%rcx), %xmm0
movsd %xmm0, (%rax,%rbp,8)
cmpl $0x2, %r15d
movsd %xmm1, (%rsp)
jl 0x4528d
xorl %edx, %edx
movsd 0x8(%rcx,%rdx,8), %xmm1
mulsd (%r12,%rdx,8), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rbp,8)
incq %rdx
cmpq %rdx, %r13
jne 0x45270
callq 0x4060
movq 0x8(%rbx), %rax
movq (%rax), %rax
movsd %xmm0, (%rax,%rbp,8)
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
incq %rbp
movslq 0x4(%rbx), %rcx
cmpq %rcx, %rbp
jl 0x45256
testl %ecx, %ecx
jle 0x452d6
movq 0x8(%rbx), %rax
movq (%rax), %rax
xorl %edx, %edx
movsd (%rax,%rdx,8), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, (%rax,%rdx,8)
incq %rdx
cmpq %rdx, %rcx
jne 0x452c0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: allocate_weights
matrixptr allocate_weights(Mlpparameters P, INITIALIZATION_TYPE inittype, int initvalue)
{
 /*!Last Changed 09.02.2004 Oya*/
 /*if inittype is 0 then assign random values, then init value is useless*/
 /*else if inittype is 1 assign initvalue*/
 /*else no initialization*/
 matrixptr weights;
 int i; /*allocations*/
 weights = (matrixptr) safemalloc ((P.layernum + 1) * sizeof(matrix), "allocate_weights", 3);
 for (i = 0; i < P.layernum; i++)
  {
   if (i == 0)
     weights[i] = matrix_alloc(P.hidden[i], P.dimnum + 1);
   else
     weights[i] = matrix_alloc(P.hidden[i], P.hidden[i - 1] + 1);
  }
 if (P.layernum == 0)
   weights[P.layernum] = matrix_alloc(P.classnum, P.dimnum + 1);
 else
   weights[P.layernum] = matrix_alloc(P.classnum, P.hidden[P.layernum - 1] + 1);
 for (i = 0; i <= P.layernum; i++)
   if (inittype == RANDOM)
     assignTwoDimRandomWeights(&weights[i], P.randrange);
   else 
     if (inittype == INITIAL_VALUE)
       initialize_matrix(&weights[i], initvalue); 
 return weights;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, 0x8(%rsp)
movl %edi, %ebx
leaq 0x50(%rsp), %rax
movslq 0x54(%rax), %r15
leal 0x1(%r15), %eax
movl %eax, 0x14(%rsp)
movslq %eax, %rdi
shlq $0x4, %rdi
leaq 0x6507c(%rip), %rsi     # 0xaa394
movl $0x3, %edx
callq 0x3a0e1
movq %rax, %r14
movq %r15, (%rsp)
testq %r15, %r15
jle 0x4538e
leaq 0x50(%rsp), %rax
movl 0x4(%rax), %r15d
movl 0x48(%rax), %r12d
incl %r15d
movq (%rsp), %rax
leaq (,%rax,4), %rbp
xorl %r13d, %r13d
testq %r13, %r13
je 0x45373
leaq 0x50(%rsp), %rax
movl 0x44(%rax,%r13), %esi
movl 0x48(%rax,%r13), %edi
incl %esi
callq 0x3d79d
movq %rax, (%r14,%r13,4)
movq %rdx, 0x8(%r14,%r13,4)
jmp 0x45385
movl %r12d, %edi
movl %r15d, %esi
callq 0x3d79d
movq %rax, (%r14)
movq %rdx, 0x8(%r14)
addq $0x4, %r13
cmpq %r13, %rbp
jne 0x4534d
movq (%rsp), %r13
leaq 0x50(%rsp), %r12
testl %r13d, %r13d
je 0x453c3
movl (%r12), %edi
movl 0x44(%r12,%r13,4), %esi
movq %r13, %r15
shlq $0x4, %r15
incl %esi
callq 0x3d79d
movq %rax, (%r14,%r15)
movq %rdx, 0x8(%r14,%r15)
testl %r13d, %r13d
jns 0x453da
jmp 0x45429
movl (%r12), %edi
movl 0x4(%r12), %esi
incl %esi
callq 0x3d79d
movq %rax, (%r14)
movq %rdx, 0x8(%r14)
cvtsi2sdl 0x8(%rsp), %xmm0
movsd %xmm0, (%rsp)
movsd 0x28(%r12), %xmm0
movsd %xmm0, 0x8(%rsp)
movl 0x14(%rsp), %r12d
movq %r14, %r15
cmpl $0x1, %ebx
je 0x45413
testl %ebx, %ebx
jne 0x45420
movq %r15, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x3f61d
jmp 0x45420
movq %r15, %rdi
movsd (%rsp), %xmm0
callq 0x3f41d
addq $0x10, %r15
decq %r12
jne 0x453fa
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: reallocate_weights
void reallocate_weights(Mlpparameters P, matrixptr weights, int hiddenindex, int count, INITIALIZATION_TYPE inittype, int initvalue)
{
	/*!Last Changed 17.04.2007*/
	int colcount, rowcount;
	if (hiddenindex == 0)
		 colcount = P.dimnum + 1;
	else
		 colcount = P.hidden[hiddenindex - 1] + 1;
	if (hiddenindex != P.layernum - 1)
		 rowcount = P.hidden[hiddenindex + 1];
 else
		 rowcount = P.classnum;
	weights[hiddenindex] = reallocate_matrix(weights[hiddenindex], P.hidden[hiddenindex] + count, colcount);
 weights[hiddenindex + 1] = reallocate_matrix(weights[hiddenindex + 1], rowcount, P.hidden[hiddenindex] + count + 1);
	if (inittype == RANDOM)
	 {
   assign_partial_random_weights(&weights[hiddenindex], P.hidden[hiddenindex], P.hidden[hiddenindex] + count - 1, 0, colcount - 1, P.randrange);
	  assign_partial_random_weights(&weights[hiddenindex + 1], 0, rowcount - 1, P.hidden[hiddenindex] + 1, P.hidden[hiddenindex] + count, P.randrange);
	 }
	else
		 if (inittype == INITIAL_VALUE)
		  {
     initialize_partial_matrix(&weights[hiddenindex], P.hidden[hiddenindex], P.hidden[hiddenindex] + count - 1, 0, colcount - 1, initvalue);
	    initialize_partial_matrix(&weights[hiddenindex + 1], 0, rowcount - 1, P.hidden[hiddenindex] + 1, P.hidden[hiddenindex] + count, initvalue);
			 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, (%rsp)
movl %ecx, %r12d
movl %edx, %r14d
leaq 0x50(%rsp), %r9
movl %esi, %eax
subl $0x1, %eax
leaq 0x54(%rsp), %rcx
cltq
leaq 0x98(%rsp,%rax,4), %rax
cmovbq %rcx, %rax
movl (%rax), %r8d
movl 0x50(%rcx), %eax
decl %eax
cmpl %esi, %eax
movslq %esi, %rax
leaq 0x9c(%rsp,%rax,4), %rcx
movl -0x4(%rcx), %ebx
movq %rcx, %rdx
cmoveq %r9, %rdx
movq %r8, 0x10(%rsp)
leal 0x1(%r8), %ecx
movl (%rdx), %ebp
shlq $0x4, %rax
leaq (%rdi,%rax), %rdx
movq %rdx, 0x8(%rsp)
leal (%rbx,%r14), %r15d
leaq (%rdi,%rax), %r13
addq $0x10, %r13
movq -0x10(%r13), %rdi
movq -0x8(%r13), %rsi
movl %r15d, %edx
callq 0x3f6b9
movq %rax, -0x10(%r13)
movq %rdx, -0x8(%r13)
leal (%rbx,%r14), %ecx
incl %ecx
movq (%r13), %rdi
movq 0x8(%r13), %rsi
movl %ebp, %edx
callq 0x3f6b9
movq %rax, (%r13)
movq %rdx, 0x8(%r13)
cmpl $0x1, %r12d
je 0x45545
testl %r12d, %r12d
jne 0x4558e
leal -0x1(%r15), %edx
leaq 0x50(%rsp), %rax
movsd 0x28(%rax), %xmm0
movsd %xmm0, (%rsp)
movq 0x8(%rsp), %rdi
movl %ebx, %esi
xorl %ecx, %ecx
movq 0x10(%rsp), %r8
callq 0x3f55d
decl %ebp
incl %ebx
movq %r13, %rdi
xorl %esi, %esi
movl %ebp, %edx
movl %ebx, %ecx
movl %r15d, %r8d
movsd (%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3f55d
leal -0x1(%r15), %edx
cvtsi2sdl (%rsp), %xmm0
movsd %xmm0, (%rsp)
movq 0x8(%rsp), %rdi
movl %ebx, %esi
xorl %ecx, %ecx
movq 0x10(%rsp), %r8
callq 0x3f359
decl %ebp
incl %ebx
movq %r13, %rdi
xorl %esi, %esi
movl %ebp, %edx
movl %ebx, %ecx
movl %r15d, %r8d
movsd (%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3f359
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: allocate_hiddens
matrixptr allocate_hiddens(Mlpparameters P)
{
	/*!Last Changed 09.02.2004 Oya*/
	matrixptr hiddens;
	int i;	 
	/*allocations*/
	if (P.layernum > 0)
	 {
	 	hiddens = (matrixptr) safemalloc (P.layernum * sizeof(matrix), "allocate_hiddens", 4);
	 	for (i = 0; i < P.layernum; i++)
	  		hiddens[i] = matrix_alloc(1, P.hidden[i]);
		 return hiddens;
	 }
	else
	 	return NULL;	
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movslq 0x84(%rsp), %r14
testq %r14, %r14
jle 0x455fc
leaq 0x30(%rsp), %r15
movq %r14, %rdi
shlq $0x4, %rdi
leaq 0x64de0(%rip), %rsi     # 0xaa3a5
movl $0x4, %edx
callq 0x3a0e1
movq %rax, %rbx
shlq $0x2, %r14
xorl %r12d, %r12d
movl 0x48(%r15,%r12), %esi
movl $0x1, %edi
callq 0x3d79d
movq %rax, (%rbx,%r12,4)
movq %rdx, 0x8(%rbx,%r12,4)
addq $0x4, %r12
cmpq %r12, %r14
jne 0x455d9
jmp 0x455fe
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: free_weights
void free_weights(matrixptr weights, int layer)
{
	/*!Last Changed 09.02.2004 Oya*/
	int i;	
	for (i = 0; i < (layer + 1); i++)
		 matrix_free(weights[i]);
	safe_free(weights);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
testl %esi, %esi
js 0x45685
movl %esi, %r14d
shlq $0x4, %r14
addq $0x10, %r14
xorl %r15d, %r15d
movq (%rbx,%r15), %rdi
movq 0x8(%rbx,%r15), %rsi
callq 0x3ed51
addq $0x10, %r15
cmpq %r15, %r14
jne 0x4566e
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x3a180
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: free_hiddens
void free_hiddens(matrixptr hiddens, int layer)
{
	/*!Last Changed 09.02.2004 Oya*/
	int i;	
	if (layer > 0)
	 {	
 		for (i = 0; i < layer; i++)
 			 matrix_free(hiddens[i]);
 		safe_free(hiddens);
	 }
}

// Assembly:
testl %esi, %esi
jle 0x456cc
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl %esi, %r14d
shlq $0x4, %r14
xorl %r15d, %r15d
movq (%rbx,%r15), %rdi
movq 0x8(%rbx,%r15), %rsi
callq 0x3ed51
addq $0x10, %r15
cmpq %r15, %r14
jne 0x456a8
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x3a180
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: calculate_error_values_cls
double calculate_error_values_cls(double outputclass, matrix output, matrixptr output_error)
{
	/*!Last Changed 09.02.2004 Oya*/
	int i;
	double sqrderror = 0;
	/*for error in classification*/
	for (i=0; i<output.col; i++)
	 {
 		output_error->values[0][i] = equal((int)outputclass,i) - output.values[0][i];
 		sqrderror = sqrderror + (-1 * equal((int)outputclass,i) * log(output.values[0][i]));
	 }
	sqrderror = sqrderror / output.col;
	return sqrderror;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
shrq $0x20, %rbx
testl %ebx, %ebx
jle 0x45761
movq %rdx, %r14
movq %rsi, %r15
cvttsd2si %xmm0, %ebp
xorpd %xmm1, %xmm1
xorl %r12d, %r12d
movsd %xmm1, 0x8(%rsp)
movl %ebp, %edi
movl %r12d, %esi
callq 0x39b00
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq (%r15), %rax
subsd (%rax,%r12,8), %xmm0
movq 0x8(%r14), %rax
movq (%rax), %rax
movsd %xmm0, (%rax,%r12,8)
movl %ebp, %edi
movl %r12d, %esi
callq 0x39b00
negl %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, (%rsp)
movq (%r15), %rax
movsd (%rax,%r12,8), %xmm0
callq 0x4160
movsd 0x8(%rsp), %xmm1
mulsd (%rsp), %xmm0
addsd %xmm0, %xmm1
incq %r12
cmpq %r12, %rbx
jne 0x456f5
jmp 0x45765
xorpd %xmm1, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: calculate_error_values_reg
double calculate_error_values_reg(double outputdata, matrix output, matrixptr output_error)
{	
	/*!Last Changed 16.03.2004 Oya*/
	int i;
	double sqrderror = 0;
	/*for error in regression*/
	for (i=0; i<output.col; i++)
  {
		 output_error->values[0][i] = outputdata - output.values[0][i];
		 sqrderror = sqrderror + output_error->values[0][i] * output_error->values[0][i];
	 }
	sqrderror = sqrderror / output.col;
	return sqrderror;
}

// Assembly:
shrq $0x20, %rdi
testl %edi, %edi
jle 0x457b9
movq (%rsi), %rax
movq 0x8(%rdx), %rcx
movq (%rcx), %rcx
xorpd %xmm1, %xmm1
xorl %edx, %edx
movapd %xmm0, %xmm2
subsd (%rax,%rdx,8), %xmm2
movsd %xmm2, (%rcx,%rdx,8)
mulsd %xmm2, %xmm2
addsd %xmm2, %xmm1
incq %rdx
cmpq %rdx, %rdi
jne 0x45799
jmp 0x457bd
xorpd %xmm1, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %edi, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: calculate_error_values_autoencoder
double calculate_error_values_autoencoder(double* outputdata, matrix output, matrixptr output_error)
{
	int i;
	double sqrderror = 0;
	for (i = 0; i < output.col; i++)
  {
   output_error->values[0][i] = outputdata[i] - output.values[0][i];
   sqrderror = sqrderror + output_error->values[0][i] * output_error->values[0][i];
  }
	sqrderror = sqrderror / output.col;
	return sqrderror;
}

// Assembly:
shrq $0x20, %rsi
testl %esi, %esi
jle 0x45806
movq (%rdx), %rax
movq 0x8(%rcx), %rcx
movq (%rcx), %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
movsd (%rdi,%rdx,8), %xmm1
subsd (%rax,%rdx,8), %xmm1
movsd %xmm1, (%rcx,%rdx,8)
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rdx
cmpq %rdx, %rsi
jne 0x457e5
jmp 0x4580a
xorpd %xmm0, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
divsd %xmm1, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: update_weights
void update_weights(matrixptr weights, matrixptr dweights, matrixptr prevWeights, Mlpparameters P)
{
	/*!Last Changed 23.06.2005 added weight decay*/
	/*!Last Changed 09.02.2004 Oya*/
	int li, i, j;	
	for (li=0; li<(P.layernum+1); li++)
 		for (i=0; i<weights[li].row; i++)
  			for (j=0; j<weights[li].col; j++)
  					weights[li].values[i][j] = weights[li].values[i][j] + dweights[li].values[i][j] + P.alpha * prevWeights[li].values[i][j] + P.weightdecay * P.decayalpha * P.eta * weights[li].values[i][j]; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl 0x8c(%rsp), %eax
testl %eax, %eax
js 0x45b9d
leaq 0x38(%rsp), %rcx
movsd 0x30(%rcx), %xmm0
cvtsi2sdl 0x58(%rcx), %xmm1
mulsd 0x60(%rcx), %xmm1
mulsd 0x38(%rcx), %xmm1
incq %rax
xorl %ecx, %ecx
movq %rcx, %rbx
shlq $0x4, %rbx
movslq (%rdi,%rbx), %r8
testq %r8, %r8
jle 0x45b91
leaq (%rdi,%rbx), %r9
movl 0x4(%r9), %r10d
leaq (%rsi,%rbx), %r11
addq $0x8, %r11
addq %rdx, %rbx
addq $0x8, %rbx
xorl %r14d, %r14d
testl %r10d, %r10d
jle 0x45b89
movq 0x8(%r9), %r15
movq (%r15,%r14,8), %r15
movq (%r11), %r12
movq (%r12,%r14,8), %r12
movq (%rbx), %r13
movq (%r13,%r14,8), %r13
xorl %ebp, %ebp
movsd (%r15,%rbp,8), %xmm2
movsd (%r12,%rbp,8), %xmm3
addsd %xmm2, %xmm3
movsd (%r13,%rbp,8), %xmm4
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm4
mulsd %xmm1, %xmm2
addsd %xmm4, %xmm2
movsd %xmm2, (%r15,%rbp,8)
incq %rbp
cmpq %rbp, %r10
jne 0x45b54
incq %r14
cmpq %r8, %r14
jne 0x45b36
incq %rcx
cmpq %rax, %rcx
jne 0x45b0c
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: testMlpnInput_reg
double testMlpnInput_reg(double *Test, matrix* testY, Mlpnetwork N, matrixptr output_error)
{
	/*!Last Changed 16.03.2004 Oya*/
	double sqrderror;
	matrixptr testH;
	int li;			
	*testY = matrix_alloc(1, N.P.classnum);
	testH = allocate_hiddens(N.P);
	/*calculate hidden layers*/
	for (li=0; li<N.P.layernum; li++)
	 {
 		if (li==0)
  			calculate_hidden_values(Test, N.weights[0], &testH[0]);
	 	else
	  		calculate_hidden_values(testH[li-1].values[0], N.weights[li], &testH[li]);
	 }
	/*calculate outputs*/
	if (N.P.layernum == 0)
   calculate_output_values_reg(Test, N.weights[N.P.layernum], testY);
	else
		 calculate_output_values_reg(testH[N.P.layernum-1].values[0], N.weights[N.P.layernum], testY);
	/*calculate error*/
	sqrderror = calculate_error_values_reg(Test[N.P.dimnum], *testY, output_error);
	free_hiddens(testH, N.P.layernum);
	return sqrderror;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, %rbx
movq %rdi, %r12
leaq 0xe8(%rsp), %r14
movl (%r14), %esi
movl $0x1, %edi
callq 0x3d79d
movq %rax, (%rbx)
movq %rbx, 0x8(%rsp)
movq %rdx, 0x8(%rbx)
leaq 0x18(%rsp), %r13
movl $0x90, %edx
movq %r13, %rdi
movq %r14, %rsi
callq 0x4310
movslq 0x54(%r13), %rbx
testq %rbx, %rbx
jle 0x4666b
movq %rbx, %rdi
shlq $0x4, %rdi
leaq 0x63d71(%rip), %rsi     # 0xaa3a5
movl $0x4, %edx
callq 0x3a0e1
movq %rax, %r14
shlq $0x2, %rbx
xorl %r15d, %r15d
movl 0x60(%rsp,%r15), %esi
movl $0x1, %edi
callq 0x3d79d
movq %rax, (%r14,%r15,4)
movq %rdx, 0x8(%r14,%r15,4)
addq $0x4, %r15
cmpq %r15, %rbx
jne 0x46648
jmp 0x4666e
xorl %r14d, %r14d
leaq 0xe0(%rsp), %rax
movslq 0x5c(%rax), %rbp
testq %rbp, %rbp
jle 0x466c3
movq (%rax), %rbx
movq %rbp, %r13
shlq $0x4, %r13
xorl %r15d, %r15d
testq %r15, %r15
je 0x466a8
leaq (%r14,%r15), %rcx
movq -0x8(%r14,%r15), %rax
movq (%rax), %rdi
movq (%rbx,%r15), %rsi
movq 0x8(%rbx,%r15), %rdx
jmp 0x466b5
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r12, %rdi
movq %r14, %rcx
callq 0x44d21
addq $0x10, %r15
cmpq %r15, %r13
jne 0x4668c
testl %ebp, %ebp
je 0x466e3
movq %rbp, %rax
shlq $0x4, %rax
movq -0x8(%r14,%rax), %rcx
movq (%rcx), %rdi
leaq 0xe0(%rsp), %rcx
addq (%rcx), %rax
jmp 0x466f1
leaq 0xe0(%rsp), %rax
movq (%rax), %rax
movq %r12, %rdi
movq 0x8(%rsp), %rbx
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rcx
callq 0x451c4
movq (%rbx), %rax
shrq $0x20, %rax
testl %eax, %eax
jle 0x4675b
leaq 0xe0(%rsp), %rcx
movslq 0xc(%rcx), %rcx
movsd (%r12,%rcx,8), %xmm0
movq 0x8(%rbx), %rcx
movq (%rcx), %rcx
movq 0x10(%rsp), %rdx
movq 0x8(%rdx), %rdx
movq (%rdx), %rdx
xorpd %xmm2, %xmm2
xorl %esi, %esi
movapd %xmm0, %xmm1
subsd (%rcx,%rsi,8), %xmm1
movsd %xmm1, (%rdx,%rsi,8)
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm2
incq %rsi
cmpq %rsi, %rax
jne 0x4673b
jmp 0x4675f
xorpd %xmm2, %xmm2
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm0, %xmm2
movsd %xmm2, 0x8(%rsp)
movq %r14, %rdi
movl %ebp, %esi
callq 0x45692
movsd 0x8(%rsp), %xmm0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: testMlpnInput_autoencoder
double testMlpnInput_autoencoder(double *Test, matrix* testY, Mlpnetwork N, matrixptr output_error)
{
	double sqrderror;
	matrixptr testH;
	int li;
	*testY = matrix_alloc(1, N.P.classnum);
	testH = allocate_hiddens(N.P);
	/*calculate hidden layers*/
	for (li = 0; li < N.P.layernum; li++)
  {
   if (li == 0)
     calculate_hidden_values(Test, N.weights[0], &testH[0]);
   else
     calculate_hidden_values(testH[li-1].values[0], N.weights[li], &testH[li]);
  }
	/*calculate outputs*/
 calculate_output_values_reg(testH[N.P.layernum-1].values[0], N.weights[N.P.layernum], testY);
	/*calculate error*/
	sqrderror = calculate_error_values_autoencoder(Test, *testY, output_error);
	free_hiddens(testH, N.P.layernum);
	return sqrderror;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xe0(%rsp), %rbp
leaq 0xe8(%rsp), %r15
movl (%r15), %esi
movl $0x1, %edi
callq 0x3d79d
movq %rax, (%r14)
movq %r14, 0x8(%rsp)
movq %rdx, 0x8(%r14)
leaq 0x18(%rsp), %r13
movl $0x90, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x4310
movslq 0x54(%r13), %r14
testq %r14, %r14
jle 0x4683a
movq %r14, %rdi
shlq $0x4, %rdi
leaq 0x63ba2(%rip), %rsi     # 0xaa3a5
movl $0x4, %edx
callq 0x3a0e1
movq %rax, %r15
shlq $0x2, %r14
xorl %r12d, %r12d
movl 0x60(%rsp,%r12), %esi
movl $0x1, %edi
callq 0x3d79d
movq %rax, (%r15,%r12,4)
movq %rdx, 0x8(%r15,%r12,4)
addq $0x4, %r12
cmpq %r12, %r14
jne 0x46817
jmp 0x4683d
xorl %r15d, %r15d
movslq 0x5c(%rbp), %r14
movq (%rbp), %rbp
testq %r14, %r14
jle 0x4688d
movq %r14, %r13
shlq $0x4, %r13
xorl %r12d, %r12d
testq %r12, %r12
je 0x46871
leaq (%r15,%r12), %rcx
movq -0x8(%r15,%r12), %rax
movq (%rax), %rdi
movq (%rbp,%r12), %rsi
movq 0x8(%rbp,%r12), %rdx
jmp 0x4687f
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
movq %rbx, %rdi
movq %r15, %rcx
callq 0x44d21
addq $0x10, %r12
cmpq %r12, %r13
jne 0x46854
movq %r14, %rax
shlq $0x4, %rax
movq -0x8(%r15,%rax), %rcx
movq (%rcx), %rdi
movq (%rbp,%rax), %rsi
movq 0x8(%rbp,%rax), %rdx
movq 0x8(%rsp), %r12
movq %r12, %rcx
callq 0x451c4
movq (%r12), %rax
shrq $0x20, %rax
testl %eax, %eax
jle 0x468fa
movq 0x8(%r12), %rcx
movq (%rcx), %rcx
movq 0x10(%rsp), %rdx
movq 0x8(%rdx), %rdx
movq (%rdx), %rdx
xorpd %xmm1, %xmm1
xorl %esi, %esi
movsd (%rbx,%rsi,8), %xmm0
subsd (%rcx,%rsi,8), %xmm0
movsd %xmm0, (%rdx,%rsi,8)
mulsd %xmm0, %xmm0
addsd %xmm0, %xmm1
incq %rsi
cmpq %rsi, %rax
jne 0x468d9
jmp 0x468fe
xorpd %xmm1, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r15, %rdi
movl %r14d, %esi
callq 0x45692
movsd 0x8(%rsp), %xmm0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/mlp.c
// Function: testMlpnNetwork2_cls
int testMlpnNetwork2_cls(matrix Data, Mlpnetwork N, double* loglikelihood, double *sqrdError)
{
	/*!Last Changed 22.05.2005 fixed class results*/
	/*!Last Changed 09.02.2004 Oya*/
	int k, res, performance = 0;
	double prob;	
	matrix testY;
	*sqrdError = 0;
	*loglikelihood = 0;
	for (k = 0; k < Data.row; k++)
	 {
		 *sqrdError += testMlpnInput_cls(Data.values[k], &testY, N, &res, &prob);
			if (prob != 0)
				 *loglikelihood += log2(prob);
   performance += res;				 
			matrix_free(testY);
	 }
	*sqrdError = *sqrdError / Data.row;
	return performance;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rcx, %rbx
xorl %r13d, %r13d
movq %r13, (%rcx)
movq %r13, (%rdx)
movq %rdi, 0xa8(%rsp)
testl %edi, %edi
jle 0x46a05
movq %rdx, %r15
movq %rsi, %r12
movq 0xa8(%rsp), %rbp
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
xorl %r14d, %r14d
xorl %r13d, %r13d
movq (%r12,%r14,8), %rax
movl $0x13, %ecx
movq %rsp, %rdi
leaq 0x100(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rax, %rdi
leaq 0xb8(%rsp), %rsi
leaq 0xa4(%rsp), %rdx
leaq 0xb0(%rsp), %rcx
callq 0x463c2
addsd (%rbx), %xmm0
movsd %xmm0, (%rbx)
movsd 0xb0(%rsp), %xmm0
ucomisd 0x5f33f(%rip), %xmm0    # 0xa5d08
jne 0x469cd
jnp 0x469dc
callq 0x39bdc
addsd (%r15), %xmm0
movsd %xmm0, (%r15)
addl 0xa4(%rsp), %r13d
movq 0xb8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
callq 0x3ed51
incq %r14
cmpq %r14, %rbp
jne 0x46979
xorps %xmm0, %xmm0
cvtsi2sdl 0xa8(%rsp), %xmm0
movsd (%rbx), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
movl %r13d, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/model.c
// Function: number_of_free_parameters_of_hessian
double number_of_free_parameters_of_hessian(double* eigenvalues, int weightcount, double alpha)
{
	/*!Last Changed 26.06.2005*/
	double sum = 0;
	int i;
	for (i = 0; i < weightcount; i++)
		 sum += eigenvalues[i] / (eigenvalues[i] + alpha);
	return sum;
}

// Assembly:
testl %esi, %esi
jle 0x473d7
movl %esi, %eax
xorpd %xmm1, %xmm1
xorl %ecx, %ecx
movsd (%rdi,%rcx,8), %xmm2
movapd %xmm2, %xmm3
addsd %xmm0, %xmm3
divsd %xmm3, %xmm2
addsd %xmm2, %xmm1
incq %rcx
cmpq %rcx, %rax
jne 0x473b8
jmp 0x473db
xorpd %xmm1, %xmm1
movapd %xmm1, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/model.c
// Function: hinge_loss
double hinge_loss(double y, double fx)
{
 HINGELOSS_TYPE hingelosstype = get_parameter_l("hingelosstype");
 if (1 - y * fx > 0.0)
   switch (hingelosstype)
    {
     case REGULAR_LOSS:return 1 - y * fx;
     case HINGELOSS_01:if (1 - y * fx < 1.0)
                         return 1 - y * fx;
                       else
                         return 1.0;
     case HINGELOSS_02:if (1 - y * fx < 2.0)
                         return 1 - y * fx;
                       else
                         return 2.0;
    } 
 return 0.0;
}

// Assembly:
subq $0x18, %rsp
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
leaq 0x63029(%rip), %rdi     # 0xaa420
callq 0x54afc
movsd 0x8(%rsp), %xmm0
mulsd 0x10(%rsp), %xmm0
movsd 0x5e110(%rip), %xmm1    # 0xa5520
subsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jbe 0x47442
testl %eax, %eax
je 0x4743e
cmpl $0x2, %eax
je 0x47436
cmpl $0x1, %eax
jne 0x47442
minsd 0x5e0ec(%rip), %xmm1    # 0xa5520
jmp 0x4743e
minsd 0x5ec02(%rip), %xmm1    # 0xa6040
movapd %xmm1, %xmm0
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/model.c
// Function: srm_classification
double srm_classification(double error, int h, int N, double a1, double a2)
{
	/*!Last Changed 22.01.2005*/
 double epsilon, upperbound;
	epsilon = srm_epsilon(h, N, a1, a2);
 upperbound = error + (epsilon / 2) * (1 + sqrt(1 + (4 * error) / epsilon));
	return upperbound;
}

// Assembly:
subq $0x28, %rsp
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, 0x10(%rsp)
xorps %xmm1, %xmm1
cvtsi2sd %edi, %xmm1
movsd %xmm1, 0x18(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
movsd %xmm0, 0x20(%rsp)
mulsd %xmm0, %xmm2
divsd %xmm1, %xmm2
movapd %xmm2, %xmm0
callq 0x4160
movapd %xmm0, %xmm1
movsd 0x5cb6b(%rip), %xmm2    # 0xa5520
addsd %xmm2, %xmm1
mulsd 0x18(%rsp), %xmm1
addsd 0x61a01(%rip), %xmm1    # 0xaa3c8
mulsd 0x8(%rsp), %xmm1
divsd 0x20(%rsp), %xmm1
movsd 0x5d33d(%rip), %xmm3    # 0xa5d18
mulsd %xmm1, %xmm3
movsd 0x5d401(%rip), %xmm0    # 0xa5de8
mulsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
addsd %xmm2, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x48a05
sqrtsd %xmm0, %xmm0
jmp 0x48a16
movsd %xmm3, 0x8(%rsp)
callq 0x4300
movsd 0x8(%rsp), %xmm3
addsd 0x5cb02(%rip), %xmm0    # 0xa5520
mulsd %xmm0, %xmm3
addsd 0x10(%rsp), %xmm3
movapd %xmm3, %xmm0
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/model.c
// Function: srm_regression
double srm_regression(double error, int h, int N, double a1, double a2)
{
	/*!Last Changed 22.01.2005*/
	double epsilon, upperbound;
	int c;
	c = 1;
	epsilon = srm_epsilon(h, N, a1, a2);
	upperbound = error / (1 - c * sqrt(epsilon));
	return upperbound;
}

// Assembly:
subq $0x28, %rsp
movsd %xmm1, 0x18(%rsp)
movsd %xmm0, 0x20(%rsp)
xorps %xmm1, %xmm1
cvtsi2sd %edi, %xmm1
movsd %xmm1, 0x8(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
movsd %xmm0, 0x10(%rsp)
mulsd %xmm0, %xmm2
divsd %xmm1, %xmm2
movapd %xmm2, %xmm0
callq 0x4160
addsd 0x5caac(%rip), %xmm0    # 0xa5520
mulsd 0x8(%rsp), %xmm0
addsd 0x61946(%rip), %xmm0    # 0xaa3c8
mulsd 0x18(%rsp), %xmm0
divsd 0x10(%rsp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x48a9e
sqrtsd %xmm0, %xmm0
jmp 0x48aa3
callq 0x4300
movsd 0x5ca75(%rip), %xmm1    # 0xa5520
subsd %xmm0, %xmm1
movsd 0x20(%rsp), %xmm0
divsd %xmm1, %xmm0
addq $0x28, %rsp
retq