LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/metaclassification.c
// Function: train_one_vs_rest
void** train_one_vs_rest(Instanceptr* trdata, Instanceptr* cvdata, int algorithm, void* parameters)
{
 Datasetptr tmp;
 int i;
 void** model;
 Instanceptr train = NULL, cv = NULL;
 model = safemalloc(sizeof(void*) * current_dataset->classno, "test_one_vs_rest", 2);
 for (i = 0; i < current_dataset->classno; i++)
  {
   divide_instancelist_one_vs_rest_with_copy(*trdata, &train, i);
   divide_instancelist_one_vs_rest_with_copy(*cvdata, &cv, i);
   tmp = copy_of_dataset(current_dataset);
   current_dataset->classno = 2;
   current_dataset->classcounts[0] = tmp->classcounts[i];
   current_dataset->classcounts[1] = tmp->datacount - tmp->classcounts[i];
   model[i] = classification_algorithms[algorithm - SELECTMAX].train_algorithm(&train, &cv, parameters);
   current_dataset->classno = tmp->classno;
   current_dataset->classcounts[0] = tmp->classcounts[0];
   current_dataset->classcounts[1] = tmp->classcounts[1];
   free_dataset(tmp);
   if (!in_list(algorithm, 1, KNN))
    {
     deallocate(train);
     deallocate(cv);
    }
  }
 return model;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, 0x30(%rsp)
movq %rdx, (%rsp)
movq %rsi, 0x28(%rsp)
movq %rdi, 0x20(%rsp)
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movq %rax, 0x10(%rsp)
leaq 0x90e2f(%rip), %r14     # 0xd2870
movq (%r14), %rax
movslq 0x10(%rax), %rdi
shlq $0x3, %rdi
leaq 0x657d5(%rip), %rsi     # 0xa7228
movl $0x2, %edx
callq 0x390f5
movq %rax, 0x8(%rsp)
movq (%r14), %rax
cmpl $0x0, 0x10(%rax)
jle 0x41b7c
movq (%rsp), %rax
addl $0xfffffc18, %eax       # imm = 0xFFFFFC18
cltq
leaq (%rax,%rax,4), %r13
shlq $0x3, %r13
addq 0x8f527(%rip), %r13     # 0xd0fb0
leaq 0x18(%rsp), %rbp
leaq 0x10(%rsp), %rbx
xorl %r15d, %r15d
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq %rbp, %rsi
movl %r15d, %edx
callq 0x303d9
movq 0x28(%rsp), %rax
movq (%rax), %rdi
movq %rbx, %rsi
movl %r15d, %edx
callq 0x303d9
movq (%r14), %rdi
callq 0x12df0
movq %rax, %r12
movq (%r14), %rax
movl $0x2, 0x10(%rax)
movl 0x1407140(%r12,%r15,4), %ecx
movl %ecx, 0x1407140(%rax)
movl 0x1407120(%r12), %ecx
subl 0x1407140(%r12,%r15,4), %ecx
movl %ecx, 0x1407144(%rax)
movq %rbp, %rdi
movq %rbx, %rsi
movq 0x30(%rsp), %rdx
callq *(%r13)
movq 0x8(%rsp), %rcx
movq %rax, (%rcx,%r15,8)
movl 0x10(%r12), %eax
movq (%r14), %rcx
movl %eax, 0x10(%rcx)
movl 0x1407140(%r12), %eax
movl %eax, 0x1407140(%rcx)
movl 0x1407144(%r12), %eax
movl %eax, 0x1407144(%rcx)
movq %r12, %rdi
callq 0x13765
movq (%rsp), %rdi
movl $0x1, %esi
movl $0x3e9, %edx            # imm = 0x3E9
xorl %eax, %eax
callq 0x39a80
testl %eax, %eax
jne 0x41b69
movq 0x18(%rsp), %rdi
callq 0x2f616
movq 0x10(%rsp), %rdi
callq 0x2f616
incq %r15
movq (%r14), %rax
movslq 0x10(%rax), %rax
cmpq %rax, %r15
jl 0x41a96
movq 0x8(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/metaclassification.c
// Function: test_one_vs_rest
Prediction test_one_vs_rest(Instanceptr data, void** model, int algorithm, void* parameters, double* posterior)
{
 int i, tmp;
 double* tmp_posteriors;
 Prediction result;
 tmp_posteriors = safemalloc(current_dataset->classno * sizeof(double), "test_one_vs_rest", 3);
 tmp = current_dataset->classno;
 for (i = 0; i < current_dataset->classno; i++)
  {
   current_dataset->classno = 2;
   classification_algorithms[algorithm - SELECTMAX].test_algorithm(data, model[i], parameters, tmp_posteriors);
   current_dataset->classno = tmp;
   posterior[i] = tmp_posteriors[0];
  }
 safe_free(tmp_posteriors);
 normalize_array_of_doubles(posterior, current_dataset->classno);
 result.classno = findMaxOutput(posterior, current_dataset->classno);
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r9, 0x8(%rsp)
movq %r8, 0x18(%rsp)
movl %ecx, %r15d
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, 0x10(%rsp)
leaq 0x90cb3(%rip), %rbx     # 0xd2870
movq (%rbx), %rax
movslq 0x10(%rax), %rdi
shlq $0x3, %rdi
leaq 0x65659(%rip), %rsi     # 0xa7228
movl $0x3, %edx
callq 0x390f5
movq %rax, %rbp
movq (%rbx), %rax
movl 0x10(%rax), %r14d
testl %r14d, %r14d
jle 0x41c59
addq $0x10, %rax
addl $0xfffffc18, %r15d      # imm = 0xFFFFFC18
movslq %r15d, %rcx
leaq (%rcx,%rcx,4), %rcx
leaq 0x8f5bf(%rip), %rdx     # 0xd11c0
leaq (%rdx,%rcx,8), %rbx
addq $0x8, %rbx
xorl %r15d, %r15d
movl $0x2, (%rax)
movq (%r12,%r15,8), %rdx
leaq 0x20(%rsp), %rdi
movq %r13, %rsi
movq 0x18(%rsp), %rcx
movq %rbp, %r8
callq *(%rbx)
leaq 0x90c41(%rip), %rcx     # 0xd2870
movq (%rcx), %rax
movl %r14d, 0x10(%rax)
movsd (%rbp), %xmm0
movq 0x8(%rsp), %rax
movsd %xmm0, (%rax,%r15,8)
incq %r15
movq (%rcx), %rax
movslq 0x10(%rax), %rcx
addq $0x10, %rax
cmpq %rcx, %r15
jl 0x41c0c
movq %rbp, %rdi
callq 0x39194
leaq 0x90c08(%rip), %r14     # 0xd2870
movq (%r14), %rax
movl 0x10(%rax), %esi
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x37aff
movq (%r14), %rax
movl 0x10(%rax), %esi
movq %rbx, %rdi
callq 0x37852
movq 0x10(%rsp), %rcx
movl %eax, 0x8(%rcx)
movq %rcx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/metaclassification.c
// Function: train_bagging_classification
void** train_bagging_classification(Instanceptr* trdata, Instanceptr* cvdata, int algorithm, void* parameters)
{
 int i, learner_count;
 Instanceptr traindata, validationdata;
 void** model;
 learner_count = get_parameter_i("weaklearnercount");
 model = safemalloc(sizeof(void*) * learner_count, "train_bagging_classification", 4);
 for (i = 0; i < learner_count; i++)
  {
   traindata = bootstrap_sample_without_stratification(*trdata);
   if (is_cvdata_needed(algorithm))
     validationdata = bootstrap_sample_without_stratification(*cvdata);
   else
     validationdata = NULL;
   model[i] = classification_algorithms[algorithm - SELECTMAX].train_algorithm(&traindata, &validationdata, parameters);
   deallocate(traindata);
   deallocate(validationdata);
  }
 return model;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, 0x20(%rsp)
movl %edx, %r14d
movq %rsi, 0x18(%rsp)
movq %rdi, %r12
leaq 0x6552e(%rip), %rdi     # 0xa71f6
callq 0x5341c
movl %eax, %r15d
movslq %eax, %rbx
leaq (,%rbx,8), %rdi
leaq 0x65557(%rip), %rsi     # 0xa7239
movl $0x4, %edx
callq 0x390f5
movq %rax, %r13
testl %ebx, %ebx
jle 0x41d77
leal -0x3e8(%r14), %eax
cltq
leaq (%rax,%rax,4), %rbp
shlq $0x3, %rbp
addq 0x8f2a1(%rip), %rbp     # 0xd0fb0
movl %r15d, %r15d
xorl %ebx, %ebx
movq (%r12), %rdi
callq 0x2fede
movq %rax, 0x10(%rsp)
movl %r14d, %edi
callq 0x595b
testl %eax, %eax
je 0x41d3d
movq 0x18(%rsp), %rax
movq (%rax), %rdi
callq 0x2fede
jmp 0x41d3f
xorl %eax, %eax
movq %rax, 0x8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq *(%rbp)
movq %rax, (%r13,%rbx,8)
movq 0x10(%rsp), %rdi
callq 0x2f616
movq 0x8(%rsp), %rdi
callq 0x2f616
incq %rbx
cmpq %rbx, %r15
jne 0x41d14
movq %r13, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/metaclassification.c
// Function: test_bagging_classification
Prediction test_bagging_classification(Instanceptr data, void** model, int algorithm, void* parameters, double* posterior)
{
 int i, learner_count;
 int* predictions;
 matrix posteriors;
 Prediction result, prediction;
 learner_count = get_parameter_i("weaklearnercount");
 predictions = safecalloc(learner_count, sizeof(int), "test_bagging_classification", 3);
 posteriors = matrix_alloc(learner_count, current_dataset->classno);
 for (i = 0; i < learner_count; i++)
  {
   prediction = classification_algorithms[algorithm - SELECTMAX].test_algorithm(data, model[i], parameters, posteriors.values[i]);
   predictions[i] = prediction.classno;
  }
 result.classno = combination_algorithms[get_parameter_l("combinationtype")](predictions, posteriors);
 safe_free(predictions);
 matrix_free(posteriors);
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, 0x18(%rsp)
movl %ecx, %r14d
movq %rdx, 0x10(%rsp)
movq %rsi, %r12
movq %rdi, 0x8(%rsp)
leaq 0x65443(%rip), %rdi     # 0xa71f6
callq 0x5341c
movl %eax, %r15d
movslq %eax, %rbp
leaq 0x65491(%rip), %rdx     # 0xa7256
movl $0x4, %esi
movq %rbp, %rdi
movl $0x3, %ecx
callq 0x39210
movq %rax, %r13
leaq 0x90a8f(%rip), %rax     # 0xd2870
movq (%rax), %rax
movl 0x10(%rax), %esi
movl %ebp, %edi
callq 0x3c6e5
movq %rax, (%rsp)
movq %rdx, %rbx
testl %ebp, %ebp
jle 0x41e49
addl $0xfffffc18, %r14d      # imm = 0xFFFFFC18
movslq %r14d, %rax
leaq (%rax,%rax,4), %rax
leaq 0x8f3b2(%rip), %rcx     # 0xd11c0
leaq (%rcx,%rax,8), %r14
addq $0x8, %r14
movl %r15d, %r15d
xorl %ebp, %ebp
movq 0x10(%rsp), %rax
movq (%rax,%rbp,8), %rdx
movq (%rbx,%rbp,8), %r8
leaq 0x20(%rsp), %rdi
movq %r12, %rsi
movq 0x18(%rsp), %rcx
callq *(%r14)
movl 0x28(%rsp), %eax
movl %eax, (%r13,%rbp,4)
incq %rbp
cmpq %rbp, %r15
jne 0x41e1b
leaq 0x65422(%rip), %rdi     # 0xa7272
callq 0x535f7
cltq
leaq 0x90122(%rip), %rcx     # 0xd1f80
movq %r13, %rdi
movq (%rsp), %r15
movq %r15, %rsi
movq %rbx, %rdx
callq *(%rcx,%rax,8)
movq 0x8(%rsp), %r14
movl %eax, 0x8(%r14)
movq %r13, %rdi
callq 0x39194
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3dbad
movq %r14, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/metaclassification.c
// Function: free_model_of_meta_classification_algorithm
void free_model_of_meta_classification_algorithm(int meta_algorithm, int algorithm, void** model, Datasetptr current_dataset)
{
 int i, d;
 d = current_dataset->classno;
 switch (meta_algorithm)
  {
   case         ONE_VERSUS_ONE:current_dataset->classno = 2;
                               for (i = 0; i < d * (d - 1) / 2; i++)
                                 free_model_of_supervised_algorithm(algorithm, model[i], current_dataset);
                               current_dataset->classno = d;
                               break;
   case        ONE_VERSUS_REST:current_dataset->classno = 2;
                               for (i = 0; i < d; i++)
                                 free_model_of_supervised_algorithm(algorithm, model[i], current_dataset);
                               current_dataset->classno = d;
                               break;
   case BAGGING_CLASSIFICATION:for (i = 0; i < get_parameter_i("weaklearnercount"); i++)
                                 free_model_of_supervised_algorithm(algorithm, model[i], current_dataset);
                               break;
  }
 safe_free(model);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, %rbx
movl %esi, %ebp
movl 0x10(%rcx), %r15d
cmpl $0x64, %edi
je 0x41f2e
cmpl $0x65, %edi
je 0x41f06
cmpl $0x66, %edi
jne 0x41f64
leaq 0x65329(%rip), %rdi     # 0xa71f6
callq 0x5341c
testl %eax, %eax
jle 0x41f64
xorl %r12d, %r12d
leaq 0x65312(%rip), %r15     # 0xa71f6
movq (%rbx,%r12,8), %rsi
movl %ebp, %edi
movq %r14, %rdx
callq 0x4d52
incq %r12
movq %r15, %rdi
callq 0x5341c
cltq
cmpq %rax, %r12
jl 0x41ee4
jmp 0x41f64
movl $0x2, 0x10(%r14)
testl %r15d, %r15d
jle 0x41f60
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movl %ebp, %edi
movq %r14, %rdx
callq 0x4d52
incq %r12
cmpq %r12, %r15
jne 0x41f16
jmp 0x41f60
movl $0x2, 0x10(%r14)
leal -0x1(%r15), %r12d
imull %r15d, %r12d
cmpl $0x2, %r12d
jl 0x41f60
shrl %r12d
xorl %r13d, %r13d
movq (%rbx,%r13,8), %rsi
movl %ebp, %edi
movq %r14, %rdx
callq 0x4d52
incq %r13
cmpq %r13, %r12
jne 0x41f4a
movl %r15d, 0x10(%r14)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x39194
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/metaregression.c
// Function: train_bagging_regression
void** train_bagging_regression(Instanceptr* trdata, Instanceptr* cvdata, int algorithm, void* parameters)
{
 int i, learner_count;
 Instanceptr traindata, validationdata;
 void** model;
 learner_count = get_parameter_i("weaklearnercount");
 model = safemalloc(sizeof(void*) * learner_count, "train_bagging_regression", 4);
 for (i = 0; i < learner_count; i++)
  {
   traindata = bootstrap_sample_without_stratification(*trdata);
   if (is_cvdata_needed(algorithm))
     validationdata = bootstrap_sample_without_stratification(*cvdata);
   else
     validationdata = NULL;
   model[i] = regression_algorithms[algorithm - ONEFEATURE].train_algorithm(&traindata, &validationdata, parameters);
  }
 return model;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, 0x10(%rsp)
movl %edx, %r14d
movq %rsi, 0x8(%rsp)
movq %rdi, %r12
leaq 0x64fd5(%rip), %rdi     # 0xa71f6
callq 0x5341c
movl %eax, %r15d
movslq %eax, %rbx
leaq (,%rbx,8), %rdi
leaq 0x65050(%rip), %rsi     # 0xa728b
movl $0x4, %edx
callq 0x390f5
movq %rax, %r13
testl %ebx, %ebx
jle 0x422b8
leal -0x7d0(%r14), %eax
cltq
leaq (%rax,%rax,4), %rbp
shlq $0x3, %rbp
addq 0x8ed84(%rip), %rbp     # 0xd0fe8
movl %r15d, %r15d
xorl %ebx, %ebx
movq (%r12), %rdi
callq 0x2fede
movq %rax, 0x20(%rsp)
movl %r14d, %edi
callq 0x595b
testl %eax, %eax
je 0x42292
movq 0x8(%rsp), %rax
movq (%rax), %rdi
callq 0x2fede
jmp 0x42294
xorl %eax, %eax
movq %rax, 0x18(%rsp)
leaq 0x20(%rsp), %rdi
leaq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq *(%rbp)
movq %rax, (%r13,%rbx,8)
incq %rbx
cmpq %rbx, %r15
jne 0x42269
movq %r13, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/metaregression.c
// Function: test_bagging_regression
Prediction test_bagging_regression(Instanceptr data, void** model, int algorithm, void* parameters, double* posterior)
{
 int i, learner_count;
 double* outputs;
 Prediction result, prediction;
 learner_count = get_parameter_i("weaklearnercount");
 outputs = safemalloc(sizeof(double) * learner_count, "test_bagging_regression", 4);
 for (i = 0; i < learner_count; i++)
  {
   prediction = regression_algorithms[algorithm - ONEFEATURE].test_algorithm(data, model[i], parameters, NULL);
   outputs[i] = prediction.regvalue;
  }
 qsort(outputs, learner_count, sizeof(double), sort_function_double_ascending);
 result.regvalue = outputs[learner_count / 2];
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, 0x8(%rsp)
movl %ecx, %ebx
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, (%rsp)
leaq 0x64f06(%rip), %rdi     # 0xa71f6
callq 0x5341c
movslq %eax, %r14
leaq (,%r14,8), %rdi
leaq 0x64f9d(%rip), %rsi     # 0xa72a4
movl $0x4, %edx
callq 0x390f5
movq %rax, %r12
testl %r14d, %r14d
jle 0x42363
addl $0xfffff830, %ebx       # imm = 0xFFFFF830
movslq %ebx, %rax
leaq (%rax,%rax,4), %rax
leaq 0x8f503(%rip), %rcx     # 0xd1830
leaq (%rcx,%rax,8), %rbx
addq $0x8, %rbx
xorl %r15d, %r15d
movq (%r13,%r15,8), %rdx
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
movq 0x8(%rsp), %rcx
xorl %r8d, %r8d
callq *(%rbx)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%r12,%r15,8)
incq %r15
cmpq %r15, %r14
jne 0x42338
leaq -0x8d83(%rip), %rcx     # 0x395e7
movl $0x8, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x4240
movl %r14d, %eax
shrl $0x1f, %eax
addl %r14d, %eax
sarl %eax
cltq
movsd (%r12,%rax,8), %xmm0
movq (%rsp), %rax
movsd %xmm0, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/metaregression.c
// Function: free_model_of_meta_regression_algorithm
void free_model_of_meta_regression_algorithm(int meta_algorithm, int algorithm, void** model, Datasetptr current_dataset)
{
 int i;
 switch (meta_algorithm)
  {
   case BAGGING_REGRESSION:for (i = 0; i < get_parameter_i("weaklearnercount"); i++)
                             free_model_of_supervised_algorithm(algorithm, model[i], current_dataset);
                           break;
  }
 safe_free(model);
}

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

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

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

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x64a0e(%rip), %r8      # 0xa72d3
movl $0x8, %edi
movl $0x8, %esi
movl %ebp, %edx
movl $0x2, %ecx
movl $0x5, %r9d
callq 0x393b5
movq %rax, %r14
testl %ebp, %ebp
jle 0x4297d
movl %ebp, %r15d
xorl %r12d, %r12d
xorps %xmm0, %xmm0
movsd 0x5fc23(%rip), %xmm1    # 0xa2520
callq 0x39f62
movq 0x10(%rbx), %rdi
movl (%rbx), %esi
callq 0x374dd
movl %eax, %ebp
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq (%r14,%r12,8), %rax
movsd %xmm0, 0x8(%rax)
xorpd %xmm0, %xmm0
movsd 0x5fbf5(%rip), %xmm1    # 0xa2520
callq 0x39f62
movq 0x8(%rbx), %rax
movq 0x18(%rbx), %rcx
movslq %ebp, %r13
movq (%rcx,%r13,8), %rdi
movl (%rax,%r13,4), %esi
callq 0x374dd
movq 0x20(%rbx), %rcx
movq 0x28(%rbx), %rdx
movq (%rcx,%r13,8), %rcx
cltq
movsd (%rcx,%rax,8), %xmm0
movq (%rdx,%r13,8), %rcx
movsd (%rcx,%rax,8), %xmm1
callq 0x8cd13
movq (%r14,%r12,8), %rax
movsd %xmm0, (%rax)
incq %r12
cmpq %r12, %r15
jne 0x428f2
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/mlp.c
// Function: copy_of_Mlpnetwork
Mlpnetwork copy_of_Mlpnetwork(Mlpnetwork source)
{
	/*!Last Changed 29.06.2005*/
 Mlpnetwork dest;
	int li;
	dest = allocate_mlpnnetwork(source.P);
	dest.P = source.P;
	for (li = 0; li < source.P.layernum + 1; li++)
		 matrix_identical(&(dest.weights[li]), source.weights[li]);
	return dest;
}

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

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

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

// Assembly:
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %rax
movq %rdi, %rbx
leaq 0xb0(%rsp), %rsi
leaq 0x8f773(%rip), %rcx     # 0xd2870
movq (%rcx), %rcx
cmpl $0x0, 0x10(%rcx)
je 0x4313c
movl $0x13, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x98(%rsp), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x43012
cvtsi2sd %ebx, %xmm1
subl %eax, %ebx
cvtsi2sd %ebx, %xmm0
divsd %xmm1, %xmm0
mulsd 0x5fc66(%rip), %xmm0    # 0xa2da0
jmp 0x4315a
movl $0x13, %ecx
movq %rsp, %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x43163
cvtsi2sd %ebx, %xmm1
divsd %xmm1, %xmm0
addq $0xa0, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/mlp.c
// Function: testMlpnNetwork_reg
double testMlpnNetwork_reg(matrix Data, Mlpnetwork N)
{
	/*!Last Changed 16.03.2004 Oya*/
	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_reg(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 0x43238
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 0x45213
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 0x431e3
jmp 0x43245
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/mlp.c
// Function: number_of_weights_in_mlp_network
int number_of_weights_in_mlp_network(Mlpnetwork N)
{
	/*!Last Changed 18.06.2005*/
	int result = 0, i;
	for (i = 0; i <= N.P.layernum; i++)
		 result += N.weights[i].row * N.weights[i].col;
	return result;
}

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, (%rsp)
movq %rsi, %r15
testl %r15d, %r15d
jle 0x43a0c
movq %rdx, %r14
movq %rdi, %r12
movq %r15, %r13
shrq $0x20, %r13
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movq %r13, %rbp
decq %rbp
xorl %ebx, %ebx
movq (%r14,%rbx,8), %rax
movsd (%rax), %xmm0
cmpl $0x2, %r13d
jl 0x439ef
xorl %ecx, %ecx
movsd 0x8(%rax,%rcx,8), %xmm1
mulsd (%r12,%rcx,8), %xmm1
addsd %xmm1, %xmm0
incq %rcx
cmpq %rcx, %rbp
jne 0x439d7
callq 0x54568
movq (%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movsd %xmm0, (%rax,%rbx,8)
incq %rbx
cmpq %r15, %rbx
jne 0x439c7
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/mlp.c
// Function: calculate_output_values_reg
void calculate_output_values_reg(double *inputdata, matrix weight, matrixptr output)
{	
	/*!Last Changed 16.03.2004 Oya*/
	int i, hi;
	double sum;	
	for (hi=0; hi<weight.row; hi++)
  {
		 sum = weight.values[hi][0];
		 for (i=1; i<weight.col; i++)
    {
		 		sum = sum + weight.values[hi][i] * inputdata[i-1];
		  }
		 output->values[0][hi] = sum;
	 }
}

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl 0x4(%rcx), %eax
testl %eax, %eax
jle 0x43f31
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
shrq $0x20, %r15
movq %r15, %r13
decq %r13
xorpd %xmm1, %xmm1
xorl %ebp, %ebp
movsd %xmm1, (%rsp)
movq (%r14,%rbp,8), %rax
movsd (%rax), %xmm0
movq 0x8(%rbx), %rcx
movq (%rcx), %rcx
movsd %xmm0, (%rcx,%rbp,8)
cmpl $0x2, %r15d
jl 0x43f04
movsd (%rcx,%rbp,8), %xmm0
xorl %edx, %edx
movsd 0x8(%rax,%rdx,8), %xmm1
mulsd (%r12,%rdx,8), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, (%rcx,%rbp,8)
incq %rdx
cmpq %rdx, %r13
jne 0x43ee7
movsd (%rcx,%rbp,8), %xmm0
callq 0x4060
movq 0x8(%rbx), %rax
movq (%rax), %rax
movsd %xmm0, (%rax,%rbp,8)
movsd (%rsp), %xmm1
addsd %xmm0, %xmm1
incq %rbp
movslq 0x4(%rbx), %rax
cmpq %rax, %rbp
jl 0x43ec1
jmp 0x43f35
xorpd %xmm1, %xmm1
testl %eax, %eax
jle 0x43f5a
movq 0x8(%rbx), %rcx
movq (%rcx), %rcx
movl %eax, %eax
xorl %edx, %edx
movsd (%rcx,%rdx,8), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x43f44
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/mlp.c
// Function: allocate_weights
matrixptr allocate_weights(Mlpparameters P, INITIALIZATION_TYPE inittype, int initvalue)
{
 /*!Last Changed 09.02.2004 Oya*/
 /*if inittype is 0 then assign random values, then init value is useless*/
 /*else if inittype is 1 assign initvalue*/
 /*else no initialization*/
 matrixptr weights;
 int i; /*allocations*/
 weights = (matrixptr) safemalloc ((P.layernum + 1) * sizeof(matrix), "allocate_weights", 3);
 for (i = 0; i < P.layernum; i++)
  {
   if (i == 0)
     weights[i] = matrix_alloc(P.hidden[i], P.dimnum + 1);
   else
     weights[i] = matrix_alloc(P.hidden[i], P.hidden[i - 1] + 1);
  }
 if (P.layernum == 0)
   weights[P.layernum] = matrix_alloc(P.classnum, P.dimnum + 1);
 else
   weights[P.layernum] = matrix_alloc(P.classnum, P.hidden[P.layernum - 1] + 1);
 for (i = 0; i <= P.layernum; i++)
   if (inittype == RANDOM)
     assignTwoDimRandomWeights(&weights[i], P.randrange);
   else 
     if (inittype == INITIAL_VALUE)
       initialize_matrix(&weights[i], initvalue); 
 return weights;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, 0x1c(%rsp)
movl %edi, %ebx
leaq 0x60(%rsp), %rbp
movslq 0x54(%rbp), %r15
movq %r15, %rax
shlq $0x4, %rax
movq %rax, 0x8(%rsp)
leaq 0x10(%rax), %rdi
leaq 0x63357(%rip), %rsi     # 0xa72f4
movl $0x3, %edx
callq 0x390f5
movq %rax, %r14
movq %r15, 0x20(%rsp)
testq %r15, %r15
jle 0x4400f
movl 0x4(%rbp), %r15d
movl 0x48(%rbp), %eax
movl %eax, 0x10(%rsp)
incl %r15d
movq 0x20(%rsp), %rax
leaq (,%rax,4), %r13
xorl %r12d, %r12d
testq %r12, %r12
je 0x43ff3
movl 0x44(%rbp,%r12), %esi
movl 0x48(%rbp,%r12), %edi
incl %esi
callq 0x3c6e5
movq %rax, (%r14,%r12,4)
movq %rdx, 0x8(%r14,%r12,4)
jmp 0x44006
movl 0x10(%rsp), %edi
movl %r15d, %esi
callq 0x3c6e5
movq %rax, (%r14)
movq %rdx, 0x8(%r14)
addq $0x4, %r12
cmpq %r12, %r13
jne 0x43fd2
movq 0x8(%rsp), %r12
addq %r14, %r12
leaq 0x4(%rbp), %rax
movq 0x20(%rsp), %r15
movl %r15d, %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
leaq 0x48(%rbp,%rcx,4), %rcx
cmovbq %rax, %rcx
cmovbq %r14, %r12
movl (%rbp), %edi
movl (%rcx), %esi
incl %esi
callq 0x3c6e5
movq %rax, (%r12)
movq %rdx, 0x8(%r12)
testl %r15d, %r15d
js 0x4409e
cvtsi2sdl 0x1c(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x28(%rbp), %xmm0
movsd %xmm0, 0x8(%rsp)
leal 0x1(%r15), %r12d
movq %r14, %r15
cmpl $0x1, %ebx
je 0x44087
testl %ebx, %ebx
jne 0x44095
movq %r15, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x3e36c
jmp 0x44095
movq %r15, %rdi
movsd 0x10(%rsp), %xmm0
callq 0x3e1f9
addq $0x10, %r15
decq %r12
jne 0x4406e
movq %r14, %rax
addq $0x28, %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: reallocate_weights
void reallocate_weights(Mlpparameters P, matrixptr weights, int hiddenindex, int count, INITIALIZATION_TYPE inittype, int initvalue)
{
	/*!Last Changed 17.04.2007*/
	int colcount, rowcount;
	if (hiddenindex == 0)
		 colcount = P.dimnum + 1;
	else
		 colcount = P.hidden[hiddenindex - 1] + 1;
	if (hiddenindex != P.layernum - 1)
		 rowcount = P.hidden[hiddenindex + 1];
 else
		 rowcount = P.classnum;
	weights[hiddenindex] = reallocate_matrix(weights[hiddenindex], P.hidden[hiddenindex] + count, colcount);
 weights[hiddenindex + 1] = reallocate_matrix(weights[hiddenindex + 1], rowcount, P.hidden[hiddenindex] + count + 1);
	if (inittype == RANDOM)
	 {
   assign_partial_random_weights(&weights[hiddenindex], P.hidden[hiddenindex], P.hidden[hiddenindex] + count - 1, 0, colcount - 1, P.randrange);
	  assign_partial_random_weights(&weights[hiddenindex + 1], 0, rowcount - 1, P.hidden[hiddenindex] + 1, P.hidden[hiddenindex] + count, P.randrange);
	 }
	else
		 if (inittype == INITIAL_VALUE)
		  {
     initialize_partial_matrix(&weights[hiddenindex], P.hidden[hiddenindex], P.hidden[hiddenindex] + count - 1, 0, colcount - 1, initvalue);
	    initialize_partial_matrix(&weights[hiddenindex + 1], 0, rowcount - 1, P.hidden[hiddenindex] + 1, P.hidden[hiddenindex] + count, initvalue);
			 }
}

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

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

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

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

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

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl 0x8c(%rsp), %eax
testl %eax, %eax
js 0x447db
leaq 0x38(%rsp), %rcx
movsd 0x30(%rcx), %xmm0
cvtsi2sdl 0x58(%rcx), %xmm1
mulsd 0x60(%rcx), %xmm1
mulsd 0x38(%rcx), %xmm1
incq %rax
xorl %ecx, %ecx
movq %rcx, %rbx
shlq $0x4, %rbx
movslq (%rdi,%rbx), %r8
testq %r8, %r8
jle 0x447cf
leaq (%rdi,%rbx), %r9
movl 0x4(%r9), %r10d
leaq (%rsi,%rbx), %r11
addq $0x8, %r11
addq %rdx, %rbx
addq $0x8, %rbx
xorl %r14d, %r14d
testl %r10d, %r10d
jle 0x447c7
movq 0x8(%r9), %r15
movq (%r15,%r14,8), %r15
movq (%r11), %r12
movq (%r12,%r14,8), %r12
movq (%rbx), %r13
movq (%r13,%r14,8), %r13
xorl %ebp, %ebp
movsd (%r15,%rbp,8), %xmm2
movsd (%r12,%rbp,8), %xmm3
addsd %xmm2, %xmm3
movsd (%r13,%rbp,8), %xmm4
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm4
mulsd %xmm1, %xmm2
addsd %xmm4, %xmm2
movsd %xmm2, (%r15,%rbp,8)
incq %rbp
cmpq %rbp, %r10
jne 0x44792
incq %r14
cmpq %r8, %r14
jne 0x44774
incq %rcx
cmpq %rax, %rcx
jne 0x4474a
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq