LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/tests.c
// Function: index_in_multiple_sample
int index_in_multiple_sample(int index, int* pos, matrix observations[], int L)
{
 int i, sum = 0;
 for (i = 0; i < L; i++)
   if (index < sum + observations[i].row)
    {
     *pos = index - sum;
     return i;
    }
   else
     sum += observations[i].row;
 return -1;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jle 0x9994f
movl %ecx, %r8d
xorl %ecx, %ecx
xorl %r9d, %r9d
movl (%rdx), %r10d
addl %r9d, %r10d
cmpl %edi, %r10d
jg 0x99950
incq %rcx
addq $0x10, %rdx
movl %r10d, %r9d
cmpq %rcx, %r8
jne 0x99935
retq
subl %r9d, %edi
movl %edi, (%rsi)
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/tests.c
// Function: distance_matrix_for_multiple_multivariate_sample
matrix distance_matrix_for_multiple_multivariate_sample(matrix observations[], int L, int N)
{
 int i, j, p, treatmentno, pos;
 double *row1, *row2;
 matrix result;
 p = observations[0].col;
 result = matrix_alloc(N, N);
 for (i = 0; i < N; i++)
   result.values[i][i] = -1;
 for (i = 0; i < N; i++)
  {
   treatmentno = index_in_multiple_sample(i, &pos, observations, L);
   row1 = observations[treatmentno].values[pos];
   for (j = i + 1; j < N; j++)
    {
     treatmentno = index_in_multiple_sample(j, &pos, observations, L);
     row2 = observations[treatmentno].values[pos];
     result.values[i][j] = euclidian_distance(row1, row2, p);
     result.values[j][i] = result.values[i][j];
    }
  }
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %r13d
movl %esi, 0x4(%rsp)
movq %rdi, 0x8(%rsp)
movl 0x4(%rdi), %eax
movl %eax, 0x14(%rsp)
movl %edx, %edi
movl %edx, %esi
callq 0x3d79d
movq %rax, 0x18(%rsp)
movq %rdx, %r12
testl %r13d, %r13d
jle 0x99ac5
movl %r13d, %r8d
xorl %eax, %eax
movabsq $-0x4010000000000000, %rcx # imm = 0xBFF0000000000000
movq (%r12,%rax,8), %rdx
movq %rcx, (%rdx,%rax,8)
incq %rax
cmpq %rax, %r8
jne 0x999a2
testl %r13d, %r13d
jle 0x99ac5
movl 0x4(%rsp), %ebp
movl $0x1, %r14d
xorl %r15d, %r15d
movq %r8, 0x30(%rsp)
cmpl $0x0, 0x4(%rsp)
jle 0x999f9
xorl %eax, %eax
movq 0x8(%rsp), %rcx
xorl %edx, %edx
movslq (%rcx), %rdi
movslq %edx, %rsi
addq %rdi, %rsi
cmpq %rsi, %r15
jl 0x99a02
incq %rax
addq $0x10, %rcx
movl %esi, %edx
cmpq %rax, %rbp
jne 0x999dd
movq $-0x1, %rax
jmp 0x99a07
movl %r15d, %ebx
subl %edx, %ebx
leaq 0x1(%r15), %rcx
movq %rcx, 0x20(%rsp)
cmpq %r8, %rcx
movq %r14, 0x28(%rsp)
jae 0x99aaf
shlq $0x4, %rax
movq 0x8(%rsp), %rcx
movq 0x8(%rcx,%rax), %rax
movslq %ebx, %rcx
movq (%rax,%rcx,8), %r13
cmpl $0x0, 0x4(%rsp)
jle 0x99a5f
xorl %eax, %eax
movq 0x8(%rsp), %rcx
xorl %edx, %edx
movslq (%rcx), %rdi
movslq %edx, %rsi
addq %rdi, %rsi
cmpq %rsi, %r14
jl 0x99a68
incq %rax
addq $0x10, %rcx
movl %esi, %edx
cmpq %rax, %rbp
jne 0x99a43
movq $-0x1, %rax
jmp 0x99a6d
movl %r14d, %ebx
subl %edx, %ebx
shlq $0x4, %rax
movq 0x8(%rsp), %rcx
movq 0x8(%rcx,%rax), %rax
movslq %ebx, %rcx
movq (%rax,%rcx,8), %rsi
movq %r13, %rdi
movl 0x14(%rsp), %edx
callq 0x38507
movq (%r12,%r15,8), %rax
movsd %xmm0, (%rax,%r14,8)
movq (%r12,%r14,8), %rax
movsd %xmm0, (%rax,%r15,8)
incq %r14
movq 0x30(%rsp), %r8
cmpq %r8, %r14
jne 0x99a33
movq 0x28(%rsp), %r14
incq %r14
movq 0x20(%rsp), %r15
cmpq %r8, %r15
jne 0x999cd
movq 0x18(%rsp), %rax
movq %r12, %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/tests.c
// Function: save_mst_to_array_variables
void save_mst_to_array_variables(Graphptr mst, matrix observations[], int L)
{
 int i, j, k, fromindex, toindex, from, to;
 Point p1, p2;
 k = 1;
 for (i = 0; i < mst->nvertices; i++)
   for (j = 0; j < mst->degree[i]; j++)
     if (i < mst->edges[i][j].v)
      {
       fromindex = index_in_multiple_sample(i, &from, observations, L);
       toindex = index_in_multiple_sample(mst->edges[i][j].v, &to, observations, L);
       p1.x = observations[fromindex].values[from][0];
       p1.y = observations[fromindex].values[from][1];
       p2.x = observations[toindex].values[to][0];
       p2.y = observations[toindex].values[to][1];
       write_array_variables("aout", k, 1, "ffff", p1.x, p1.y, p2.x, p2.y); 
       k++;
      }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, 0xc(%rsp)
movl 0xf46280(%rdi), %eax
testl %eax, %eax
jle 0x99c63
movq %rsi, %rbp
movl 0xc(%rsp), %r12d
movl $0x1, %esi
xorl %r13d, %r13d
movabsq $0x100000000, %rbx      # imm = 0x100000000
movq %rdi, 0x18(%rsp)
movl 0xf42400(%rdi,%r13,4), %ecx
testl %ecx, %ecx
jle 0x99c54
imulq $0x3e80, %r13, %r8      # imm = 0x3E80
addq %rdi, %r8
xorl %r15d, %r15d
movq %r8, 0x20(%rsp)
movq %r15, %rax
shlq $0x4, %rax
movslq (%rax,%r8), %rdx
cmpq %rdx, %r13
jge 0x99c3f
movq $-0x1, %rax
cmpl $0x0, 0xc(%rsp)
jle 0x99b8a
xorl %ecx, %ecx
movq %rbp, %r10
xorl %edi, %edi
movslq (%r10), %r9
movslq %edi, %r8
addq %r9, %r8
cmpq %r8, %r13
jl 0x99b91
incq %rcx
addq $0x10, %r10
movl %r8d, %edi
cmpq %rcx, %r12
jne 0x99b66
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
jmp 0x99b9c
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
jmp 0x99bd2
movl %r13d, %r8d
subl %edi, %r8d
movl %r8d, 0x14(%rsp)
xorl %r11d, %r11d
movq %rbp, %rdi
movq %r12, %r8
xorl %r9d, %r9d
movl (%rdi), %r10d
addl %r9d, %r10d
cmpl %edx, %r10d
jg 0x99bc4
addq %rbx, %r11
addq $0x10, %rdi
movl %r10d, %r9d
decq %r8
jne 0x99ba8
jmp 0x99bd2
subl %r9d, %edx
sarq $0x20, %r11
movl %edx, 0x10(%rsp)
movq %r11, %rax
movslq %ecx, %rcx
shlq $0x4, %rcx
movq 0x8(%rbp,%rcx), %rcx
movslq 0x14(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movsd (%rcx), %xmm0
movsd 0x8(%rcx), %xmm1
shlq $0x4, %rax
movq 0x8(%rbp,%rax), %rax
movslq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd (%rax), %xmm2
movsd 0x8(%rax), %xmm3
leaq 0xbb9e(%rip), %rdi      # 0xa57b0
movl $0x1, %edx
leaq 0x1813e(%rip), %rcx     # 0xb1d5c
movb $0x4, %al
movl %esi, %r14d
callq 0x33644
movl %r14d, %esi
incl %esi
movq 0x18(%rsp), %rdi
movl 0xf42400(%rdi,%r13,4), %ecx
movq 0x20(%rsp), %r8
incq %r15
movslq %ecx, %rax
cmpq %rax, %r15
jl 0x99b3d
movl 0xf46280(%rdi), %eax
incq %r13
movslq %eax, %rcx
cmpq %rcx, %r13
jl 0x99b1b
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/tests.c
// Function: minimum_spanning_tree_from_observations
Graphptr minimum_spanning_tree_from_observations(matrix observations[], matrix distancematrix, int L, int N)
{
 Graphptr g, mst;
 g = graph_from_distancematrix(distancematrix);
 mst = minimum_spanning_tree_prim(g);
 if (get_parameter_o("displayresulton") == ON)
  {
   printf("MST\n");
   print_graph(mst);
  }
 if (mst->nedges != (2 * (N - 1)))
  {
   printf("Minimum spanning tree can not be found\n");
   return NULL;
  }
 free_graph(g); 
 return mst;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %r8d, %r14d
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x1bbb1
movq %rax, %r15
movq %rax, %rdi
callq 0x1b4de
movq %rax, %rbx
leaq 0xc6ec(%rip), %rdi      # 0xa6665
callq 0x54bec
cmpl $0x1, %eax
jne 0x99f97
leaq 0x17f23(%rip), %rdi     # 0xb1ead
callq 0x4090
movq %rbx, %rdi
callq 0x1b392
leal -0x2(,%r14,2), %eax
cmpl %eax, 0xf46284(%rbx)
jne 0x99fb1
movq %r15, %rdi
callq 0x1bbac
jmp 0x99fbf
leaq 0x17ef9(%rip), %rdi     # 0xb1eb1
callq 0x4090
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/tests.c
// Function: height_directed_preorder_traversal
void height_directed_preorder_traversal(Graphptr mst, int* visit_count, int current, matrix distancematrix)
{
 int i, to, minheight, selected;
 double mindistance;
 mst->visitorder[current] = *visit_count;
 while (1)
  {
   selected = -1;
   minheight = +INT_MAX;
   mindistance = +LONG_MAX;
   for (i = 0; i < mst->degree[current]; i++)
    {
     to = mst->edges[current][i].v;
     if (mst->visitorder[to] == 0)
       if (mst->height[to] < minheight || (mst->height[to] == minheight && distancematrix.values[current][to] < mindistance))
        {
         selected = to;
         minheight = mst->height[to];
         mindistance = distancematrix.values[current][to];
        }
    }
   if (selected != -1)
    {
     (*visit_count)++;
     height_directed_preorder_traversal(mst, visit_count, selected, distancematrix);
    }
   else 
     break;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl (%rsi), %eax
movslq %edx, %r13
movl %eax, 0xf433a0(%rdi,%r13,4)
movl 0xf42400(%rdi,%r13,4), %eax
testl %eax, %eax
jle 0x9a098
movq %r8, %rbx
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %r12
imulq $0x3e80, %r13, %rbp     # imm = 0x3E80
addq %rdi, %rbp
movl %eax, %eax
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rbp, %rcx
movsd 0xc313(%rip), %xmm0     # 0xa6330
movl (%rcx), %edi
movslq %edi, %r9
cmpl $0x0, 0xf433a0(%r12,%r9,4)
jne 0x9a066
movl 0xf44340(%r12,%r9,4), %r8d
cmpl %esi, %r8d
jge 0x9a04b
movq (%rbx,%r13,8), %rdx
movsd (%rdx,%r9,8), %xmm0
movl %r8d, %esi
movl %edi, %edx
jmp 0x9a066
jne 0x9a066
movq (%rbx,%r13,8), %r10
movsd (%r10,%r9,8), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x9a066
movl %r8d, %esi
movl %edi, %edx
movapd %xmm1, %xmm0
addq $0x10, %rcx
decq %rax
jne 0x9a01d
cmpl $-0x1, %edx
je 0x9a098
incl (%r15)
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rcx
movq %rbx, %r8
callq 0x99fc8
movl 0xf42400(%r12,%r13,4), %eax
testl %eax, %eax
jg 0x9a006
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/tests.c
// Function: ranks_from_minimum_spanning_tree
void ranks_from_minimum_spanning_tree(Graphptr mst, matrix distancematrix)
{
 double *path_lengths;
 int j, maxecc, ecc, i, visitorder, root, N;
 maxecc = 0;
 N = mst->nvertices;
 for (i = 0; i < N; i++)
  {
   ecc = eccentricity(mst, i);
   if (ecc > maxecc)
    {
     root = i;
     maxecc = ecc;
    }
  }
 path_lengths = shortest_path(mst, root);
 for (i = 0; i < N; i++)
  {
   if (mst->height[i] < path_lengths[i])
     mst->height[i] = path_lengths[i];
   j = mst->parents[i];
   while (j != -1)
    {
     if (mst->height[j] < path_lengths[i])
       mst->height[j] = path_lengths[i];
     j = mst->parents[j];
    }
  }
 safe_free(path_lengths);
 visitorder = 1;
 height_directed_preorder_traversal(mst, &visitorder, root, distancematrix);
 if (get_parameter_o("displayresulton") == ON)
  {
   printf("Visit Order\n");
   for (i = 0; i < N; i++)
     printf("%d: %d\n", i, mst->visitorder[i]);
  } 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x8(%rsp)
movq %rsi, %r15
movq %rdi, %rbx
movl 0xf46280(%rdi), %r13d
xorl %r12d, %r12d
xorl %r14d, %r14d
movq %rbx, %rdi
movl %r12d, %esi
callq 0x1b907
cmpl %r14d, %eax
cmovgl %eax, %r14d
cmovgl %r12d, %ebp
incl %r12d
cmpl %r12d, %r13d
jne 0x9a0cd
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1b71e
xorl %ecx, %ecx
xorps %xmm1, %xmm1
cvtsi2sdl 0xf44340(%rbx,%rcx,4), %xmm1
movsd (%rax,%rcx,8), %xmm0
ucomisd %xmm1, %xmm0
cvttsd2si %xmm0, %edx
jbe 0x9a119
movl %edx, 0xf44340(%rbx,%rcx,4)
movl 0xf452e0(%rbx,%rcx,4), %esi
cmpl $-0x1, %esi
je 0x9a14a
movslq %esi, %rsi
xorps %xmm1, %xmm1
cvtsi2sdl 0xf44340(%rbx,%rsi,4), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x9a141
movl %edx, 0xf44340(%rbx,%rsi,4)
movl 0xf452e0(%rbx,%rsi,4), %esi
jmp 0x9a120
incq %rcx
cmpq %r13, %rcx
jne 0x9a0f7
movq %rax, %rdi
callq 0x3a180
leaq 0x14(%rsp), %rsi
movl $0x1, (%rsi)
movq %rbx, %rdi
movl %ebp, %edx
movq %r15, %rcx
movq 0x8(%rsp), %r8
callq 0x99fc8
leaq 0xc4e7(%rip), %rdi      # 0xa6665
callq 0x54bec
cmpl $0x1, %eax
jne 0x9a1bb
leaq 0x17d49(%rip), %rdi     # 0xb1ed8
callq 0x4090
leaq 0x15c98(%rip), %r14     # 0xafe33
xorl %r15d, %r15d
movl 0xf433a0(%rbx,%r15,4), %edx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x4030
incq %r15
cmpq %r15, %r13
jne 0x9a19e
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/tests.c
// Function: kruskalwallis
double kruskalwallis(char **files)
{
 /*!Last Changed 13.01.2009 added find_observations_for_multiple_file, qsort, assign_ranks_to_observations*/
 /*!Last Changed 02.02.2004 added safemalloc*/
 /*!Last Changed 30.01.2002*/
 int treatments, df;
 int *counts = NULL, i, k = 0, n;
 Obs *obs;
 double *T, S, sumd, res;
 obs = read_observations_for_multiple_file(files, &counts, &k, &treatments);
 T = (double *)safecalloc(treatments, sizeof(double), "kruskalwallis", 27);
 qsort(obs, k, sizeof(Obs), sort_function_observation_ascending);
 assign_ranks_to_observations(obs, k);
 for (i = 0; i < k; i++)
   T[obs[i].observation_no] += obs[i].rij;
 sumd = 0;
 for (i = 0; i < treatments; i++)
   sumd += T[i] * T[i] / counts[i];
	safe_free(counts);
 safe_free(T);
 n = counts[0];
 S = sumd * ((12 + 0.0) / (treatments * n * (treatments * n + 1))) - 3 * (treatments * n + 1);
 safe_free(obs);
 df = treatments - 1;
 res = chi_square(df, S);
 return 1 - res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x8(%rsp), %rsi
movq $0x0, (%rsi)
leaq 0x10(%rsp), %r12
movl $0x0, (%r12)
leaq 0x14(%rsp), %rbx
movq %r12, %rdx
movq %rbx, %rcx
callq 0x983d1
movq %rax, %r14
movslq (%rbx), %rbx
leaq 0x16ec5(%rip), %rdx     # 0xb1d85
movl $0x8, %esi
movq %rbx, %rdi
movl $0x1b, %ecx
callq 0x3a1fc
movq %rax, %r15
movslq (%r12), %r12
leaq -0x608af(%rip), %rcx    # 0x3a631
movl $0x20, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x4240
movq %r14, %rdi
movl %r12d, %esi
callq 0x97e0c
testq %r12, %r12
jle 0x9af26
shlq $0x5, %r12
xorl %eax, %eax
movsd 0x10(%r14,%rax), %xmm0
movslq (%r14,%rax), %rcx
addsd (%r15,%rcx,8), %xmm0
movsd %xmm0, (%r15,%rcx,8)
addq $0x20, %rax
cmpq %rax, %r12
jne 0x9af06
movq 0x8(%rsp), %r12
xorpd %xmm2, %xmm2
testl %ebx, %ebx
jle 0x9af58
xorl %eax, %eax
movsd (%r15,%rax,8), %xmm0
mulsd %xmm0, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl (%r12,%rax,4), %xmm1
divsd %xmm1, %xmm0
addsd %xmm0, %xmm2
incq %rax
cmpq %rax, %rbx
jne 0x9af35
movsd %xmm2, (%rsp)
movq %r12, %rdi
callq 0x3a180
movq %r15, %rdi
callq 0x3a180
movl (%r12), %eax
imull %ebx, %eax
leal 0x1(%rax), %ecx
imull %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd 0xff17(%rip), %xmm1     # 0xaaea0
divsd %xmm0, %xmm1
mulsd (%rsp), %xmm1
leal (%rcx,%rcx,2), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
subsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movq %r14, %rdi
callq 0x3a180
decl %ebx
movl %ebx, %edi
movsd (%rsp), %xmm0
callq 0x1fc11
movsd 0xa55d(%rip), %xmm1     # 0xa5520
subsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/tests.c
// Function: read_observations_for_multiple_equal_size_file
Obsptr* read_observations_for_multiple_equal_size_file(char **files, int* size, int* count)
{
 int i, j;
 Obsptr *obs = NULL;
 FILE* myfile;
	*count = 0;
	*size = file_length(files[*count]);
	(*count)++;
 while (files[*count])
	 {
			if (file_length(files[*count]) != *size)
				 return NULL;
			(*count)++;
		}
	obs = safemalloc((*count) * sizeof(Obsptr), "find_observations_for_multiple_equal_file", 12);
 for (i = 0; i < *count; i++)
	 {
			if ((myfile = fopen(files[i], "r")) == NULL)
 			{
	 			printf(m1274, files[i]);
		 		return NULL;
		 	}
			obs[i] = safemalloc((*size) * sizeof(Obs), "find_observations_for_multiple_equal_file", 20);
			for (j = 0; j < *size; j++)
			 {
					fscanf(myfile, "%lf", &(obs[i][j].observation));
					obs[i][j].index = i;
				}	
			fclose(myfile);
	 }
 return obs;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %rbp
movl $0x0, (%rdx)
movq (%rdi), %rdi
callq 0x38a4a
movl %eax, (%r12)
xorl %r14d, %r14d
movslq (%rbx), %rax
leaq 0x1(%rax), %rdi
movl %edi, (%rbx)
movq 0x8(%rbp,%rax,8), %rax
testq %rax, %rax
je 0x9b029
movq %rax, %rdi
callq 0x38a4a
cmpl (%r12), %eax
je 0x9b003
jmp 0x9b11d
shlq $0x3, %rdi
leaq 0x16d5f(%rip), %rsi     # 0xb1d93
movl $0xc, %edx
callq 0x3a0e1
movq %rax, %r14
cmpl $0x0, (%rbx)
jle 0x9b11d
xorl %r15d, %r15d
movq %rbx, 0x10(%rsp)
movq %rbp, 0x8(%rsp)
movq %r12, (%rsp)
movq (%rbp,%r15,8), %rdi
leaq 0x108f4(%rip), %rsi     # 0xab95b
callq 0x40f0
testq %rax, %rax
je 0x9b107
movq %rax, %r13
movslq (%r12), %rdi
shlq $0x5, %rdi
leaq 0x16d0c(%rip), %rsi     # 0xb1d93
movl $0x14, %edx
callq 0x3a0e1
movq %rax, (%r14,%r15,8)
cmpl $0x0, (%r12)
movq %r14, %r12
leaq 0xebdc(%rip), %r14      # 0xa9c80
jle 0x9b0dd
movl $0x18, %ebx
xorl %ebp, %ebp
leaq (%rax,%rbx), %rdx
addq $-0x10, %rdx
movq %r13, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x4070
movq (%r12,%r15,8), %rax
movl %r15d, (%rax,%rbx)
incq %rbp
movq (%rsp), %rcx
movslq (%rcx), %rcx
addq $0x20, %rbx
cmpq %rcx, %rbp
jl 0x9b0ad
movq %r13, %rdi
callq 0x42a0
incq %r15
movq 0x10(%rsp), %rbx
movslq (%rbx), %rax
cmpq %rax, %r15
movq 0x8(%rsp), %rbp
movq %r12, %r14
movq (%rsp), %r12
jl 0x9b05b
jmp 0x9b11d
movq (%rbp,%r15,8), %rsi
leaq 0xb0f7(%rip), %rdi      # 0xa620a
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x4030
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/tests.c
// Function: no_test
int no_test(char **files, int *which, double confidence, double *real_confidence)
{
 /*Last Changed 07.04.2006*/
 int j, counts[2], plus, minus;
 double **observations;
 observations = read_observations_for_two_file(files, counts);
 if (!observations)
  {
   return 0;
  }
 if (counts[0] != counts[1])
   return 0;
 plus = 0;
 minus = 0;
 for (j = 0; j < counts[0]; j++)
  {
   if (observations[0][j] > observations[1][j])
     plus++;
   if (observations[0][j] < observations[1][j])
     minus++;
  }
 free_2d((void**)observations, 2);
 if (plus > minus)
  {
   (*which) = 1;
   if (!get_parameter_o("accuracy")) 
     (*which) = 3 - (*which); 
   (*real_confidence) = 1;
   return 1;
  }
 else
  {
   (*which) = 2; 
   if (!get_parameter_o("accuracy")) 
     (*which) = 3 - (*which); 
   (*real_confidence) = 0;
   return 0;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rsp, %rsi
callq 0x98796
xorl %ecx, %ecx
testq %rax, %rax
je 0x9b95a
movl (%rsp), %edx
cmpl 0x4(%rsp), %edx
jne 0x9b95a
testl %edx, %edx
jle 0x9b921
movq (%rax), %rcx
movq 0x8(%rax), %rsi
xorl %edi, %edi
xorl %ebp, %ebp
xorl %r15d, %r15d
movsd (%rcx,%rdi,8), %xmm0
movsd (%rsi,%rdi,8), %xmm1
xorl %r8d, %r8d
ucomisd %xmm1, %xmm0
seta %r8b
addl %r8d, %r15d
xorl %r8d, %r8d
ucomisd %xmm0, %xmm1
seta %r8b
addl %r8d, %ebp
incq %rdi
cmpq %rdi, %rdx
jne 0x9b8bf
movq %rax, %rdi
movl $0x2, %esi
callq 0x3a14b
cmpl %ebp, %r15d
jbe 0x9b92e
movl $0x1, (%r14)
leaq 0x101fb(%rip), %rdi     # 0xabb08
callq 0x54bec
movl $0x1, %ecx
movsd 0x9c01(%rip), %xmm0     # 0xa5520
jmp 0x9b947
movq %rax, %rdi
movl $0x2, %esi
callq 0x3a14b
movl $0x2, (%r14)
leaq 0x101cc(%rip), %rdi     # 0xabb08
callq 0x54bec
xorl %ecx, %ecx
xorpd %xmm0, %xmm0
testl %eax, %eax
jne 0x9b956
movl $0x3, %eax
subl (%r14), %eax
movl %eax, (%r14)
movsd %xmm0, (%rbx)
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/tests.c
// Function: regressionftest
int regressionftest(char **files,int *which,double confidence,double *real_confidence)
{
 /*Last Changed 13.12.2004*/
 int counts[2], i, df1, df2;
 long int datacount;
 double **observations, sum1, sum2;
 observations = read_observations_for_two_file(files, counts);
 if (!observations)
  {
   *real_confidence = 0.5;
   return 0;
  }
 if (counts[0] != counts[1])
  {
   printf(m1315);
   free_2d((void**)observations, 2);
   return 0;
  }
 datacount = counts[0];
 sum1 = 0;
 sum2 = 0;
 for (i = 0; i < datacount; i++)
  {
   sum1 += observations[0][i];
   sum2 += observations[1][i];
  }
 if (sum1 > sum2)
   (*which) = 1;
 else
   (*which) = 2;
 if (!get_parameter_o("accuracy")) 
   (*which) = 3 - (*which);    
 free_2d((void**)observations, 2);
 if (sum2 == 0)
   return 0;
 df1 = datacount;
 df2 = datacount;
 *real_confidence = 1 - f_distribution((sum1 / sum2), df1, df2);
 if (get_parameter_i("tailed") == 2)
  {
   if ((sum1 / sum2) < f_distribution_inverse(1 - confidence, df1, df2))
     return 0;
   else
     return 1;
  }
 else
   printf(m1316);
 return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movsd %xmm0, 0x18(%rsp)
movq %rsi, %r12
leaq 0x8(%rsp), %rsi
callq 0x98796
testq %rax, %rax
je 0x9c5d9
movq %rax, %r15
movl 0x8(%rsp), %r14d
cmpl 0xc(%rsp), %r14d
jne 0x9c5e8
testl %r14d, %r14d
jle 0x9c608
movq (%r15), %rax
movq 0x8(%r15), %rcx
xorpd %xmm1, %xmm1
xorl %edx, %edx
xorpd %xmm0, %xmm0
addsd (%rax,%rdx,8), %xmm0
addsd (%rcx,%rdx,8), %xmm1
incq %rdx
cmpq %rdx, %r14
jne 0x9c5c5
jmp 0x9c610
movabsq $0x3fe0000000000000, %rax # imm = 0x3FE0000000000000
movq %rax, (%rbx)
jmp 0x9c601
leaq 0x15986(%rip), %rdi     # 0xb1f75
callq 0x4090
movq %r15, %rdi
movl $0x2, %esi
callq 0x3a14b
xorl %ebp, %ebp
jmp 0x9c6d4
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movsd %xmm1, 0x10(%rsp)
xorl %eax, %eax
movsd %xmm0, (%rsp)
ucomisd %xmm1, %xmm0
setbe %al
incl %eax
movl %eax, (%r12)
leaq 0xf4d7(%rip), %rdi      # 0xabb08
callq 0x54bec
testl %eax, %eax
jne 0x9c647
movl $0x3, %eax
subl (%r12), %eax
movl %eax, (%r12)
movq %r15, %rdi
movl $0x2, %esi
callq 0x3a14b
xorl %ebp, %ebp
xorpd %xmm0, %xmm0
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x9c668
jnp 0x9c6d4
movsd (%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, (%rsp)
movl %r14d, %edi
movl %r14d, %esi
callq 0x201ed
movsd 0x8e97(%rip), %xmm1     # 0xa5520
subsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
leaq 0x10023(%rip), %rdi     # 0xac6bb
callq 0x54920
cmpl $0x2, %eax
jne 0x9c6c8
movsd 0x8e76(%rip), %xmm0     # 0xa5520
subsd 0x18(%rsp), %xmm0
movl %r14d, %edi
movl %r14d, %esi
callq 0x204cb
xorl %ebp, %ebp
ucomisd (%rsp), %xmm0
setbe %bpl
jmp 0x9c6d4
leaq 0x15879(%rip), %rdi     # 0xb1f48
callq 0x4090
movl %ebp, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/tests.c
// Function: vanderwaerdan
double vanderwaerdan(char **files)
{
 /*!Last Changed 13.01.2009 added find_observations_for_multiple_file, qsort, assign_ranks_to_observations*/
 /*!Last Changed 02.02.2004 added safemalloc*/
 /*!Last Changed 14.02.2002*/
 int treatments, df;
 int *counts = NULL, i, k;
 Obs *obs = NULL;
 double *T, S = 0, sumd, res;
 obs = read_observations_for_multiple_file(files, &counts, &k, &treatments);
 T = (double *)safecalloc(treatments, sizeof(double), "vanderwaerdan", 27);
 qsort(obs, k, sizeof(Obs), sort_function_observation_ascending);
 assign_ranks_to_observations(obs, k);
 for (i = 0; i < k; i++)
  {
   obs[i].rij /= k+1;
   obs[i].rij = z_inverse(obs[i].rij);
   S += obs[i].rij * obs[i].rij;
   T[obs[i].observation_no] += obs[i].rij;
  }
 S /= k - 1;
 sumd = 0;
 for (i = 0; i < treatments; i++)
  {
   T[i] /= counts[i];
   sumd += counts[i] * T[i] * T[i];
  }
	safe_free(counts);
 sumd /= S;
 safe_free(obs);
 safe_free(T);
 df = treatments - 1;
 res = chi_square(df, sumd);
 return 1 - res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
leaq 0x18(%rsp), %rsi
movq $0x0, (%rsi)
leaq 0x20(%rsp), %r12
leaq 0x24(%rsp), %rbx
movq %r12, %rdx
movq %rbx, %rcx
callq 0x983d1
movq %rax, %r14
movslq (%rbx), %rbx
leaq 0x146b7(%rip), %rdx     # 0xb1df9
movl $0x8, %esi
movq %rbx, %rdi
movl $0x1b, %ecx
callq 0x3a1fc
movq %rax, %r15
movslq (%r12), %r12
leaq -0x63131(%rip), %rcx    # 0x3a631
movl $0x20, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x4240
movq %r14, %rdi
movl %r12d, %esi
callq 0x97e0c
xorpd %xmm3, %xmm3
testq %r12, %r12
jle 0x9d7ef
leal 0x1(%r12), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x10(%rsp)
movq %r12, %r13
shlq $0x5, %r13
xorl %ebp, %ebp
movsd %xmm3, 0x8(%rsp)
movsd 0x10(%r14,%rbp), %xmm0
divsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x10(%r14,%rbp)
callq 0x20d4a
movsd 0x8(%rsp), %xmm3
movsd %xmm0, 0x10(%r14,%rbp)
movapd %xmm0, %xmm1
mulsd %xmm0, %xmm1
movslq (%r14,%rbp), %rax
addsd (%r15,%rax,8), %xmm0
addsd %xmm1, %xmm3
movsd %xmm0, (%r15,%rax,8)
addq $0x20, %rbp
cmpq %rbp, %r13
jne 0x9d79e
movq 0x18(%rsp), %rdi
testl %ebx, %ebx
xorpd %xmm2, %xmm2
jle 0x9d82a
xorl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2sdl (%rdi,%rax,4), %xmm0
movsd (%r15,%rax,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%r15,%rax,8)
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
addsd %xmm0, %xmm2
incq %rax
cmpq %rax, %rbx
jne 0x9d7fe
decl %r12d
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
divsd %xmm0, %xmm3
divsd %xmm3, %xmm2
movsd %xmm2, 0x8(%rsp)
callq 0x3a180
movq %r14, %rdi
callq 0x3a180
movq %r15, %rdi
callq 0x3a180
decl %ebx
movl %ebx, %edi
movsd 0x8(%rsp), %xmm0
callq 0x1fc11
movsd 0x7cb1(%rip), %xmm1     # 0xa5520
subsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: possible_condition_count
int possible_condition_count(Instanceptr instances)
{
 /*!Last Changed 18.05.2003*/
 int i, j, result = 0, size;
 Instanceptr instancelist;
 double valuebefore, value;
 for (i = 0; i < current_dataset->featurecount; i++)
   switch (current_dataset->features[i].type)
    {
     case INTEGER:
     case    REAL:instancelist = sort_instances(instances, i, &size);
                  j = 0;
                  valuebefore = INT_MAX;
                  while (j < size)
                   {
                    if (current_dataset->features[i].type == INTEGER)
                      value = instancelist[j].values[i].intvalue;  
                    else
                      value = instancelist[j].values[i].floatvalue;
                    if (value != valuebefore)
                     {
                      result += 2;
                      valuebefore = value;
                     }
                    j++;
                   }
                  safe_free(instancelist);
                  break;
     case  STRING:result += current_dataset->features[i].valuecount;
                  break;
    }
 return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x3769a(%rip), %r13     # 0xd5870
movq (%r13), %rax
cmpl $0x0, 0x1bc(%rax)
jle 0x9e2be
movq %rdi, %rbx
xorl %r14d, %r14d
leaq 0x4(%rsp), %r12
xorl %r15d, %r15d
imulq $0x340, %r14, %rbp      # imm = 0x340
movl 0x30f08(%rax,%rbp), %ecx
cmpl $0x2, %ecx
je 0x9e219
cmpl $0x1, %ecx
je 0x9e29a
testl %ecx, %ecx
jne 0x9e2a9
movq %rbx, %rdi
movl %r14d, %esi
movq %r12, %rdx
callq 0xa0055
movslq 0x4(%rsp), %rdx
testq %rdx, %rdx
jle 0x9e28c
movq (%r13), %rcx
movl 0x30f08(%rcx,%rbp), %ecx
shlq $0x4, %rdx
leaq (%rdx,%rdx,2), %rdx
xorl %esi, %esi
movsd 0x72ca(%rip), %xmm0     # 0xa5518
movq (%rax,%rsi), %rdi
testl %ecx, %ecx
je 0x9e25e
movsd (%rdi,%r14,8), %xmm1
jmp 0x9e267
xorps %xmm1, %xmm1
cvtsi2sdl (%rdi,%r14,8), %xmm1
leal 0x2(%r15), %edi
ucomisd %xmm0, %xmm1
cmovnel %edi, %r15d
cmovpl %edi, %r15d
jne 0x9e27f
jp 0x9e27f
movapd %xmm0, %xmm1
addq $0x30, %rsi
movapd %xmm1, %xmm0
cmpq %rsi, %rdx
jne 0x9e24e
movq %rax, %rdi
callq 0x3a180
movq (%r13), %rax
jmp 0x9e2a9
leaq (%rax,%rbp), %rcx
addq $0x30f08, %rcx          # imm = 0x30F08
addl 0x18(%rcx), %r15d
incq %r14
movslq 0x1bc(%rax), %rcx
cmpq %rcx, %r14
jl 0x9e1f5
jmp 0x9e2c1
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: prunerule_in_optimize_phase
void prunerule_in_optimize_phase(Decisionruleptr rule, Instanceptr pruneset, int positive)
{
 /*!Last Changed 02.12.2004 added free_condition and safe_free*/
 /* Last Changed 21.05.2003*/
 int improved = 1;
 double performance, bestperformance = rule_value(rule, positive, pruneset);
 Decisionconditionptr best, bestbefore, tmpcondition, tmpbefore;
 while (improved)
  {
   improved = 0;
   tmpbefore = NULL;
   tmpcondition = rule->start;
   while (tmpcondition)
    {
     remove_condition_after(rule, tmpbefore, tmpcondition);
     performance = rule_value(rule, positive, pruneset);
     if (dless(performance, bestperformance) || dequal(performance, bestperformance))
      {
       bestperformance = performance;
       bestbefore = tmpbefore;
       best = tmpcondition;
       improved = 1;
      }
     add_condition_after(rule, tmpbefore, tmpcondition);
     tmpbefore = tmpcondition;
     tmpcondition = tmpcondition->next;
    }
   if (improved)
    {
     remove_condition_after(rule, bestbefore, best);
     free_condition(*best);
     safe_free(best);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %rax
movq %rdi, %r15
movl %edx, 0x84(%rsp)
movl %edx, %esi
movq %rax, 0x90(%rsp)
movq %rax, %rdx
callq 0x9e409
movsd %xmm0, 0x78(%rsp)
movq 0x18(%r15), %rax
testq %rax, %rax
je 0x9e3f7
xorl %r12d, %r12d
xorl %r14d, %r14d
movq %rax, %rbp
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x7c7c4
movq %r15, %rdi
movl 0x84(%rsp), %esi
movq 0x90(%rsp), %rdx
callq 0x9e409
movsd %xmm0, 0x88(%rsp)
movsd 0x78(%rsp), %xmm1
callq 0x39aee
testl %eax, %eax
jne 0x9e37a
movsd 0x88(%rsp), %xmm0
movsd 0x78(%rsp), %xmm1
callq 0x39ab2
movsd 0x78(%rsp), %xmm0
testl %eax, %eax
je 0x9e38f
movl $0x1, %r14d
movsd 0x88(%rsp), %xmm0
movq %rbp, %r13
movq %r12, %rbx
movsd %xmm0, 0x78(%rsp)
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x7c752
movq 0x48(%rbp), %rax
movq %rbp, %r12
testq %rax, %rax
jne 0x9e31c
testl %r14d, %r14d
je 0x9e3f7
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x7c7c4
movl $0xe, %ecx
movq %rsp, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7c1f4
movq %r13, %rdi
callq 0x3a180
movq 0x18(%r15), %rax
xorl %r12d, %r12d
movl $0x0, %r14d
testq %rax, %rax
jne 0x9e31c
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: rule_value
double rule_value(Decisionruleptr rule, int positive, Instanceptr instances)
{
 /*!Last Changed 01.12.2003*/
 int negative = 0, total = 0;
 Instanceptr tmp;
 tmp = instances;
 while (tmp)
  {
   if (rule_cover_instance(tmp, *rule))
    {
     if (give_classno(tmp) != positive)
       negative++;
    }
   else
     if (give_classno(tmp) == positive)
       negative++;     
   total++;
   tmp = tmp->next;
  }
 return negative/(total+0.0);
}

// Assembly:
testq %rdx, %rdx
je 0x9e4a6
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x30(%r14), %rax
movq %rax, 0x30(%rsp)
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x7b9ee
testl %eax, %eax
sete %r13b
movq %rbx, %rdi
callq 0x2f33a
cmpl %ebp, %eax
setne %al
xorb %r13b, %al
movzbl %al, %eax
addl %eax, %r12d
incl %r15d
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x9e42e
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %r15d, %xmm1
divsd %xmm1, %xmm0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsd 0x7862(%rip), %xmm0     # 0xa5d10
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: update_counts_rules
void update_counts_rules(Decisionruleptr start, Instanceptr list1, int* covered, int* uncovered, int* fp, int* fn)
{
 /*!Last Changed 04.11.2003*/
 Decisionruleptr tmprule;
 Instanceptr tmpinstance;
 int classno;
 tmpinstance = list1;
 while (tmpinstance)
  {
   tmprule = start;
   while (tmprule)
    {
     if (rule_cover_instance(tmpinstance, *tmprule))
      {
       (*covered)++;
       (*uncovered)--;
       classno = give_classno(tmpinstance);
       if (classno == tmprule->classno)
        {
         tmprule->covered++;
         (*fn)--;
        }
       else
        {
         (*fp)++;
         tmprule->falsepositives++;
        }
       break;
      }
     tmprule = tmprule->next;
    }
   tmpinstance = tmpinstance->next;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, 0x40(%rsp)
testq %rsi, %rsi
je 0x9e819
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
testq %rbx, %rbx
je 0x9e810
movq %rbx, %rbp
movq 0x30(%rbp), %rax
movq %rax, 0x30(%rsp)
movups (%rbp), %xmm0
movups 0x10(%rbp), %xmm1
movups 0x20(%rbp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r13, %rdi
callq 0x7b9ee
testl %eax, %eax
jne 0x9e7ea
movq 0x30(%rbp), %rbp
testq %rbp, %rbp
jne 0x9e7b0
jmp 0x9e810
incl (%r12)
decl (%r15)
movq %r13, %rdi
callq 0x2f33a
cmpl (%rbp), %eax
jne 0x9e80a
incl 0x4(%rbp)
movq 0x40(%rsp), %rax
decl (%rax)
jmp 0x9e810
incl (%r14)
incl 0x8(%rbp)
movq 0x10(%r13), %r13
testq %r13, %r13
jne 0x9e7a8
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: can_delete_rule
int can_delete_rule(Decisionruleptr rule, int* covered, int* uncovered, int* fp, int* fn, double proportion, int possibleconditioncount)
{
 /*!Last Changed 04.12.2003*/
 int covered1, uncovered1, fp1, fn1;
 double error, dlwith, dlwithout;
 covered1 = (*covered) - (rule->falsepositives + rule->covered);
 uncovered1 = (*uncovered) + (rule->falsepositives + rule->covered);
 fp1 = (*fp) - rule->falsepositives;
 fn1 = (*fn) + rule->covered;
 dlwith = description_length_of_exceptions(*covered, *uncovered, *fp, *fn, proportion) + description_length_of_rule(*rule, possibleconditioncount);
 dlwithout = description_length_of_exceptions(covered1, uncovered1, fp1, fn1, proportion);
 error = (rule->falsepositives + 0.0) / (rule->falsepositives + rule->covered);
 if ((dlwith >= dlwithout) || (error >= 0.5))
  {
   *covered = covered1;
   *uncovered = uncovered1;
   *fp = fp1;
   *fn = fn1;
   return YES;
  }
 else
   return NO;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %r9d, %r12d
movsd %xmm0, 0x60(%rsp)
movq %rdi, %r14
movq %rsi, 0x40(%rsp)
movl (%rsi), %edi
movl 0x4(%r14), %r13d
movl 0x8(%r14), %eax
leal (%rax,%r13), %ebp
movl %edi, %ebx
subl %ebp, %ebx
movq %rdx, 0x48(%rsp)
movl (%rdx), %esi
addl %esi, %ebp
movq %rcx, 0x50(%rsp)
movl (%rcx), %edx
movl %edx, %r15d
subl %eax, %r15d
movq %r8, 0x58(%rsp)
movl (%r8), %ecx
addl %ecx, %r13d
callq 0x7adc2
movsd %xmm0, 0x38(%rsp)
movq 0x30(%r14), %rax
movq %rax, 0x30(%rsp)
movupd (%r14), %xmm0
movups 0x10(%r14), %xmm1
movups 0x20(%r14), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movupd %xmm0, (%rsp)
movl %r12d, %edi
callq 0x7ac95
addsd 0x38(%rsp), %xmm0
movsd %xmm0, 0x38(%rsp)
movl %ebx, %edi
movl %ebp, %esi
movl %r15d, %edx
movl %r13d, %ecx
movsd 0x60(%rsp), %xmm0
callq 0x7adc2
movsd 0x38(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x9e907
movl 0x8(%r14), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
addl 0x4(%r14), %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
xorl %eax, %eax
ucomisd 0x7413(%rip), %xmm0     # 0xa5d18
jb 0x9e92a
movq 0x40(%rsp), %rax
movl %ebx, (%rax)
movq 0x48(%rsp), %rax
movl %ebp, (%rax)
movq 0x50(%rsp), %rax
movl %r15d, (%rax)
movq 0x58(%rsp), %rax
movl %r13d, (%rax)
movl $0x1, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: check_for_bestgain
void check_for_bestgain(int positive, int total, double it, double* bestgain, Decisionconditionptr result, char comparison, double value, int featureindex)
{
 /*!Last Changed 27.05.2003 gain = positive * (it - itdot);*/
 /*!Last Changed 10.05.2003*/
 double itdot, gain;
 if (positive > 0)
  {
   itdot = information(positive, total);
   gain = positive * (it - itdot);
   if (dless(*bestgain, gain))
    {
     *bestgain = gain;
     result->comparison = comparison;
     result->value = value;
     result->featureindex = featureindex;
    }
  }
}

// Assembly:
testl %edi, %edi
jle 0x9ea41
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %r9d, %ebx
movl %r8d, %ebp
movq %rcx, %r14
movq %rdx, %r15
movl %edi, %r12d
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, (%rsp)
callq 0x7c668
xorps %xmm1, %xmm1
cvtsi2sd %r12d, %xmm1
movsd (%rsp), %xmm2
subsd %xmm0, %xmm2
movsd %xmm2, (%rsp)
movsd (%rsp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, (%rsp)
movsd (%r15), %xmm0
movsd (%rsp), %xmm1
callq 0x39aee
movsd (%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
testl %eax, %eax
je 0x9ea35
movsd %xmm1, (%r15)
movb %bpl, 0x4(%r14)
movsd %xmm0, 0x8(%r14)
movl %ebx, (%r14)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: send_exceptions
void send_exceptions(Decisionconditionptr condition, Instanceptr* obey, Instanceptr* notobey)
{
 /*!Last Changed 10.05.2003*/
 Instanceptr tmp, next, last, tmpbefore;
 last = *notobey;
 if (last)
   while (last->next)
     last = last->next;
 tmpbefore = NULL;
 tmp = *obey;
 while (tmp)
  {
   next = tmp->next;
   if (!condition_cover_instance(tmp, condition))
    {
     if (last)
       last->next = tmp;
     else
       (*notobey) = tmp;
     last = tmp;
    }
   else
    {
     if (tmpbefore)
       tmpbefore->next = tmp;
     else
       (*obey) = tmp;
     tmpbefore = tmp;
    }
   tmp = next;
  }
 if (last)
   last->next = NULL;
 if (tmpbefore)
   tmpbefore->next = NULL;
 else
   (*obey) = NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rcx
movq (%rdx), %rax
testq %rax, %rax
je 0x9f2c8
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x9f2ba
jmp 0x9f2cb
xorl %r13d, %r13d
movq (%r15), %r12
xorl %ebp, %ebp
testq %r12, %r12
je 0x9f31b
movq %rcx, (%rsp)
movq 0x10(%r12), %rbx
movq %r12, %rdi
movq %rcx, %rsi
callq 0x7af32
testl %eax, %eax
movq %rbp, %rax
cmoveq %r13, %rax
movq %r15, %rcx
cmoveq %r14, %rcx
cmoveq %r12, %r13
cmovneq %r12, %rbp
leaq 0x10(%rax), %rdi
testq %rax, %rax
cmoveq %rcx, %rdi
movq (%rsp), %rcx
movq %r12, (%rdi)
movq %rbx, %r12
testq %rbx, %rbx
jne 0x9f2d9
testq %r13, %r13
je 0x9f328
movq $0x0, 0x10(%r13)
leaq 0x10(%rbp), %rax
testq %rbp, %rbp
cmoveq %r15, %rax
movq $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: rule_value_metric
double rule_value_metric(int n, int p, int N, int P, int reptype)
{
 /*!Last Changed 18.06.2003 integer division problem*/
 /*!Last Changed 19.05.2003 if p + n is zero returns inf*/
 /*!Last Changed 10.05.2003*/
 if (reptype == 0)
   return (p + N - n) / (P + N + 0.0);
 else
   if ((p + n) != 0)
     return (p - n) / (p + n + 2.0);
   else
     return 0;
}

// Assembly:
testl %r8d, %r8d
je 0x9f368
movl %esi, %eax
addl %edi, %eax
je 0x9f37b
subl %edi, %esi
cvtsi2sd %esi, %xmm0
cvtsi2sd %eax, %xmm1
addsd 0x6cda(%rip), %xmm1     # 0xa6040
jmp 0x9f376
subl %edi, %esi
addl %edx, %esi
cvtsi2sd %esi, %xmm0
addl %edx, %ecx
cvtsi2sd %ecx, %xmm1
divsd %xmm1, %xmm0
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: remove_covered_by_ruleset
void remove_covered_by_ruleset(Instanceptr* list1, Instanceptr* list2, Ruleset r, int startcount)
{
 /*!Last Changed 22.05.2003*/
 Instanceptr tmp, next, last, tmpbefore;
 int covered, i = 0;
 Decisionruleptr rule, startrule;
 startrule = r.start;
 while (i < startcount)
  {
   startrule = startrule->next;
   i++;
  }
 last = *list2;
 if (last)
   while (last->next)
     last = last->next;
 tmpbefore = NULL;
 tmp = *list1;
 while (tmp)
  {
   next = tmp->next;
   rule = startrule;
   covered = 0;
   while (rule)
    {
     if (rule_cover_instance(tmp, *rule))
      {
       if (last)
         last->next = tmp;
       else
         (*list2) = tmp;
       last = tmp;
       covered = 1;
       break;
      }
     rule = rule->next;
    }
   if (!covered)
    {
     if (tmpbefore)
       tmpbefore->next = tmp;
     else
       (*list1) = tmp;
     tmpbefore = tmp;
    }
   tmp = next;
  }
 if (last)
   last->next = NULL;
 if (tmpbefore)
   tmpbefore->next = NULL;
 else
   (*list1) = NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, 0x40(%rsp)
movq %rdi, 0x38(%rsp)
movq 0x80(%rsp), %rbx
testl %edx, %edx
jle 0x9f87b
movq 0x30(%rbx), %rbx
decl %edx
jne 0x9f873
movq 0x40(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x9f896
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x9f888
jmp 0x9f899
xorl %r13d, %r13d
movq 0x38(%rsp), %rax
movq (%rax), %r14
xorl %ebp, %ebp
testq %r14, %r14
je 0x9f91e
movq %r14, %r15
movq 0x10(%r14), %r14
testq %rbx, %rbx
je 0x9f8f6
movq %rbx, %r12
movq 0x30(%r12), %rax
movq %rax, 0x30(%rsp)
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r15, %rdi
callq 0x7b9ee
testl %eax, %eax
jne 0x9f903
movq 0x30(%r12), %r12
testq %r12, %r12
jne 0x9f8b7
movq %rbp, %rax
movq 0x38(%rsp), %rcx
movq %r15, %rbp
jmp 0x9f90e
movq %r13, %rax
movq 0x40(%rsp), %rcx
movq %r15, %r13
leaq 0x10(%rax), %rdx
testq %rax, %rax
cmoveq %rcx, %rdx
movq %r15, (%rdx)
jmp 0x9f8a3
testq %r13, %r13
je 0x9f92b
movq $0x0, 0x10(%r13)
leaq 0x10(%rbp), %rax
testq %rbp, %rbp
cmoveq 0x38(%rsp), %rax
movq $0x0, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: remove_covered
void remove_covered(Instanceptr* list1, Instanceptr* list2, Decisionruleptr rule)
{
 /*!Last Changed 10.05.2003*/
 Instanceptr tmp, next, last, tmpbefore;
 last = *list2;
 if (last)
   while (last->next)
     last = last->next;
 tmpbefore = NULL;
 tmp = *list1;
 while (tmp)
  {
   next = tmp->next;
   if (rule_cover_instance(tmp, *rule))
    {
     if (last)
       last->next = tmp;
     else
       (*list2) = tmp;
     last = tmp;
    }
   else
    {
     if (tmpbefore)
       tmpbefore->next = tmp;
     else
       (*list1) = tmp;
     tmpbefore = tmp;
    }
   tmp = next;
  }
 if (last)
   last->next = NULL;
 if (tmpbefore)
   tmpbefore->next = NULL;
 else
   (*list1) = NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %r15
movq (%rsi), %rcx
testq %rcx, %rcx
je 0x9f978
movq %rcx, %rax
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0x9f96a
jmp 0x9f97a
xorl %eax, %eax
movq (%r15), %r12
xorl %r13d, %r13d
testq %r12, %r12
je 0x9f9f2
movq %rax, %rbp
movq %rdx, 0x40(%rsp)
movq 0x10(%r12), %rbx
movq 0x30(%rdx), %rax
movq %rax, 0x30(%rsp)
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups 0x20(%rdx), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r12, %rdi
callq 0x7b9ee
testl %eax, %eax
movq %r14, %rcx
cmoveq %r15, %rcx
movq %r12, %rax
cmoveq %rbp, %rax
cmoveq %r13, %rbp
cmoveq %r12, %r13
leaq 0x10(%rbp), %rdx
testq %rbp, %rbp
cmoveq %rcx, %rdx
movq %r12, (%rdx)
movq 0x40(%rsp), %rdx
movq %rax, %rbp
movq %rbx, %r12
testq %rbx, %rbx
jne 0x9f98d
testq %rax, %rax
je 0x9f9ff
movq $0x0, 0x10(%rax)
leaq 0x10(%r13), %rax
testq %r13, %r13
cmoveq %r15, %rax
movq $0x0, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: are_conditions_equal
int are_conditions_equal(Decisionconditionptr condition1, Decisionconditionptr condition2)
{
 if (condition1->featureindex != condition2->featureindex)
   return NO;
 if (in_list(current_dataset->features[condition1->featureindex].type, 2, INTEGER, REAL))
  {
   if (condition1->upperlimit != condition2->upperlimit || condition1->lowerlimit != condition2->lowerlimit)
     return NO;
   if (condition1->comparison != condition2->comparison)
     return NO;
  }
 else
   if (condition1->value != condition2->value)
     return NO;
 return YES;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movslq (%rdi), %rax
xorl %ebx, %ebx
cmpl (%rsi), %eax
jne 0x9faa6
movq %rsi, %r14
movq %rdi, %r15
leaq 0x35e35(%rip), %rcx     # 0xd5870
movq (%rcx), %rcx
imulq $0x340, %rax, %rax      # imm = 0x340
movl 0x30f08(%rcx,%rax), %edi
xorl %ebx, %ebx
movl $0x2, %esi
xorl %edx, %edx
movl $0x2, %ecx
xorl %eax, %eax
callq 0x3aa8c
testl %eax, %eax
je 0x9fa91
movsd 0x10(%r15), %xmm0
ucomisd 0x10(%r14), %xmm0
jne 0x9faa6
jp 0x9faa6
movsd 0x18(%r15), %xmm0
ucomisd 0x18(%r14), %xmm0
jne 0x9faa6
jp 0x9faa6
movb 0x4(%r15), %al
cmpb 0x4(%r14), %al
je 0x9faa1
jmp 0x9faa6
movsd 0x8(%r15), %xmm0
ucomisd 0x8(%r14), %xmm0
jne 0x9faa6
jp 0x9faa6
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: are_rules_equal
int are_rules_equal(Decisionruleptr rule1, Decisionruleptr rule2)
{
 Decisionconditionptr condition1, condition2;
 if (rule1->decisioncount != rule2->decisioncount)
   return NO;
 condition1 = rule1->start;
 condition2 = rule2->start;
 while (condition1)
  {
   if (!are_conditions_equal(condition1, condition2))
     return NO;
   condition1 = condition1->next;
   condition2 = condition2->next;
  }
 return YES;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl 0x28(%rdi), %eax
xorl %ebx, %ebx
cmpl 0x28(%rsi), %eax
jne 0x9faf1
movq 0x18(%rdi), %r15
testq %r15, %r15
je 0x9faec
movq %rsi, %r14
addq $0x18, %r14
movq (%r14), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x9fa20
testl %eax, %eax
je 0x9faf1
addq $0x48, %r14
movq 0x48(%r15), %r15
testq %r15, %r15
jne 0x9facd
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: exception_count_of_ruleset
int exception_count_of_ruleset(Ruleset r, Instanceptr instances, int positive)
{
 Instanceptr tmp;
 int covered, classno, exception_count = 0;
 tmp = instances;
 while (tmp != NULL)
  {
   covered = ruleset_cover_instance(tmp, r);
   classno = give_classno(tmp);
   if ((classno == positive && !covered) || (classno != positive && covered))
     exception_count++;
   tmp = tmp->next;
  }
 return exception_count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
testq %rdi, %rdi
je 0x9fb9f
movl %esi, %ebx
movq %rdi, %r14
leaq 0x60(%rsp), %r12
xorl %ebp, %ebp
movq 0x20(%r12), %rax
movq %rax, 0x20(%rsp)
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
movq %r14, %rdi
callq 0x7c574
movl %eax, %r15d
movq %r14, %rdi
callq 0x2f33a
cmpl %ebx, %eax
sete %al
testl %r15d, %r15d
setne %cl
xorb %al, %cl
movzbl %cl, %eax
addl %eax, %ebp
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x9fb51
jmp 0x9fba1
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/univariaterule.c
// Function: insert_rule_and_update_counts
void insert_rule_and_update_counts(Decisionruleptr newrule, Ruleset* r, int* covered, int* uncovered, int* fp, int* fn)
{
 /*!Last Changed 02.11.2003*/
 add_rule(r, newrule);
 *covered += newrule->covered + newrule->falsepositives;
 *uncovered -= newrule->covered + newrule->falsepositives;
 *fp += newrule->falsepositives;
 *fn -= newrule->covered;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %r13
movq %rsi, %rdi
movq %r13, %rsi
callq 0x7c9c6
movl 0x8(%r13), %eax
addl 0x4(%r13), %eax
addl %eax, (%r12)
movl 0x8(%r13), %eax
addl 0x4(%r13), %eax
subl %eax, (%r15)
movl 0x8(%r13), %eax
addl %eax, (%r14)
movl 0x4(%r13), %eax
subl %eax, (%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)