LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/lang.c
// Function: array_pos
variableptr array_pos(char *name, variableptr myvar)
{
 /*!Last Changed 06.01.2006*/
	/*!Last Changed 02.02.2004 added safemalloc*/
 /*!Last Changed 02.05.2002*/
 int i, start, end = 0, len;
 char st[READLINELENGTH], *p;
 variableptr myvar2, result = myvar;
 Expnodeptr list;
 len = strlen(name);
 for (i = 0; i < len; i++)
   if (name[i] == '[')
     start = i + 1;
   else
     if (name[i] == ']')
      {
       end = i - 1;
       break;
      }
 for (i = start; i <= end; i++)
   st[i - start] = name[i];
 st[i - start] = '\0';
 p = strtok(st, ",");
 while (p)
  {
   list = create_expression_list(p);
   myvar2 = evaluate_expression_list(list);
   result = &(result->value.array[myvar2->value.intvalue - 1]);
   safe_free(myvar2);
   p = strtok(NULL, ",");
  }
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x7a128, %rsp          # imm = 0x7A128
movq %rsi, %rbx
movq %rdi, %r14
callq 0x4190
testl %eax, %eax
jle 0x34b95
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %r15d, %r15d
movzbl (%r14,%r15), %ecx
cmpl $0x5b, %ecx
je 0x34b84
cmpl $0x5d, %ecx
jne 0x34b88
jmp 0x34b9a
leal 0x1(%r15), %ebp
incq %r15
cmpq %r15, %rax
jne 0x34b73
xorl %r15d, %r15d
jmp 0x34b9d
xorl %r15d, %r15d
jmp 0x34b9d
decl %r15d
movl %r15d, %edx
movl %ebp, %eax
subl %ebp, %edx
jl 0x34bc0
movslq %ebp, %rax
addq %rax, %r14
incq %rdx
movq %rsp, %rdi
movq %r14, %rsi
callq 0x4310
incl %r15d
movl %r15d, %eax
subl %ebp, %eax
cltq
movb $0x0, (%rsp,%rax)
leaq 0x70e9f(%rip), %rsi     # 0xa5a6e
movq %rsp, %rdi
callq 0x4280
testq %rax, %rax
je 0x34c22
leaq 0x70e8b(%rip), %r14     # 0xa5a6e
movq %rax, %rdi
callq 0x34c33
movq %rax, %rdi
callq 0x34d3b
movq 0x28(%rbx), %rcx
movslq 0x28(%rax), %rdx
leaq (%rdx,%rdx,2), %rdx
shlq $0x4, %rdx
leaq (%rcx,%rdx), %rbx
addq $-0x30, %rbx
movq %rax, %rdi
callq 0x39194
xorl %edi, %edi
movq %r14, %rsi
callq 0x4280
testq %rax, %rax
jne 0x34be3
movq %rbx, %rax
addq $0x7a128, %rsp          # imm = 0x7A128
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/lang.c
// Function: create_expression_list
Expnodeptr create_expression_list(char* st)
{
 /*!Last Changed 03.01.2006*/
 char st1[READLINELENGTH];
 int i = 0, j = 0, indexs, indexo;
 Expnodeptr start = NULL, tmpbefore = NULL;
 while (st[i])
  {
   indexs = listindexc(st[i], separators, 5);
   indexo = listindexc(st[i], operators, 7);
   if (indexs != -1 || indexo != -1)
    {
     st1[j] = '\0';
     add_expnode(st1, &tmpbefore, &start);
     st1[0] = st[i];
     st1[1] = '\0';
     add_expnode(st1, &tmpbefore, &start);
     j = -1;
    }
   else
     st1[j] = st[i];
   i++;
   j++;
  }
 st1[j] = '\0';
 add_expnode(st1, &tmpbefore, &start); 
 st1[0] = st[i];
 st1[1] = '\0';
 add_expnode(st1, &tmpbefore, &start);
 return start;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7a138, %rsp          # imm = 0x7A138
movq %rdi, %rbx
xorl %r15d, %r15d
movq %r15, 0x8(%rsp)
movq %r15, (%rsp)
movb (%rdi), %al
testb %al, %al
je 0x34cec
leaq 0x10(%rsp), %r12
movq %rsp, %r13
leaq 0x8(%rsp), %rbp
movsbl %al, %edi
leaq 0x9d154(%rip), %rsi     # 0xd1dc8
movl $0x5, %edx
callq 0x3a3a8
movl %eax, %r14d
movsbl (%rbx), %edi
leaq 0x9d142(%rip), %rsi     # 0xd1dcd
movl $0x7, %edx
callq 0x3a3a8
movslq %r15d, %rcx
cmpl $-0x1, %r14d
jne 0x34cb0
cmpl $-0x1, %eax
jne 0x34cb0
movb (%rbx), %al
movb %al, 0x10(%rsp,%rcx)
incl %ecx
movl %ecx, %r15d
jmp 0x34cdf
xorl %r15d, %r15d
movb %r15b, 0x10(%rsp,%rcx)
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x3539b
movb (%rbx), %al
movb %al, 0x10(%rsp)
movb %r15b, 0x11(%rsp)
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x3539b
movb 0x1(%rbx), %al
incq %rbx
testb %al, %al
jne 0x34c6a
movslq %r15d, %r15
xorl %ebp, %ebp
movb %bpl, 0x10(%rsp,%r15)
leaq 0x10(%rsp), %r14
movq %rsp, %r15
leaq 0x8(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x3539b
movb (%rbx), %al
movb %al, (%r14)
movb %bpl, 0x1(%r14)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x3539b
movq (%r12), %rax
addq $0x7a138, %rsp          # imm = 0x7A138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/lang.c
// Function: set_multidimensional_array
void set_multidimensional_array(variableptr myvar, void* value)
{
 /*!Last Changed 22.12.2006 added matrix type*/
 /*!Last Changed 05.01.2006*/
 int j;
 for (j = 0; j < myvar->arraysize; j++)
   switch (myvar->value.array[j].type)
    {
     case INTEGER_TYPE:myvar->value.array[j].value.intvalue = atoi((char *)value);
                       break;
     case REAL_TYPE   :myvar->value.array[j].value.floatvalue = atof((char *)value);
                       break;
     case ARRAY_TYPE  :set_multidimensional_array(&(myvar->value.array[j]), value);
                       break;
     case STRING_TYPE :
     case FILE_TYPE   :if (myvar->value.array[j].value.stringvalue)
                         safe_free(myvar->value.array[j].value.stringvalue);
                       myvar->value.array[j].value.stringvalue = strcopy(myvar->value.array[j].value.stringvalue, (char *)value);
                       break;
     case MATRIX_TYPE :myvar->value.array[j].value.matrixvalue = (matrixptr) value;
                       break;
     default          :break;
    }
}

// Assembly:
cmpl $0x0, 0x20(%rdi)
jle 0x35054
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r12d, %r12d
leaq 0x70e78(%rip), %r13     # 0xa5e30
xorl %ebp, %ebp
movq 0x28(%r14), %r15
movl (%r15,%r12), %eax
cmpq $0x5, %rax
ja 0x35032
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
movq 0x28(%r15,%r12), %rdi
testq %rdi, %rdi
je 0x34fe1
callq 0x39194
movq 0x28(%r14), %rax
movq 0x28(%rax,%r12), %rdi
movq %rbx, %rsi
callq 0x3a404
movq 0x28(%r14), %rcx
movq %rax, 0x28(%rcx,%r12)
jmp 0x35032
movq %rbx, %rdi
callq 0x4200
movl %eax, 0x28(%r15,%r12)
jmp 0x35032
movq %rbx, %rdi
callq 0x4130
movsd %xmm0, 0x28(%r15,%r12)
jmp 0x35032
movq %rbx, 0x28(%r15,%r12)
jmp 0x35032
addq %r12, %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x34f93
incq %rbp
movslq 0x20(%r14), %rax
addq $0x30, %r12
cmpq %rax, %rbp
jl 0x34fba
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/lang.c
// Function: free_multidimensional_array
void free_multidimensional_array(variableptr myvar)
{
 /*!Last Changed 22.12.2006 added array of matrices*/
 /*!Last Changed 04.01.2006*/
 int j;
 for (j = 0; j < myvar->arraysize; j++)
   if (myvar->value.array[j].type == ARRAY_TYPE)
     free_multidimensional_array(&(myvar->value.array[j]));
   else
    {
     if (in_list(myvar->value.array[j].type, 2, STRING_TYPE, FILE_TYPE))
      {
       if (myvar->value.array[j].value.stringvalue)
         safe_free(myvar->value.array[j].value.stringvalue);
      }
     else
       if (myvar->value.array[j].type == MATRIX_TYPE && myvar->value.array[j].value.matrixvalue)
        {
         matrix_free(*(myvar->value.array[j].value.matrixvalue));
         safe_free(myvar->value.array[j].value.matrixvalue);
        }
    }
 safe_free(myvar->value.array);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x20(%rdi)
jle 0x350eb
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x28(%rbx), %rdi
movl (%rdi,%r14), %eax
cmpl $0x3, %eax
jne 0x35084
addq %r14, %rdi
callq 0x35055
jmp 0x350db
movl %eax, %edi
movl $0x2, %esi
movl $0x2, %edx
movl $0x4, %ecx
xorl %eax, %eax
callq 0x39a80
movq 0x28(%rbx), %rcx
testl %eax, %eax
je 0x350b0
movq 0x28(%rcx,%r14), %rdi
testq %rdi, %rdi
jne 0x350d6
jmp 0x350db
cmpl $0x5, (%rcx,%r14)
jne 0x350db
movq 0x28(%rcx,%r14), %rax
testq %rax, %rax
je 0x350db
movq (%rax), %rdi
movq 0x8(%rax), %rsi
callq 0x3dbad
movq 0x28(%rbx), %rax
movq 0x28(%rax,%r14), %rdi
callq 0x39194
incq %r15
movslq 0x20(%rbx), %rax
addq $0x30, %r14
cmpq %rax, %r15
jl 0x3506d
movq 0x28(%rbx), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x39194
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/lang.c
// Function: create_multidimensional_array
void create_multidimensional_array(variableptr myvar, int* dimensions, int curdimension, int dimcount, int type)
{
 /*!Last Changed 04.01.2006*/
 int k, size;
 size = dimensions[curdimension];
 myvar->arraysize = size;
 myvar->value.array = (variableptr)safemalloc(size * sizeof(struct variable), "create_multidimensional_array", 4);
 for (k = 0; k < size; k++)
   if (curdimension + 1 < dimcount)
    {
     myvar->value.array[k].type = ARRAY_TYPE;
     myvar->value.array[k].name = NULL;
     create_multidimensional_array(&(myvar->value.array[k]), dimensions, curdimension + 1, dimcount, type);
    }
   else
    {
     myvar->value.array[k].name = NULL;
     myvar->value.array[k].type = type;
     myvar->value.array[k].arraysize = 0;
     set_default_value(&(myvar->value.array[k]));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r14d
movq %rdi, %r12
movslq %edx, %rax
movq %rsi, (%rsp)
movslq (%rsi,%rax,4), %r15
movl %r15d, 0x20(%rdi)
movq %r15, %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %r13
leaq 0x714f7(%rip), %rsi     # 0xa6627
movq %r13, %rdi
movl $0x4, %edx
callq 0x390f5
movq %rax, 0x28(%r12)
testq %r15, %r15
jle 0x351be
incl %r14d
xorl %r15d, %r15d
movq 0x28(%r12), %rax
cmpl %ebp, %r14d
jge 0x35188
movl $0x3, (%rax,%r15)
movq 0x28(%r12), %rax
movq $0x0, 0x18(%rax,%r15)
movq 0x28(%r12), %rdi
addq %r15, %rdi
movq (%rsp), %rsi
movl %r14d, %edx
movl %ebp, %ecx
movl %ebx, %r8d
callq 0x350f9
jmp 0x351b5
movq $0x0, 0x18(%rax,%r15)
movq 0x28(%r12), %rax
movl %ebx, (%rax,%r15)
movq 0x28(%r12), %rax
movl $0x0, 0x20(%rax,%r15)
movq 0x28(%r12), %rdi
addq %r15, %rdi
callq 0x34f62
addq $0x30, %r15
cmpq %r15, %r13
jne 0x3514d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/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 0x3440c
movq %rax, %r15
xorl %eax, %eax
testq %r15, %r15
je 0x35209
cmpl $0x0, (%r15)
jne 0x35209
movq %r14, %rdi
callq 0x4200
movl %eax, 0x8(%r15)
movl %ebp, 0x4(%r15)
movl %ebx, 0xc(%r15)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x9cab6(%rip), %rsi     # 0xd1ce0
movl $0x8, %edx
callq 0x3a2c5
cmpl $-0x1, %eax
je 0x352fb
movl %eax, %ebx
movq 0x8(%r14), %rdi
callq 0x3440c
movl (%rax), %ecx
cmpq $0x4, %rcx
ja 0x352d9
leaq 0x70bed(%rip), %rdx     # 0xa5e48
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq 0x28(%rax), %rsi
xorl %edi, %edi
callq 0x3a404
movq %rax, %r15
movq 0x10(%r14), %rsi
movq %rax, %rdi
callq 0x4260
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r15, %rdi
callq 0x39194
movsd 0x8(%rsp), %xmm1
jmp 0x352d9
movsd 0x28(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x10(%r14), %rdi
callq 0x4130
movsd 0x8(%rsp), %xmm1
jmp 0x352d5
cvtsi2sdl 0x28(%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x10(%r14), %rdi
callq 0x4200
movsd 0x8(%rsp), %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
subsd %xmm0, %xmm1
cmpl $0x7, %ebx
ja 0x352fb
movl %ebx, %eax
leaq 0x70b75(%rip), %rcx     # 0xa5e5c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
xorpd %xmm0, %xmm0
cmpeqsd %xmm0, %xmm1
jmp 0x35308
xorl %eax, %eax
jmp 0x3533e
xorpd %xmm0, %xmm0
cmpneqsd %xmm0, %xmm1
movq %xmm1, %rax
andl $0x1, %eax
jmp 0x3533e
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jmp 0x3532e
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jmp 0x3533b
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
seta %al
jmp 0x3533e
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_O1/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
testl %eax, %eax
jle 0x3537e
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %ecx, %ecx
movzbl (%rbx,%rcx), %edx
cmpl $0x5f, %edx
je 0x35371
cmpl $0x23, %edx
jne 0x35376
movb $0x5f, %dl
jmp 0x35373
movb $0x20, %dl
movb %dl, (%rbx,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0x3535f
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x354ad
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r12
leaq 0x712e5(%rip), %rsi     # 0xa66a1
movl $0x20, %edi
movl $0x5, %edx
callq 0x390f5
movq %rax, %r15
movq %r12, %rdi
callq 0x398e1
testl %eax, %eax
je 0x354ae
movq %r12, %rdi
callq 0x3992c
testl %eax, %eax
je 0x35426
leaq 0x70da6(%rip), %rsi     # 0xa6197
movq %r12, %rdi
callq 0x4260
testl %eax, %eax
je 0x35426
leaq 0x70bae(%rip), %rsi     # 0xa5fb2
movq %r12, %rdi
callq 0x4260
testl %eax, %eax
je 0x35426
movl $0x0, 0x8(%r15)
movq %r12, %rdi
callq 0x4200
movl %eax, 0x10(%r15)
jmp 0x35486
movq %r12, %rdi
callq 0x398e1
testl %eax, %eax
je 0x35470
leaq 0x70d5e(%rip), %rsi     # 0xa6197
movq %r12, %rdi
callq 0x4260
testl %eax, %eax
je 0x35470
leaq 0x70b66(%rip), %rsi     # 0xa5fb2
movq %r12, %rdi
callq 0x4260
testl %eax, %eax
je 0x35470
movl $0x1, 0x8(%r15)
movq %r12, %rdi
callq 0x4130
movsd %xmm0, 0x10(%r15)
jmp 0x35486
movl $0xffffffff, 0x8(%r15)  # imm = 0xFFFFFFFF
movq (%r15), %rdi
movq %r12, %rsi
callq 0x3a404
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
movq %r12, %rdi
callq 0x3440c
testq %rax, %rax
je 0x353de
movl (%rax), %ecx
cmpl $0x3, %ecx
je 0x353de
movl %ecx, 0x8(%r15)
movq 0x28(%rax), %rax
movq %rax, 0x10(%r15)
jmp 0x35486
// File: /workspace/github_c_makefile_star2_O1/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 0x35562
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x70988(%rip), %r13     # 0xa5e7c
leaq 0x788b8(%rip), %r14     # 0xaddb3
leaq 0x777ab(%rip), %r15     # 0xaccad
leaq 0x78bd0(%rip), %r12     # 0xae0d9
movl 0x8(%rbx), %eax
incl %eax
cmpl $0x5, %eax
ja 0x35550
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
movq 0x10(%rbx), %rsi
jmp 0x35537
movsd 0x10(%rbx), %xmm0
movq %r12, %rdi
movb $0x1, %al
callq 0x4030
jmp 0x35550
movq (%rbx), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x4030
jmp 0x35550
movl 0x10(%rbx), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x4030
movq 0x18(%rbx), %rbx
testq %rbx, %rbx
jne 0x35509
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
movl $0xa, %edi
jmp 0x40d0
// File: /workspace/github_c_makefile_star2_O1/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 0x71128(%rip), %rsi     # 0xa66ad
movl $0x20, %edi
movl $0x3, %edx
callq 0x390f5
movq %rax, %rbx
movl 0x8(%r15), %eax
movsd 0x6cf7d(%rip), %xmm1    # 0xa2520
cmpl $0x1, %eax
je 0x355bb
movapd %xmm1, %xmm2
testl %eax, %eax
jne 0x355c1
xorps %xmm2, %xmm2
cvtsi2sdl 0x10(%r15), %xmm2
jmp 0x355c1
movsd 0x10(%r15), %xmm2
movl 0x8(%r14), %ecx
cmpl $0x1, %ecx
je 0x355d9
testl %ecx, %ecx
jne 0x355df
xorps %xmm1, %xmm1
cvtsi2sdl 0x10(%r14), %xmm1
jmp 0x355df
movsd 0x10(%r14), %xmm1
xorl %edx, %edx
orl %eax, %ecx
setne %dl
movl %edx, 0x8(%rbx)
cmpl $0x6, %ebp
ja 0x35621
movl %ebp, %eax
leaq 0x7089d(%rip), %rcx     # 0xa5e94
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
addsd %xmm1, %xmm2
jmp 0x35674
movapd %xmm2, %xmm0
callq 0x42f0
movapd %xmm0, %xmm2
jmp 0x35674
mulsd %xmm1, %xmm2
jmp 0x35674
divsd %xmm1, %xmm2
jmp 0x35653
jmp 0x35674
subsd %xmm1, %xmm2
jmp 0x35674
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 0x35674
movapd %xmm2, %xmm0
divsd %xmm1, %xmm0
cvttpd2dq %xmm0, %xmm0
cvtdq2pd %xmm0, %xmm0
mulsd %xmm1, %xmm0
subsd %xmm0, %xmm2
cmpl $0x0, 0x8(%rbx)
je 0x35681
movsd %xmm2, 0x10(%rbx)
jmp 0x35688
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_O1/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 0x356b5
movl %esi, %ecx
xorl $0x1, %ecx
orl %edi, %ecx
je 0x356b5
xorl $0x2, %edi
xorl $0x3, %esi
xorl %eax, %eax
orl %edi, %esi
sete %al
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x709d7(%rip), %rsi     # 0xa671e
movl $0x8, %edi
movl $0x5, %edx
callq 0x390f5
movq %rax, %r15
movabsq $-0x3e20000000400000, %rax # imm = 0xC1DFFFFFFFC00000
movq %rax, (%r15)
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x9d053
movq %rax, %r14
leaq 0x9caf1(%rip), %rax     # 0xd2870
movq (%rax), %rax
movslq %ebp, %r13
imulq $0x340, %r13, %rbp      # imm = 0x340
cmpl $0x0, 0x30f08(%rax,%rbp)
movq (%r14), %rax
je 0x35da1
movsd (%rax,%r13,8), %xmm0
jmp 0x35da7
cvtsi2sdl (%rax,%r13,8), %xmm0
cmpl $0x2, 0xc(%rsp)
movq %r14, 0x10(%rsp)
jl 0x35e50
addq $0x30, %r14
movl $0x1, %r12d
leaq 0x9caa8(%rip), %rax     # 0xd2870
movq (%rax), %rax
cmpl $0x0, 0x30f08(%rax,%rbp)
movq (%r14), %rax
je 0x35de0
movsd (%rax,%r13,8), %xmm1
jmp 0x35de9
xorps %xmm1, %xmm1
cvtsi2sdl (%rax,%r13,8), %xmm1
ucomisd %xmm0, %xmm1
jne 0x35df1
jnp 0x35e3b
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 0x390c8
movq %rax, %r15
movsd 0x18(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
addsd %xmm0, %xmm1
mulsd 0x6cee7(%rip), %xmm1    # 0xa2d18
movslq (%rbx), %rax
movsd %xmm1, -0x8(%r15,%rax,8)
incq %r12
movslq 0xc(%rsp), %rax
addq $0x30, %r14
cmpq %rax, %r12
jl 0x35dc1
movslq (%rbx), %rax
leaq 0x1(%rax), %rdx
movl %edx, (%rbx)
leaq 0x8(,%rax,8), %rsi
movq %r15, %rdi
callq 0x390c8
movq %rax, %r15
movslq (%rbx), %rax
movabsq $0x41dfffffffc00000, %rcx # imm = 0x41DFFFFFFFC00000
movq %rcx, -0x8(%r15,%rax,8)
movq 0x10(%rsp), %rdi
callq 0x39194
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_O1/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 0x9c9c4(%rip), %r13     # 0xd2870
movq (%r13), %rax
movl $0x1, %ebx
cmpl $0x0, 0x1bc(%rax)
jle 0x35ef7
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
xorl %ebp, %ebp
cmpl $0x0, (%r15,%rbp,4)
je 0x35ee0
movq (%r12,%rbp,8), %rsi
movq %r14, %rdi
callq 0x795f2
testl %eax, %eax
je 0x35ef5
incq %rbp
movq (%r13), %rax
movslq 0x1bc(%rax), %rax
cmpq %rax, %rbp
jl 0x35ec9
jmp 0x35ef7
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_O1/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 0x9c946(%rip), %rax     # 0xd2870
movq (%rax), %rax
movslq 0x1bc(%rax), %rax
testq %rax, %rax
jle 0x35f4f
xorl %ecx, %ecx
xorl %ebp, %ebp
cmpl $0x1, (%r15,%rcx,4)
sbbl $-0x1, %ebp
incq %rcx
cmpq %rcx, %rax
jne 0x35f3d
jmp 0x35f51
xorl %ebp, %ebp
movsd 0x6c5bf(%rip), %xmm0    # 0xa2518
movsd %xmm0, 0x10(%rsp)
testl %ebp, %ebp
je 0x35fc1
testq %r14, %r14
je 0x35f9f
xorl %r13d, %r13d
xorl %ebx, %ebx
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x35e9a
testl %eax, %eax
je 0x35f94
movq %r14, %rdi
callq 0x2eaca
cmpl 0xc(%rsp), %eax
jne 0x35f92
incl %r13d
jmp 0x35f94
incl %ebx
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x35f6d
jmp 0x35fa4
xorl %ebx, %ebx
xorl %r13d, %r13d
testl %r13d, %r13d
je 0x35fc1
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_O1/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 0x3600c
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 0x35ffe
movl %edx, %eax
jmp 0x36000
movl %edx, %ecx
leal (%rcx,%rax), %esi
movl %ecx, %edx
subl %eax, %edx
cmpl $0x1, %edx
jg 0x35fe3
retq
// File: /workspace/github_c_makefile_star2_O1/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 $0x68, %rsp
movl %edx, 0x4c(%rsp)
movq %rsi, %r14
movq %rdi, 0x60(%rsp)
leaq 0xa0(%rsp), %rax
movslq 0x10(%rax), %r13
movl $0x0, 0x48(%rsp)
movl $0x0, %edi
testq %r13, %r13
jle 0x369ed
xorl %ecx, %ecx
movq %rax, %rdx
xorl %edi, %edi
movq 0x60(%rsp), %rsi
movq (%rdx), %rdx
movl $0x0, 0x8(%rdx)
cmpl $0x0, (%rsi,%rcx,4)
je 0x369e1
addl 0x28(%rdx), %edi
addq $0x30, %rdx
incq %rcx
cmpq %rcx, %r13
jne 0x369ce
movl %edi, 0x54(%rsp)
testq %r14, %r14
je 0x36ac9
movq (%rax), %rax
movq %rax, 0x58(%rsp)
testl %r13d, %r13d
setg 0x47(%rsp)
movl %r13d, %ebp
negq %rbp
movl $0x0, 0x48(%rsp)
movq %r14, %rdi
callq 0x2eaca
movl %eax, 0x50(%rsp)
movq 0x58(%rsp), %rbx
movb 0x47(%rsp), %r12b
testl %r13d, %r13d
jle 0x36a99
movl $0x1, %r15d
movb 0x47(%rsp), %r12b
movq 0x58(%rsp), %rbx
movq 0x60(%rsp), %rax
cmpl $0x0, -0x4(%rax,%r15,4)
je 0x36a7e
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 0x7a0fc
testl %eax, %eax
jne 0x36aa5
movq 0x30(%rbx), %rbx
cmpq %r13, %r15
setl %r12b
leaq (%r15,%rbp), %rax
incq %rax
incq %r15
cmpq $0x1, %rax
jne 0x36a43
movl 0x50(%rsp), %eax
cmpl 0x4c(%rsp), %eax
je 0x36aaf
jmp 0x36abc
movl 0x50(%rsp), %eax
cmpl 0x4c(%rsp), %eax
je 0x36abc
testb $0x1, %r12b
je 0x36ab8
incl 0x8(%rbx)
incl 0x48(%rsp)
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x36a18
movl 0x48(%rsp), %eax
addl 0x54(%rsp), %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x9b8e1(%rip), %rbx     # 0xd2870
movq (%rbx), %rax
movslq 0x10(%rax), %rax
shlq $0x3, %rax
leaq (%rax,%rax,4), %rdi
leaq 0x6f7eb(%rip), %rsi     # 0xa6790
movl $0x3, %edx
callq 0x390f5
movq %rax, (%rsp)
movq (%rbx), %rax
cmpl $0x0, 0x10(%rax)
jle 0x37008
xorl %r13d, %r13d
leaq 0x10(%rsp), %rbp
movq (%rsp), %r14
movq (%r15), %rsi
movq %rbp, %rdi
movq %r12, %rdx
movl %r13d, %ecx
callq 0x36d29
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 0x36fc8
movq 0x8(%rsp), %r12
movq %r12, %rdi
movq (%rsp), %r13
movq %r13, %rsi
movq %r15, %rdx
callq 0x36db8
movq (%rbx), %rax
cmpl $0x0, 0x10(%rax)
jle 0x3704d
movq %r13, %r14
addq $0x18, %r14
xorl %r15d, %r15d
movq (%r14), %rdi
callq 0x39194
incq %r15
movq (%rbx), %rax
movslq 0x10(%rax), %rax
addq $0x28, %r14
cmpq %rax, %r15
jl 0x37032
movq %r13, %rdi
callq 0x39194
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_O1/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 0x6f6b6(%rip), %r8      # 0xa67c2
movl $0x8, %edi
movl $0x8, %esi
movl %ebp, %edx
movl %r15d, %ecx
movl $0x3, %r9d
callq 0x393b5
movq %rax, %r14
testl %ebp, %ebp
jle 0x37152
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 0x3713a
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_O1/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 0x3719b
movl $0x1, %eax
ucomisd %xmm0, %xmm1
ja 0x371a6
xorl %eax, %eax
ucomisd %xmm1, %xmm0
seta %al
negl %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
ucomisd %xmm0, %xmm1
jbe 0x371a7
retq
xorl %eax, %eax
ucomisd %xmm1, %xmm0
seta %al
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x6f602(%rip), %rsi     # 0xa67d1
movq %rbx, %rdi
movl $0x2, %edx
callq 0x390f5
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 0x39194
// File: /workspace/github_c_makefile_star2_O1/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
movl %eax, %r12d
shrl $0x1f, %r12d
addl %eax, %r12d
sarl %r12d
movl %r12d, %esi
movl %r8d, %edx
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x37164
testl %eax, %eax
jns 0x37277
movq %r14, %rdi
movl %r15d, %esi
movl %r12d, %edx
movl 0x4(%rsp), %ecx
callq 0x371b1
movq %r14, %rdi
movl %ebx, %esi
movl %r12d, %edx
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x37164
testl %eax, %eax
jns 0x3729e
movq %r14, %rdi
movl %ebx, %esi
movl %r12d, %edx
movl 0x4(%rsp), %ecx
callq 0x371b1
movq %r14, %rdi
movl %r12d, %esi
movl %r15d, %edx
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x37164
testl %eax, %eax
jns 0x372c7
movq %r14, %rdi
movl %r12d, %esi
movl %r15d, %edx
movl 0x4(%rsp), %ecx
callq 0x371b1
movq %r14, %rdi
movl %r12d, %esi
movl %ebx, %edx
movl 0x4(%rsp), %ecx
callq 0x371b1
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_O1/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, %r14d
movl %ecx, %r12d
movl %edx, %r13d
movq %rdi, %r15
movl %esi, 0x4(%rsp)
callq 0x37223
cmpl %ebx, %r14d
jge 0x3734c
leal -0x1(%r14), %ebp
movq %r15, %rdi
movl %r14d, %esi
movl %ebx, %edx
movl %r13d, %ecx
movl %r12d, %r8d
callq 0x37164
testl %eax, %eax
jg 0x3733f
incl %ebp
movq %r15, %rdi
movl %ebp, %esi
movl %r14d, %edx
movl 0x4(%rsp), %ecx
callq 0x371b1
incl %r14d
cmpl %r14d, %ebx
jne 0x37315
incl %ebp
movl %ebp, %r14d
movq %r15, %rdi
movl %r14d, %esi
movl %ebx, %edx
movl 0x4(%rsp), %ecx
callq 0x371b1
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/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, %ebx
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, 0x4(%rsp)
movq %rdi, %r12
movl %r8d, (%rsp)
cmpl %ebx, %r8d
jge 0x3744d
movl (%rsp), %r13d
cmpl %r13d, %ebx
je 0x3744d
movl %r13d, %r15d
leal 0x1(%r15), %r13d
movq %r12, %rdi
movl %r15d, %esi
movl %r13d, %edx
movl %r14d, %ecx
movl %ebp, %r8d
callq 0x37164
testl %eax, %eax
jle 0x373e5
cmpl %r15d, %ebx
je 0x3744d
movq %r12, %rdi
movl 0x4(%rsp), %r13d
movl %r13d, %esi
movl %r14d, %edx
movl %ebp, %ecx
movl (%rsp), %r8d
movl %ebx, %r9d
callq 0x372e9
movl %eax, %r15d
leal -0x1(%r15), %r9d
movq %r12, %rdi
movl %r13d, %esi
movl %r14d, %edx
movl %ebp, %ecx
movl (%rsp), %r8d
callq 0x373be
incl %r15d
movl %r15d, %r8d
jmp 0x373d8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/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 0x374dc
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl %esi, %r12d
xorpd %xmm2, %xmm2
leaq 0x6f365(%rip), %r14     # 0xa67e3
leaq 0x6f37f(%rip), %r15     # 0xa6804
xorl %r13d, %r13d
movsd %xmm0, 0x8(%rsp)
ucomisd %xmm2, %xmm0
jne 0x37496
jnp 0x374a8
movsd (%rbx,%r13,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rbx,%r13,8)
jmp 0x374c7
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 0x3748e
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x374fe
movl %eax, %ecx
xorpd %xmm1, %xmm1
xorl %edx, %edx
addsd (%rdi,%rdx,8), %xmm1
ucomisd %xmm0, %xmm1
ja 0x37501
incq %rdx
cmpq %rdx, %rcx
jne 0x374eb
decl %eax
retq
movl %edx, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x3752d
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 0x37516
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x37585
movl %esi, %ecx
xorpd %xmm1, %xmm1
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %edx, %edx
movsd 0x6b85c(%rip), %xmm0    # 0xa2da8
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 0x37575
movapd %xmm1, %xmm2
cmovnel %edx, %eax
incq %rdx
movapd %xmm2, %xmm1
cmpq %rdx, %rcx
jne 0x3754c
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O1/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)
movl %esi, %r13d
testl %esi, %esi
jle 0x375be
xorl %eax, %eax
cmpl $0x0, (%r15,%rax,4)
jle 0x375b6
incl (%rbx)
incq %rax
cmpq %rax, %r13
jne 0x375ad
movslq (%rbx), %rdi
shlq $0x2, %rdi
leaq 0x6f245(%rip), %r12     # 0xa6811
movq %r12, %rsi
movl $0x6, %edx
callq 0x390f5
movq %rax, %r14
movslq (%rbx), %rdi
shlq $0x2, %rdi
movq %r12, %rsi
movl $0x7, %edx
callq 0x390f5
testl %ebp, %ebp
jle 0x37617
xorl %ecx, %ecx
xorl %edx, %edx
cmpl $0x0, (%r15,%rcx,4)
jle 0x3760f
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 0x375f8
cmpl $0x2, (%rbx)
jl 0x37662
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 0x3765a
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 0x37628
incl %ecx
incl %edx
cmpl (%rbx), %ecx
jl 0x37626
movq %rax, %rdi
callq 0x39194
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_O1/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
xorpd %xmm0, %xmm0
movl %esi, %eax
xorpd %xmm2, %xmm2
testl %esi, %esi
jle 0x376a1
xorl %ecx, %ecx
addsd (%rdi,%rcx,8), %xmm2
incq %rcx
cmpq %rcx, %rax
jne 0x37694
cvtsi2sd %esi, %xmm1
divsd %xmm1, %xmm2
testl %esi, %esi
jle 0x376cc
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
movsd (%rdi,%rcx,8), %xmm1
subsd %xmm2, %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rcx
cmpq %rcx, %rax
jne 0x376b3
decl %esi
xorps %xmm1, %xmm1
cvtsi2sd %esi, %xmm1
divsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x376e9
sqrtsd %xmm0, %xmm0
jmp 0x376fa
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_O1/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 0x37796
movl %esi, %ecx
movsd 0x6adca(%rip), %xmm1    # 0xa2518
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %edx, %edx
movsd 0x6b64b(%rip), %xmm0    # 0xa2da8
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 0x37786
movapd %xmm1, %xmm2
cmovnel %edx, %eax
incq %rdx
movapd %xmm2, %xmm1
cmpq %rdx, %rcx
jne 0x3775d
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq