LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x3c6e5
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 0x452b3
movq %rbx, %rdi
shlq $0x4, %rdi
leaq 0x62089(%rip), %rsi     # 0xa7305
movl $0x4, %edx
callq 0x390f5
movq %rax, %r14
shlq $0x2, %rbx
xorl %r15d, %r15d
movl 0x60(%rsp,%r15), %esi
movl $0x1, %edi
callq 0x3c6e5
movq %rax, (%r14,%r15,4)
movq %rdx, 0x8(%r14,%r15,4)
addq $0x4, %r15
cmpq %r15, %rbx
jne 0x45290
jmp 0x452b6
xorl %r14d, %r14d
leaq 0xe0(%rsp), %rax
movslq 0x5c(%rax), %rbp
testq %rbp, %rbp
jle 0x4530b
movq (%rax), %rbx
movq %rbp, %r13
shlq $0x4, %r13
xorl %r15d, %r15d
testq %r15, %r15
je 0x452f0
leaq (%r14,%r15), %rcx
movq -0x8(%r14,%r15), %rax
movq (%rax), %rdi
movq (%rbx,%r15), %rsi
movq 0x8(%rbx,%r15), %rdx
jmp 0x452fd
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r12, %rdi
movq %r14, %rcx
callq 0x43994
addq $0x10, %r15
cmpq %r15, %r13
jne 0x452d4
testl %ebp, %ebp
je 0x4532b
movq %rbp, %rax
shlq $0x4, %rax
movq -0x8(%r14,%rax), %rcx
movq (%rcx), %rdi
leaq 0xe0(%rsp), %rcx
addq (%rcx), %rax
jmp 0x45339
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 0x43e35
movq (%rbx), %rax
shrq $0x20, %rax
testl %eax, %eax
jle 0x453a3
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 0x45383
jmp 0x453a7
xorpd %xmm2, %xmm2
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm0, %xmm2
movsd %xmm2, 0x8(%rsp)
movq %r14, %rdi
movl %ebp, %esi
callq 0x44307
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_O1/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 0x3c6e5
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 0x45482
movq %r14, %rdi
shlq $0x4, %rdi
leaq 0x61eba(%rip), %rsi     # 0xa7305
movl $0x4, %edx
callq 0x390f5
movq %rax, %r15
shlq $0x2, %r14
xorl %r12d, %r12d
movl 0x60(%rsp,%r12), %esi
movl $0x1, %edi
callq 0x3c6e5
movq %rax, (%r15,%r12,4)
movq %rdx, 0x8(%r15,%r12,4)
addq $0x4, %r12
cmpq %r12, %r14
jne 0x4545f
jmp 0x45485
xorl %r15d, %r15d
movslq 0x5c(%rbp), %rbp
testq %rbp, %rbp
jle 0x454da
leaq 0xe0(%rsp), %rax
movq (%rax), %r14
movq %rbp, %r13
shlq $0x4, %r13
xorl %r12d, %r12d
testq %r12, %r12
je 0x454bf
leaq (%r15,%r12), %rcx
movq -0x8(%r15,%r12), %rax
movq (%rax), %rdi
movq (%r14,%r12), %rsi
movq 0x8(%r14,%r12), %rdx
jmp 0x454cc
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
movq %r15, %rcx
callq 0x43994
addq $0x10, %r12
cmpq %r12, %r13
jne 0x454a3
movq %rbp, %rax
shlq $0x4, %rax
movq -0x8(%r15,%rax), %rcx
movq (%rcx), %rdi
leaq 0xe0(%rsp), %rcx
movq (%rcx), %rcx
movq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rdx
movq 0x8(%rsp), %r14
movq %r14, %rcx
callq 0x43e35
movq (%r14), %rax
shrq $0x20, %rax
testl %eax, %eax
jle 0x4554f
movq 0x8(%r14), %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 0x4552e
jmp 0x45553
xorpd %xmm1, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %r15, %rdi
movl %ebp, %esi
callq 0x44307
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_O1/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 0x45659
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 0x4500a
addsd (%rbx), %xmm0
movsd %xmm0, (%rbx)
movsd 0xb0(%rsp), %xmm0
ucomisd 0x5d6eb(%rip), %xmm0    # 0xa2d08
jne 0x45621
jnp 0x45630
callq 0x38e99
addsd (%r15), %xmm0
movsd %xmm0, (%r15)
addl 0xa4(%rsp), %r13d
movq 0xb8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
callq 0x3dbad
incq %r14
cmpq %r14, %rbp
jne 0x455cd
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_O1/olcaytaner[P]Isell/mlp.c
// Function: testMlpnNetwork_autoencoder
double testMlpnNetwork_autoencoder(matrix Data, Mlpnetwork N)
{
	double sqrdError = 0;
	matrix output_error, testY;
	int k;
 output_error = matrix_alloc(1, N.P.classnum);
	for (k = 0; k < Data.row; k++)
  {
   sqrdError =  sqrdError + testMlpnInput_autoencoder(Data.values[k], &testY, N, &output_error);
   matrix_free(testY);
  }
	matrix_free(output_error);
	return sqrdError;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl 0x118(%rsp), %esi
movl $0x1, %edi
callq 0x3c6e5
movq %rax, 0xb0(%rsp)
movq %rax, 0xc8(%rsp)
movq %rdx, 0xa8(%rsp)
movq %rdx, 0xd0(%rsp)
testl %r14d, %r14d
jle 0x4575b
leaq 0x110(%rsp), %r13
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
xorpd %xmm0, %xmm0
movsd %xmm0, 0xa0(%rsp)
xorl %r12d, %r12d
leaq 0xb8(%rsp), %rbp
leaq 0xc8(%rsp), %r15
movq (%rbx,%r12,8), %rax
movl $0x13, %ecx
movq %rsp, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rax, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x453da
movsd 0xa0(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0xa0(%rsp)
movq 0xb8(%rsp), %rdi
movq 0xc0(%rsp), %rsi
callq 0x3dbad
incq %r12
cmpq %r12, %r14
jne 0x45706
jmp 0x45768
xorpd %xmm0, %xmm0
movsd %xmm0, 0xa0(%rsp)
movq 0xb0(%rsp), %rdi
movq 0xa8(%rsp), %rsi
callq 0x3dbad
movsd 0xa0(%rsp), %xmm0
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x46027
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 0x46008
jmp 0x4602b
xorpd %xmm1, %xmm1
movapd %xmm1, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x61339(%rip), %rdi     # 0xa7380
callq 0x535f7
movsd 0x8(%rsp), %xmm0
mulsd 0x10(%rsp), %xmm0
movsd 0x5c4c0(%rip), %xmm1    # 0xa2520
subsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jbe 0x46092
testl %eax, %eax
je 0x4608e
cmpl $0x2, %eax
je 0x46086
cmpl $0x1, %eax
jne 0x46092
minsd 0x5c49c(%rip), %xmm1    # 0xa2520
jmp 0x4608e
minsd 0x5cfb2(%rip), %xmm1    # 0xa3040
movapd %xmm1, %xmm0
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x5af12(%rip), %xmm2    # 0xa2520
addsd %xmm2, %xmm1
mulsd 0x18(%rsp), %xmm1
addsd 0x5fd08(%rip), %xmm1    # 0xa7328
mulsd 0x8(%rsp), %xmm1
divsd 0x20(%rsp), %xmm1
movsd 0x5b6e4(%rip), %xmm3    # 0xa2d18
mulsd %xmm1, %xmm3
movsd 0x5b7a8(%rip), %xmm0    # 0xa2de8
mulsd 0x10(%rsp), %xmm0
divsd %xmm1, %xmm0
addsd %xmm2, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x4765e
sqrtsd %xmm0, %xmm0
jmp 0x4766f
movsd %xmm3, 0x8(%rsp)
callq 0x4300
movsd 0x8(%rsp), %xmm3
addsd 0x5aea9(%rip), %xmm0    # 0xa2520
mulsd %xmm0, %xmm3
addsd 0x10(%rsp), %xmm3
movapd %xmm3, %xmm0
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x5ae53(%rip), %xmm0    # 0xa2520
mulsd 0x8(%rsp), %xmm0
addsd 0x5fc4d(%rip), %xmm0    # 0xa7328
mulsd 0x18(%rsp), %xmm0
divsd 0x10(%rsp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x476f7
sqrtsd %xmm0, %xmm0
jmp 0x476fc
callq 0x4300
movsd 0x5ae1c(%rip), %xmm1    # 0xa2520
subsd %xmm0, %xmm1
movsd 0x20(%rsp), %xmm0
divsd %xmm1, %xmm0
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/model.c
// Function: search_and_add_candidate_model
void search_and_add_candidate_model(char** filenames, char* directory, int model, int* models, int* filecount)
{
	/*!Last Changed 02.06.2004*/
	int i;
	char filename[READLINELENGTH];
	for (i = 0; i < *filecount; i++)
		 if (models[i] == model)
				 break;
	if (i == *filecount)
	 {
		 (*filecount)++;
			sprintf(filename,"%s-%d.txt", directory, model);
			strcpy(filenames[(*filecount) - 1], filename); 
   models[(*filecount) - 1] = model;
	 }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x7a120, %rsp          # imm = 0x7A120
movq %r8, %r14
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %rdx
movq %rdi, %r15
movl (%r8), %eax
xorl %ecx, %ecx
testl %eax, %eax
jle 0x47761
cmpl %ebp, (%rbx,%rcx,4)
je 0x47761
incq %rcx
cmpq %rcx, %rax
jne 0x47752
movl %eax, %ecx
cmpl %eax, %ecx
jne 0x47797
incl %eax
movl %eax, (%r14)
leaq 0x5fd1e(%rip), %rsi     # 0xa748f
movq %rsp, %r12
movq %r12, %rdi
movl %ebp, %ecx
xorl %eax, %eax
callq 0x41b0
movslq (%r14), %rax
movq -0x8(%r15,%rax,8), %rdi
movq %r12, %rsi
callq 0x4270
movslq (%r14), %rax
movl %ebp, -0x4(%rbx,%rax,4)
addq $0x7a120, %rsp          # imm = 0x7A120
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/model.c
// Function: hmm_add_candidate_model
void hmm_add_candidate_model(char** filenames, char* directory, int index, Hmm_modelptr models, int* models_searched, int* filecount)
{
 /*!Last Changed 02.06.2004*/
 char filename[READLINELENGTH];
 (*filecount)++;
 models[index].tried = BOOLEAN_TRUE;
 models_searched[(*filecount) - 1] = index;
 sprintf(filename,"%s/%dM%dS.txt", directory, models[index].mixture, models[index].states);
 strcpy(filenames[(*filecount) - 1], filename); 
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x7a120, %rsp          # imm = 0x7A120
movq %r9, %rbx
movq %rsi, %rax
incl (%r9)
movq %rdi, %r14
movslq %edx, %rdx
leaq (%rdx,%rdx,4), %rsi
movl $0x1, 0x10(%rcx,%rsi,4)
movslq (%r9), %rdi
movl %edx, -0x4(%r8,%rdi,4)
movl (%rcx,%rsi,4), %r8d
movl 0x4(%rcx,%rsi,4), %ecx
leaq 0x5fbef(%rip), %rsi     # 0xa73d4
movq %rsp, %r15
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x41b0
movslq (%rbx), %rax
movq -0x8(%r14,%rax,8), %rdi
movq %r15, %rsi
callq 0x4270
addq $0x7a120, %rsp          # imm = 0x7A120
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/model.c
// Function: compare_two_hmm_models
int compare_two_hmm_models(char** two_file, char* simulationdirectory, Hmm_model model1, Hmm_model model2)
{
 /*!Last Changed 10.01.2009*/
 int dummy;
 double confidence = 1 - get_parameter_f("confidencelevel"), conf;
 if (model1.index < model2.index)
  {
   sprintf(two_file[0], "%s/%dM%dS.txt", simulationdirectory, model1.mixture, model1.states);
   sprintf(two_file[1], "%s/%dM%dS.txt", simulationdirectory, model2.mixture, model2.states);
  }
 else
  {
   sprintf(two_file[0], "%s/%dM%dS.txt", simulationdirectory, model2.mixture, model2.states);
   sprintf(two_file[1], "%s/%dM%dS.txt", simulationdirectory, model1.mixture, model1.states);
  }
 return compare_two_files_using_test(get_parameter_l("testtype"), two_file, &dummy, confidence, &conf);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x5a4b3(%rip), %rdi     # 0xa2928
callq 0x534b6
movsd %xmm0, (%rsp)
leaq 0x40(%rsp), %r12
movl 0x8(%r12), %eax
leaq 0x58(%rsp), %rcx
cmpl 0x8(%rcx), %eax
movq (%rbx), %rdi
movq %rcx, %rax
cmovlq %r12, %rax
cmovlq %rcx, %r12
movl (%rax), %r8d
movl 0x4(%rax), %ecx
leaq 0x5ef28(%rip), %r15     # 0xa73d4
movq %r15, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x41b0
movq 0x8(%rbx), %rdi
movl (%r12), %r8d
movl 0x4(%r12), %ecx
movq %r15, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x41b0
movsd 0x5a045(%rip), %xmm0    # 0xa2520
subsd (%rsp), %xmm0
movsd %xmm0, (%rsp)
leaq 0x5ef15(%rip), %rdi     # 0xa7401
callq 0x535f7
leaq 0xc(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movl %eax, %edi
movq %rbx, %rsi
movsd (%rsp), %xmm0
callq 0x8b74b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/model.c
// Function: compare_two_mlp_models
int compare_two_mlp_models(char** two_file, char* simulationdirectory, Datasetptr d, int model1, int model2)
{
	/*!Last Changed 17.07.2005*/
	int min, max, dummy;
	double confidence = 1 - get_parameter_f("confidencelevel"), conf;
	min = imin(model1, model2);
	max = model1 + model2 - min;
	sprintf(two_file[0], "%s/%s-%d.txt", simulationdirectory, d->name, min);
	sprintf(two_file[1], "%s/%s-%d.txt", simulationdirectory, d->name, max);
 return compare_two_files_using_test(get_parameter_l("testtype"), two_file, &dummy, confidence, &conf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %r8d, %ebp
movl %ecx, %r12d
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x5a1d4(%rip), %rdi     # 0xa2928
callq 0x534b6
movsd 0x59dbf(%rip), %xmm1    # 0xa2520
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movl %r12d, %edi
movl %ebp, %esi
callq 0x38de9
addl %r12d, %ebp
subl %eax, %ebp
movq (%rbx), %rdi
movq 0x8(%r15), %rcx
leaq 0x5ed04(%rip), %r12     # 0xa748c
movq %r12, %rsi
movq %r14, %rdx
movl %eax, %r8d
xorl %eax, %eax
callq 0x41b0
movq 0x8(%rbx), %rdi
movq 0x8(%r15), %rcx
movq %r12, %rsi
movq %r14, %rdx
movl %ebp, %r8d
xorl %eax, %eax
callq 0x41b0
leaq 0x5ec4a(%rip), %rdi     # 0xa7401
callq 0x535f7
leaq 0x14(%rsp), %rdx
leaq 0x18(%rsp), %rcx
movl %eax, %edi
movq %rbx, %rsi
movsd 0x8(%rsp), %xmm0
callq 0x8b74b
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/model.c
// Function: hmm_model_simulation_one_forward
Hmm_model hmm_model_simulation_one_forward(char* simulationdirectory, int maxstates, int* tries)
{
 /*!Last Changed 10.01.2009*/
 char **two_file;
 int i;
 Hmm_model bestmodel;
 Hmm_modelptr models;
 models = safemalloc(sizeof(Hmm_model) * maxstates, "hmm_model_simulation_one_forward", 4);
 for (i = 0; i < maxstates; i++)
  {
   models[i].states = i + 1;
   models[i].mixture = 1;
   models[i].index = i;
  }
 bestmodel = models[0];
 two_file = (char**) safemalloc_2d(sizeof(char *), sizeof(char), 2, 500, "hmm_model_simulation_one_forward", 12);
 *tries = 1;
 while (bestmodel.index < maxstates)
  {
   (*tries)++;
   if (compare_two_hmm_models(two_file, simulationdirectory, bestmodel, models[bestmodel.index + 1]) == 0)
     break;
   bestmodel = models[bestmodel.index + 1];
  }
 free_2d((void**)two_file, 2);
 safe_free(models);
 return bestmodel;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, 0x38(%rsp)
movq %rdi, %rbx
movslq %edx, %r15
leaq (,%r15,4), %rax
leaq (%rax,%rax,4), %rdi
leaq 0x5ec85(%rip), %rsi     # 0xa7499
movl $0x4, %edx
callq 0x390f5
testl %r15d, %r15d
jle 0x48847
movl %ebp, %edi
leaq 0x8(%rax), %rcx
xorl %edx, %edx
leaq 0x1(%rdx), %rsi
movl %esi, -0x8(%rcx)
movl $0x1, -0x4(%rcx)
movl %edx, (%rcx)
addq $0x14, %rcx
movq %rsi, %rdx
cmpq %rsi, %rdi
jne 0x4882b
movl 0x10(%rax), %ecx
movl %ecx, 0x10(%rbx)
movq %rax, 0x30(%rsp)
movups (%rax), %xmm0
movups %xmm0, (%rbx)
leaq 0x5ec3a(%rip), %r8      # 0xa7499
movl $0x8, %edi
movl $0x1, %esi
movl $0x2, %edx
movl $0x1f4, %ecx            # imm = 0x1F4
movl $0xc, %r9d
callq 0x393b5
movq %rax, %r13
movl $0x1, (%r14)
movl 0x8(%rbx), %eax
cmpl %ebp, %eax
jge 0x4890e
movq 0x30(%rsp), %r12
addq $0x14, %r12
incl (%r14)
cltq
leaq (%rax,%rax,4), %r15
movl 0x10(%rbx), %eax
movl %eax, 0x70(%rsp)
movups (%rbx), %xmm0
movaps %xmm0, 0x60(%rsp)
movl 0x10(%r12,%r15,4), %eax
movl %eax, 0x50(%rsp)
movups (%r12,%r15,4), %xmm0
movaps %xmm0, 0x40(%rsp)
movl 0x50(%rsp), %eax
movl %eax, 0x28(%rsp)
movaps 0x40(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movl 0x70(%rsp), %eax
movl %eax, 0x10(%rsp)
movaps 0x60(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r13, %rdi
movq 0x38(%rsp), %rsi
callq 0x4845d
testl %eax, %eax
je 0x4890e
leaq (%r12,%r15,4), %rax
movups (%rax), %xmm0
movups %xmm0, (%rbx)
movl 0x10(%rax), %eax
movl %eax, 0x10(%rbx)
movl 0x8(%rbx), %eax
cmpl %ebp, %eax
jl 0x48898
movq %r13, %rdi
movl $0x2, %esi
callq 0x3915f
movq 0x30(%rsp), %rdi
callq 0x39194
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/model.c
// Function: mlp_model_simulation_one_forward
int mlp_model_simulation_one_forward(Datasetptr d, char* simulationdirectory, int maxhidden, int starthidden, int* tries)
{
 /*!Last Changed 26.05.2006 added starthidden*/
	/*!Last Changed 16.07.2005*/
	char **two_file;
	int bestmodel;
 if (starthidden < 0 || starthidden > maxhidden)
   bestmodel = 0;
 else
   bestmodel = starthidden;
 two_file = (char**) safemalloc_2d(sizeof(char *), sizeof(char), 2, 500, "mlp_model_simulation_forward", 4);
	*tries = 1;
	while (bestmodel < maxhidden)
	 {
			(*tries)++;
			if (compare_two_mlp_models(two_file, simulationdirectory, d, bestmodel, bestmodel + 1) == 0)
				 break;
			bestmodel++;
	 }
	free_2d((void**)two_file, 2);
	return bestmodel;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movl %edx, %ebp
movq %rsi, (%rsp)
xorl %eax, %eax
testl %ecx, %ecx
movl $0x0, %r12d
cmovgl %ecx, %r12d
movq %rdi, %r15
cmpl %edx, %ecx
cmovgl %eax, %r12d
leaq 0x5eb51(%rip), %r8      # 0xa74ba
movl $0x8, %edi
movl $0x1, %esi
movl $0x2, %edx
movl $0x1f4, %ecx            # imm = 0x1F4
movl $0x4, %r9d
callq 0x393b5
movq %rax, %r13
movl $0x1, (%rbx)
cmpl %ebp, %r12d
cmovgl %r12d, %ebp
movl %r12d, %r14d
cmpl %r12d, %ebp
je 0x489bf
incl (%rbx)
leal 0x1(%r14), %r12d
movq %r13, %rdi
movq (%rsp), %rsi
movq %r15, %rdx
movl %r14d, %ecx
movl %r12d, %r8d
callq 0x48732
testl %eax, %eax
jne 0x48998
movq %r13, %rdi
movl $0x2, %esi
callq 0x3915f
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/model.c
// Function: hmm_model_simulation_one_backward
Hmm_model hmm_model_simulation_one_backward(char* simulationdirectory, int maxstates, int* tries)
{
 /*!Last Changed 10.01.2009*/
 char **two_file;
 int i;
 Hmm_model bestmodel;
 Hmm_modelptr models;
 models = safemalloc(sizeof(Hmm_model) * maxstates, "hmm_model_simulation_one_backward", 4);
 for (i = 0; i < maxstates; i++)
  {
   models[i].states = i + 1;
   models[i].mixture = 1;
   models[i].index = i;
  }
 bestmodel = models[maxstates - 1];
 two_file = (char**) safemalloc_2d(sizeof(char *), sizeof(char), 2, 500, "hmm_model_simulation_one_backward", 12);
 *tries = 1;
 while (bestmodel.index > 0)
  {
   (*tries)++;
   if (compare_two_hmm_models(two_file, simulationdirectory, bestmodel, models[bestmodel.index - 1]) == 0)
     break;
   bestmodel = models[bestmodel.index - 1];
  }
 safe_free(models);
 free_2d((void**)two_file, 2);
 return bestmodel;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
movslq %edx, %r13
leaq (,%r13,4), %rax
leaq (%rax,%rax,4), %rdi
leaq 0x5eaca(%rip), %rsi     # 0xa74d7
movl $0x4, %edx
callq 0x390f5
testl %r13d, %r13d
jle 0x48a40
movl %ebp, %edi
leaq 0x8(%rax), %rcx
xorl %edx, %edx
leaq 0x1(%rdx), %rsi
movl %esi, -0x8(%rcx)
movl $0x1, -0x4(%rcx)
movl %edx, (%rcx)
addq $0x14, %rcx
movq %rsi, %rdx
cmpq %rsi, %rdi
jne 0x48a24
leaq (,%r13,4), %rdx
addq %r13, %rdx
movl -0x4(%rax,%rdx,4), %ecx
movl %ecx, 0x10(%rbx)
movq %rax, 0x38(%rsp)
movups -0x14(%rax,%rdx,4), %xmm0
movups %xmm0, (%rbx)
leaq 0x5ea71(%rip), %r8      # 0xa74d7
movl $0x8, %edi
movl $0x1, %esi
movl $0x2, %edx
movl $0x1f4, %ecx            # imm = 0x1F4
movl $0xc, %r9d
callq 0x393b5
movq %rax, %r13
movl $0x1, (%r14)
movl 0x8(%rbx), %eax
testl %eax, %eax
jle 0x48b1f
movq 0x38(%rsp), %rbp
addq $-0x14, %rbp
incl (%r14)
movl %eax, %eax
leaq (%rax,%rax,4), %r12
movl 0x10(%rbx), %eax
movl %eax, 0x70(%rsp)
movups (%rbx), %xmm0
movaps %xmm0, 0x60(%rsp)
movl 0x10(%rbp,%r12,4), %eax
movl %eax, 0x50(%rsp)
movups (%rbp,%r12,4), %xmm0
movaps %xmm0, 0x40(%rsp)
movl 0x50(%rsp), %eax
movl %eax, 0x28(%rsp)
movaps 0x40(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movl 0x70(%rsp), %eax
movl %eax, 0x10(%rsp)
movaps 0x60(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r13, %rdi
movq %r15, %rsi
callq 0x4845d
testl %eax, %eax
je 0x48b1f
leaq (,%r12,4), %rax
addq %rbp, %rax
movups (%rax), %xmm0
movups %xmm0, (%rbx)
movl 0x10(%rax), %eax
movl %eax, 0x10(%rbx)
movl 0x8(%rbx), %eax
testl %eax, %eax
jg 0x48aa3
movq 0x38(%rsp), %rdi
callq 0x39194
movq %r13, %rdi
movl $0x2, %esi
callq 0x3915f
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/model.c
// Function: mlp_model_simulation_one_backward
int mlp_model_simulation_one_backward(Datasetptr d, char* simulationdirectory, int maxhidden, int starthidden, int* tries)
{
 /*!Last Changed 26.05.2006 added starthidden*/
	/*!Last Changed 16.07.2005*/
	char **two_file;
	int bestmodel;
 if (starthidden < 0 || starthidden > maxhidden)
   bestmodel = maxhidden;
 else
   bestmodel = starthidden;
 two_file = (char**) safemalloc_2d(sizeof(char *), sizeof(char), 2, 500, "mlp_model_simulation_backward", 4);
	*tries = 1;
	while (bestmodel > 0)
	 {
			(*tries)++;
			if (compare_two_mlp_models(two_file, simulationdirectory, d, bestmodel - 1, bestmodel) == 1)
				 break;
			bestmodel--;
	 }
	free_2d((void**)two_file, 2);
	return bestmodel;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rsi, %r14
cmpl %edx, %ecx
movl %edx, %ebp
cmovll %ecx, %ebp
movq %rdi, %r15
testl %ecx, %ecx
cmovsl %edx, %ebp
leaq 0x5e98a(%rip), %r8      # 0xa74f9
movl $0x8, %edi
movl $0x1, %esi
movl $0x2, %edx
movl $0x1f4, %ecx            # imm = 0x1F4
movl $0x4, %r9d
callq 0x393b5
movq %rax, %r12
movl $0x1, (%rbx)
movl %ebp, %r13d
testl %ebp, %ebp
jle 0x48bbc
incl (%rbx)
leal -0x1(%r13), %ebp
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x48732
cmpl $0x1, %eax
jne 0x48b97
movq %r12, %rdi
movl $0x2, %esi
callq 0x3915f
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/model.c
// Function: hmm_model_simulation
Hmm_model hmm_model_simulation(MOST_SEARCH_TYPE simulation_algorithm, char* simulationdirectory, int maxstates, int maxmixture, int* tries)
{
 /*!Last Changed 10.01.2009*/
 switch (simulation_algorithm)
  {
   case MULTIMOST    :return hmm_model_simulation_multitest(simulationdirectory, maxstates, maxmixture, tries);
                      break;
   case ONE_FORWARD  :return hmm_model_simulation_one_forward(simulationdirectory, maxstates, tries);
                      break;
   case ONE_BACKWARD :return hmm_model_simulation_one_backward(simulationdirectory, maxstates, tries);
                      break;
   case FORWARD_MOST :return hmm_model_simulation_most(simulationdirectory, maxstates, maxmixture, tries, FORWARD);
                      break;
   case BACKWARD_MOST:return hmm_model_simulation_most(simulationdirectory, maxstates, maxmixture, tries, BACKWARD);
                      break;
   default           :printf(m1242, simulation_algorithm);
                      return hmm_model_simulation_multitest(simulationdirectory, maxstates, maxmixture, tries);
                      break;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %r14
movl %r8d, %r15d
movl %ecx, %ebp
movq %rdx, %r12
movq %rdi, %rbx
cmpl $0x4, %esi
ja 0x48c5a
movl %esi, %eax
leaq 0x5e731(%rip), %rcx     # 0xa7330
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r14, %rcx
callq 0x487e3
jmp 0x48c7b
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movl %r15d, %ecx
movq %r14, %r8
movl $0x1, %r9d
jmp 0x48c53
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r14, %rcx
callq 0x489de
jmp 0x48c7b
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movl %r15d, %ecx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x48144
jmp 0x48c7b
leaq 0x5e8b6(%rip), %rdi     # 0xa7517
xorl %eax, %eax
callq 0x4030
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movl %r15d, %ecx
movq %r14, %r8
callq 0x47812
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/model.c
// Function: mlp_model_simulation
int mlp_model_simulation(MOST_SEARCH_TYPE simulation_algorithm, char* datasetname, char* simulationdirectory, int maxhidden, int starthidden, int* tries)
{
	/*!Last Changed 16.07.2005*/
	Datasetptr d;
 d = search_dataset(Datasets, datasetname);
	if (d == NULL)
		 return 0;
	switch (simulation_algorithm)
	 {
	  case MULTIMOST    :return mlp_model_simulation_multitest(d, simulationdirectory, maxhidden, starthidden, tries);
				                  break;
			case ONE_FORWARD  :return mlp_model_simulation_one_forward(d, simulationdirectory, maxhidden, starthidden, tries);
				                  break;
			case ONE_BACKWARD :return mlp_model_simulation_one_backward(d, simulationdirectory, maxhidden, starthidden, tries);
				                  break;
			case FORWARD_MOST :return mlp_model_simulation_most(d, simulationdirectory, maxhidden, starthidden, tries, FORWARD);
				                  break;
			case BACKWARD_MOST:return mlp_model_simulation_most(d, simulationdirectory, maxhidden, starthidden, tries, BACKWARD);
				                  break;
   default           :printf(m1242, simulation_algorithm);
                      break;
	 }
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r9, %rbx
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r15
movl %edi, %r12d
leaq 0x89bd3(%rip), %rax     # 0xd2878
movq (%rax), %rdi
callq 0x14f16
testq %rax, %rax
je 0x48d69
cmpl $0x4, %r12d
ja 0x48d58
movl %r12d, %ecx
leaq 0x5e67a(%rip), %rdx     # 0xa7344
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq %rax, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
movq %rbx, %r8
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x47b05
movq %rax, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
movq %rbx, %r8
movl $0x1, %r9d
jmp 0x48d30
movq %rax, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
movq %rbx, %r8
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x48b48
movq %rax, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
movq %rbx, %r8
xorl %r9d, %r9d
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x48516
movq %rax, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
movq %rbx, %r8
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x48937
leaq 0x5e7b8(%rip), %rdi     # 0xa7517
movl %r12d, %esi
xorl %eax, %eax
callq 0x4030
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/multiplemodel.c
// Function: multiplicative_term_value
double multiplicative_term_value(Mtermptr term, double* featurevalues)
{
	/*!Last Changed 11.04.2005*/
	double value;
	switch (term->functiontype)
	 {
	  case FUNC_CONSTANT:return term->value;
				                  break;
			case FUNC_POWER   :value = featurevalues[term->featureindex - 1];
				                  if (term->power == 1)
											             return value; 
				                  else
											             return fpow(value, term->power);
										            break;
			case FUNC_SINUS   :
			case FUNC_COSINUS :value = additive_term_value(term->interm, featurevalues);
				                  if (term->functiontype == FUNC_SINUS)
											             value = sin(value);
										            else
											             value = cos(value);
										            if (term->power == 1)
											             return value;
										            else
											             return fpow(value, term->power);
										            break;
   default           :printf(m1235, term->functiontype);
                      break;
	 }
	return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl 0x4(%rdi), %esi
leal -0x2(%rsi), %eax
cmpl $0x2, %eax
jb 0x496bc
cmpl $0x1, %esi
je 0x4970b
testl %esi, %esi
jne 0x49734
movsd 0x10(%rbx), %xmm0
jmp 0x4974a
movq 0x18(%rbx), %r12
movq 0x8(%r12), %r15
movsd 0x58e53(%rip), %xmm1    # 0xa2520
testq %r15, %r15
je 0x496f1
movsd %xmm1, (%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x4968c
movsd (%rsp), %xmm1
mulsd %xmm0, %xmm1
movq 0x20(%r15), %r15
jmp 0x496cd
xorps %xmm0, %xmm0
cvtsi2sdl (%r12), %xmm0
mulsd %xmm1, %xmm0
cmpl $0x2, 0x4(%rbx)
jne 0x49718
callq 0x4320
jmp 0x4971d
movslq 0x8(%rbx), %rax
movsd -0x8(%r14,%rax,8), %xmm0
jmp 0x4971d
callq 0x4110
movl (%rbx), %edi
cmpl $0x1, %edi
je 0x4974a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x38db2
leaq 0x5de85(%rip), %rdi     # 0xa75c0
xorl %eax, %eax
callq 0x4030
movsd 0x58dd6(%rip), %xmm0    # 0xa2520
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/multiplemodel.c
// Function: additive_term_value
double additive_term_value(Atermptr term, double* featurevalues)
{
	/*!Last Changed 11.04.2005*/
	Mtermptr tmp;
	double value = 1;
	tmp = term->start;
	while (tmp)
	 {
		 value *= multiplicative_term_value(tmp, featurevalues);
		 tmp = tmp->next;
	 }
	return value * term->sign;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %r15
testq %r15, %r15
je 0x4979c
movq %rsi, %r14
movsd 0x58daa(%rip), %xmm1    # 0xa2520
movsd %xmm1, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x4968c
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
movq 0x20(%r15), %r15
testq %r15, %r15
jne 0x49776
jmp 0x497a4
movsd 0x58d7c(%rip), %xmm1    # 0xa2520
xorps %xmm0, %xmm0
cvtsi2sdl (%rbx), %xmm0
mulsd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/multiplemodel.c
// Function: single_model_value
double single_model_value(Singlemodel m, double* featurevalues)
{
	/*!Last Changed 11.04.2005*/
	Atermptr tmp;
	double value = 0, noise;
	tmp = m.start;
	while (tmp)
	 {
		 value += additive_term_value(tmp, featurevalues);
		 tmp = tmp->next;
	 }
	noise = produce_normal_value(0, m.noiselevel);
	return value + noise;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0x30(%rsp), %r15
movq (%r15), %r14
testq %r14, %r14
je 0x49802
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x49756
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x497dc
jmp 0x4980c
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x10(%r15), %xmm1
xorpd %xmm0, %xmm0
callq 0x8cd13
addsd 0x8(%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/multiplemodel.c
// Function: extract_multiplicative_terms
char** extract_multiplicative_terms(char* st, int* count)
{
	/*!Last Changed 10.04.2005*/
	int i, len = strlen(st), parcount = 0;
	char** result = NULL;
	char tempst[READLINELENGTH];
	*count = 0;
	strcpy(tempst, "");
	for (i = 0; i < len; i++)
		 switch (st[i])
	   {
		   case 'x':
					case 'c':
					case 's':if (parcount == 0 && i != 0)															 
														 {
						          (*count)++;
		              result = alloc(result, *count * sizeof(char*), *count);
										     	result[*count - 1] = strcopy(result[*count - 1], tempst);
																sprintf(tempst, "%c", st[i]);
														 }
						        else
															 sprintf(tempst, "%s%c", tempst, st[i]);
														break;
					case '(':parcount++;
              sprintf(tempst, "%s%c", tempst, st[i]);
						        break;
					case ')':parcount--;
						        sprintf(tempst, "%s%c", tempst, st[i]);
						        break;
					default :sprintf(tempst, "%s%c", tempst, st[i]);
		 				       break;
    }
	(*count)++;
	result = alloc(result, *count * sizeof(char*), *count);
	result[*count - 1] = strcopy(result[*count - 1], tempst);
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7a128, %rsp          # imm = 0x7A128
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4190
movq %rax, %r15
movl $0x0, (%rbx)
movb $0x0, (%rsp)
testl %r15d, %r15d
jle 0x4992d
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
xorl %r13d, %r13d
xorl %r12d, %r12d
xorl %ebp, %ebp
movzbl (%r14,%r13), %eax
movsbl %al, %ecx
cmpl $0x62, %eax
jle 0x498d5
cmpl $0x63, %eax
je 0x49888
cmpl $0x78, %eax
je 0x49888
cmpl $0x73, %eax
jne 0x498f5
testq %r13, %r13
je 0x498f5
testl %ebp, %ebp
jne 0x498f5
movslq (%rbx), %rax
leaq 0x1(%rax), %rdx
movl %edx, (%rbx)
leaq 0x8(,%rax,8), %rsi
movq %r12, %rdi
callq 0x390c8
movq %rax, %r12
movslq (%rbx), %rax
movq -0x8(%r12,%rax,8), %rdi
movq %rsp, %rsi
callq 0x3a404
movslq (%rbx), %rcx
movq %rax, -0x8(%r12,%rcx,8)
movb (%r14,%r13), %al
movb %al, (%rsp)
movb $0x0, 0x1(%rsp)
xorl %ebp, %ebp
jmp 0x4991f
cmpl $0x28, %eax
je 0x49904
cmpl $0x29, %eax
jne 0x498f5
decl %ebp
movq %rsp, %rdi
leaq 0x59ce1(%rip), %rsi     # 0xa35cc
movq %rdi, %rdx
movl $0x29, %ecx
jmp 0x49918
movq %rsp, %rdi
leaq 0x59ccd(%rip), %rsi     # 0xa35cc
movq %rdi, %rdx
jmp 0x49918
incl %ebp
movq %rsp, %rdi
leaq 0x59cbc(%rip), %rsi     # 0xa35cc
movq %rdi, %rdx
movl $0x28, %ecx
xorl %eax, %eax
callq 0x41b0
incq %r13
cmpq %r13, %r15
jne 0x4986c
jmp 0x49930
xorl %r12d, %r12d
movslq (%rbx), %rax
leaq 0x1(%rax), %rdx
movl %edx, (%rbx)
leaq 0x8(,%rax,8), %rsi
movq %r12, %rdi
callq 0x390c8
movq %rax, %r14
movslq (%rbx), %rax
movq -0x8(%r14,%rax,8), %rdi
movq %rsp, %rsi
callq 0x3a404
movslq (%rbx), %rcx
movq %rax, -0x8(%r14,%rcx,8)
movq %r14, %rax
addq $0x7a128, %rsp          # imm = 0x7A128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/multiplemodel.c
// Function: extract_additive_terms
char** extract_additive_terms(char* st, int* count)
{
	/*!Last Changed 10.04.2005*/
	int i, len = strlen(st), parcount = 0;
	char tempst[READLINELENGTH];
	char** result = NULL;
	*count = 0;
	strcpy(tempst, "");
	for (i = 0; i < len; i++)
		 switch (st[i])
	   {
		   case '+':
					case '-':if (parcount == 0 && i != 0)
														 { 
						          (*count)++;
		              result = alloc(result, *count * sizeof(char*), *count);
										     	result[*count - 1] = strcopy(result[*count - 1], tempst);
																sprintf(tempst, "%c", st[i]);
														 }
			           else
									       sprintf(tempst, "%s%c", tempst, st[i]);
			           break;
					case '(':parcount++;
						        sprintf(tempst, "%s%c", tempst, st[i]);
			           break;
					case ')':parcount--;
						        sprintf(tempst, "%s%c", tempst, st[i]);
		            break;
					default :sprintf(tempst, "%s%c", tempst, st[i]);
		 				       break;
	   }
	(*count)++;
	result = alloc(result, *count * sizeof(char*), *count);
	result[*count - 1] = strcopy(result[*count - 1], tempst);
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7a148, %rsp          # imm = 0x7A148
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4190
movq %rax, %r15
movq %rbx, 0x10(%rsp)
movl $0x0, (%rbx)
movb $0x0, 0x20(%rsp)
testl %r15d, %r15d
jle 0x49ab2
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
leaq 0x20(%rsp), %rbp
leaq 0x5dbe4(%rip), %r12     # 0xa75a8
xorl %ebx, %ebx
movq $0x0, 0x8(%rsp)
xorl %r13d, %r13d
movq %r14, 0x18(%rsp)
movzbl (%r14,%rbx), %eax
movsbl %al, %ecx
addl $-0x28, %eax
cmpl $0x5, %eax
ja 0x49a62
movslq (%r12,%rax,4), %rax
addq %r12, %rax
jmpq *%rax
testq %rbx, %rbx
je 0x49a62
testl %r13d, %r13d
jne 0x49a62
movq 0x10(%rsp), %r13
movslq (%r13), %rax
leaq 0x1(%rax), %rdx
movl %edx, (%r13)
leaq 0x8(,%rax,8), %rsi
movq 0x8(%rsp), %rdi
callq 0x390c8
movq %r15, %r14
movq %r12, %r15
movq %rax, %r12
movslq (%r13), %rax
movq -0x8(%r12,%rax,8), %rdi
movq %rbp, %rsi
callq 0x3a404
movslq (%r13), %rcx
movq %r12, 0x8(%rsp)
movq %rax, -0x8(%r12,%rcx,8)
movq %r15, %r12
movq %r14, %r15
movq 0x18(%rsp), %r14
movb (%r14,%rbx), %al
movb %al, 0x20(%rsp)
movb $0x0, 0x21(%rsp)
xorl %r13d, %r13d
jmp 0x49aa4
movq %rbp, %rdi
leaq 0x59b60(%rip), %rsi     # 0xa35cc
movq %rbp, %rdx
jmp 0x49a9d
decl %r13d
movq %rbp, %rdi
leaq 0x59b4e(%rip), %rsi     # 0xa35cc
movq %rbp, %rdx
movl $0x29, %ecx
jmp 0x49a9d
incl %r13d
movq %rbp, %rdi
leaq 0x59b37(%rip), %rsi     # 0xa35cc
movq %rbp, %rdx
movl $0x28, %ecx
xorl %eax, %eax
callq 0x41b0
incq %rbx
cmpq %rbx, %r15
jne 0x499d7
jmp 0x49abb
movq $0x0, 0x8(%rsp)
movq 0x10(%rsp), %rbx
movslq (%rbx), %rax
leaq 0x1(%rax), %rdx
movl %edx, (%rbx)
leaq 0x8(,%rax,8), %rsi
movq 0x8(%rsp), %rdi
callq 0x390c8
movq %rax, %r14
movslq (%rbx), %rax
movq -0x8(%r14,%rax,8), %rdi
leaq 0x20(%rsp), %rsi
callq 0x3a404
movslq (%rbx), %rcx
movq %rax, -0x8(%r14,%rcx,8)
movq %r14, %rax
addq $0x7a148, %rsp          # imm = 0x7A148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/multiplemodel.c
// Function: index_and_power_from_string
int index_and_power_from_string(char* st, int* power)
{
	/*!Last Changed 10.04.2005*/
	int i, len = strlen(st), pos = 0, index;
	char tmp[READLINELENGTH];
	strcpy(tmp, "");
	for (i = 1; i < len; i++)
		 if (st[i] == '^')
			 {
				 pos = 1;
     index = atoi(tmp);
	    strcpy(tmp, ""); 
			 }
			else
					sprintf(tmp, "%s%c", tmp, st[i]);
	if (pos == 0)
	 {
		 index = atoi(tmp);
			*power = 1;
	 }
	else
		 *power = atoi(tmp);
	return index;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7a138, %rsp          # imm = 0x7A138
movq %rsi, %r12
movq %rdi, %r14
callq 0x4190
movq %rax, %r15
movb $0x0, 0x10(%rsp)
cmpl $0x2, %r15d
jl 0x49b97
movq %r12, 0x8(%rsp)
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movl $0x1, %ebx
leaq 0x10(%rsp), %r12
xorl %r13d, %r13d
movsbl (%r14,%rbx), %ecx
movq %r12, %rdi
cmpl $0x5e, %ecx
jne 0x49b71
callq 0x4200
movl %eax, %ebp
movb $0x0, 0x10(%rsp)
movl $0x1, %r13d
jmp 0x49b82
leaq 0x59a54(%rip), %rsi     # 0xa35cc
movq %r12, %rdx
xorl %eax, %eax
callq 0x41b0
incq %rbx
cmpq %rbx, %r15
jne 0x49b50
testl %r13d, %r13d
sete %bl
movq 0x8(%rsp), %r12
jmp 0x49b99
movb $0x1, %bl
leaq 0x10(%rsp), %rdi
callq 0x4200
testb %bl, %bl
movl $0x1, %ecx
cmovel %eax, %ecx
cmovel %ebp, %eax
movl %ecx, (%r12)
addq $0x7a138, %rsp          # imm = 0x7A138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/multiplemodel.c
// Function: interm_and_power_from_string
char* interm_and_power_from_string(char* st, int* power)
{
	/*!Last Changed 10.04.2005*/
	char* result = NULL, tmp[READLINELENGTH];
	int i, len = strlen(st);
	strcpy(tmp, "");
	for (i = 0; i < len; i++)
		 if (st[i] == '(')
			 {
				 if (strlen(tmp) != 0)
  				 *power = atoi(tmp);
					else
					  *power = 1;
    	strcpy(tmp, "");
			 }
			else
			  if (st[i] != ')')
						 sprintf(tmp, "%s%c", tmp, st[i]);
	result = strcopy(result, tmp);
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7a128, %rsp          # imm = 0x7A128
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4190
movq %rax, %r15
movb $0x0, (%rsp)
testl %r15d, %r15d
jle 0x49c48
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movq %rsp, %r12
leaq 0x599cd(%rip), %r13     # 0xa35cc
xorl %ebp, %ebp
movzbl (%r14,%rbp), %eax
cmpl $0x29, %eax
je 0x49c40
cmpl $0x28, %eax
jne 0x49c20
cmpb $0x0, (%rsp)
je 0x49c35
movq %r12, %rdi
callq 0x4200
jmp 0x49c3a
movsbl %al, %ecx
movq %r12, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x41b0
jmp 0x49c40
movl $0x1, %eax
movl %eax, (%rbx)
movb $0x0, (%rsp)
incq %rbp
cmpq %rbp, %r15
jne 0x49c01
movq %rsp, %rsi
xorl %edi, %edi
callq 0x3a404
addq $0x7a128, %rsp          # imm = 0x7A128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/multiplemodel.c
// Function: read_multiplicative_term_from_string
Mtermptr read_multiplicative_term_from_string(char* st)
{
	/*!Last Changed 10.04.2005*/
	Mtermptr result;
	char* termst;
	result = safemalloc(sizeof(Mterm), "read_multiplicative_term_from_string", 3);
	result->next = NULL;
	switch (st[0])
	 {
	  case 'x':result->functiontype = FUNC_POWER;
				        result->featureindex = index_and_power_from_string(&(st[1]), &(result->power));
												result->interm = NULL;
				        break;
			case 's':
			case 'c':if (st[0] == 's')
  				        result->functiontype = FUNC_SINUS;
				        else 
													 result->functiontype = FUNC_COSINUS;
												termst = interm_and_power_from_string(&(st[1]), &(result->power)); 
												result->interm = read_additive_term_from_string(termst);
												safe_free(termst);
				        break;
			default :result->functiontype = FUNC_CONSTANT;
				        result->value = atof(st);
												result->interm = NULL;
				        break;
	 }
	return result;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x5d97a(%rip), %rsi     # 0xa75ec
movl $0x3, %ebp
movl $0x28, %edi
movl $0x3, %edx
callq 0x390f5
movq %rax, %rbx
movq $0x0, 0x20(%rax)
movzbl (%r14), %eax
cmpl $0x63, %eax
je 0x49cc3
cmpl $0x73, %eax
je 0x49cbe
cmpl $0x78, %eax
jne 0x49ced
movl $0x1, 0x4(%rbx)
incq %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x49b0d
movl %eax, 0x8(%rbx)
jmp 0x49d01
movl $0x2, %ebp
movl %ebp, 0x4(%rbx)
incq %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x49bc6
movq %rax, %r14
movq %rax, %rdi
callq 0x49d11
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x39194
jmp 0x49d09
movl $0x0, 0x4(%rbx)
movq %r14, %rdi
callq 0x4130
movsd %xmm0, 0x10(%rbx)
movq $0x0, 0x18(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq