LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/lang.c
// Function: set_for_variable
int set_for_variable(char* name, char* end, int step, int ip)
{
 /*!Last Changed 03.01.2006*/
 /*!Last Changed 05.04.2002*/
 int i;
 variableptr myvar;
 myvar = get_variable(name);
 if (!myvar)
   return 0;
 if (myvar->type != INTEGER_TYPE)
   return 0;
 i = atoi(end);
 myvar->end = i;
 myvar->step = step;
 myvar->ip = ip;
 return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r14
callq 0x3092c
movq %rax, %r15
xorl %eax, %eax
testq %r15, %r15
je 0x316b3
cmpl $0x0, (%r15)
jne 0x316b3
movq %r14, %rdi
callq 0x4200
movl %eax, 0x8(%r15)
movl %ebp, 0x4(%r15)
movl %ebx, 0xc(%r15)
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/lang.c
// Function: check_if_statement
int check_if_statement(char** params)
{
 /*!Last Changed 03.01.2006*/
	/*!Last Changed 05.11.2003 Added File variable with type 4*/
 /*!Last Changed 03.05.2002*/
 int operand;
 double value1, value2, compresult;
 char* st = NULL;
 variableptr myvar;
 operand = listindex(params[0], operandtype, 8);
 if (operand == -1)
   return 0;
 myvar = get_variable(params[1]);
 switch (myvar->type)
  {
   case INTEGER_TYPE:value1 = myvar->value.intvalue;
                     value2 = atoi(params[2]);
                     compresult = value1 - value2;
                     break;
   case REAL_TYPE   :value1 = myvar->value.floatvalue;
                     value2 = atof(params[2]);
                     compresult = value1 - value2;
                     break;
   case STRING_TYPE :
			case FILE_TYPE   :st = strcopy(st, myvar->value.stringvalue);
                     compresult = strcmp(st, params[2]);
                     safe_free(st);
                     break;
   default          :break;
  }
 switch (operand)
  {
   case 0:if (compresult < 0)
            return 1;
          else
            return 0;
   case 1:if (compresult <= 0)
            return 1;
          else
            return 0;
   case 2:if (compresult > 0)
            return 1;
          else
            return 0;
   case 3:if (compresult >= 0)
            return 1;
          else
            return 0;
   case 4:
   case 5:if (compresult == 0)
            return 1;
          else
            return 0;
   case 6:
   case 7:if (compresult != 0)
            return 1;
          else
            return 0;
  }
 return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
movq (%rdi), %rdi
leaq 0x9b60c(%rip), %rsi     # 0xccce0
pushq $0x8
popq %rdx
callq 0x35f17
cmpl $-0x1, %eax
je 0x317a0
movl %eax, %ebx
movq 0x8(%r14), %rdi
callq 0x3092c
movl (%rax), %ecx
cmpq $0x4, %rcx
ja 0x3177e
leaq 0x676e5(%rip), %rdx     # 0x98de8
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x28(%rax), %rsi
xorl %edi, %edi
callq 0x3604c
movq %rax, %r15
movq 0x10(%r14), %rsi
movq %rax, %rdi
callq 0x4260
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r15, %rdi
callq 0x34ff7
movsd 0x8(%rsp), %xmm1
jmp 0x3177e
movsd 0x28(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x10(%r14), %rdi
callq 0x4130
movsd 0x8(%rsp), %xmm1
jmp 0x3177a
cvtsi2sdl 0x28(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x10(%r14), %rdi
callq 0x4200
movsd 0x8(%rsp), %xmm1
cvtsi2sd %eax, %xmm0
subsd %xmm0, %xmm1
cmpl $0x7, %ebx
ja 0x317a0
movl %ebx, %eax
leaq 0x67670(%rip), %rcx     # 0x98dfc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorpd %xmm0, %xmm0
cmpeqsd %xmm0, %xmm1
jmp 0x317ad
xorl %eax, %eax
jmp 0x317e3
xorpd %xmm0, %xmm0
cmpneqsd %xmm0, %xmm1
movq %xmm1, %rax
andl $0x1, %eax
jmp 0x317e3
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jmp 0x317d3
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jmp 0x317e0
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
seta %al
jmp 0x317e3
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
setae %al
movzbl %al, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/lang.c
// Function: change_special_characters
void change_special_characters(char* st)
{
	/*!Last Changed 13.07.2005*/
	int i, len;
	len = strlen(st);
	for (i = 0; i < len; i++)
		 switch (st[i])
	   {
		   case '_':st[i] = ' ';
						        break;
					case '#':st[i] = '_';
						        break;
	   }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x4190
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
cmpq %rcx, %rax
je 0x31821
movzbl (%rbx,%rcx), %edx
cmpl $0x5f, %edx
je 0x31817
cmpl $0x23, %edx
jne 0x3181c
movb $0x5f, %dl
jmp 0x31819
movb $0x20, %dl
movb %dl, (%rbx,%rcx)
incq %rcx
jmp 0x31800
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x31947
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
leaq 0x67de0(%rip), %rsi     # 0x9963f
pushq $0x20
popq %rdi
pushq $0x5
popq %rdx
callq 0x34f59
movq %rax, %r15
movq %r12, %rdi
callq 0x3567d
testl %eax, %eax
je 0x318ea
movq %r12, %rdi
callq 0x356ca
testl %eax, %eax
je 0x318af
movzbl (%r12), %eax
cmpl $0x2d, %eax
je 0x31894
cmpl $0x2b, %eax
jne 0x3189c
cmpb $0x0, 0x1(%r12)
je 0x318af
andl $0x0, 0x8(%r15)
movq %r12, %rdi
callq 0x4200
movl %eax, 0x10(%r15)
jmp 0x31923
movq %r12, %rdi
callq 0x3567d
testl %eax, %eax
je 0x31910
movzbl (%r12), %eax
cmpl $0x2d, %eax
je 0x318ca
cmpl $0x2b, %eax
jne 0x318d2
cmpb $0x0, 0x1(%r12)
je 0x31910
movl $0x1, 0x8(%r15)
movq %r12, %rdi
callq 0x4130
movsd %xmm0, 0x10(%r15)
jmp 0x31923
movq %r12, %rdi
callq 0x3092c
testq %rax, %rax
je 0x31879
movl (%rax), %ecx
cmpl $0x3, %ecx
je 0x31879
movl %ecx, 0x8(%r15)
movq 0x28(%rax), %rax
movq %rax, 0x10(%r15)
jmp 0x31923
orl $-0x1, 0x8(%r15)
movq (%r15), %rdi
movq %r12, %rsi
callq 0x3604c
movq %rax, (%r15)
andq $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_O2/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:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x674c1(%rip), %r13     # 0x98e1c
leaq 0x6f44d(%rip), %r14     # 0xa0daf
leaq 0x6e34f(%rip), %r15     # 0x9fcb8
leaq 0x6f765(%rip), %r12     # 0xa10d5
testq %rbx, %rbx
je 0x319c2
movl 0x8(%rbx), %eax
incl %eax
cmpl $0x5, %eax
ja 0x319bc
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
movq 0x10(%rbx), %rsi
jmp 0x319a3
movsd 0x10(%rbx), %xmm0
movq %r12, %rdi
movb $0x1, %al
callq 0x4030
jmp 0x319bc
movq (%rbx), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x4030
jmp 0x319bc
movl 0x10(%rbx), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x4030
movq 0x18(%rbx), %rbx
jmp 0x31970
pushq $0xa
popq %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x40d0
// File: /workspace/github_c_makefile_star2_O2/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 0x67c5f(%rip), %rsi     # 0x9964b
pushq $0x20
popq %rdi
pushq $0x3
popq %rdx
callq 0x34f59
movq %rax, %rbx
movl 0x8(%r15), %ecx
movsd 0x63b1a(%rip), %xmm1    # 0x95520
cmpl $0x1, %ecx
je 0x31a1b
movapd %xmm1, %xmm2
testl %ecx, %ecx
jne 0x31a21
cvtsi2sdl 0x10(%r15), %xmm2
jmp 0x31a21
movsd 0x10(%r15), %xmm2
movl 0x8(%r14), %edx
pushq $0x1
popq %rax
cmpl $0x1, %edx
je 0x31a40
testl %edx, %edx
jne 0x31a46
cvtsi2sdl 0x10(%r14), %xmm1
xorl %eax, %eax
testl %ecx, %ecx
setne %al
jmp 0x31a46
movsd 0x10(%r14), %xmm1
movl %eax, 0x8(%rbx)
cmpl $0x6, %ebp
ja 0x31a84
movl %ebp, %ecx
leaq 0x673dd(%rip), %rdx     # 0x98e34
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
addsd %xmm1, %xmm2
jmp 0x31ad7
movapd %xmm2, %xmm0
callq 0x42f0
movapd %xmm0, %xmm2
movl 0x8(%rbx), %eax
jmp 0x31ad7
mulsd %xmm1, %xmm2
jmp 0x31ad7
divsd %xmm1, %xmm2
jmp 0x31ab6
jmp 0x31ad7
subsd %xmm1, %xmm2
jmp 0x31ad7
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 0x31adb
movapd %xmm2, %xmm0
divsd %xmm1, %xmm0
cvttpd2dq %xmm0, %xmm0
cvtdq2pd %xmm0, %xmm0
mulsd %xmm1, %xmm0
subsd %xmm0, %xmm2
testl %eax, %eax
je 0x31ae2
movsd %xmm2, 0x10(%rbx)
jmp 0x31ae9
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_O2/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:
pushq $0x1
popq %rax
cmpl %esi, %edi
jge 0x31b14
movl %esi, %ecx
xorl $0x1, %ecx
orl %edi, %ecx
je 0x31b14
xorl $0x2, %edi
xorl $0x3, %esi
xorl %eax, %eax
orl %edi, %esi
sete %al
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x67611(%rip), %rsi     # 0x996bc
pushq $0x8
popq %rdi
pushq $0x5
popq %rdx
callq 0x34f59
movq %rax, %r15
movabsq $-0x3e20000000400000, %rax # imm = 0xC1DFFFFFFFC00000
movq %rax, (%r15)
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x90c1a
movq %rax, %r14
leaq 0x9b791(%rip), %rcx     # 0xcd870
movq (%rcx), %rcx
movslq %ebp, %r13
imulq $0x340, %r13, %rbp      # imm = 0x340
cmpl $0x0, 0x30f08(%rcx,%rbp)
movq (%rax), %rcx
je 0x32101
movsd (%rcx,%r13,8), %xmm0
jmp 0x32107
cvtsi2sdl (%rcx,%r13,8), %xmm0
movq %r14, 0x10(%rsp)
addq $0x30, %r14
pushq $0x1
popq %r12
movslq 0xc(%rsp), %rax
cmpq %rax, %r12
jge 0x321a5
leaq 0x9b747(%rip), %rax     # 0xcd870
movq (%rax), %rax
cmpl $0x0, 0x30f08(%rax,%rbp)
movq (%r14), %rax
je 0x32141
movsd (%rax,%r13,8), %xmm1
jmp 0x32147
cvtsi2sdl (%rax,%r13,8), %xmm1
ucomisd %xmm0, %xmm1
jne 0x3214f
jnp 0x32199
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 0x34f30
movq %rax, %r15
movsd 0x18(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
addsd %xmm0, %xmm1
mulsd 0x63b91(%rip), %xmm1    # 0x95d20
movslq (%rbx), %rax
movsd %xmm1, -0x8(%r15,%rax,8)
incq %r12
addq $0x30, %r14
jmp 0x32114
movslq (%rbx), %rax
leaq 0x1(%rax), %rdx
movl %edx, (%rbx)
leaq 0x8(,%rax,8), %rsi
movq %r15, %rdi
callq 0x34f30
movq %rax, %r15
movslq (%rbx), %rax
movabsq $0x41dfffffffc00000, %rcx # imm = 0x41DFFFFFFFC00000
movq %rcx, -0x8(%r15,%rax,8)
movq 0x10(%rsp), %rdi
callq 0x34ff7
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_O2/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
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x9b666(%rip), %r13     # 0xcd870
movq (%r13), %rax
xorl %ebp, %ebp
pushq $0x1
popq %rbx
movslq 0x1bc(%rax), %rcx
cmpq %rcx, %rbp
jge 0x32241
cmpl $0x0, (%r15,%rbp,4)
je 0x3223a
movq (%r12,%rbp,8), %rsi
movq %r14, %rdi
callq 0x7099c
testl %eax, %eax
je 0x3223f
movq (%r13), %rax
incq %rbp
jmp 0x32213
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_O2/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)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
leaq 0x9b5fc(%rip), %rax     # 0xcd870
movq (%rax), %rax
movl 0x1bc(%rax), %eax
xorl %ecx, %ecx
testl %eax, %eax
cmovlel %ecx, %eax
xorl %ebp, %ebp
cmpq %rcx, %rax
je 0x32298
cmpl $0x1, (%r15,%rcx,4)
sbbl $-0x1, %ebp
incq %rcx
jmp 0x32286
movsd 0x63278(%rip), %xmm0    # 0x95518
movsd %xmm0, 0x10(%rsp)
testl %ebp, %ebp
je 0x322fb
xorl %r13d, %r13d
xorl %ebx, %ebx
testq %r14, %r14
je 0x322e1
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x321ef
testl %eax, %eax
je 0x322db
movq %r14, %rdi
callq 0x2b47e
cmpl 0xc(%rsp), %eax
jne 0x322d8
incl %ebx
jmp 0x322db
incl %r13d
movq 0x10(%r14), %r14
jmp 0x322af
testl %ebx, %ebx
je 0x322fb
addl %ebp, %r13d
cvtsi2sd %r13d, %xmm1
cvtsi2sd %ebx, %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_O2/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:
decl %esi
xorl %ecx, %ecx
pushq $0x2
popq %r8
movl %esi, %eax
movl %esi, %edx
subl %ecx, %edx
cmpl $0x2, %edx
jl 0x3233d
cltd
idivl %r8d
cltq
movsd (%rdi,%rax,8), %xmm1
ucomisd %xmm0, %xmm1
cmovbel %eax, %ecx
cmoval %eax, %esi
leal (%rsi,%rcx), %eax
jmp 0x3231a
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/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 $0x48, %rsp
movl %edx, 0x3c(%rsp)
movq %rsi, %r14
movq %rdi, %r15
leaq 0x80(%rsp), %rcx
movl 0x10(%rcx), %r13d
xorl %eax, %eax
testl %r13d, %r13d
cmovlel %eax, %r13d
movl $0x0, 0x38(%rsp)
cmpq %rax, %r13
je 0x32c59
movq (%rcx), %rcx
andl $0x0, 0x8(%rcx)
cmpl $0x0, (%r15,%rax,4)
je 0x32c50
movl 0x38(%rsp), %edx
addl 0x28(%rcx), %edx
movl %edx, 0x38(%rsp)
addq $0x30, %rcx
incq %rax
jmp 0x32c32
movq $0x0, 0x40(%rsp)
testq %r14, %r14
je 0x32cec
movq %r14, %rdi
callq 0x2b47e
movl %eax, %ebp
xorl %r12d, %r12d
leaq 0x80(%rsp), %rbx
cmpq %r12, %r13
je 0x32cc6
movq (%rbx), %rbx
cmpl $0x0, (%r15,%r12,4)
je 0x32cbd
movq 0x30(%rbx), %rax
movq %rax, 0x30(%rsp)
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r14, %rdi
callq 0x71406
testl %eax, %eax
jne 0x32cce
addq $0x30, %rbx
incq %r12
jmp 0x32c80
cmpl 0x3c(%rsp), %ebp
je 0x32cd7
jmp 0x32ce3
cmpl 0x3c(%rsp), %ebp
je 0x32ce3
incl 0x8(%rbx)
movq 0x40(%rsp), %rax
incl %eax
movq %rax, 0x40(%rsp)
movq 0x10(%r14), %r14
jmp 0x32c62
movq 0x40(%rsp), %rax
addl 0x38(%rsp), %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/lerils.c
// Function: order_rulesets
Ruleset order_rulesets(Ruleset* sets, Instanceptr* instances)
{
 int i, j, *included, minexception, bestclass, exception, *counts;
 Ruleset result;
 Instanceptr covered = NULL;
 empty_ruleset(&result);
 included = (int *)safecalloc(current_dataset->classno, sizeof(int), "order_rulesets", 4);
 for (i = 0; i < current_dataset->classno; i++)
  {
   bestclass = -1;
   minexception = +INT_MAX;
   for (j = 0; j < current_dataset->classno; j++)
     if (!included[j])
      {
       exception = exception_count_of_ruleset(sets[j], *instances, j);
       if (exception < minexception)
        {
         minexception = exception;
         bestclass = j;
        }
      }
   remove_covered_by_ruleset(instances, &covered, sets[bestclass], 0);
   merge_ruleset(&result, sets[bestclass]);
   included[bestclass] = YES;
  }
 counts = find_class_counts(*instances);
 result.defaultclass = find_max_in_list(counts, current_dataset->classno);
 merge_instancelist(instances, covered);
 safe_free(counts);
 safe_free(included);
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq %rsi, %r13
leaq 0x30(%rsp), %rax
andq $0x0, (%rax)
movq %rdi, 0x28(%rsp)
callq 0x71c9d
leaq 0x9a887(%rip), %rax     # 0xcd870
movq (%rax), %rax
movslq 0x10(%rax), %rdi
leaq 0x66728(%rip), %rdx     # 0x9971f
pushq $0x4
popq %rsi
pushq $0x4
popq %rcx
callq 0x35067
movq %rax, %r15
xorl %ecx, %ecx
movq %r13, 0x38(%rsp)
leaq 0x9a85d(%rip), %rax     # 0xcd870
movq (%rax), %rax
movl 0x10(%rax), %eax
cmpl %eax, %ecx
jge 0x33101
movq %rcx, 0x40(%rsp)
movl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
movq %r13, %r12
xorl %ebp, %ebp
pushq $-0x1
popq %r13
movslq %eax, %rcx
cmpq %rcx, %rbp
jge 0x3308a
cmpl $0x0, (%r15,%rbp,4)
jne 0x33081
movq (%r14), %rdi
movq 0x20(%r12), %rax
movq %rax, 0x20(%rsp)
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movl %ebp, %esi
callq 0x90762
cmpl %ebx, %eax
cmovll %eax, %ebx
cmovll %ebp, %r13d
leaq 0x9a7f5(%rip), %rax     # 0xcd870
movq (%rax), %rax
movl 0x10(%rax), %eax
incq %rbp
addq $0x28, %r12
jmp 0x33034
movslq %r13d, %rbx
imulq $0x28, %rbx, %r12
movq 0x38(%rsp), %r13
movq 0x20(%r13,%r12), %rax
movq %rax, 0x20(%rsp)
movups (%r13,%r12), %xmm0
movups 0x10(%r13,%r12), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
xorl %edx, %edx
callq 0x90483
movq 0x20(%r13,%r12), %rax
movq %rax, 0x20(%rsp)
movups (%r13,%r12), %xmm0
movups 0x10(%r13,%r12), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq 0x28(%rsp), %rdi
callq 0x71cee
movl $0x1, (%r15,%rbx,4)
movq 0x40(%rsp), %rcx
incl %ecx
jmp 0x3300c
movq (%r14), %rdi
callq 0x108c8
movq %rax, %r12
leaq 0x9a75d(%rip), %rax     # 0xcd870
movq (%rax), %rax
movl 0x10(%rax), %esi
movq %r12, %rdi
callq 0x336b5
movq 0x28(%rsp), %rbx
movl %eax, 0x14(%rbx)
movq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0x2c6e4
movq %r12, %rdi
callq 0x34ff7
movq %r15, %rdi
callq 0x34ff7
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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 0x9a6f8(%rip), %rbx     # 0xcd870
movq (%rbx), %rax
movslq 0x10(%rax), %rax
imulq $0x28, %rax, %rdi
leaq 0x665a4(%rip), %rsi     # 0x9972e
pushq $0x3
popq %rdx
callq 0x34f59
movq %rax, %r14
xorl %r13d, %r13d
leaq 0x10(%rsp), %rbp
movq %rax, (%rsp)
movq (%rbx), %rax
movslq 0x10(%rax), %rax
cmpq %rax, %r13
jge 0x331e3
movq (%r15), %rsi
movq %rbp, %rdi
movq %r12, %rdx
movl %r13d, %ecx
callq 0x32f2c
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
addq $0x28, %r14
jmp 0x331a1
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq (%rsp), %r13
movq %r13, %rsi
movq %r15, %rdx
callq 0x32fbb
movq %r13, %r14
addq $0x18, %r14
xorl %r15d, %r15d
movq (%rbx), %rax
movslq 0x10(%rax), %rax
cmpq %rax, %r15
jge 0x33221
movq (%r14), %rdi
callq 0x34ff7
incq %r15
addq $0x28, %r14
jmp 0x33204
movq %r13, %rdi
callq 0x34ff7
movq %r12, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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, %ebp
movl %esi, %ebx
movq %rdi, %r14
leaq 0x66484(%rip), %r8      # 0x99760
pushq $0x8
popq %rdi
pushq $0x3
popq %r9
movq %rdi, %rsi
movl %ebx, %edx
movl %ebp, %ecx
callq 0x351c3
movq %rax, %r15
movslq %ebp, %r12
shlq $0x3, %r12
xorl %r13d, %r13d
testl %ebx, %ebx
cmovlel %r13d, %ebx
cmpq %r13, %rbx
je 0x3331c
movq (%r15,%r13,8), %rdi
movq (%r14,%r13,8), %rsi
movq %r12, %rdx
callq 0x4310
incq %r13
jmp 0x33302
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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 0x33358
ucomisd %xmm0, %xmm1
jbe 0x33362
pushq $0x1
jmp 0x33360
ucomisd %xmm0, %xmm1
jbe 0x3336e
pushq $-0x1
popq %rax
retq
xorl %eax, %eax
ucomisd %xmm1, %xmm0
seta %al
negl %eax
retq
xorl %eax, %eax
ucomisd %xmm1, %xmm0
seta %al
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x663d9(%rip), %rsi     # 0x9976f
pushq $0x2
popq %rdx
movq %rbx, %rdi
callq 0x34f59
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 0x34ff7
// File: /workspace/github_c_makefile_star2_O2/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
pushq %rax
movl %r9d, %ebx
movl %r8d, %r15d
movl %ecx, %r13d
movl %edx, %ebp
movl %esi, 0x4(%rsp)
movq %rdi, %r14
leal (%rbx,%r15), %eax
pushq $0x2
popq %rcx
cltd
idivl %ecx
movl %eax, %r12d
movl %eax, %esi
movl %r8d, %edx
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x3332e
testl %eax, %eax
jns 0x33437
movq %r14, %rdi
movl %r15d, %esi
movl %r12d, %edx
movl 0x4(%rsp), %ecx
callq 0x33378
movq %r14, %rdi
movl %ebx, %esi
movl %r12d, %edx
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x3332e
testl %eax, %eax
jns 0x3345e
movq %r14, %rdi
movl %ebx, %esi
movl %r12d, %edx
movl 0x4(%rsp), %ecx
callq 0x33378
movq %r14, %rdi
movl %r12d, %esi
movl %r15d, %edx
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x3332e
testl %eax, %eax
jns 0x33487
movq %r14, %rdi
movl %r12d, %esi
movl %r15d, %edx
movl 0x4(%rsp), %ecx
callq 0x33378
movq %r14, %rdi
movl %r12d, %esi
movl %ebx, %edx
movl 0x4(%rsp), %ecx
callq 0x33378
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_O2/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
pushq %rax
movl %r9d, %ebx
movl %r8d, %r12d
movl %ecx, %r13d
movl %edx, %r14d
movq %rdi, %r15
leal -0x1(%r12), %ebp
movl %esi, 0x4(%rsp)
callq 0x333e8
cmpl %ebx, %r12d
jge 0x33505
movq %r15, %rdi
movl %r12d, %esi
movl %ebx, %edx
movl %r14d, %ecx
movl %r13d, %r8d
callq 0x3332e
testl %eax, %eax
jg 0x33500
incl %ebp
movq %r15, %rdi
movl %ebp, %esi
movl %r12d, %edx
movl 0x4(%rsp), %ecx
callq 0x33378
incl %r12d
jmp 0x334d1
incl %ebp
movq %r15, %rdi
movl %ebp, %esi
movl %ebx, %edx
movl 0x4(%rsp), %ecx
callq 0x33378
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_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r15d
movl %r8d, %r13d
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, 0x4(%rsp)
movq %rdi, %r12
movl %r9d, (%rsp)
cmpl %r15d, %r13d
jge 0x335f7
movq %r12, %rdi
movl %ebp, %edx
movl %ebx, %ecx
movl %r13d, %r8d
movl %r15d, %r9d
callq 0x33528
testl %eax, %eax
jne 0x335f7
movq %r12, %rdi
movl %ebx, %r14d
movl 0x4(%rsp), %ebx
movl %ebx, %esi
movl %ebp, %edx
movl %r14d, %ecx
movl %r13d, %r8d
movl %r15d, %r9d
callq 0x334a9
movl %eax, %r15d
leal -0x1(%r15), %r9d
movq %r12, %rdi
movl %ebx, %esi
movl %r14d, %ebx
movl %ebp, %edx
movl %r14d, %ecx
movl %r13d, %r8d
callq 0x33578
incl %r15d
movl %r15d, %r13d
movl (%rsp), %r15d
jmp 0x33598
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
xorl %eax, %eax
testl %esi, %esi
cmovlel %eax, %ebx
xorpd %xmm2, %xmm2
leaq 0x66157(%rip), %r15     # 0x99781
leaq 0x66171(%rip), %r12     # 0x997a2
xorl %r13d, %r13d
movsd %xmm0, 0x8(%rsp)
cmpq %r13, %rbx
je 0x3367a
ucomisd %xmm2, %xmm0
jne 0x33647
jnp 0x33659
movsd (%r14,%r13,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%r14,%r13,8)
jmp 0x33675
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4030
xorpd %xmm2, %xmm2
movsd 0x8(%rsp), %xmm0
andq $0x0, (%r14,%r13,8)
incq %r13
jmp 0x3363a
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
xorl %ecx, %ecx
testl %esi, %esi
movl $0x0, %edx
cmovgl %esi, %edx
xorpd %xmm1, %xmm1
cmpq %rcx, %rdx
je 0x336af
addsd (%rdi,%rcx,8), %xmm1
ucomisd %xmm0, %xmm1
ja 0x336b2
incq %rcx
jmp 0x3369a
decl %eax
retq
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/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:
xorl %ecx, %ecx
testl %esi, %esi
cmovlel %ecx, %esi
pushq $-0x1
popq %rax
movl $0x80000001, %edx       # imm = 0x80000001
cmpq %rcx, %rsi
je 0x336dc
movl (%rdi,%rcx,4), %r8d
cmpl %edx, %r8d
cmovgl %r8d, %edx
cmovgl %ecx, %eax
incq %rcx
jmp 0x336c4
retq
// File: /workspace/github_c_makefile_star2_O2/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:
xorl %ecx, %ecx
testl %esi, %esi
cmovlel %ecx, %esi
pushq $-0x1
popq %rax
xorpd %xmm1, %xmm1
movsd 0x626bd(%rip), %xmm0    # 0x95db0
cmpq %rcx, %rsi
je 0x3372c
movsd (%rdi,%rcx,8), %xmm2
movapd %xmm1, %xmm3
cmpltpd %xmm2, %xmm3
movapd %xmm2, %xmm4
cmpneqpd %xmm0, %xmm4
andpd %xmm3, %xmm4
movd %xmm4, %edx
testb $0x1, %dl
jne 0x33720
movapd %xmm1, %xmm2
cmovnel %ecx, %eax
incq %rcx
movapd %xmm2, %xmm1
jmp 0x336f3
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r12
andl $0x0, (%rdx)
xorl %eax, %eax
testl %esi, %esi
cmovlel %eax, %r15d
xorl %ecx, %ecx
cmpq %rcx, %r15
je 0x33761
cmpl $0x0, (%r12,%rcx,4)
jle 0x3375c
incl %eax
movl %eax, (%rbx)
incq %rcx
jmp 0x3374c
movslq %eax, %rdi
shlq $0x2, %rdi
leaq 0x66040(%rip), %r13     # 0x997af
pushq $0x6
popq %rdx
movq %r13, %rsi
callq 0x34f59
movq %rax, %r14
movslq (%rbx), %rdi
shlq $0x2, %rdi
pushq $0x7
popq %rdx
movq %r13, %rsi
callq 0x34f59
xorl %ecx, %ecx
xorl %edx, %edx
cmpq %rcx, %r15
je 0x337b4
cmpl $0x0, (%r12,%rcx,4)
jle 0x337af
movslq %edx, %rdx
movl %ecx, (%r14,%rdx,4)
movl (%r12,%rcx,4), %esi
movl %esi, (%rax,%rdx,4)
incl %edx
incq %rcx
jmp 0x33793
pushq $0x1
popq %rcx
xorl %edx, %edx
cmpl (%rbx), %ecx
jge 0x337fa
movl %edx, %esi
leal 0x1(%rsi), %edi
testl %edi, %edi
jle 0x337f4
movl %edi, %edi
movl (%rax,%rdi,4), %r9d
movl %esi, %r8d
movl (%rax,%r8,4), %r10d
cmpl %r10d, %r9d
jl 0x337f4
movl %r10d, (%rax,%rdi,4)
movl %r9d, (%rax,%r8,4)
movl (%r14,%rdi,4), %r9d
movl (%r14,%r8,4), %r10d
movl %r10d, (%r14,%rdi,4)
movl %r9d, (%r14,%r8,4)
decl %esi
jmp 0x337bf
incl %ecx
incl %edx
jmp 0x337b9
movq %rax, %rdi
callq 0x34ff7
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
xorl %ecx, %ecx
testl %esi, %esi
movl $0x0, %eax
cmovgl %esi, %eax
xorpd %xmm2, %xmm2
cmpq %rcx, %rax
je 0x33836
addsd (%rdi,%rcx,8), %xmm2
incq %rcx
jmp 0x33827
cvtsi2sd %esi, %xmm0
divsd %xmm0, %xmm2
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x3385f
movsd (%rdi,%rcx,8), %xmm1
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rcx
jmp 0x33844
decl %esi
cvtsi2sd %esi, %xmm1
divsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x33879
sqrtsd %xmm0, %xmm0
jmp 0x3388a
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_O2/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:
xorl %ecx, %ecx
testl %esi, %esi
cmovlel %ecx, %esi
pushq $-0x1
popq %rax
movsd 0x61c3a(%rip), %xmm1    # 0x95518
movsd 0x624ca(%rip), %xmm0    # 0x95db0
cmpq %rcx, %rsi
je 0x3391f
movsd (%rdi,%rcx,8), %xmm2
movapd %xmm2, %xmm3
cmpltpd %xmm1, %xmm3
movapd %xmm2, %xmm4
cmpneqpd %xmm0, %xmm4
andpd %xmm3, %xmm4
movd %xmm4, %edx
testb $0x1, %dl
jne 0x33913
movapd %xmm1, %xmm2
cmovnel %ecx, %eax
incq %rcx
movapd %xmm2, %xmm1
jmp 0x338e6
retq
// File: /workspace/github_c_makefile_star2_O2/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, %ebx
movl %esi, %r14d
movq %rdi, %r15
movslq %edx, %rdi
leaq 0x65e83(%rip), %rdx     # 0x997c0
pushq $0x4
popq %rsi
pushq $0x2
popq %rcx
callq 0x35067
movq %rax, %r13
xorl %eax, %eax
testl %r14d, %r14d
cmovlel %eax, %r14d
leaq 0x65e76(%rip), %rbp     # 0x997d1
xorl %r12d, %r12d
cmpq %r12, %r14
je 0x33992
movl (%r15,%r12,4), %eax
testl %eax, %eax
sets %cl
cmpl %ebx, %eax
setge %dl
orb %cl, %dl
jne 0x3397c
incl (%r13,%rax,4)
jmp 0x3398d
movq %rbp, %rdi
leaq 0x65e3a(%rip), %rsi     # 0x997c0
xorl %eax, %eax
callq 0x4030
incq %r12
jmp 0x3395e
movq %r13, %rdi
movl %ebx, %esi
callq 0x336b5
movl %eax, %ebx
movq %r13, %rdi
callq 0x34ff7
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_O2/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:
xorl %ecx, %ecx
testl %esi, %esi
cmovlel %ecx, %esi
xorl %eax, %eax
cmpq %rcx, %rsi
je 0x339db
movslq %eax, %rdx
movsd (%rdi,%rcx,8), %xmm0
ucomisd (%rdi,%rdx,8), %xmm0
jb 0x339d6
movl %ecx, %eax
incq %rcx
jmp 0x339c0
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq %esi, %r15
leaq (,%r15,8), %rdi
leaq 0x65de1(%rip), %rsi     # 0x997f1
pushq $0x3
popq %rdx
callq 0x34f59
movq %rax, %r14
xorl %r12d, %r12d
testl %r15d, %r15d
cmovlel %r12d, %r15d
cmpq %r12, %r15
je 0x33a40
movsd (%rbx,%r12,8), %xmm0
callq 0x34d87
movsd %xmm0, (%r14,%r12,8)
incq %r12
jmp 0x33a25
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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:
xorl %eax, %eax
testl %edx, %edx
cmovlel %eax, %edx
xorpd %xmm0, %xmm0
cmpq %rax, %rdx
je 0x33a92
movsd (%rdi,%rax,8), %xmm1
mulsd (%rsi,%rax,8), %xmm1
addsd %xmm1, %xmm0
incq %rax
jmp 0x33a7a
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movslq %edx, %r15
leaq (,%r15,8), %rdi
leaq 0x65d4e(%rip), %rsi     # 0x997fe
pushq $0x3
popq %rdx
callq 0x34f59
xorl %ecx, %ecx
testl %r15d, %r15d
cmovlel %ecx, %r15d
cmpq %rcx, %r15
je 0x33adb
movsd (%r14,%rcx,8), %xmm0
mulsd (%rbx,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
incq %rcx
jmp 0x33ac1
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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:
movslq (%rsi), %rax
xorl %r8d, %r8d
testl %eax, %eax
movl $0x0, %ecx
cmovgl %eax, %ecx
cmpq %r8, %rcx
je 0x33b06
cmpl %edx, (%rdi,%r8,4)
jg 0x33b03
je 0x33b21
incq %r8
jmp 0x33af1
movl %r8d, %ecx
movslq %ecx, %rcx
cmpq %rcx, %rax
jle 0x33b1c
movl -0x4(%rdi,%rax,4), %r8d
movl %r8d, (%rdi,%rax,4)
decq %rax
jmp 0x33b09
movl %edx, (%rdi,%rcx,4)
incl (%rsi)
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/libarray.c
// Function: search_list
int search_list(int* list, int itemcount, int item)
{
 /*!Last Changed 18.07.2005*/
 int i;
 for (i = 0; i < itemcount; i++)
   if (list[i] == item)
     return i;
 return -1;
}

// Assembly:
xorl %ecx, %ecx
testl %esi, %esi
cmovlel %ecx, %esi
pushq $-0x1
popq %rax
cmpq %rcx, %rsi
je 0x33b3d
cmpl %edx, (%rdi,%rcx,4)
je 0x33b3b
incq %rcx
jmp 0x33b2c
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/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:
xorl %ecx, %ecx
testl %esi, %esi
cmovlel %ecx, %esi
xorl %eax, %eax
cmpq %rcx, %rsi
je 0x33b54
addl (%rdi,%rcx,4), %eax
incq %rcx
jmp 0x33b47
retq
// File: /workspace/github_c_makefile_star2_O2/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:
xorl %eax, %eax
testl %edx, %edx
cmovlel %eax, %edx
xorpd %xmm0, %xmm0
cmpq %rax, %rdx
je 0x33b7c
movsd (%rdi,%rax,8), %xmm1
subsd (%rsi,%rax,8), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rax
jmp 0x33b60
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x4300
sqrtsd %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O2/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:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movl %edx, %esi
callq 0x33b3e
testl %eax, %eax
je 0x33bcc
cvtsi2sd %eax, %xmm0
xorl %eax, %eax
testl %ebx, %ebx
cmovlel %eax, %ebx
cmpq %rax, %rbx
je 0x33bf3
cvtsi2sdl (%r15,%rax,4), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%r14,%rax,8)
incq %rax
jmp 0x33bb2
cvtsi2sd %ebx, %xmm1
movsd 0x61948(%rip), %xmm0    # 0x95520
divsd %xmm1, %xmm0
xorl %eax, %eax
testl %ebx, %ebx
cmovlel %eax, %ebx
cmpq %rax, %rbx
je 0x33bf3
movsd %xmm0, (%r14,%rax,8)
incq %rax
jmp 0x33be3
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/libarray.c
// Function: normalize_array_laplace
void normalize_array_laplace(int* counts, double* posterior, int size)
{
 int i, sum;
 sum = sum_of_list(counts, size);
 for (i = 0; i < size; i++)
   posterior[i] = (counts[i] + 1) / (sum + size + 0.0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movl %edx, %esi
callq 0x33b3e
addl %ebx, %eax
cvtsi2sd %eax, %xmm0
xorl %eax, %eax
testl %ebx, %ebx
cmovlel %eax, %ebx
cmpq %rax, %rbx
je 0x33c38
movl (%r15,%rax,4), %ecx
incl %ecx
cvtsi2sd %ecx, %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%r14,%rax,8)
incq %rax
jmp 0x33c1a
popq %rbx
popq %r14
popq %r15
retq