LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 0x52c5a(%rip), %rdi     # 0x95928
callq 0x4cdcf
movsd 0x52845(%rip), %xmm1    # 0x95520
subsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movl %r12d, %edi
movl %ebp, %esi
callq 0x34ccd
addl %r12d, %ebp
subl %eax, %ebp
movq (%rbx), %rdi
movq 0x8(%r15), %rcx
leaq 0x5775a(%rip), %r12     # 0x9a45c
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 0x576a0(%rip), %rdi     # 0x9a3d1
callq 0x4cf11
leaq 0x14(%rsp), %rdx
leaq 0x18(%rsp), %rcx
movl %eax, %edi
movq %rbx, %rsi
movsd 0x8(%rsp), %xmm0
callq 0x80505
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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, 0x30(%rsp)
movl %edx, %ebp
movq %rsi, 0x38(%rsp)
movq %rdi, %rbx
movslq %edx, %r14
imulq $0x14, %r14, %rdi
leaq 0x576e1(%rip), %rsi     # 0x9a469
pushq $0x4
popq %rdx
callq 0x34f59
movq %rax, %r13
movq %rax, %r12
xorl %eax, %eax
testl %r14d, %r14d
movl $0x0, %ecx
cmovgl %ebp, %ecx
imulq $0x14, %rcx, %rcx
xorl %edx, %edx
cmpq %rax, %rcx
je 0x42dcd
leaq 0x1(%rdx), %rsi
movl %esi, (%r12,%rax)
movl $0x1, 0x4(%r12,%rax)
movl %edx, 0x8(%r12,%rax)
addq $0x14, %rax
movq %rsi, %rdx
jmp 0x42da9
movl 0x10(%r12), %eax
movl %eax, 0x10(%rbx)
movups (%r12), %xmm0
movups %xmm0, (%rbx)
leaq 0x57685(%rip), %r8      # 0x9a469
pushq $0x8
popq %rdi
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
pushq $0xc
popq %r9
movl $0x1f4, %ecx            # imm = 0x1F4
callq 0x351c3
movq %rax, %r15
movq 0x30(%rsp), %rax
movl $0x1, (%rax)
addq $0x14, %r13
movslq 0x8(%rbx), %rax
cmpl %ebp, %eax
jge 0x42e8a
movq 0x30(%rsp), %rcx
incl (%rcx)
imulq $0x14, %rax, %r14
movl 0x10(%rbx), %eax
movl %eax, 0x70(%rsp)
movups (%rbx), %xmm0
movaps %xmm0, 0x60(%rsp)
movl 0x10(%r13,%r14), %eax
movl %eax, 0x50(%rsp)
movups (%r13,%r14), %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 %r15, %rdi
movq 0x38(%rsp), %rsi
callq 0x429f5
testl %eax, %eax
je 0x42e8a
addq %r13, %r14
movl 0x10(%r14), %eax
movl %eax, 0x10(%rbx)
movups (%r14), %xmm0
movups %xmm0, (%rbx)
jmp 0x42e0d
pushq $0x2
popq %rsi
movq %r15, %rdi
callq 0x34fc3
movq %r12, %rdi
callq 0x34ff7
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_O2/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 0x575a9(%rip), %r8      # 0x9a48a
pushq $0x8
popq %rdi
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
pushq $0x4
popq %r9
movl $0x1f4, %ecx            # imm = 0x1F4
callq 0x351c3
movq %rax, %r13
movl $0x1, (%rbx)
movl %r12d, %r14d
cmpl %ebp, %r12d
jge 0x42f28
incl (%rbx)
leal 0x1(%r14), %r12d
movq %r13, %rdi
movq (%rsp), %rsi
movq %r15, %rdx
movl %r14d, %ecx
movl %r12d, %r8d
callq 0x42cac
testl %eax, %eax
jne 0x42f01
pushq $0x2
popq %rsi
movq %r13, %rdi
callq 0x34fc3
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_O2/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
movq %rsi, 0x38(%rsp)
movq %rdi, %rbx
movslq %edx, %r15
imulq $0x14, %r15, %rbp
leaq 0x5753b(%rip), %rsi     # 0x9a4a7
pushq $0x4
popq %rdx
movq %rbp, %rdi
callq 0x34f59
movq %rax, %r13
movq %rax, %r12
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
imulq $0x14, %r15, %rcx
xorl %edx, %edx
cmpq %rax, %rcx
je 0x42fb0
leaq 0x1(%rdx), %rsi
movl %esi, (%r12,%rax)
movl $0x1, 0x4(%r12,%rax)
movl %edx, 0x8(%r12,%rax)
addq $0x14, %rax
movq %rsi, %rdx
jmp 0x42f8c
movl -0x4(%r12,%rbp), %eax
movl %eax, 0x10(%rbx)
movups -0x14(%r12,%rbp), %xmm0
movups %xmm0, (%rbx)
leaq 0x574df(%rip), %r8      # 0x9a4a7
pushq $0x8
popq %rdi
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
pushq $0xc
popq %r9
movl $0x1f4, %ecx            # imm = 0x1F4
callq 0x351c3
movq %rax, %rbp
movl $0x1, (%r14)
addq $-0x14, %r13
movslq 0x8(%rbx), %rax
testq %rax, %rax
jle 0x43067
incl (%r14)
imulq $0x14, %rax, %r15
movl 0x10(%rbx), %eax
movl %eax, 0x70(%rsp)
movups (%rbx), %xmm0
movaps %xmm0, 0x60(%rsp)
movl 0x10(%r13,%r15), %eax
movl %eax, 0x50(%rsp)
movups (%r13,%r15), %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 %rbp, %rdi
movq 0x38(%rsp), %rsi
callq 0x429f5
testl %eax, %eax
je 0x43067
addq %r13, %r15
movl 0x10(%r15), %eax
movl %eax, 0x10(%rbx)
movups (%r15), %xmm0
movups %xmm0, (%rbx)
jmp 0x42fed
movq %r12, %rdi
callq 0x34ff7
pushq $0x2
popq %rsi
movq %rbp, %rdi
callq 0x34fc3
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_O2/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 0x57416(%rip), %r8      # 0x9a4c9
pushq $0x8
popq %rdi
pushq $0x1
popq %rsi
pushq $0x2
popq %rdx
pushq $0x4
popq %r9
movl $0x1f4, %ecx            # imm = 0x1F4
callq 0x351c3
movq %rax, %r12
movl $0x1, (%rbx)
movl %ebp, %r13d
testl %ebp, %ebp
jle 0x430f8
incl (%rbx)
leal -0x1(%r13), %ebp
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x42cac
cmpl $0x1, %eax
jne 0x430d3
pushq $0x2
popq %rsi
movq %r12, %rdi
callq 0x34fc3
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_O2/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 0x43192
movl %esi, %eax
leaq 0x571c7(%rip), %rcx     # 0x9a300
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r14, %rcx
callq 0x42d5d
jmp 0x431b3
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movl %r15d, %ecx
movq %r14, %r8
jmp 0x4318b
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r14, %rcx
callq 0x42f45
jmp 0x431b3
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movl %r15d, %ecx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x426c0
jmp 0x431b3
leaq 0x5734e(%rip), %rdi     # 0x9a4e7
xorl %eax, %eax
callq 0x4030
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movl %r15d, %ecx
movq %r14, %r8
callq 0x41dfc
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x8a69b(%rip), %rax     # 0xcd878
movq (%rax), %rdi
callq 0x13da6
testq %rax, %rax
je 0x4329f
cmpl $0x4, %r12d
ja 0x4328e
movl %r12d, %ecx
leaq 0x57112(%rip), %rdx     # 0x9a314
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 0x420f3
pushq $0x1
popq %r9
movq %rax, %rdi
movq %r15, %rsi
movl %r14d, %edx
movl %ebp, %ecx
movq %rbx, %r8
jmp 0x43266
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 0x4308c
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 0x42aae
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 0x42eaf
leaq 0x57252(%rip), %rdi     # 0x9a4e7
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_O2/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 %rbx
movq %rsi, %rax
movq %rdi, %rbx
movl 0x4(%rdi), %esi
leal -0x2(%rsi), %ecx
cmpl $0x2, %ecx
jb 0x43baa
cmpl $0x1, %esi
je 0x43bc3
testl %esi, %esi
jne 0x43be1
movsd 0x10(%rbx), %xmm0
jmp 0x43bf7
movq 0x18(%rbx), %rdi
movq %rax, %rsi
callq 0x43bf9
cmpl $0x2, 0x4(%rbx)
jne 0x43bcf
callq 0x4320
jmp 0x43bd4
movslq 0x8(%rbx), %rcx
movsd -0x8(%rax,%rcx,8), %xmm0
jmp 0x43bd4
callq 0x4110
movl (%rbx), %edi
cmpl $0x1, %edi
je 0x43bf7
popq %rbx
jmp 0x34c9a
leaq 0x569a8(%rip), %rdi     # 0x9a590
xorl %eax, %eax
callq 0x4030
movsd 0x51929(%rip), %xmm0    # 0x95520
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rdi), %r15
movsd 0x5190c(%rip), %xmm1    # 0x95520
movq (%r15), %r15
testq %r15, %r15
je 0x43c3d
movq %r15, %rdi
movq %r14, %rsi
movsd %xmm1, 0x8(%rsp)
callq 0x43b88
movsd 0x8(%rsp), %xmm1
mulsd %xmm0, %xmm1
addq $0x20, %r15
jmp 0x43c14
cvtsi2sdl (%rbx), %xmm0
mulsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
leaq 0x30(%rsp), %r15
movq %r15, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x43c9a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x43bf9
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
addq $0x10, %r14
jmp 0x43c71
movsd 0x10(%r15), %xmm1
xorpd %xmm0, %xmm0
callq 0x81937
addsd 0x8(%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
andl $0x0, (%rbx)
movq %rsp, %rax
movb $0x0, (%rax)
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
xorl %r13d, %r13d
xorl %r12d, %r12d
xorl %ebp, %ebp
cmpq %r13, %r15
je 0x43db4
movzbl (%r14,%r13), %ecx
cmpl $0x28, %ecx
je 0x43d92
cmpl $0x29, %ecx
je 0x43d6c
cmpl $0x63, %ecx
je 0x43d1d
cmpl $0x78, %ecx
je 0x43d1d
cmpl $0x73, %ecx
jne 0x43d80
testq %r13, %r13
je 0x43d83
testl %r12d, %r12d
jne 0x43d83
movslq (%rbx), %rax
leaq 0x1(%rax), %rdx
movl %edx, (%rbx)
leaq 0x8(,%rax,8), %rsi
movq %rbp, %rdi
callq 0x34f30
movq %rax, %rbp
movslq (%rbx), %rax
movq -0x8(%rbp,%rax,8), %rdi
movq %rsp, %rsi
callq 0x3604c
movslq (%rbx), %rcx
movq %rax, -0x8(%rbp,%rcx,8)
movb (%r14,%r13), %al
movb %al, (%rsp)
movb $0x0, 0x1(%rsp)
xorl %r12d, %r12d
jmp 0x43dac
decl %r12d
movq %rsp, %rdi
leaq 0x52837(%rip), %rsi     # 0x965b0
movq %rdi, %rdx
pushq $0x29
jmp 0x43da4
movsbl %cl, %ecx
movq %rsp, %rdi
leaq 0x52823(%rip), %rsi     # 0x965b0
movq %rdi, %rdx
jmp 0x43da5
incl %r12d
movq %rsp, %rdi
leaq 0x52811(%rip), %rsi     # 0x965b0
movq %rdi, %rdx
pushq $0x28
popq %rcx
xorl %eax, %eax
callq 0x41b0
incq %r13
jmp 0x43cf2
movslq (%rbx), %rax
leaq 0x1(%rax), %rdx
movl %edx, (%rbx)
leaq 0x8(,%rax,8), %rsi
movq %rbp, %rdi
callq 0x34f30
movq %rax, %r14
movslq (%rbx), %rax
movq -0x8(%r14,%rax,8), %rdi
movq %rsp, %rsi
callq 0x3604c
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_O2/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 $0x7a138, %rsp          # imm = 0x7A138
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4190
movq %rax, %r15
movq %rbx, 0x8(%rsp)
andl $0x0, (%rbx)
leaq 0x10(%rsp), %rcx
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
movb $0x0, (%rcx)
leaq 0x5673c(%rip), %r13     # 0x9a578
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %ebp, %ebp
cmpq %rbx, %r15
je 0x43f26
movzbl (%r14,%rbx), %ecx
leal -0x28(%rcx), %eax
cmpl $0x5, %eax
ja 0x43f05
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
testq %rbx, %rbx
je 0x43ef4
testl %r12d, %r12d
jne 0x43ef4
movq 0x8(%rsp), %r12
movslq (%r12), %rax
leaq 0x1(%rax), %rdx
movl %edx, (%r12)
leaq 0x8(,%rax,8), %rsi
movq %rbp, %rdi
callq 0x34f30
movq %rax, %rbp
movslq (%r12), %rax
movq -0x8(%rbp,%rax,8), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3604c
movslq (%r12), %rcx
movq %rax, -0x8(%rbp,%rcx,8)
movb (%r14,%rbx), %al
movb %al, 0x10(%rsp)
movb $0x0, 0x11(%rsp)
xorl %r12d, %r12d
jmp 0x43f1e
decl %r12d
leaq 0x10(%rsp), %rdi
leaq 0x526da(%rip), %rsi     # 0x965b0
movq %rdi, %rdx
pushq $0x29
jmp 0x43ef1
incl %r12d
leaq 0x10(%rsp), %rdi
leaq 0x526c4(%rip), %rsi     # 0x965b0
movq %rdi, %rdx
pushq $0x28
popq %rcx
jmp 0x43f17
leaq 0x10(%rsp), %rdi
leaq 0x526b0(%rip), %rsi     # 0x965b0
movq %rdi, %rdx
jmp 0x43f17
movsbl %cl, %ecx
leaq 0x10(%rsp), %rdi
leaq 0x5269c(%rip), %rsi     # 0x965b0
movq %rdi, %rdx
xorl %eax, %eax
callq 0x41b0
incq %rbx
jmp 0x43e43
movq 0x8(%rsp), %rbx
movslq (%rbx), %rax
leaq 0x1(%rax), %rdx
movl %edx, (%rbx)
leaq 0x8(,%rax,8), %rsi
movq %rbp, %rdi
callq 0x34f30
movq %rax, %r14
movslq (%rbx), %rax
movq -0x8(%r14,%rax,8), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3604c
movslq (%rbx), %rcx
movq %rax, -0x8(%r14,%rcx,8)
movq %r14, %rax
addq $0x7a138, %rsp          # imm = 0x7A138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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, 0x8(%rsp)
movq %rdi, %r14
callq 0x4190
leaq 0x10(%rsp), %r15
movb $0x0, (%r15)
movslq %eax, %r13
pushq $0x1
popq %rbx
xorl %r12d, %r12d
cmpq %r13, %rbx
jge 0x43fe0
movsbl (%r14,%rbx), %ecx
movq %r15, %rdi
cmpl $0x5e, %ecx
jne 0x43fca
callq 0x4200
movl %eax, %ebp
movb $0x0, 0x10(%rsp)
pushq $0x1
popq %r12
jmp 0x43fdb
leaq 0x525df(%rip), %rsi     # 0x965b0
movq %r15, %rdx
xorl %eax, %eax
callq 0x41b0
incq %rbx
jmp 0x43fa6
leaq 0x10(%rsp), %rdi
callq 0x4200
testl %r12d, %r12d
pushq $0x1
popq %rcx
cmovnel %eax, %ecx
cmovnel %ebp, %eax
movq 0x8(%rsp), %rdx
movl %ecx, (%rdx)
addq $0x7a138, %rsp          # imm = 0x7A138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
movq %rsp, %r12
xorl %eax, %eax
testl %r15d, %r15d
cmovlel %eax, %r15d
movb $0x0, (%r12)
leaq 0x5256a(%rip), %r13     # 0x965b0
xorl %ebp, %ebp
cmpq %rbp, %r15
je 0x4408d
movzbl (%r14,%rbp), %eax
cmpl $0x29, %eax
je 0x44088
cmpl $0x28, %eax
jne 0x44075
cmpb $0x0, (%rsp)
pushq $0x1
popq %rax
je 0x4406d
movq %r12, %rdi
callq 0x4200
movl %eax, (%rbx)
movb $0x0, (%rsp)
jmp 0x44088
movsbl %al, %ecx
movq %r12, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x41b0
incq %rbp
jmp 0x44048
movq %rsp, %rsi
xorl %edi, %edi
callq 0x3604c
addq $0x7a128, %rsp          # imm = 0x7A128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x56505(%rip), %rsi     # 0x9a5bc
pushq $0x28
popq %rdi
pushq $0x3
popq %rbp
movl %ebp, %edx
callq 0x34f59
movq %rax, %rbx
andq $0x0, 0x20(%rax)
movzbl (%r14), %eax
cmpl $0x63, %eax
je 0x440fc
cmpl $0x73, %eax
je 0x440f9
cmpl $0x78, %eax
jne 0x44126
movl $0x1, 0x4(%rbx)
incq %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x43f76
movl %eax, 0x8(%rbx)
jmp 0x44137
pushq $0x2
popq %rbp
movl %ebp, 0x4(%rbx)
incq %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4400f
movq %rax, %r14
movq %rax, %rdi
callq 0x44144
movq %rax, 0x18(%rbx)
movq %r14, %rdi
callq 0x34ff7
jmp 0x4413c
andl $0x0, 0x4(%rbx)
movq %r14, %rdi
callq 0x4130
movsd %xmm0, 0x10(%rbx)
andq $0x0, 0x18(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/multiplemodel.c
// Function: read_additive_term_from_string
Atermptr read_additive_term_from_string(char* st)
{
	/*!Last Changed 10.04.2005*/
	Atermptr result;
	Mtermptr tmp, before;
	char** terms;
	int mulcount, i;
	result = safemalloc(sizeof(Aterm), "read_additive_term_from_string", 5);
	result->next = NULL;
	if (st[0] == '-')
		 result->sign = -1;
 else
		 result->sign = 1;
	if (st[0] == '+' || st[0] == '-')
	  terms = extract_multiplicative_terms(&(st[1]), &mulcount);
	else
   terms = extract_multiplicative_terms(st, &mulcount);
 result->start = read_multiplicative_term_from_string(terms[0]);
	before = result->start;
	for (i = 1; i < mulcount; i++)
	 {
		 tmp = read_multiplicative_term_from_string(terms[i]);
			before->next = tmp;
			before = tmp;
	 }
	free_2d((void**)terms, mulcount);
	return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
leaq 0x56486(%rip), %rsi     # 0x9a5e1
pushq $0x18
popq %rdi
pushq $0x5
popq %rdx
callq 0x34f59
movq %rax, %rbx
andq $0x0, 0x10(%rax)
xorl %eax, %eax
cmpb $0x2d, (%r14)
setne %al
leal -0x1(,%rax,2), %eax
movl %eax, (%rbx)
movzbl (%r14), %eax
cmpl $0x2d, %eax
je 0x4418e
cmpl $0x2b, %eax
jne 0x44191
incq %r14
leaq 0xc(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x43cb9
movq %rax, %r14
movq (%rax), %rdi
callq 0x440a9
movq %rax, %r12
movq %rax, 0x8(%rbx)
movslq (%r15), %r15
pushq $0x1
popq %r13
cmpq %r15, %r13
jge 0x441d5
movq (%r14,%r13,8), %rdi
callq 0x440a9
movq %rax, 0x20(%r12)
incq %r13
movq %rax, %r12
jmp 0x441ba
movq %r14, %rdi
movl %r15d, %esi
callq 0x34fc3
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/multiplemodel.c
// Function: read_single_model_from_string
void read_single_model_from_string(Singlemodelptr s, char* modelst)
{
	/*!Last Changed 10.04.2005*/
	int addcount, i;
	char** terms;
	Atermptr tmp, before;
 terms = extract_additive_terms(modelst, &addcount);
	s->start = read_additive_term_from_string(terms[0]);
	before = s->start;
 for (i = 1; i < addcount; i++)
	 {
		 tmp = read_additive_term_from_string(terms[i]);
			before->next = tmp;
			before = tmp;
	 }
	free_2d((void**)terms, addcount);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x4(%rsp), %r12
movq %rsi, %rdi
movq %r12, %rsi
callq 0x43dfd
movq %rax, %rbx
movq (%rax), %rdi
callq 0x44144
movq %rax, %r15
movq %rax, (%r14)
movslq (%r12), %r14
pushq $0x1
popq %r12
cmpq %r14, %r12
jge 0x4423f
movq (%rbx,%r12,8), %rdi
callq 0x44144
movq %rax, 0x10(%r15)
incq %r12
movq %rax, %r15
jmp 0x44225
movq %rbx, %rdi
movl %r14d, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x34fc3
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/multiplemodel.c
// Function: read_multiple_model_from_file
Multiplemodelptr read_multiple_model_from_file(char* modelfile)
{
	/*!Last Changed 10.04.2005*/
	FILE* infile;
	int i;
	char modelst[READLINELENGTH];
	Multiplemodelptr result;
 infile = fopen(modelfile, "r");
	if (!infile)
		 return NULL;
	result = safemalloc(sizeof(Multiplemodel), "read_multiple_model_from_file", 8);
	fscanf(infile, "%d", &(result->featurecount));
	result->min = safemalloc(result->featurecount * sizeof(double), "read_multiple_model_from_file", 10);
	result->max = safemalloc(result->featurecount * sizeof(double), "read_multiple_model_from_file", 11);
	for (i = 0; i < result->featurecount; i++)
		 fscanf(infile, "%lf%lf", &(result->min[i]), &(result->max[i]));
	fscanf(infile, "%d", &(result->modelcount));
	result->models = safemalloc(result->modelcount * sizeof(Singlemodel), "read_multiple_model_from_file", 15);
	for (i = 0; i < result->modelcount; i++)
	 {
		 fscanf(infile, "%d%lf", &(result->models[i].datacount), &(result->models[i].noiselevel));
			fscanf(infile, "%s", modelst);
   read_single_model_from_string(&(result->models[i]), modelst);
	 }
	fclose(infile);
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7a128, %rsp          # imm = 0x7A128
leaq 0x57612(%rip), %rsi     # 0x9b87f
callq 0x40f0
testq %rax, %rax
je 0x443b3
movq %rax, %rbx
leaq 0x5637b(%rip), %r12     # 0x9a600
pushq $0x20
popq %rdi
pushq $0x8
popq %rdx
movq %r12, %rsi
callq 0x34f59
movq %rax, %r14
leaq 0xc(%rax), %r15
leaq 0x5c8b8(%rip), %rsi     # 0xa0b59
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4070
movslq 0xc(%r14), %rdi
shlq $0x3, %rdi
pushq $0xa
popq %rdx
movq %r12, %rsi
callq 0x34f59
movq %rax, 0x10(%r14)
movslq 0xc(%r14), %rdi
shlq $0x3, %rdi
pushq $0xb
popq %rdx
movq %r12, %rsi
callq 0x34f59
movq %rax, 0x18(%r14)
leaq 0x55a80(%rip), %r12     # 0x99d63
xorl %r13d, %r13d
xorl %ebp, %ebp
movslq (%r15), %rax
cmpq %rax, %rbp
jge 0x44314
movq 0x10(%r14), %rdx
addq %r13, %rdx
movq 0x18(%r14), %rcx
addq %r13, %rcx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4070
incq %rbp
addq $0x8, %r13
jmp 0x442e8
movq %r14, %r15
addq $0x8, %r15
leaq 0x5c837(%rip), %rsi     # 0xa0b59
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4070
movslq 0x8(%r14), %rax
imulq $0x18, %rax, %rdi
leaq 0x562c2(%rip), %rsi     # 0x9a600
pushq $0xf
popq %rdx
callq 0x34f59
movq %rax, (%r14)
movq %rsp, %rbp
xorl %r12d, %r12d
xorl %r13d, %r13d
movslq (%r15), %rax
cmpq %rax, %r13
jge 0x443a9
movq (%r14), %rax
leaq (%rax,%r12), %rdx
addq $0x8, %rdx
leaq (%rax,%r12), %rcx
addq $0x10, %rcx
movq %rbx, %rdi
leaq 0x562a7(%rip), %rsi     # 0x9a61e
xorl %eax, %eax
callq 0x4070
movq %rbx, %rdi
leaq 0x53b48(%rip), %rsi     # 0x97ed0
movq %rbp, %rdx
xorl %eax, %eax
callq 0x4070
movq (%r14), %rdi
addq %r12, %rdi
movq %rbp, %rsi
callq 0x441f1
incq %r13
addq $0x18, %r12
jmp 0x44352
movq %rbx, %rdi
callq 0x42a0
jmp 0x443b6
xorl %r14d, %r14d
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_O2/olcaytaner[P]Isell/multiplemodel.c
// Function: free_additive_term
void free_additive_term(Atermptr a)
{
	/*!Last Changed 11.04.2005*/
	Mtermptr tmp, next;
	tmp = a->start;
	while (tmp)
	 {
		 next = tmp->next;
			free_multiplicative_term(tmp);
			safe_free(tmp);
			tmp = next;
	 }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rbx
testq %rbx, %rbx
je 0x4440f
movq 0x20(%rbx), %r14
movq %rbx, %rdi
callq 0x443cb
movq %rbx, %rdi
callq 0x34ff7
movq %r14, %rbx
jmp 0x443f1
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/multiplemodel.c
// Function: free_single_model
void free_single_model(Singlemodel s)
{
	/*!Last Changed 11.04.2005*/
	Atermptr tmp, next;
 tmp = s.start;
	while (tmp)
	 {
		 next = tmp->next;
			free_additive_term(tmp);
			safe_free(tmp);
			tmp = next;
	 }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x20(%rsp), %rbx
testq %rbx, %rbx
je 0x4443e
movq 0x10(%rbx), %r14
movq %rbx, %rdi
callq 0x443e9
movq %rbx, %rdi
callq 0x34ff7
movq %r14, %rbx
jmp 0x44420
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/multiplemodel.c
// Function: free_multiple_model
void free_multiple_model(Multiplemodelptr m)
{
	/*!Last Changed 11.04.2005*/
	int i;
	safe_free(m->min);
	safe_free(m->max);
	for (i = 0; i < m->modelcount; i++)
		 free_single_model(m->models[i]);
	safe_free(m->models);
	safe_free(m);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
callq 0x34ff7
movq 0x18(%rbx), %rdi
callq 0x34ff7
xorl %r14d, %r14d
xorl %r15d, %r15d
movslq 0x8(%rbx), %rax
movq (%rbx), %rdi
cmpq %rax, %r15
jge 0x44497
movq 0x10(%rdi,%r14), %rax
movq %rax, 0x10(%rsp)
movups (%rdi,%r14), %xmm0
movups %xmm0, (%rsp)
callq 0x44417
incq %r15
addq $0x18, %r14
jmp 0x4446a
callq 0x34ff7
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x34ff7
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/multiplemodel.c
// Function: data_count_of_multiple_model
int data_count_of_multiple_model(Multiplemodelptr m)
{
	/*!Last Changed 11.04.2005*/
	int result = 0, i;
	for (i = 0; i < m->modelcount; i++)
		 result += m->models[i].datacount;
	return result;
}

// Assembly:
movl 0x8(%rdi), %eax
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
imulq $0x18, %rax, %rdx
xorl %eax, %eax
cmpq %rcx, %rdx
je 0x444cf
movq (%rdi), %rsi
addl 0x8(%rsi,%rcx), %eax
addq $0x18, %rcx
jmp 0x444bd
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/multiplemodel.c
// Function: generate_data_from_single_model
matrix generate_data_from_single_model(Singlemodel s, int featurecount, double* min, double* max)
{
	/*!Last Changed 11.04.2005*/
	int i, j;
	matrix result;
	result = matrix_alloc(s.datacount, featurecount + 1);
	for (i = 0; i < s.datacount; i++)
	 {
		 for (j = 0; j < featurecount; j++)
				 result.values[i][j] = produce_random_value(min[j], max[j]);
			result.values[i][j] = single_model_value(s, result.values[i]);
	 }
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %r15d
leaq 0x60(%rsp), %rax
movl 0x8(%rax), %r12d
leal 0x1(%r15), %esi
movl %r12d, %edi
callq 0x380d3
movq %rax, 0x18(%rsp)
xorl %r13d, %r13d
testl %r15d, %r15d
cmovlel %r13d, %r15d
movq %rdx, %rbp
testl %r12d, %r12d
cmovlel %r13d, %r12d
movq %r12, 0x20(%rsp)
cmpq 0x20(%rsp), %r13
je 0x44579
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x4454a
movsd (%r14,%r12,8), %xmm0
movsd (%rbx,%r12,8), %xmm1
callq 0x35cae
movq (%rbp,%r13,8), %rax
movsd %xmm0, (%rax,%r12,8)
incq %r12
jmp 0x44524
movq (%rbp,%r13,8), %rdi
leaq 0x60(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, 0x10(%rsp)
movups (%rcx), %xmm0
movups %xmm0, (%rsp)
callq 0x43c53
movq (%rbp,%r13,8), %rax
movsd %xmm0, (%rax,%r15,8)
incq %r13
jmp 0x4451a
movq 0x18(%rsp), %rax
movq %rbp, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/multiplemodel.c
// Function: generate_data_from_multiple_model
matrix generate_data_from_multiple_model(Multiplemodelptr m)
{
	/*!Last Changed 11.04.2005*/
	matrix result;
	int datacount, i, j, k, p;
 datacount = data_count_of_multiple_model(m);
	result = matrix_alloc(datacount, m->featurecount + 1);
	k = 0;
	for (i = 0; i < m->modelcount; i++)
		 for (j = 0; j < m->models[i].datacount; j++)
			 {
		   for (p = 0; p < m->featurecount; p++)
				   result.values[k][p] = produce_random_value(m->min[p], m->max[p]);
     result.values[k][p] = single_model_value(m->models[i], result.values[k]);
			  k++;
			 }
	return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
callq 0x444ad
movl 0xc(%rbx), %esi
incl %esi
movl %eax, %edi
callq 0x380d3
movq %rax, 0x18(%rsp)
movq %rdx, %r15
xorl %ecx, %ecx
xorl %r13d, %r13d
movslq 0x8(%rbx), %rax
cmpq %rax, %rcx
jge 0x44655
movslq %r13d, %r13
xorl %ebp, %ebp
movq %rcx, 0x20(%rsp)
imulq $0x18, %rcx, %r14
movq (%rbx), %rax
cmpl 0x8(%rax,%r14), %ebp
jge 0x44648
xorl %r12d, %r12d
movslq 0xc(%rbx), %rax
cmpq %rax, %r12
jge 0x44618
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
movsd (%rax,%r12,8), %xmm0
movsd (%rcx,%r12,8), %xmm1
callq 0x35cae
movq (%r15,%r13,8), %rax
movsd %xmm0, (%rax,%r12,8)
incq %r12
jmp 0x445e7
movq (%rbx), %rax
movq (%r15,%r13,8), %rdi
movq 0x10(%rax,%r14), %rcx
movq %rcx, 0x10(%rsp)
movups (%rax,%r14), %xmm0
movups %xmm0, (%rsp)
callq 0x43c53
movq (%r15,%r13,8), %rax
movsd %xmm0, (%rax,%r12,8)
incq %r13
incl %ebp
jmp 0x445da
movq 0x20(%rsp), %rcx
incq %rcx
jmp 0x445bf
movq 0x18(%rsp), %rax
movq %r15, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/multiplemodel.c
// Function: remove_instances_according_to_threshold
void remove_instances_according_to_threshold(Instanceptr* parentlist, Instanceptr* removed, double threshold, matrix w, char which)
{
	/*!Last Changed 11.04.2005*/
	double value;
	Instanceptr last, tmp, before, next;
	last = *removed;
	if (last)
		 while (last->next != NULL)
				 last = last->next;
	tmp = *parentlist;
	before = NULL;
	while (tmp)
	 {
		 next = tmp->next;
		 value = fabs(linear_fit_value(w, tmp) - give_regressionvalue(tmp));
			if ((value > threshold && which == '>') || (value < threshold && which == '<'))
			 {
				 if (last)
  				 last->next = tmp;
					else
						 *removed = tmp;
					last = tmp;
					if (before)
						 before->next = tmp->next;
					else
						 *parentlist = tmp->next;
			 }
			else
				 before = tmp;
			tmp = next;
	 }
	last->next = NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r8d, %ebx
movq %rcx, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movsd %xmm0, 0x18(%rsp)
movq %rsi, 0x8(%rsp)
movq (%rsi), %rax
testq %rax, %rax
je 0x446a8
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x4469a
jmp 0x446ab
xorl %r13d, %r13d
movq (%rdi), %r14
xorl %ebp, %ebp
movq %rdi, (%rsp)
leaq 0x10(%rbp), %rax
testq %rbp, %rbp
cmoveq %rdi, %rax
movq %rax, 0x10(%rsp)
testq %r14, %r14
je 0x4475f
movq %r14, %rbp
cmpb $0x3c, %bl
sete %r12b
cmpb $0x3e, %bl
sete %r15b
movq 0x10(%r14), %r14
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rbp, %rdx
callq 0x6ce0c
movapd %xmm0, 0x30(%rsp)
movq %rbp, %rdi
callq 0x2b4a0
movapd 0x30(%rsp), %xmm1
subsd %xmm0, %xmm1
andpd 0x51acc(%rip), %xmm1    # 0x961e0
movsd 0x18(%rsp), %xmm0
ucomisd %xmm0, %xmm1
seta %cl
ucomisd %xmm1, %xmm0
seta %al
testb %cl, %r15b
jne 0x44732
andb %al, %r12b
je 0x44756
leaq 0x10(%r13), %rax
testq %r13, %r13
cmoveq 0x8(%rsp), %rax
movq %rbp, (%rax)
movq 0x10(%rbp), %rax
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movq %rbp, %r13
jmp 0x446c4
movq (%rsp), %rdi
jmp 0x446b4
andq $0x0, 0x10(%r13)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/multivariaterule.c
// Function: error_of_ruleset_with_deleted_rules
int error_of_ruleset_with_deleted_rules(Ruleset set, Instanceptr data, int* deleted)
{
/*!Last Changed 14.01.2004*/
 int instanceclassno, covered, error, i;
 Instanceptr test = data;
 Decisionruleptr tmp;
 error = 0;
 while (test)
  {
   instanceclassno = give_classno(test);
   covered = 0;
   tmp = set.start;
   i = 0;
   while (tmp)
    {
     if ((!deleted[i]) && rule_cover_instance(test, *tmp))
      {
       if (instanceclassno != tmp->classno)
         error++;
       covered = 1;
       break;
      }
     i++;
     tmp = tmp->next;
    }
   if (!covered)
     if (instanceclassno != set.defaultclass)
       error++;
   test=test->next;
  }
 return error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, 0x40(%rsp)
movq %rdi, %r14
leaq 0x80(%rsp), %rax
xorl %ebp, %ebp
movl 0x14(%rax), %r13d
testq %r14, %r14
je 0x44b75
movq %r14, %rdi
callq 0x2b47e
movl %eax, %r15d
movq 0x40(%rsp), %rbx
leaq 0x80(%rsp), %r12
movq (%r12), %r12
testq %r12, %r12
je 0x44b59
cmpl $0x0, (%rbx)
jne 0x44b44
movq 0x30(%r12), %rax
movq %rax, 0x30(%rsp)
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r14, %rdi
callq 0x71406
testl %eax, %eax
jne 0x44b4e
addq $0x30, %r12
addq $0x4, %rbx
jmp 0x44b01
xorl %eax, %eax
cmpl (%r12), %r15d
setne %al
addl %eax, %ebp
testq %r12, %r12
sete %al
cmpl %r13d, %r15d
setne %cl
andb %al, %cl
movzbl %cl, %eax
addl %eax, %ebp
movq 0x10(%r14), %r14
jmp 0x44ae0
movl %ebp, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/multivariaterule.c
// Function: validation_error_after_pruning
int validation_error_after_pruning(Ruleset r, Instanceptr cvdata, int positive)
{
 /*!Last Changed 02.02.2004 added safecalloc*/
 /*!Last Changed 14.01.2004*/
 int result, *deleted, rulecount, tmp, i;
 Decisionruleptr rule;
 deleted = safecalloc(r.rulecount, sizeof(int), "validation_error_after_pruning", 3);
 result = error_of_ruleset_with_deleted_rules(r, cvdata, deleted);
 rule = r.start;
 rulecount = 0;
 while (rule && rule->classno != positive)
  {
   rule = rule->next;
   rulecount++;
  }
 for (i = r.rulecount - 1; i >= rulecount; i--)
  {
   deleted[i] = 1;
   tmp = error_of_ruleset_with_deleted_rules(r, cvdata, deleted);
   if (tmp > result)
     deleted[i] = 0;
   else
     result = tmp;
  }
 safe_free(deleted);
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, 0x34(%rsp)
movq %rdi, %rbx
leaq 0x70(%rsp), %r13
movslq 0x10(%r13), %r14
leaq 0x55a80(%rip), %rdx     # 0x9a62b
pushq $0x4
popq %rsi
pushq $0x3
popq %rcx
movq %r14, %rdi
callq 0x35067
movq %rax, %r15
movq 0x20(%r13), %rax
movq %rax, 0x20(%rsp)
movaps (%r13), %xmm0
movaps 0x10(%r13), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x44abc
movl %eax, %ebp
xorl %r12d, %r12d
movq %r13, %rax
movl 0x34(%rsp), %ecx
movq (%rax), %rax
testq %rax, %rax
je 0x44c40
cmpl %ecx, (%rax)
je 0x44c40
addq $0x30, %rax
incq %r12
jmp 0x44bef
movl $0x1, (%r15,%r14,4)
movq 0x20(%r13), %rax
movq %rax, 0x20(%rsp)
movups (%r13), %xmm0
movups 0x10(%r13), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x44abc
cmpl %ebp, %eax
jle 0x44c3e
andl $0x0, (%r15,%r14,4)
jmp 0x44c40
movl %eax, %ebp
decq %r14
leaq 0x1(%r14), %rax
cmpq %r12, %rax
jg 0x44c04
movq %r15, %rdi
callq 0x34ff7
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq