LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/lang.c
// Function: add_expnode
void add_expnode(char* st, Expnodeptr* tmpbefore, Expnodeptr* start)
{
 /*!Last Changed 03.01.2006*/
 Expnodeptr tmp;
 variableptr myvar;
 if (st[0] == '\0')
   return;
 tmp = safemalloc(sizeof(Expnode), "add_expnode", 5);
 if (!isfloat(st) && (myvar = get_variable(st)) != NULL && myvar->type != ARRAY_TYPE)
  {
   tmp->type = myvar->type;
   tmp->value = myvar->value;
  }
 else
   if (isinteger(st) && strcmp(st, "+") != 0 && strcmp(st, "-") != 0)
    {
     tmp->type = INTEGER_TYPE;
     tmp->value.intvalue = atoi(st);
    }
   else
     if (isfloat(st) && strcmp(st, "+") != 0 && strcmp(st, "-") != 0)
      {
       tmp->type = REAL_TYPE;
       tmp->value.floatvalue = atof(st);
      }
     else
      {
       tmp->type = NO_TYPE;
       tmp->name = strcopy(tmp->name, st);
      }
 tmp->next = NULL;
 if (*tmpbefore)
   (*tmpbefore)->next = tmp;
 else
   *start = tmp;
 *tmpbefore = tmp;
}

// Assembly:
cmpb $0x0, (%rdi)
je 0x35ea6
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
leaq 0x73922(%rip), %rsi     # 0xa96cf
movl $0x20, %edi
movl $0x5, %edx
callq 0x3a0e1
movq %rax, %r15
movq %r12, %rdi
callq 0x3a8ed
testl %eax, %eax
je 0x35e3f
movq %r12, %rdi
callq 0x3a938
testl %eax, %eax
je 0x35e04
movzbl (%r12), %eax
cmpl $0x2d, %eax
je 0x35de6
cmpl $0x2b, %eax
jne 0x35dee
cmpb $0x0, 0x1(%r12)
je 0x35e04
movl $0x0, 0x8(%r15)
movq %r12, %rdi
callq 0x4200
movl %eax, 0x10(%r15)
jmp 0x35e7f
movq %r12, %rdi
callq 0x3a8ed
testl %eax, %eax
je 0x35e69
movzbl (%r12), %eax
cmpl $0x2d, %eax
je 0x35e1f
cmpl $0x2b, %eax
jne 0x35e27
cmpb $0x0, 0x1(%r12)
je 0x35e69
movl $0x1, 0x8(%r15)
movq %r12, %rdi
callq 0x4130
movsd %xmm0, 0x10(%r15)
jmp 0x35e7f
movq %r12, %rdi
callq 0x34def
testq %rax, %rax
je 0x35dcb
movl (%rax), %ecx
cmpl $0x3, %ecx
je 0x35dcb
movl %ecx, 0x8(%r15)
movq 0x28(%rax), %rax
movq %rax, 0x10(%r15)
jmp 0x35e7f
movl $0xffffffff, 0x8(%r15)  # imm = 0xFFFFFFFF
movq (%r15), %rdi
movq %r12, %rsi
callq 0x3b494
movq %rax, (%r15)
movq $0x0, 0x18(%r15)
movq (%rbx), %rax
leaq 0x18(%rax), %rcx
testq %rax, %rax
cmoveq %r14, %rcx
movq %r15, (%rcx)
movq %r15, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/lang.c
// Function: print_expression_list
void print_expression_list(Expnodeptr list)
{
 /*!Last Changed 03.01.2006*/
 Expnodeptr tmp = list;
 while (tmp)
  {
   switch (tmp->type)
    {
     case  NO_TYPE     :printf("%s ", tmp->name);
                        break;
     case  INTEGER_TYPE:printf("%d ", tmp->value.intvalue);
                        break;
     case  REAL_TYPE   :printf("%.4f ", tmp->value.floatvalue);
                        break;
     case  STRING_TYPE :
     case  FILE_TYPE   :printf("%s ", tmp->value.stringvalue);
                        break;
     default           :break;
    }
   tmp = tmp->next;
  }
 printf("\n");
}

// Assembly:
testq %rdi, %rdi
je 0x35f31
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x72fe9(%rip), %r13     # 0xa8eac
leaq 0x7af81(%rip), %r14     # 0xb0e4b
leaq 0x79eb4(%rip), %r15     # 0xafd85
leaq 0x7b299(%rip), %r12     # 0xb1171
movl 0x8(%rbx), %eax
incl %eax
cmpl $0x5, %eax
ja 0x35f1f
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
movq 0x10(%rbx), %rsi
jmp 0x35f06
movsd 0x10(%rbx), %xmm0
movq %r12, %rdi
movb $0x1, %al
callq 0x4030
jmp 0x35f1f
movq (%rbx), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x4030
jmp 0x35f1f
movl 0x10(%rbx), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x4030
movq 0x18(%rbx), %rbx
testq %rbx, %rbx
jne 0x35ed8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
movl $0xa, %edi
jmp 0x40d0
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/lang.c
// Function: evaluate_operation
Expnodeptr evaluate_operation(Expnodeptr operand1, Expnodeptr operand2, int optype)
{
 /*!Last Changed 12.08.2010*/
 double value1, value2, result;
 Expnodeptr tmp;
 tmp = safemalloc(sizeof(Expnode), "evaluate_operation", 3);
 switch (operand1->type)
  {
   case INTEGER_TYPE:value1 = operand1->value.intvalue;
                     break;
   case REAL_TYPE   :value1 = operand1->value.floatvalue;
                     break;
   default          :value1 = 1.0;
                     break;
  }
 switch (operand2->type)
  {
   case INTEGER_TYPE:value2 = operand2->value.intvalue;
                     break;
   case REAL_TYPE   :value2 = operand2->value.floatvalue;
                     break;
   default          :value2 = 1.0;
                     break;
  }
 if (operand1->type == INTEGER_TYPE && operand2->type == INTEGER_TYPE)
   tmp->type = INTEGER_TYPE;
 else 
   tmp->type = REAL_TYPE;
 switch (optype)
  {
   case 0:result = value1 + value2;
          break;
   case 1:result = value1 - value2;
          break;
   case 2:result = value1 * value2;
          break;
   case 3:result = value1 / value2;
          tmp->type = REAL_TYPE;
          break;
   case 4:result = pow(value1, value2);
          break;
   case 5:result = log(value2) / log(value1);
          tmp->type = REAL_TYPE;
          break;
   case 6:result = value1 - value2 * ((int)(value1 / value2));
          break;
  }
 if (tmp->type == INTEGER_TYPE)
   tmp->value.intvalue = (int)result;
 else 
  tmp->value.floatvalue = result;
 return tmp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x73787(%rip), %rsi     # 0xa96db
movl $0x20, %edi
movl $0x3, %edx
callq 0x3a0e1
movq %rax, %rbx
movl 0x8(%r15), %ecx
movsd 0x6f5ae(%rip), %xmm1    # 0xa5520
cmpl $0x1, %ecx
je 0x35f8a
movapd %xmm1, %xmm2
testl %ecx, %ecx
jne 0x35f90
xorps %xmm2, %xmm2
cvtsi2sdl 0x10(%r15), %xmm2
jmp 0x35f90
movsd 0x10(%r15), %xmm2
movl 0x8(%r14), %edx
movl $0x1, %eax
cmpl $0x1, %edx
je 0x35fb4
testl %edx, %edx
jne 0x35fba
xorps %xmm1, %xmm1
cvtsi2sdl 0x10(%r14), %xmm1
xorl %eax, %eax
testl %ecx, %ecx
setne %al
jmp 0x35fba
movsd 0x10(%r14), %xmm1
movl %eax, 0x8(%rbx)
cmpl $0x6, %ebp
ja 0x35ff8
movl %ebp, %ecx
leaq 0x72ef9(%rip), %rdx     # 0xa8ec4
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
addsd %xmm1, %xmm2
jmp 0x3604b
movapd %xmm2, %xmm0
callq 0x42f0
movapd %xmm0, %xmm2
movl 0x8(%rbx), %eax
jmp 0x3604b
mulsd %xmm1, %xmm2
jmp 0x3604b
divsd %xmm1, %xmm2
jmp 0x3602a
jmp 0x3604b
subsd %xmm1, %xmm2
jmp 0x3604b
movapd %xmm1, %xmm0
movsd %xmm2, 0x8(%rsp)
callq 0x4160
movsd %xmm0, 0x10(%rsp)
movsd 0x8(%rsp), %xmm0
callq 0x4160
movsd 0x10(%rsp), %xmm2
divsd %xmm0, %xmm2
movl $0x1, 0x8(%rbx)
jmp 0x3604f
movapd %xmm2, %xmm0
divsd %xmm1, %xmm0
cvttpd2dq %xmm0, %xmm0
cvtdq2pd %xmm0, %xmm0
mulsd %xmm1, %xmm0
subsd %xmm0, %xmm2
testl %eax, %eax
je 0x36056
movsd %xmm2, 0x10(%rbx)
jmp 0x3605d
cvttsd2si %xmm2, %eax
movl %eax, 0x10(%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/lang.c
// Function: has_higher_or_equal_precedence
int has_higher_or_equal_precedence(int op1, int op2)
{
 if (op1 >= op2)
   return YES;
 if (op1 == 0 && op2 == 1)
   return YES;
 if (op1 == 2 && op2 == 3)
   return YES;
 return NO;
}

// Assembly:
movl $0x1, %eax
cmpl %esi, %edi
jge 0x3608a
movl %esi, %ecx
xorl $0x1, %ecx
orl %edi, %ecx
je 0x3608a
xorl $0x2, %edi
xorl $0x3, %esi
xorl %eax, %eax
orl %edi, %esi
sete %al
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/lerils.c
// Function: possible_split_points
double* possible_split_points(Instanceptr instances, int fno, int* count)
{
 int j, size;
 Instanceptr instancelist;
 double* result, value, valuebefore = -INT_MAX;
 *count = 1;
 result = safemalloc(sizeof(double), "possible_split_points", 5);
 result[0] = -INT_MAX;
 instancelist = sort_instances(instances, fno, &size);
 if (current_dataset->features[fno].type == INTEGER)
   valuebefore = instancelist[0].values[fno].intvalue;  
 else
   valuebefore = instancelist[0].values[fno].floatvalue;
 j = 1;
 while (j < size)
  {
   if (current_dataset->features[fno].type == INTEGER)
     value = instancelist[j].values[fno].intvalue;  
   else
     value = instancelist[j].values[fno].floatvalue;
   if (value != valuebefore)
    {
     (*count)++;
     result = alloc(result, (*count) * sizeof(double), *count);
     result[(*count) - 1] = (value + valuebefore) / 2;
     valuebefore = value;
    }
   j++;
  }
 (*count)++;
 result = alloc(result, (*count) * sizeof(double), *count);
 result[(*count) - 1] = +INT_MAX;
 safe_free(instancelist);
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x1, (%rdx)
leaq 0x73039(%rip), %rsi     # 0xa974c
movl $0x8, %edi
movl $0x5, %edx
callq 0x3a0e1
movq %rax, %r15
movabsq $-0x3e20000000400000, %rax # imm = 0xC1DFFFFFFFC00000
movq %rax, (%r15)
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0xa0055
movq %rax, %r14
leaq 0x9f125(%rip), %rax     # 0xd5870
movq (%rax), %rax
movslq %ebp, %r13
imulq $0x340, %r13, %rbp      # imm = 0x340
cmpl $0x0, 0x30f08(%rax,%rbp)
movq (%r14), %rcx
je 0x3676d
movsd (%rcx,%r13,8), %xmm0
jmp 0x36773
cvtsi2sdl (%rcx,%r13,8), %xmm0
movl 0xc(%rsp), %ecx
cmpl $0x2, %ecx
movq %r14, 0x10(%rsp)
jl 0x36820
addq $0x30, %r14
movl $0x1, %r12d
cmpl $0x0, 0x30f08(%rax,%rbp)
movq (%r14), %rdx
je 0x367a4
movsd (%rdx,%r13,8), %xmm1
jmp 0x367ad
xorps %xmm1, %xmm1
cvtsi2sdl (%rdx,%r13,8), %xmm1
ucomisd %xmm0, %xmm1
jne 0x367b5
jnp 0x3680d
movslq (%rbx), %rax
leaq 0x1(%rax), %rdx
movl %edx, (%rbx)
leaq 0x8(,%rax,8), %rsi
movq %r15, %rdi
movsd %xmm0, 0x20(%rsp)
movsd %xmm1, 0x18(%rsp)
callq 0x3a0b4
movq %rax, %r15
movsd 0x18(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
addsd %xmm0, %xmm1
mulsd 0x6f523(%rip), %xmm1    # 0xa5d18
movslq (%rbx), %rax
movsd %xmm1, -0x8(%r15,%rax,8)
leaq 0x9f06a(%rip), %rax     # 0xd5870
movq (%rax), %rax
movl 0xc(%rsp), %ecx
incq %r12
movslq %ecx, %rdx
addq $0x30, %r14
cmpq %rdx, %r12
jl 0x3678f
movslq (%rbx), %rax
leaq 0x1(%rax), %rdx
movl %edx, (%rbx)
leaq 0x8(,%rax,8), %rsi
movq %r15, %rdi
callq 0x3a0b4
movq %rax, %r15
movslq (%rbx), %rax
movabsq $0x41dfffffffc00000, %rcx # imm = 0x41DFFFFFFFC00000
movq %rcx, -0x8(%r15,%rax,8)
movq 0x10(%rsp), %rdi
callq 0x3a180
movq %r15, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/lerils.c
// Function: rule_cover_instance_lerils
int rule_cover_instance_lerils(Decisionconditionptr* rule, int* relevant, Instanceptr inst)
{
 int i, covered;
 covered = YES;
 for (i = 0; i < current_dataset->featurecount; i++)
   if (relevant[i])
     if (!condition_cover_instance(inst, rule[i]))
      {
       covered = NO;
       break;
      }
 return covered;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x9eff4(%rip), %r13     # 0xd5870
movq (%r13), %rax
movl $0x1, %ebx
cmpl $0x0, 0x1bc(%rax)
jle 0x368c7
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebp, %ebp
cmpl $0x0, (%r15,%rbp,4)
je 0x368b4
movq (%r12,%rbp,8), %rsi
movq %r14, %rdi
callq 0x7af32
testl %eax, %eax
je 0x368c5
movq (%r13), %rax
incq %rbp
movslq 0x1bc(%rax), %rcx
cmpq %rcx, %rbp
jl 0x36899
jmp 0x368c7
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/lerils.c
// Function: description_length_of_rule_lerils
double description_length_of_rule_lerils(Decisionconditionptr* rule, int* relevant, Instanceptr instances, int positive)
{
 int i, s = 0, n = 0, p = 0;
 Instanceptr tmp;
 for (i = 0; i < current_dataset->featurecount; i++)
   if (relevant[i])
     s++;
 if (s == 0)
   return +INT_MAX;
 tmp = instances;
 while (tmp)
  {
   if (rule_cover_instance_lerils(rule, relevant, tmp))
    {
     if (give_classno(tmp) == positive)
       p++;
     else
       n++;
    }
   tmp = tmp->next;
  }
 if (p != 0)
   return (s + n) / (p + 0.0);
 else 
   return INT_MAX;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, 0xc(%rsp)
leaq 0x9ef7f(%rip), %rax     # 0xd5870
movq (%rax), %rax
movslq 0x1bc(%rax), %rax
movsd 0x6ec15(%rip), %xmm0    # 0xa5518
movsd %xmm0, 0x10(%rsp)
testq %rax, %rax
jle 0x3698c
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ecx, %ecx
xorl %ebp, %ebp
cmpl $0x1, (%r15,%rcx,4)
sbbl $-0x1, %ebp
incq %rcx
cmpq %rcx, %rax
jne 0x3691b
testl %ebp, %ebp
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x3698c
xorl %r13d, %r13d
xorl %ebx, %ebx
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x3686a
testl %eax, %eax
je 0x36966
movq %r14, %rdi
callq 0x2f33a
cmpl 0xc(%rsp), %eax
jne 0x36964
incl %r13d
jmp 0x36966
incl %ebx
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x3693f
testl %r13d, %r13d
je 0x3698c
addl %ebp, %ebx
cvtsi2sd %ebx, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %r13d, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/lerils.c
// Function: split_point_lower_and_upper_limits
int split_point_lower_and_upper_limits(double splitpoint, double* limits, int count)
{
 int lower = 0, upper = count - 1, middle = (lower + upper) / 2;
 while (upper - lower > 1)
  {
   if (splitpoint < limits[middle])
     upper = middle;
   else 
     lower = middle;
   middle = (upper + lower) / 2;
  }
 return lower;
}

// Assembly:
xorl %eax, %eax
cmpl $0x3, %esi
jl 0x369d7
decl %esi
xorl %eax, %eax
movl %esi, %ecx
movl %esi, %edx
shrl $0x1f, %edx
addl %esi, %edx
sarl %edx
movslq %edx, %rsi
movsd (%rdi,%rsi,8), %xmm1
ucomisd %xmm0, %xmm1
ja 0x369c9
movl %edx, %eax
jmp 0x369cb
movl %edx, %ecx
leal (%rcx,%rax), %esi
movl %ecx, %edx
subl %eax, %edx
cmpl $0x1, %edx
jg 0x369ae
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/lerils.c
// Function: description_length_of_ruleset_lerils
int description_length_of_ruleset_lerils(Ruleset rule_pool, int* included, Instanceptr instances, int positive)
{
 int i, exception = 0, literals = 0, M = rule_pool.rulecount, classno;
 BOOLEAN covered;
 Instanceptr tmp;
 Decisionruleptr current_rule;
 for (current_rule = rule_pool.start, i = 0; i < M; current_rule = current_rule->next, i++)
  {
   current_rule->falsepositives = 0;
   if (included[i])
     literals += current_rule->decisioncount;
  }
 tmp = instances;
 while (tmp)
  {
   classno = give_classno(tmp);
   covered = BOOLEAN_FALSE;
   for (current_rule = rule_pool.start, i = 0; i < M; current_rule = current_rule->next, i++)
     if (included[i] && rule_cover_instance(tmp, *current_rule))
      {
       covered = BOOLEAN_TRUE;
       break;
      }
   if ((covered && classno != positive) || (!covered && classno == positive))
    {
     if (covered)
       (current_rule->falsepositives)++;
     exception++;
    }
   tmp = tmp->next;
  }
 return exception + literals;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %edx, 0x44(%rsp)
movq %rsi, %r14
movq %rdi, %r15
leaq 0x90(%rsp), %rax
movl 0x10(%rax), %r13d
movq $0x0, 0x48(%rsp)
movl $0x0, 0x40(%rsp)
testl %r13d, %r13d
jle 0x373cd
xorl %ecx, %ecx
movq %rax, %rdx
movl $0x0, 0x40(%rsp)
movq (%rdx), %rdx
movl $0x0, 0x8(%rdx)
cmpl $0x0, (%r15,%rcx,4)
je 0x373c1
movl 0x40(%rsp), %esi
addl 0x28(%rdx), %esi
movl %esi, 0x40(%rsp)
addq $0x30, %rdx
incq %rcx
cmpq %rcx, %r13
jne 0x373a5
testq %r14, %r14
je 0x37472
movq (%rax), %rax
movq %rax, 0x50(%rsp)
movq $0x0, 0x48(%rsp)
movq %r14, %rdi
callq 0x2f33a
movl %eax, %ebp
testl %r13d, %r13d
jle 0x37446
xorl %ebx, %ebx
movq 0x50(%rsp), %r12
cmpl $0x0, (%r15,%rbx,4)
je 0x37439
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 0x7b9ee
testl %eax, %eax
jne 0x3744e
incq %rbx
movq 0x30(%r12), %r12
cmpq %rbx, %r13
jne 0x373fd
cmpl 0x44(%rsp), %ebp
je 0x37459
jmp 0x37465
cmpl 0x44(%rsp), %ebp
je 0x37465
incl 0x8(%r12)
movq 0x48(%rsp), %rax
incl %eax
movq %rax, 0x48(%rsp)
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x373e7
movq 0x48(%rsp), %rax
addl 0x40(%rsp), %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/lerils.c
// Function: learn_ruleset_lerils
Ruleset learn_ruleset_lerils(Instanceptr* instances, Lerils_parameterptr param)
{
 int i;
 Ruleset* sets;
 Ruleset result;
 sets = safemalloc(current_dataset->classno * sizeof(Ruleset), "learn_ruleset_lerils", 3);
 for (i = 0; i < current_dataset->classno; i++) 
   sets[i] = learn_ruleset_lerils_oneclass(*instances, param, i);
 result = order_rulesets(sets, instances);
 for (i = 0; i < current_dataset->classno; i++) 
   safe_free(sets[i].counts);
 safe_free(sets);
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, 0x8(%rsp)
leaq 0x9df43(%rip), %rbx     # 0xd5870
movq (%rbx), %rax
movslq 0x10(%rax), %rax
shlq $0x3, %rax
leaq (%rax,%rax,4), %rdi
leaq 0x71e7b(%rip), %rsi     # 0xa97be
movl $0x3, %edx
callq 0x3a0e1
movq %rax, (%rsp)
movq (%rbx), %rax
cmpl $0x0, 0x10(%rax)
jle 0x379a6
xorl %r13d, %r13d
leaq 0x10(%rsp), %rbp
movq (%rsp), %r14
movq (%r15), %rsi
movq %rbp, %rdi
movq %r12, %rdx
movl %r13d, %ecx
callq 0x376c3
movq 0x30(%rsp), %rax
movq %rax, 0x20(%r14)
movups 0x10(%rsp), %xmm0
movups 0x20(%rsp), %xmm1
movups %xmm1, 0x10(%r14)
movups %xmm0, (%r14)
incq %r13
movq (%rbx), %rax
movslq 0x10(%rax), %rax
addq $0x28, %r14
cmpq %rax, %r13
jl 0x37966
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq (%rsp), %r13
movq %r13, %rsi
movq %r15, %rdx
callq 0x37752
movq (%rbx), %rax
cmpl $0x0, 0x10(%rax)
jle 0x379eb
movq %r13, %r14
addq $0x18, %r14
xorl %r15d, %r15d
movq (%r14), %rdi
callq 0x3a180
incq %r15
movq (%rbx), %rax
movslq 0x10(%rax), %rax
addq $0x28, %r14
cmpq %rax, %r15
jl 0x379d0
movq %r13, %rdi
callq 0x3a180
movq %r12, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: clone_array_2d
double** clone_array_2d(double** source, int size1, int size2)
{
 /*!Last Changed 15.03.2007 Oya*/
 int i;
 double** result;
 result = (double **) safemalloc_2d(sizeof(double*), sizeof(double), size1, size2, "clone_array_2d", 3);
 for (i = 0; i < size1; i++)
   memcpy(result[i], source[i], size2 * sizeof(double));
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r15d
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x71d44(%rip), %r8      # 0xa97f0
movl $0x8, %edi
movl $0x8, %esi
movl %ebp, %edx
movl %r15d, %ecx
movl $0x3, %r9d
callq 0x3a3ac
movq %rax, %r14
testl %ebp, %ebp
jle 0x37af2
movslq %r15d, %r15
shlq $0x3, %r15
movl %ebp, %r12d
xorl %r13d, %r13d
movq (%r14,%r13,8), %rdi
movq (%rbx,%r13,8), %rsi
movq %r15, %rdx
callq 0x4310
incq %r13
cmpq %r13, %r12
jne 0x37ada
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: sort_function_array_2d
int sort_function_array_2d(double** array, int i, int j, int index, int sort_type)
{
 if (sort_type == ASCENDING)
  {
   if (array[i][index] < array[j][index])
     return -1;
   else
     if (array[i][index] > array[j][index])
       return 1;
     else
       return 0;
  }
 else
  {
   if (array[i][index] < array[j][index])
     return 1;
   else
     if (array[i][index] > array[j][index])
       return -1;
     else
       return 0;
  }
}

// Assembly:
movslq %esi, %rax
movq (%rdi,%rax,8), %rax
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
movslq %edx, %rax
movq (%rdi,%rax,8), %rax
movsd (%rax,%rcx,8), %xmm1
testl %r8d, %r8d
je 0x37b3b
movl $0x1, %eax
ucomisd %xmm0, %xmm1
ja 0x37b46
xorl %eax, %eax
ucomisd %xmm1, %xmm0
seta %al
negl %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
ucomisd %xmm0, %xmm1
jbe 0x37b47
retq
xorl %eax, %eax
ucomisd %xmm1, %xmm0
seta %al
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: exchange_array_2d
void exchange_array_2d(double** array, int i, int j, int size2)
{
 double* tmp;
 tmp = safemalloc(size2 * sizeof(double), "exchange_array_2d", 2);
 memcpy(tmp, array[i], size2 * sizeof(double));
 memcpy(array[i], array[j], size2 * sizeof(double));
 memcpy(array[j], tmp, size2 * sizeof(double));
 safe_free(tmp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %r15
movslq %ecx, %rbx
shlq $0x3, %rbx
leaq 0x71c90(%rip), %rsi     # 0xa97ff
movq %rbx, %rdi
movl $0x2, %edx
callq 0x3a0e1
movq %rax, %r12
movslq %r14d, %r14
movq (%r15,%r14,8), %rsi
movq %rax, %rdi
movq %rbx, %rdx
callq 0x4310
movq (%r15,%r14,8), %rdi
movslq %ebp, %r14
movq (%r15,%r14,8), %rsi
movq %rbx, %rdx
callq 0x4310
movq (%r15,%r14,8), %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x4310
movq %r12, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3a180
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: quicksort_three_elements_array_2d
int quicksort_three_elements_array_2d(double** array, int size2, int index, int sort_type, int start, int end)
{
 int mid = (start + end) / 2;
 if (sort_function_array_2d(array, mid, start, index, sort_type) < 0)
   exchange_array_2d(array, start, mid, size2);
 if (sort_function_array_2d(array, end, mid, index, sort_type) < 0)
   exchange_array_2d(array, end, mid, size2);
 if (sort_function_array_2d(array, mid, start, index, sort_type) < 0)
   exchange_array_2d(array, mid, start, size2);
 exchange_array_2d(array, mid, end, size2);
 return end;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %ebx
movl %ecx, %r13d
movl %esi, %ecx
movq %rdi, %r14
leal (%rbx,%r8), %eax
movl %eax, %r15d
shrl $0x1f, %r15d
addl %eax, %r15d
sarl %r15d
movslq %r15d, %rbp
movq (%rdi,%rbp,8), %rax
movslq %edx, %r12
movsd (%rax,%r12,8), %xmm0
movslq %r8d, %rdx
movq (%rdi,%rdx,8), %rax
movsd (%rax,%r12,8), %xmm1
testl %r13d, %r13d
je 0x37c37
ucomisd %xmm0, %xmm1
ja 0x37c1b
ucomisd %xmm1, %xmm0
ja 0x37c3d
movslq %ebx, %rax
movq (%r14,%rax,8), %rax
movsd (%rax,%r12,8), %xmm2
ucomisd %xmm2, %xmm0
jbe 0x37cda
jmp 0x37d33
ucomisd %xmm0, %xmm1
jbe 0x37c97
movq %rdx, 0x10(%rsp)
movq %r14, %rdi
movq %r8, 0x8(%rsp)
movl %r8d, %esi
movl %ebp, %edx
movl %ecx, 0x4(%rsp)
callq 0x37b51
movslq %ebx, %rax
movq (%r14,%rax,8), %rax
movsd (%rax,%r12,8), %xmm2
movq (%r14,%rbp,8), %rax
movsd (%rax,%r12,8), %xmm0
testl %r13d, %r13d
je 0x37ca8
ucomisd %xmm2, %xmm0
movq 0x10(%rsp), %rdx
jbe 0x37cd1
movq (%r14,%rdx,8), %rax
movsd (%rax,%r12,8), %xmm1
movl 0x4(%rsp), %ecx
movq 0x8(%rsp), %r8
jmp 0x37d33
movslq %ebx, %rax
movq (%r14,%rax,8), %rax
ucomisd (%rax,%r12,8), %xmm0
jbe 0x37cc6
jmp 0x37ce0
ucomisd %xmm2, %xmm0
movl 0x4(%rsp), %ecx
movq 0x8(%rsp), %r8
movq 0x10(%rsp), %rdx
ja 0x37ce0
movq (%r14,%rdx,8), %rax
movsd (%rax,%r12,8), %xmm1
ucomisd %xmm0, %xmm1
ja 0x37d3f
jmp 0x37d51
movl 0x4(%rsp), %ecx
movq 0x8(%rsp), %r8
ucomisd %xmm0, %xmm2
jbe 0x37d29
movq %rdx, 0x10(%rsp)
movq %r8, 0x8(%rsp)
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
movl %ecx, 0x4(%rsp)
callq 0x37b51
movq (%r14,%rbp,8), %rax
movsd (%rax,%r12,8), %xmm0
movq 0x10(%rsp), %rax
movq (%r14,%rax,8), %rax
movsd (%rax,%r12,8), %xmm1
testl %r13d, %r13d
je 0x37d6f
ucomisd %xmm0, %xmm1
movl 0x4(%rsp), %ecx
movq 0x8(%rsp), %r8
jbe 0x37d39
jmp 0x37d51
movq (%r14,%rdx,8), %rax
movsd (%rax,%r12,8), %xmm1
ucomisd %xmm0, %xmm1
ja 0x37d51
ucomisd %xmm1, %xmm0
jbe 0x37d51
movq %r14, %rdi
movl %r15d, %esi
movl %r8d, %edx
movl %ecx, %ebp
callq 0x37b51
movl %ebp, %ecx
movq %r14, %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0x37b51
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
ucomisd %xmm0, %xmm1
movl 0x4(%rsp), %ecx
movq 0x8(%rsp), %r8
ja 0x37d3f
jmp 0x37d51
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: quicksort_partition_array_2d
int quicksort_partition_array_2d(double** array, int size2, int index, int sort_type, int start, int end)
{
 int i = start - 1, j, pivot;
 pivot = quicksort_three_elements_array_2d(array, size2, index, sort_type, start, end);
 for (j = start; j < end; j++)
   if (sort_function_array_2d(array, j, pivot, index, sort_type) <= 0)
    {
     i++;
     exchange_array_2d(array, i, j, size2);
    }
 exchange_array_2d(array, i + 1, end, size2);
 return i + 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %ebx
movl %r8d, %r14d
movl %edx, %r12d
movq %rdi, %r13
movl %esi, 0x8(%rsp)
movl %ecx, 0xc(%rsp)
callq 0x37bc3
cmpl %ebx, %r14d
jge 0x37e22
leal -0x1(%r14), %ebp
movslq %r12d, %rdx
movslq %ebx, %rcx
movslq %r14d, %rax
leaq (,%rax,8), %r12
addq %r13, %r12
movq %rdx, 0x10(%rsp)
movq (%r12), %rax
movsd (%rax,%rdx,8), %xmm0
movq (%r13,%rcx,8), %rax
movsd (%rax,%rdx,8), %xmm1
cmpl $0x0, 0xc(%rsp)
je 0x37e15
ucomisd %xmm0, %xmm1
ja 0x37e07
incl %ebp
movq %r13, %rdi
movl %ebp, %esi
movl %r14d, %edx
movq %rcx, %r15
movl 0x8(%rsp), %ecx
callq 0x37b51
movq 0x10(%rsp), %rdx
movq %r15, %rcx
incl %r14d
addq $0x8, %r12
cmpl %r14d, %ebx
jne 0x37dc9
jmp 0x37e1d
ucomisd %xmm1, %xmm0
jbe 0x37de9
jmp 0x37e07
incl %ebp
movl %ebp, %r14d
movq %r13, %rdi
movl %r14d, %esi
movl %ebx, %edx
movl 0x8(%rsp), %ecx
callq 0x37b51
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: quicksort_check_array_2d
int quicksort_check_array_2d(double** array, int size2, int index, int sort_type, int start, int end)
{
 int i;
 for (i = start + 1; i <= end; i++)
   if (sort_function_array_2d(array, i - 1, i, index, sort_type) > 0)
     return 0;
 return 1;
}

// Assembly:
movl $0x1, %eax
cmpl %r9d, %r8d
jge 0x37e8b
movslq %edx, %rdx
movslq %r8d, %rsi
movslq %r9d, %r8
movq (%rdi,%rsi,8), %r9
movsd (%r9,%rdx,8), %xmm0
movq 0x8(%rdi,%rsi,8), %r9
movsd (%r9,%rdx,8), %xmm1
testl %ecx, %ecx
je 0x37e79
ucomisd %xmm0, %xmm1
jbe 0x37e7f
jmp 0x37e8c
ucomisd %xmm1, %xmm0
ja 0x37e8c
incq %rsi
movapd %xmm1, %xmm0
cmpq %rsi, %r8
jne 0x37e62
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: quicksort_array_2d
void quicksort_array_2d(double** array, int size2, int index, int sort_type, int start, int end)
{
 int pivot;
 if (start < end)
  {
   if (quicksort_check_array_2d(array, size2, index, sort_type, start, end))
     return;
   pivot = quicksort_partition_array_2d(array, size2, index, sort_type, start, end);
   quicksort_array_2d(array, size2, index, sort_type, start, pivot - 1);
   quicksort_array_2d(array, size2, index, sort_type, pivot + 1, end);
  }
}

// Assembly:
cmpl %r9d, %r8d
jge 0x37f59
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r13d
movl %ecx, %ebp
movq %rdi, %r12
movslq %edx, %r14
movslq %r9d, %rbx
movslq %r13d, %rax
movq (%r12,%rax,8), %rcx
movsd (%rcx,%r14,8), %xmm0
movq 0x8(%r12,%rax,8), %rcx
movsd (%rcx,%r14,8), %xmm1
testl %ebp, %ebp
je 0x37ed8
ucomisd %xmm0, %xmm1
jbe 0x37ede
jmp 0x37eec
ucomisd %xmm1, %xmm0
ja 0x37eec
incq %rax
movapd %xmm1, %xmm0
cmpq %rax, %rbx
jne 0x37ec1
jmp 0x37f4b
movq %r12, %rdi
movl %esi, 0xc(%rsp)
movl 0xc(%rsp), %esi
movl %edx, 0x10(%rsp)
movl 0x10(%rsp), %edx
movl %ebp, %ecx
movl %r13d, %r8d
movl %r9d, 0x14(%rsp)
movl 0x14(%rsp), %r9d
callq 0x37d80
movl %eax, %r15d
leal -0x1(%r15), %r9d
movq %r12, %rdi
movl 0xc(%rsp), %esi
movl 0x10(%rsp), %edx
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x37e8f
movl 0xc(%rsp), %esi
movl 0x10(%rsp), %edx
movl 0x14(%rsp), %r9d
incl %r15d
movl %r15d, %r13d
cmpl %r9d, %r15d
jl 0x37eb4
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: divide_array
void divide_array(double* list1, double div, int size)
{
 /*!Last Changed 13.03.2007 Oya*/
 int i;
 for (i = 0; i < size; i++)
   if (div != 0)
     list1[i] /= div;
   else
    {
     printf(m1377, "divide_array");
     list1[i] = 0.0;
    }
}

// Assembly:
testl %esi, %esi
jle 0x37fda
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl %esi, %r12d
xorpd %xmm2, %xmm2
leaq 0x71895(%rip), %r14     # 0xa9811
leaq 0x718af(%rip), %r15     # 0xa9832
xorl %r13d, %r13d
movsd %xmm0, 0x8(%rsp)
ucomisd %xmm2, %xmm0
jne 0x37f94
jnp 0x37fa6
movsd (%rbx,%r13,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rbx,%r13,8)
jmp 0x37fc5
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x4030
xorpd %xmm2, %xmm2
movsd 0x8(%rsp), %xmm0
movq $0x0, (%rbx,%r13,8)
incq %r13
cmpq %r13, %r12
jne 0x37f8c
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: find_bin
int find_bin(double* bins, int bincount, double value)
{
 /*!Last Changed 26.01.2005*/
 int i;
 double sum = 0;
 for (i = 0; i < bincount; i++)
  {
   sum += bins[i];
   if (value < sum)
     return i;
  }
 return bincount - 1;
}

// Assembly:
movl %esi, %eax
testl %esi, %esi
jle 0x37ffc
movl %eax, %ecx
xorpd %xmm1, %xmm1
xorl %edx, %edx
addsd (%rdi,%rdx,8), %xmm1
ucomisd %xmm0, %xmm1
ja 0x37fff
incq %rdx
cmpq %rdx, %rcx
jne 0x37fe9
decl %eax
retq
movl %edx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: find_max_in_list
int find_max_in_list(int *list,int size)
{
/*!Last Changed 14.07.2001*/
 int max = -INT_MAX, i, res = -1;
 for (i = 0; i < size; i++)
   if (list[i] > max)
    {
     max = list[i];
     res = i;
    }
 return res;
}

// Assembly:
testl %esi, %esi
jle 0x3802b
movl %esi, %ecx
movl $0x80000001, %edx       # imm = 0x80000001
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %esi, %esi
movl (%rdi,%rsi,4), %r8d
cmpl %edx, %r8d
cmovgl %r8d, %edx
cmovgl %esi, %eax
incq %rsi
cmpq %rsi, %rcx
jne 0x38014
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: find_max_in_list_double
int find_max_in_list_double(double* list, int size)
{ 
 double max = 0;
 int i, res = -1;
 for (i = 0; i < size; i++)
   if (list[i] != -1)
     if (list[i] > max)
      {
       max = list[i];
       res = i;
      }
 return res;
}

// Assembly:
testl %esi, %esi
jle 0x38083
movl %esi, %ecx
xorpd %xmm1, %xmm1
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %edx, %edx
movsd 0x6dd5e(%rip), %xmm0    # 0xa5da8
movsd (%rdi,%rdx,8), %xmm2
movapd %xmm1, %xmm3
cmpltpd %xmm2, %xmm3
movapd %xmm2, %xmm4
cmpneqpd %xmm0, %xmm4
andpd %xmm3, %xmm4
movd %xmm4, %esi
testb $0x1, %sil
jne 0x38073
movapd %xmm1, %xmm2
cmovnel %edx, %eax
incq %rdx
movapd %xmm2, %xmm1
cmpq %rdx, %rcx
jne 0x3804a
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: find_max_occured
int* find_max_occured(int *list, int size, int* newsize)
{
 /*!Last Changed 02.02.2004 added safemalloc*/
 /*!Last Changed 09.05.2003*/
 int *result, i, *tmplist, j = 0, tmp;
 (*newsize) = 0;
 for (i = 0; i < size; i++)
   if (list[i] > 0)
     (*newsize)++;
 result = safemalloc((*newsize) * sizeof(int), "find_max_occured", 6);
 tmplist = safemalloc((*newsize) * sizeof(int), "find_max_occured", 7);
 for (i = 0; i < size; i++)
   if (list[i] > 0)
    {
     result[j] = i;
     tmplist[j] = list[i];
     j++;
    }
 for (i = 1; i < (*newsize); i++)
  {
   j = i;
   while (j > 0 && tmplist[j] >= tmplist[j-1])
    {
     tmp = tmplist[j];
     tmplist[j] = tmplist[j-1];
     tmplist[j-1] = tmp;
     tmp = result[j];
     result[j] = result[j-1];
     result[j-1] = tmp;
     j--;
    }
  }
 safe_free(tmplist);
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r15
movl $0x0, (%rdx)
xorl %edi, %edi
movl %esi, %r13d
testl %esi, %esi
jle 0x380c7
xorl %eax, %eax
cmpl $0x0, (%r15,%rax,4)
jle 0x380b8
incl %edi
movl %edi, (%rbx)
incq %rax
cmpq %rax, %r13
jne 0x380ad
movslq %edi, %rdi
shlq $0x2, %rdi
leaq 0x71771(%rip), %r12     # 0xa983f
movq %r12, %rsi
movl $0x6, %edx
callq 0x3a0e1
movq %rax, %r14
movslq (%rbx), %rdi
shlq $0x2, %rdi
movq %r12, %rsi
movl $0x7, %edx
callq 0x3a0e1
testl %ebp, %ebp
jle 0x38119
xorl %ecx, %ecx
xorl %edx, %edx
cmpl $0x0, (%r15,%rcx,4)
jle 0x38111
movslq %edx, %rdx
movl %ecx, (%r14,%rdx,4)
movl (%r15,%rcx,4), %esi
movl %esi, (%rax,%rdx,4)
incl %edx
incq %rcx
cmpq %rcx, %r13
jne 0x380fa
cmpl $0x2, (%rbx)
jl 0x38164
movl $0x1, %ecx
movl $0x2, %edx
movl %edx, %esi
movl %esi, %edi
leal -0x1(%rdi), %esi
movl (%rax,%rsi,4), %r8d
addl $-0x2, %edi
movl (%rax,%rdi,4), %r9d
cmpl %r9d, %r8d
jl 0x3815c
movl %r9d, (%rax,%rsi,4)
movl %r8d, (%rax,%rdi,4)
movl (%r14,%rsi,4), %r8d
movl (%r14,%rdi,4), %r9d
movl %r9d, (%r14,%rsi,4)
movl %r8d, (%r14,%rdi,4)
cmpl $0x1, %esi
jg 0x3812a
incl %ecx
incl %edx
cmpl (%rbx), %ecx
jl 0x38128
movq %rax, %rdi
callq 0x3a180
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: find_mean_stdev_of_list
double find_mean_stdev_of_list(double* list, int size, double* stdev)
{
 /*!Last Changed 26.01.2005*/
 int i;
 double sum = 0, mean;
 for (i = 0; i < size; i++)
   sum += list[i];
 mean = sum / size;
 sum = 0;
 for (i = 0; i < size; i++)
   sum += (list[i] - mean) * (list[i] - mean);
 *stdev = sqrt(sum / (size - 1));
 return mean;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
testl %esi, %esi
jle 0x381cc
movl %esi, %eax
xorpd %xmm2, %xmm2
xorl %ecx, %ecx
addsd (%rdi,%rcx,8), %xmm2
incq %rcx
cmpq %rcx, %rax
jne 0x38192
cvtsi2sd %esi, %xmm0
divsd %xmm0, %xmm2
xorpd %xmm0, %xmm0
testl %esi, %esi
jle 0x381dc
xorl %ecx, %ecx
movsd (%rdi,%rcx,8), %xmm1
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rcx
cmpq %rcx, %rax
jne 0x381b1
jmp 0x381dc
cvtsi2sd %esi, %xmm1
xorpd %xmm0, %xmm0
xorpd %xmm2, %xmm2
divsd %xmm1, %xmm2
decl %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
divsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x381f9
sqrtsd %xmm0, %xmm0
jmp 0x3820a
movsd %xmm2, 0x8(%rsp)
callq 0x4300
movsd 0x8(%rsp), %xmm2
movsd %xmm0, (%rbx)
movapd %xmm2, %xmm0
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: find_min_in_list_double
int find_min_in_list_double(double* list, int size)
{
 /*!Last Changed 01.02.2005*/
 double min = +INT_MAX;
 int i, res = -1;
 for (i = 0; i < size; i++)
   if (list[i] != -1)
     if (list[i] < min)
      {
       min = list[i];
       res = i;
      }
 return res;
}

// Assembly:
testl %esi, %esi
jle 0x382a6
movl %esi, %ecx
movsd 0x6d2ba(%rip), %xmm1    # 0xa5518
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %edx, %edx
movsd 0x6db3b(%rip), %xmm0    # 0xa5da8
movsd (%rdi,%rdx,8), %xmm2
movapd %xmm2, %xmm3
cmpltpd %xmm1, %xmm3
movapd %xmm2, %xmm4
cmpneqpd %xmm0, %xmm4
andpd %xmm3, %xmm4
movd %xmm4, %esi
testb $0x1, %sil
jne 0x38296
movapd %xmm1, %xmm2
cmovnel %edx, %eax
incq %rdx
movapd %xmm2, %xmm1
cmpq %rdx, %rcx
jne 0x3826d
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: find_mod_of_list
int find_mod_of_list(int *list, int size, int newlistsize)
{
 /*!Last Changed 03.03.2006 added by aydin*/
 int mod, *newlist, i;
 newlist = safecalloc(newlistsize, sizeof(int), "find_mod_of_list", 2);
 for (i = 0 ; i < size ; i++)
   if (list[i] >= 0 && list[i] < newlistsize)
     newlist[list[i]]++;
   else
     printf(m1322, "find_mod_of_list");
 mod = find_max_in_list(newlist, newlistsize);
 safe_free(newlist);
 return mod;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r14
movslq %edx, %rdi
leaq 0x71587(%rip), %rdx     # 0xa9850
movl $0x4, %esi
movl $0x2, %ecx
callq 0x3a1fc
movq %rax, %rbx
testl %r15d, %r15d
jle 0x3831d
movl %r15d, %r13d
leaq 0x71566(%rip), %r12     # 0xa9850
xorl %r15d, %r15d
movl (%r14,%r15,4), %eax
testl %eax, %eax
sets %cl
cmpl %ebp, %eax
setge %dl
orb %cl, %dl
jne 0x38304
incl (%rbx,%rax,4)
jmp 0x38315
leaq 0x71556(%rip), %rdi     # 0xa9861
movq %r12, %rsi
xorl %eax, %eax
callq 0x4030
incq %r15
cmpq %r15, %r13
jne 0x382ed
testl %ebp, %ebp
jle 0x38344
movl %ebp, %eax
movl $0x80000001, %ecx       # imm = 0x80000001
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %edx, %edx
movl (%rbx,%rdx,4), %esi
cmpl %ecx, %esi
cmovgl %esi, %ecx
cmovgl %edx, %ebp
incq %rdx
cmpq %rdx, %rax
jne 0x3832f
jmp 0x38349
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x3a180
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: findMaxOutput
int findMaxOutput(double *Y, int length)
{
 int max = 0;
 int c;
 for (c = 0; c < length; c++)
  {
   if (Y[max] <= Y[c])
     max = c;
  }
 return max;
}

// Assembly:
testl %esi, %esi
jle 0x38386
movl %esi, %ecx
xorl %edx, %edx
xorl %eax, %eax
movslq %eax, %rsi
movsd (%rdi,%rdx,8), %xmm0
ucomisd (%rdi,%rsi,8), %xmm0
jb 0x3837d
movl %edx, %eax
incq %rdx
cmpq %rdx, %rcx
jne 0x3836c
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: log_of_array
double* log_of_array(double* list, int size)
{
 /*!Last Changed 22.01.2007*/
 int i;
 double* result;
 result = safemalloc(size * sizeof(double), "log_of_array", 3);
 for (i = 0; i < size; i++)
   result[i] = safelog(list[i]);
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movslq %esi, %r15
leaq (,%r15,8), %rdi
leaq 0x714c7(%rip), %rsi     # 0xa9881
movl $0x3, %edx
callq 0x3a0e1
movq %rax, %r14
testl %r15d, %r15d
jle 0x383eb
movl %ebp, %r15d
xorl %r12d, %r12d
movsd (%rbx,%r12,8), %xmm0
callq 0x39bec
movsd %xmm0, (%r14,%r12,8)
incq %r12
cmpq %r12, %r15
jne 0x383d2
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: multiply_two_arrays
double multiply_two_arrays(double* list1, double* list2, int size)
{
 /*!Last Changed 13.03.2007 Oya*/
 int i;
 double result = 0.0;
 for (i = 0; i < size; i++)
   result += list1[i] * list2[i];
 return result;
}

// Assembly:
testl %edx, %edx
jle 0x38439
movl %edx, %eax
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
movsd (%rdi,%rcx,8), %xmm1
mulsd (%rsi,%rcx,8), %xmm1
addsd %xmm1, %xmm0
incq %rcx
cmpq %rcx, %rax
jne 0x38422
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: multiply_two_arrays_by_value
double* multiply_two_arrays_by_value(double* list1, double* list2, int size)
{
 /*!Last Changed 13.03.2007 Oya*/
 int i;
 double* result;
 result = safemalloc(size * sizeof(double), "multiply_two_arrays_by_value", 3);
 for (i = 0; i < size; i++)
   result[i] = list1[i] * list2[i];
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movslq %edx, %r15
leaq (,%r15,8), %rdi
leaq 0x71430(%rip), %rsi     # 0xa988e
movl $0x3, %edx
callq 0x3a0e1
testl %r15d, %r15d
jle 0x38489
movl %ebp, %ecx
xorl %edx, %edx
movsd (%r14,%rdx,8), %xmm0
mulsd (%rbx,%rdx,8), %xmm0
movsd %xmm0, (%rax,%rdx,8)
incq %rdx
cmpq %rdx, %rcx
jne 0x38471
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: search_and_add_into_list
void search_and_add_into_list(int* list, int* itemcount, int newitem)
{
 /*!Last Changed 17.07.2005*/
 int i, j;
 for (i = 0; i < *itemcount; i++)
   if (list[i] > newitem)
     break;
   else
     if (list[i] == newitem)
       return;
 for (j = *itemcount - 1; j >= i; j--)
   list[j + 1] = list[j];
 list[i] = newitem;
 (*itemcount)++;
}

// Assembly:
movl (%rsi), %ecx
xorl %eax, %eax
testl %ecx, %ecx
jle 0x384c8
cmpl %edx, (%rdi,%rax,4)
jg 0x384af
je 0x384cf
incq %rax
cmpq %rax, %rcx
jne 0x3849c
movl %ecx, %eax
jmp 0x384c8
cmpl %eax, %ecx
jle 0x384c8
movl -0x4(%rdi,%rcx,4), %r8d
movl %r8d, (%rdi,%rcx,4)
leaq -0x1(%rcx), %r8
movq %r8, %rcx
cmpq %rax, %r8
jg 0x384b3
movl %eax, %eax
movl %edx, (%rdi,%rax,4)
incl (%rsi)
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: sum_of_list
int sum_of_list(int* list, int size)
{
 /*!Last Changed 28.05.2005*/
 int i, sum = 0;
 for (i = 0; i < size; i++)
   sum += list[i];
 return sum;
}

// Assembly:
testl %esi, %esi
jle 0x38504
movl %esi, %ecx
xorl %edx, %edx
xorl %eax, %eax
addl (%rdi,%rdx,4), %eax
incq %rdx
cmpq %rdx, %rcx
jne 0x384f8
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: euclidian_distance
double euclidian_distance(double* list1, double* list2, int p)
{
 /*!Last Changed 01.10.2010*/
 int i;
 double sum = 0;
 for (i = 0; i < p; i++)
   sum += (list1[i] - list2[i]) * (list1[i] - list2[i]);
 return sqrt(sum);
}

// Assembly:
xorpd %xmm1, %xmm1
xorpd %xmm0, %xmm0
testl %edx, %edx
jle 0x38531
movl %edx, %eax
xorl %ecx, %ecx
movsd (%rdi,%rcx,8), %xmm2
subsd (%rsi,%rcx,8), %xmm2
mulsd %xmm2, %xmm2
addsd %xmm2, %xmm0
incq %rcx
cmpq %rcx, %rax
jne 0x38517
ucomisd %xmm1, %xmm0
jb 0x4300
sqrtsd %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: normalize_array
void normalize_array(int* counts, double* posterior, int size)
{
 /*!Last Changed 05.01.2009*/
 int i, sum;
 sum = sum_of_list(counts, size);
 if (sum == 0)
   for (i = 0; i < size; i++)
     posterior[i] = 1.0 / size;
 else
   for (i = 0; i < size; i++)
     posterior[i] = counts[i] / (sum + 0.0);
}

// Assembly:
testl %edx, %edx
jle 0x38635
movl %edx, %ecx
xorl %r8d, %r8d
xorl %eax, %eax
addl (%rdi,%r8,4), %eax
incq %r8
cmpq %r8, %rcx
jne 0x3854f
testl %eax, %eax
je 0x3858b
testl %edx, %edx
jle 0x38635
cvtsi2sd %eax, %xmm0
xorl %eax, %eax
xorps %xmm1, %xmm1
cvtsi2sdl (%rdi,%rax,4), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rsi,%rax,8)
incq %rax
cmpq %rax, %rcx
jne 0x3856d
jmp 0x38635
testl %edx, %edx
jle 0x38635
cvtsi2sd %edx, %xmm1
movsd 0x6cf81(%rip), %xmm0    # 0xa5520
divsd %xmm1, %xmm0
leal 0x1(%rcx), %eax
decq %rcx
movq %rcx, %xmm1
pshufd $0x44, %xmm1, %xmm1     # xmm1 = xmm1[0,1,0,1]
shrl %eax
shlq $0x4, %rax
movdqa 0x6de7f(%rip), %xmm2    # 0xa6440
xorl %ecx, %ecx
movdqa 0x6de85(%rip), %xmm3    # 0xa6450
pxor %xmm3, %xmm1
pcmpeqd %xmm4, %xmm4
movdqa 0x6deb5(%rip), %xmm5    # 0xa6490
movdqa %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm1, %xmm7
pcmpeqd %xmm1, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %edx
notl %edx
testb $0x1, %dl
je 0x38614
movsd %xmm0, (%rsi,%rcx)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x38628
movsd %xmm0, 0x8(%rsi,%rcx)
paddq %xmm5, %xmm2
addq $0x10, %rcx
cmpq %rcx, %rax
jne 0x385db
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: sum_of_list_double
double sum_of_list_double(double* list, int size)
{
 /*!Last Changed 28.05.2005*/
 int i;
 double sum = 0;
 for (i = 0; i < size; i++)
   sum += list[i];
 return sum;
}

// Assembly:
testl %esi, %esi
jle 0x38691
movl %esi, %eax
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
addsd (%rdi,%rcx,8), %xmm0
incq %rcx
cmpq %rcx, %rax
jne 0x38683
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: normalize_array_of_doubles
void normalize_array_of_doubles(double* list, int size)
{
 /*!Last Changed 09.07.2009*/
 int i, sum;
 sum = sum_of_list_double(list, size);
 if (sum == 0.0)
   for (i = 0; i < size; i++)
     list[i] = 1.0 / size;
 else
   for (i = 0; i < size; i++)
     list[i] = list[i] / (sum + 0.0);
}

// Assembly:
testl %esi, %esi
jle 0x38791
movl %esi, %ecx
xorpd %xmm0, %xmm0
xorl %eax, %eax
addsd (%rdi,%rax,8), %xmm0
incq %rax
cmpq %rax, %rcx
jne 0x386a5
cvttsd2si %xmm0, %eax
testl %eax, %eax
je 0x386e7
testl %esi, %esi
jle 0x38791
cvttpd2dq %xmm0, %xmm0
cvtdq2pd %xmm0, %xmm0
xorl %eax, %eax
movsd (%rdi,%rax,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rdi,%rax,8)
incq %rax
cmpq %rax, %rcx
jne 0x386cc
jmp 0x38791
testl %esi, %esi
jle 0x38791
cvtsi2sd %esi, %xmm1
movsd 0x6ce25(%rip), %xmm0    # 0xa5520
divsd %xmm1, %xmm0
leal 0x1(%rcx), %eax
decq %rcx
movq %rcx, %xmm1
pshufd $0x44, %xmm1, %xmm1     # xmm1 = xmm1[0,1,0,1]
shrl %eax
shlq $0x4, %rax
movdqa 0x6dd23(%rip), %xmm2    # 0xa6440
xorl %ecx, %ecx
movdqa 0x6dd29(%rip), %xmm3    # 0xa6450
pxor %xmm3, %xmm1
pcmpeqd %xmm4, %xmm4
movdqa 0x6dd59(%rip), %xmm5    # 0xa6490
movdqa %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm1, %xmm7
pcmpeqd %xmm1, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %edx
notl %edx
testb $0x1, %dl
je 0x38770
movsd %xmm0, (%rdi,%rcx)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x38784
movsd %xmm0, 0x8(%rdi,%rcx)
paddq %xmm5, %xmm2
addq $0x10, %rcx
cmpq %rcx, %rax
jne 0x38737
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libarray.c
// Function: sum_of_two_arrays
double* sum_of_two_arrays(double* list1, double* list2, int size)
{
 /*!Last Changed 22.01.2007*/
 int i;
 double* result;
 result = safemalloc(size * sizeof(double), "sum_of_two_arrays", 3);
 for (i = 0; i < size; i++)
   result[i] = list1[i] + list2[i];
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movslq %edx, %r15
leaq (,%r15,8), %rdi
leaq 0x710f8(%rip), %rsi     # 0xa98ab
movl $0x3, %edx
callq 0x3a0e1
testl %r15d, %r15d
jle 0x387de
movl %ebp, %ecx
xorl %edx, %edx
movsd (%r14,%rdx,8), %xmm0
addsd (%rbx,%rdx,8), %xmm0
movsd %xmm0, (%rax,%rdx,8)
incq %rdx
cmpq %rdx, %rcx
jne 0x387c6
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/libfile.c
// Function: concat_file
void concat_file(char* dest,char* src)
{
/*!Last Changed 27.04.2002*/
 FILE* myfile1;
 FILE* myfile2;
 char st[500];
 if ((myfile1=fopen(dest,"a"))==NULL)
  {
   printf(m1274, dest);
   return;
  }
 if ((myfile2=fopen(src,"r"))==NULL)
  {
   printf(m1274, src);
   fclose(myfile1);
   return;
  }
 while (fgets(st,500,myfile2))
   fputs(st,myfile1);
 fclose(myfile1);
 fclose(myfile2);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rsi, %r15
movq %rdi, %r14
leaq 0x6f69b(%rip), %rsi     # 0xa7ea0
callq 0x40f0
testq %rax, %rax
je 0x3887e
movq %rax, %rbx
leaq 0x73142(%rip), %rsi     # 0xab95b
movq %r15, %rdi
callq 0x40f0
testq %rax, %rax
je 0x3889b
movq %rax, %r14
movq %rsp, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq %rax, %rdx
callq 0x4120
testq %rax, %rax
je 0x38861
movq %rsp, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x41f0
movq %r15, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq %r14, %rdx
callq 0x4120
testq %rax, %rax
jne 0x38841
movq %rbx, %rdi
callq 0x42a0
movq %r14, %rdi
callq 0x42a0
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
retq
leaq 0x6d985(%rip), %rdi     # 0xa620a
movq %r14, %rsi
xorl %eax, %eax
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
jmp 0x4030
leaq 0x6d968(%rip), %rdi     # 0xa620a
movq %r15, %rsi
xorl %eax, %eax
callq 0x4030
movq %rbx, %rdi
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
jmp 0x42a0