LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 $0x28, %rsp
movl %edx, %ebx
movl %esi, 0x8(%rsp)
movq %rdi, %r14
movl 0x4(%rdi), %eax
movl %eax, 0xc(%rsp)
movl %edx, %edi
movl %edx, %esi
callq 0x380d3
movq %rax, 0x10(%rsp)
movq %rdx, %r13
xorl %eax, %eax
testl %ebx, %ebx
movl $0x0, %esi
movl %ebx, %ebp
cmovgl %ebx, %esi
movabsq $-0x4010000000000000, %rcx # imm = 0xBFF0000000000000
cmpq %rax, %rsi
je 0x8aea2
movq (%r13,%rax,8), %rdx
movq %rcx, (%rdx,%rax,8)
incq %rax
jmp 0x8ae8f
pushq $0x1
popq %rbx
xorl %r12d, %r12d
movq %rsi, 0x18(%rsp)
cmpq %rsi, %r12
je 0x8af49
movl %r12d, %edi
leaq 0x4(%rsp), %rsi
movq %r14, %rdx
movl 0x8(%rsp), %ecx
callq 0x8ae14
cltq
shlq $0x4, %rax
movq 0x8(%r14,%rax), %rax
movslq 0x4(%rsp), %rcx
movq (%rax,%rcx,8), %r15
movq %rbx, 0x20(%rsp)
cmpl %ebp, %ebx
jge 0x8af34
movl %ebx, %edi
leaq 0x4(%rsp), %rsi
movq %r14, %rdx
movl 0x8(%rsp), %ecx
callq 0x8ae14
cltq
shlq $0x4, %rax
movq 0x8(%r14,%rax), %rax
movslq 0x4(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
movq %r15, %rdi
movl 0xc(%rsp), %edx
callq 0x33b55
movq (%r13,%r12,8), %rax
movsd %xmm0, (%rax,%rbx,8)
movq (%r13,%rbx,8), %rax
movsd %xmm0, (%rax,%r12,8)
incq %rbx
jmp 0x8aee3
incq %r12
movq 0x20(%rsp), %rbx
incq %rbx
movq 0x18(%rsp), %rsi
jmp 0x8aead
movq 0x10(%rsp), %rax
movq %r13, %rdx
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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 $0x38, %rsp
movl %edx, 0x8(%rsp)
movq %rsi, 0x28(%rsp)
pushq $0x1
popq %rbx
xorl %ecx, %ecx
movq %rdi, %r15
movq %rdi, 0x20(%rsp)
movq 0x28(%rsp), %r12
movl 0x8(%rsp), %r14d
movslq 0xf46280(%rdi), %rax
cmpq %rax, %rcx
jge 0x8b077
movq %r15, 0x18(%rsp)
xorl %r13d, %r13d
movq %rcx, 0x30(%rsp)
movslq 0xf42400(%rdi,%rcx,4), %rax
cmpq %rax, %r13
jge 0x8b063
movslq (%r15), %rbp
cmpq %rbp, %rcx
jge 0x8b057
movl %ecx, %edi
leaq 0x14(%rsp), %rsi
movq %r12, %rdx
movl %r14d, %ecx
callq 0x8ae14
movl %ebx, 0xc(%rsp)
movl %eax, %ebx
movl %ebp, %edi
leaq 0x10(%rsp), %rsi
movq %r12, %rdx
movl %r14d, %ecx
callq 0x8ae14
movslq %ebx, %rcx
movl 0xc(%rsp), %ebx
shlq $0x4, %rcx
movq 0x8(%r12,%rcx), %rcx
movslq 0x14(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movsd (%rcx), %xmm0
movsd 0x8(%rcx), %xmm1
cltq
shlq $0x4, %rax
movq 0x8(%r12,%rax), %rax
movslq 0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movsd (%rax), %xmm2
movsd 0x8(%rax), %xmm3
leaq 0xa778(%rip), %rdi      # 0x957b0
movl %ebx, %esi
pushq $0x1
popq %rdx
leaq 0x16c70(%rip), %rcx     # 0xa1cb4
movb $0x4, %al
callq 0x2f310
movq 0x30(%rsp), %rcx
movq 0x20(%rsp), %rdi
incl %ebx
incq %r13
addq $0x10, %r15
jmp 0x8afab
incq %rcx
movq 0x18(%rsp), %r15
addq $0x3e80, %r15           # imm = 0x3E80
jmp 0x8af8e
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x19997
movq %rax, %r15
movq %rax, %rdi
callq 0x19500
movq %rax, %rbx
leaq 0xb291(%rip), %rdi      # 0x96605
callq 0x4cff1
cmpl $0x1, %eax
jne 0x8b392
leaq 0x16a80(%rip), %rdi     # 0xa1e05
callq 0x4090
movq %rbx, %rdi
callq 0x193db
leal -0x2(,%r14,2), %eax
cmpl %eax, 0xf46284(%rbx)
jne 0x8b3ac
movq %r15, %rdi
callq 0x19992
jmp 0x8b3ba
leaq 0x16a56(%rip), %rdi     # 0xa1e09
callq 0x4090
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
movq %r8, %rbx
movq %rcx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl (%rsi), %eax
movslq %edx, %r13
movl %eax, 0xf433a0(%rdi,%r13,4)
imulq $0x3e80, %r13, %rbp     # imm = 0x3E80
addq %rdi, %rbp
movl 0xf42400(%r12,%r13,4), %eax
testl %eax, %eax
movl $0x0, %ecx
cmovlel %ecx, %eax
shlq $0x4, %rax
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
xorl %ecx, %ecx
pushq $-0x1
popq %rdx
movsd 0xaf17(%rip), %xmm0     # 0x96330
cmpq %rcx, %rax
je 0x8b46f
movl (%rbp,%rcx), %edi
movslq %edi, %r9
cmpl $0x0, 0xf433a0(%r12,%r9,4)
jne 0x8b469
movl 0xf44340(%r12,%r9,4), %r8d
cmpl %esi, %r8d
jge 0x8b44e
movq (%rbx,%r13,8), %rdx
movsd (%rdx,%r9,8), %xmm0
movl %r8d, %esi
movl %edi, %edx
jmp 0x8b469
jne 0x8b469
movq (%rbx,%r13,8), %r10
movsd (%r10,%r9,8), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x8b469
movl %r8d, %esi
movl %edi, %edx
movapd %xmm1, %xmm0
addq $0x10, %rcx
jmp 0x8b419
cmpl $-0x1, %edx
je 0x8b48d
incl (%r15)
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rcx
movq %rbx, %r8
callq 0x8b3c3
jmp 0x8b3f1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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 %r14d, %r14d
testl %r13d, %r13d
cmovlel %r14d, %r13d
xorl %r12d, %r12d
movq %rbx, %rdi
cmpl %r12d, %r13d
je 0x8b4e9
movl %r12d, %esi
callq 0x1978b
cmpl %r14d, %eax
cmovgl %eax, %r14d
cmovgl %r12d, %ebp
incl %r12d
jmp 0x8b4c9
movl %ebp, %esi
callq 0x19682
leaq 0xf44340(%rbx), %rcx
movl %r13d, %r12d
xorl %edx, %edx
cmpq %r12, %rdx
je 0x8b546
cvtsi2sdl (%rcx,%rdx,4), %xmm1
movsd (%rax,%rdx,8), %xmm0
ucomisd %xmm1, %xmm0
cvttsd2si %xmm0, %esi
movq %rdx, %rdi
jbe 0x8b522
leaq (%rcx,%rdx,4), %r8
movq %rdx, %rdi
movl %esi, (%r8)
movslq 0xf452e0(%rbx,%rdi,4), %rdi
cmpq $-0x1, %rdi
je 0x8b541
cvtsi2sdl (%rcx,%rdi,4), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x8b522
leaq (%rcx,%rdi,4), %r8
jmp 0x8b51f
incq %rdx
jmp 0x8b4fc
movq %rax, %rdi
callq 0x34ff7
leaq 0x14(%rsp), %rsi
movl $0x1, (%rsi)
movq %rbx, %rdi
movl %ebp, %edx
movq %r15, %rcx
movq 0x8(%rsp), %r8
callq 0x8b3c3
leaq 0xb093(%rip), %rdi      # 0x96605
callq 0x4cff1
cmpl $0x1, %eax
jne 0x8b5b1
leaq 0x168ad(%rip), %rdi     # 0xa1e30
callq 0x4090
leaq 0x147d7(%rip), %r14     # 0x9fd66
xorl %r15d, %r15d
cmpq %r15, %r12
je 0x8b5b1
movl 0xf433a0(%rbx,%r15,4), %edx
movq %r14, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x4030
incq %r15
jmp 0x8b592
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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
andq $0x0, (%rsi)
leaq 0x10(%rsp), %r12
andl $0x0, (%r12)
leaq 0x14(%rsp), %rbx
movq %r12, %rdx
movq %rbx, %rcx
callq 0x89a3d
movq %rax, %r14
movl (%rbx), %ebx
movslq %ebx, %rdi
leaq 0x15b15(%rip), %rdx     # 0xa1cdd
pushq $0x8
popq %rsi
pushq $0x1b
popq %rcx
callq 0x35067
movq %rax, %r15
movl (%r12), %eax
movslq %eax, %r12
leaq -0x56deb(%rip), %rcx    # 0x353f9
pushq $0x20
popq %rdx
movq %r14, %rdi
movq %r12, %rsi
callq 0x4240
movq %r14, %rdi
movl %r12d, %esi
callq 0x89558
xorl %eax, %eax
testl %r12d, %r12d
cmovlel %eax, %r12d
shlq $0x5, %r12
cmpq %rax, %r12
je 0x8c22c
movsd 0x10(%r14,%rax), %xmm0
movslq (%r14,%rax), %rcx
addsd (%r15,%rcx,8), %xmm0
movsd %xmm0, (%r15,%rcx,8)
addq $0x20, %rax
jmp 0x8c20a
movq 0x8(%rsp), %r12
xorl %eax, %eax
testl %ebx, %ebx
movl $0x0, %ecx
cmovgl %ebx, %ecx
xorpd %xmm2, %xmm2
cmpq %rax, %rcx
je 0x8c263
movsd (%r15,%rax,8), %xmm0
cvtsi2sdl (%r12,%rax,4), %xmm1
mulsd %xmm0, %xmm0
divsd %xmm1, %xmm0
addsd %xmm0, %xmm2
incq %rax
jmp 0x8c241
movq %r12, %rdi
movsd %xmm2, (%rsp)
callq 0x34ff7
movq %r15, %rdi
callq 0x34ff7
movl (%r12), %eax
imull %ebx, %eax
leal 0x1(%rax), %ecx
imull %ecx, %eax
cvtsi2sd %eax, %xmm0
movsd 0xeb47(%rip), %xmm1     # 0x9add8
divsd %xmm0, %xmm1
leal (%rcx,%rcx,2), %eax
cvtsi2sd %eax, %xmm0
movsd (%rsp), %xmm2
mulsd %xmm1, %xmm2
subsd %xmm0, %xmm2
movsd %xmm2, (%rsp)
movq %r14, %rdi
callq 0x34ff7
decl %ebx
movl %ebx, %edi
movsd (%rsp), %xmm0
callq 0x1d59f
movsd 0x9254(%rip), %xmm1     # 0x95520
subsd %xmm0, %xmm1
movapd %xmm1, %xmm0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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, %r15
movq %rdi, %r13
andl $0x0, (%rdx)
movq (%rdi), %rdi
callq 0x33f62
movl %eax, (%r15)
xorl %r12d, %r12d
movslq (%rbx), %rax
leaq 0x1(%rax), %rdi
movl %edi, (%rbx)
movq 0x8(%r13,%rax,8), %rax
testq %rax, %rax
je 0x8c32d
movq %rax, %rdi
callq 0x33f62
cmpl (%r15), %eax
je 0x8c308
jmp 0x8c3f7
shlq $0x3, %rdi
leaq 0x159b3(%rip), %rsi     # 0xa1ceb
pushq $0xc
popq %rdx
callq 0x34f59
movq %rax, %r12
xorl %r14d, %r14d
movq %rbx, 0x10(%rsp)
movq %r13, 0x8(%rsp)
movslq (%rbx), %rax
cmpq %rax, %r14
jge 0x8c3f7
movq (%r13,%r14,8), %rdi
leaq 0xf517(%rip), %rsi      # 0x9b87f
callq 0x40f0
testq %rax, %rax
je 0x8c3e1
movq %rax, %rbp
movslq (%r15), %rdi
shlq $0x5, %rdi
leaq 0x15968(%rip), %rsi     # 0xa1ceb
pushq $0x14
popq %rdx
callq 0x34f59
movq %rax, (%r12,%r14,8)
pushq $0x18
popq %rbx
xorl %r13d, %r13d
movslq (%r15), %rcx
cmpq %rcx, %r13
jge 0x8c3c7
leaq (%rax,%rbx), %rdx
addq $-0x10, %rdx
movq %rbp, %rdi
leaq 0xd7f9(%rip), %rsi      # 0x99ba8
xorl %eax, %eax
callq 0x4070
movq (%r12,%r14,8), %rax
movl %r14d, (%rax,%rbx)
incq %r13
addq $0x20, %rbx
jmp 0x8c395
movq %rbp, %rdi
callq 0x42a0
incq %r14
movq 0x10(%rsp), %rbx
movq 0x8(%rsp), %r13
jmp 0x8c350
movq (%r13,%r14,8), %rsi
leaq 0x9e1d(%rip), %rdi      # 0x9620a
xorl %r12d, %r12d
xorl %eax, %eax
callq 0x4030
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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 0x89dc2
xorl %ecx, %ecx
testq %rax, %rax
je 0x8cbf7
movl (%rsp), %edx
cmpl 0x4(%rsp), %edx
jne 0x8cbf7
xorl %ecx, %ecx
testl %edx, %edx
cmovlel %ecx, %edx
xorl %ebp, %ebp
xorl %r15d, %r15d
cmpq %rcx, %rdx
je 0x8cb9d
movq (%rax), %rsi
movq 0x8(%rax), %rdi
movsd (%rsi,%rcx,8), %xmm0
movsd (%rdi,%rcx,8), %xmm1
xorl %esi, %esi
ucomisd %xmm1, %xmm0
seta %sil
addl %esi, %ebp
xorl %esi, %esi
ucomisd %xmm0, %xmm1
seta %sil
addl %esi, %r15d
incq %rcx
jmp 0x8cb69
pushq $0x2
popq %rsi
movq %rax, %rdi
callq 0x34fc3
cmpl %r15d, %ebp
jbe 0x8cbcd
movl $0x1, (%r14)
leaq 0xee71(%rip), %rdi      # 0x9ba2c
callq 0x4cff1
pushq $0x1
popq %rcx
movsd 0x8955(%rip), %xmm0     # 0x95520
jmp 0x8cbe6
movl $0x2, (%r14)
leaq 0xee51(%rip), %rdi      # 0x9ba2c
callq 0x4cff1
xorl %ecx, %ecx
xorpd %xmm0, %xmm0
testl %eax, %eax
jne 0x8cbf3
pushq $0x3
popq %rax
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_O2/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 %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movsd %xmm0, 0x20(%rsp)
movq %rsi, %r15
leaq 0x10(%rsp), %rsi
callq 0x89dc2
testq %rax, %rax
je 0x8d57e
movq %rax, %r14
movl 0x10(%rsp), %ebp
cmpl 0x14(%rsp), %ebp
jne 0x8d58d
xorl %eax, %eax
testl %ebp, %ebp
movl $0x0, %ecx
cmovgl %ebp, %ecx
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
cmpq %rax, %rcx
je 0x8d5ac
movq (%r14), %rdx
addsd (%rdx,%rax,8), %xmm0
movq 0x8(%r14), %rdx
addsd (%rdx,%rax,8), %xmm1
incq %rax
jmp 0x8d563
movabsq $0x3fe0000000000000, %rax # imm = 0x3FE0000000000000
movq %rax, (%rbx)
jmp 0x8d5a4
leaq 0x14939(%rip), %rdi     # 0xa1ecd
callq 0x4090
pushq $0x2
popq %rsi
movq %r14, %rdi
callq 0x34fc3
xorl %r14d, %r14d
jmp 0x8d66b
xorl %eax, %eax
movsd %xmm0, 0x8(%rsp)
ucomisd %xmm1, %xmm0
setbe %al
incl %eax
movl %eax, (%r15)
leaq 0xe465(%rip), %rdi      # 0x9ba2c
movsd %xmm1, 0x18(%rsp)
callq 0x4cff1
testl %eax, %eax
jne 0x8d5df
pushq $0x3
popq %rax
subl (%r15), %eax
movl %eax, (%r15)
pushq $0x2
popq %rsi
movq %r14, %rdi
callq 0x34fc3
xorl %r14d, %r14d
xorpd %xmm0, %xmm0
movsd 0x18(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x8d5ff
jnp 0x8d66b
movsd 0x8(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movl %ebp, %edi
movl %ebp, %esi
callq 0x1db37
movsd 0x7f00(%rip), %xmm1     # 0x95520
subsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
leaq 0xefb0(%rip), %rdi      # 0x9c5df
callq 0x4cd35
cmpl $0x2, %eax
jne 0x8d65f
movsd 0x7edf(%rip), %xmm0     # 0x95520
subsd 0x20(%rsp), %xmm0
movl %ebp, %edi
movl %ebp, %esi
callq 0x1dde6
xorl %r14d, %r14d
ucomisd 0x8(%rsp), %xmm0
setbe %r14b
jmp 0x8d66b
leaq 0x1483a(%rip), %rdi     # 0xa1ea0
callq 0x4090
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
andq $0x0, (%rsi)
leaq 0x20(%rsp), %r12
leaq 0x24(%rsp), %rbx
movq %r12, %rdx
movq %rbx, %rcx
callq 0x89a3d
movq %rax, %r14
movl (%rbx), %ebx
movslq %ebx, %rdi
leaq 0x137c2(%rip), %rdx     # 0xa1d51
pushq $0x8
popq %rsi
pushq $0x1b
popq %rcx
callq 0x35067
movq %rax, %r15
movl (%r12), %ebp
movslq %ebp, %r12
leaq -0x591b2(%rip), %rcx    # 0x353f9
pushq $0x20
popq %rdx
movq %r14, %rdi
movq %r12, %rsi
callq 0x4240
movq %r14, %rdi
movl %r12d, %esi
callq 0x89558
leal 0x1(%r12), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x8(%rsp)
xorl %r13d, %r13d
testl %r12d, %r12d
movl $0x0, %r12d
cmovgl %ebp, %r12d
shlq $0x5, %r12
xorpd %xmm2, %xmm2
cmpq %r13, %r12
je 0x8e63e
movsd 0x10(%r14,%r13), %xmm0
divsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x10(%r14,%r13)
movsd %xmm2, 0x10(%rsp)
callq 0x1e700
movsd 0x10(%rsp), %xmm2
movsd %xmm0, 0x10(%r14,%r13)
movapd %xmm0, %xmm1
mulsd %xmm0, %xmm1
addsd %xmm1, %xmm2
movslq (%r14,%r13), %rax
addsd (%r15,%rax,8), %xmm0
movsd %xmm0, (%r15,%rax,8)
addq $0x20, %r13
jmp 0x8e5eb
movq 0x18(%rsp), %rdi
xorl %eax, %eax
testl %ebx, %ebx
movl $0x0, %ecx
cmovgl %ebx, %ecx
xorpd %xmm3, %xmm3
cmpq %rax, %rcx
je 0x8e67e
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, %xmm3
incq %rax
jmp 0x8e653
decl %ebp
cvtsi2sd %ebp, %xmm0
divsd %xmm0, %xmm2
movsd %xmm2, 0x10(%rsp)
movsd %xmm3, 0x8(%rsp)
callq 0x34ff7
movsd 0x8(%rsp), %xmm0
divsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x34ff7
movq %r15, %rdi
callq 0x34ff7
decl %ebx
movl %ebx, %edi
movsd 0x8(%rsp), %xmm0
callq 0x1d59f
movsd 0x6e4e(%rip), %xmm1     # 0x95520
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_O2/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
movq %rdi, %rbx
leaq 0x3e8c3(%rip), %r13     # 0xcd870
movq (%r13), %rax
leaq 0x4(%rsp), %r14
xorl %r12d, %r12d
xorl %r15d, %r15d
movslq 0x1bc(%rax), %rcx
cmpq %rcx, %r12
jge 0x8f08b
imulq $0x340, %r12, %rbp      # imm = 0x340
movl 0x30f08(%rax,%rbp), %ecx
cmpl $0x2, %ecx
je 0x8eff0
cmpl $0x1, %ecx
je 0x8f074
testl %ecx, %ecx
jne 0x8f083
movq %rbx, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x90c1a
movl 0x4(%rsp), %edx
movq (%r13), %rcx
testl %edx, %edx
movl $0x0, %esi
cmovlel %esi, %edx
addq %rbp, %rcx
addq $0x30f08, %rcx          # imm = 0x30F08
imulq $0x30, %rdx, %rdx
xorl %esi, %esi
movsd 0x64f0(%rip), %xmm0     # 0x95518
cmpq %rsi, %rdx
je 0x8f066
cmpl $0x0, (%rcx)
movq (%rax,%rsi), %rdi
je 0x8f03e
movsd (%rdi,%r12,8), %xmm1
jmp 0x8f044
cvtsi2sdl (%rdi,%r12,8), %xmm1
leal 0x2(%r15), %edi
ucomisd %xmm0, %xmm1
cmovnel %edi, %r15d
cmovpl %edi, %r15d
jne 0x8f05c
jp 0x8f05c
movapd %xmm0, %xmm1
addq $0x30, %rsi
movapd %xmm1, %xmm0
jmp 0x8f028
movq %rax, %rdi
callq 0x34ff7
movq (%r13), %rax
jmp 0x8f083
leaq (%rax,%rbp), %rcx
addq $0x30f08, %rcx          # imm = 0x30F08
addl 0x18(%rcx), %r15d
incq %r12
jmp 0x8efbc
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_O2/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, 0x7c(%rsp)
movl %edx, %esi
movq %rax, %rbx
movq %rax, %rdx
callq 0x8f1d9
movsd %xmm0, 0x70(%rsp)
leaq 0x18(%r15), %rax
movq %rax, 0x88(%rsp)
xorl %ebp, %ebp
testb $0x1, %bpl
jne 0x8f1c7
xorl %r14d, %r14d
movq 0x88(%rsp), %rax
xorl %ebp, %ebp
movq (%rax), %r13
testq %r13, %r13
je 0x8f189
movq %r15, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x720e4
movq %r15, %rdi
movl 0x7c(%rsp), %esi
movq %rbx, %rdx
callq 0x8f1d9
movsd %xmm0, 0x80(%rsp)
movsd 0x70(%rsp), %xmm1
callq 0x34c76
testl %eax, %eax
jne 0x8f14f
movsd 0x80(%rsp), %xmm0
movsd 0x70(%rsp), %xmm1
callq 0x34c3a
movsd 0x70(%rsp), %xmm0
testl %eax, %eax
je 0x8f169
pushq $0x1
popq %rax
movl %eax, %r14d
movsd 0x80(%rsp), %xmm0
movq %r13, %r12
movq %rbp, 0x90(%rsp)
movsd %xmm0, 0x70(%rsp)
movq %r15, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x7208c
leaq 0x48(%r13), %rax
movq %r13, %rbp
jmp 0x8f0f0
testl %r14d, %r14d
sete %bpl
je 0x8f0d9
movq %r15, %rdi
movq 0x90(%rsp), %rsi
movq %r12, %rdx
callq 0x720e4
pushq $0xe
popq %rcx
movq %rsp, %rdi
movq %r12, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x71b91
movq %r12, %rdi
callq 0x34ff7
jmp 0x8f0d9
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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:
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
testq %rbx, %rbx
je 0x8f24c
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 0x71406
testl %eax, %eax
sete %r13b
movq %rbx, %rdi
callq 0x2b47e
cmpl %ebp, %eax
setne %al
xorb %r13b, %al
movzbl %al, %eax
addl %eax, %r15d
incl %r12d
movq 0x10(%rbx), %rbx
jmp 0x8f1f5
cvtsi2sd %r15d, %xmm0
cvtsi2sd %r12d, %xmm1
divsd %xmm1, %xmm0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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)
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
testq %r13, %r13
je 0x8f5a7
movq %rbx, %rbp
testq %rbp, %rbp
je 0x8f5a1
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 0x71406
testl %eax, %eax
jne 0x8f57b
movq 0x30(%rbp), %rbp
jmp 0x8f541
incl (%r12)
decl (%r15)
movq %r13, %rdi
callq 0x2b47e
cmpl (%rbp), %eax
jne 0x8f59b
incl 0x4(%rbp)
movq 0x40(%rsp), %rax
decl (%rax)
jmp 0x8f5a1
incl (%r14)
incl 0x8(%rbp)
movq 0x10(%r13), %r13
jmp 0x8f539
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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 0x7084f
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 0x7072e
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 0x7084f
movsd 0x38(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x8f68f
movl 0x8(%r14), %eax
cvtsi2sd %eax, %xmm0
addl 0x4(%r14), %eax
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
xorl %eax, %eax
ucomisd 0x6693(%rip), %xmm0     # 0x95d20
jb 0x8f6b0
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)
pushq $0x1
popq %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x8f7c2
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 0x71fae
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 0x34c76
movsd (%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
testl %eax, %eax
je 0x8f7b6
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_O2/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, (%rsp)
movq %rdi, %r15
movq (%rdx), %rax
testq %rax, %rax
je 0x8ffec
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x8ffde
jmp 0x8ffef
xorl %r13d, %r13d
movq (%rsp), %rax
movq (%rax), %r12
xorl %ebp, %ebp
testq %r12, %r12
je 0x90039
movq 0x10(%r12), %rbx
movq %r12, %rdi
movq %r15, %rsi
callq 0x7099c
testl %eax, %eax
movq %rbp, %rax
cmoveq %r13, %rax
movq (%rsp), %rcx
cmoveq %r14, %rcx
cmoveq %r12, %r13
cmovneq %r12, %rbp
leaq 0x10(%rax), %rdx
testq %rax, %rax
cmoveq %rcx, %rdx
movq %r12, (%rdx)
movq %rbx, %r12
jmp 0x8fff8
testq %r13, %r13
je 0x90043
andq $0x0, 0x10(%r13)
leaq 0x10(%rbp), %rax
testq %rbp, %rbp
cmoveq (%rsp), %rax
andq $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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 0x90081
movl %esi, %eax
addl %edi, %eax
je 0x90094
subl %edi, %esi
cvtsi2sd %esi, %xmm0
cvtsi2sd %eax, %xmm1
addsd 0x5fc9(%rip), %xmm1     # 0x96048
jmp 0x9008f
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_O2/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)
leaq 0x80(%rsp), %rbx
xorl %eax, %eax
testl %edx, %edx
cmovgl %edx, %eax
movq (%rbx), %rbx
subl $0x1, %eax
jb 0x904b8
addq $0x30, %rbx
jmp 0x904aa
movq 0x40(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x904d3
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x904c5
jmp 0x904d6
xorl %r13d, %r13d
movq 0x38(%rsp), %rax
movq (%rax), %r15
xorl %ebp, %ebp
testq %r15, %r15
je 0x90558
movq 0x10(%r15), %r14
movq %rbx, %r12
testq %r12, %r12
je 0x9052d
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 0x71406
testl %eax, %eax
jne 0x9053a
movq 0x30(%r12), %r12
jmp 0x904ec
movq %rbp, %rax
movq 0x38(%rsp), %rcx
movq %r15, %rbp
jmp 0x90545
movq %r13, %rax
movq 0x40(%rsp), %rcx
movq %r15, %r13
leaq 0x10(%rax), %rdx
testq %rax, %rax
cmoveq %rcx, %rdx
movq %r15, (%rdx)
movq %r14, %r15
jmp 0x904e0
testq %r13, %r13
je 0x90562
andq $0x0, 0x10(%r13)
leaq 0x10(%rbp), %rax
testq %rbp, %rbp
cmoveq 0x38(%rsp), %rax
andq $0x0, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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 %rdx, %r14
movq %rsi, %r15
movq %rdi, 0x40(%rsp)
movq (%rsi), %rax
testq %rax, %rax
je 0x905b1
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x905a3
jmp 0x905b4
xorl %r13d, %r13d
movq 0x40(%rsp), %rax
movq (%rax), %r12
xorl %ebp, %ebp
testq %r12, %r12
je 0x90625
movq 0x10(%r12), %rbx
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 %r12, %rdi
callq 0x71406
testl %eax, %eax
movq %r15, %rax
cmoveq 0x40(%rsp), %rax
movq %r12, %rcx
cmoveq %r13, %rcx
cmoveq %rbp, %r13
cmoveq %r12, %rbp
leaq 0x10(%r13), %rdx
testq %r13, %r13
cmoveq %rax, %rdx
movq %r12, (%rdx)
movq %rbx, %r12
movq %rcx, %r13
jmp 0x905be
testq %r13, %r13
je 0x9062f
andq $0x0, 0x10(%r13)
leaq 0x10(%rbp), %rax
testq %rbp, %rbp
cmoveq 0x40(%rsp), %rax
andq $0x0, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/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 0x906ce
movq %rsi, %r14
movq %rdi, %r15
leaq 0x3d206(%rip), %rcx     # 0xcd870
movq (%rcx), %rcx
imulq $0x340, %rax, %rax      # imm = 0x340
movl 0x30f08(%rcx,%rax), %edi
xorl %ebx, %ebx
pushq $0x2
popq %rcx
movl %ecx, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x35812
testl %eax, %eax
je 0x906bb
movsd 0x10(%r15), %xmm0
ucomisd 0x10(%r14), %xmm0
jne 0x906ce
jp 0x906ce
movsd 0x18(%r15), %xmm0
ucomisd 0x18(%r14), %xmm0
jne 0x906ce
jp 0x906ce
movb 0x4(%r15), %al
cmpb 0x4(%r14), %al
je 0x906cb
jmp 0x906ce
movsd 0x8(%r15), %xmm0
ucomisd 0x8(%r14), %xmm0
jne 0x906ce
jp 0x906ce
pushq $0x1
popq %rbx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x28(%rdi), %eax
xorl %ebx, %ebx
cmpl 0x28(%rsi), %eax
jne 0x9071e
movq %rsi, %r14
movq %rdi, %r15
addq $0x18, %r15
addq $0x18, %r14
pushq $0x1
popq %rbp
movq (%r15), %r15
testq %r15, %r15
je 0x9071c
movq (%r14), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x9064f
testl %eax, %eax
je 0x9071e
addq $0x48, %r15
addq $0x48, %r14
jmp 0x906f8
movl %ebp, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/univariaterule.c
// Function: rule_exists
int rule_exists(Ruleset ruleset, Decisionruleptr rule)
{
 Decisionruleptr tmp;
 tmp = ruleset.start;
 while (tmp)
  {
   if (are_rules_equal(rule, tmp))
     return YES;
   tmp = tmp->next;
  }
 return NO;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x20(%rsp), %r15
pushq $0x1
popq %rbx
movq (%r15), %r15
testq %r15, %r15
je 0x90758
movq %r14, %rdi
movq %r15, %rsi
callq 0x906d6
addq $0x30, %r15
testl %eax, %eax
je 0x9073b
jmp 0x9075a
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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
movl %esi, %ebx
movq %rdi, %r14
xorl %ebp, %ebp
leaq 0x60(%rsp), %r12
testq %r14, %r14
je 0x907c8
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 0x71ecd
movl %eax, %r15d
movq %r14, %rdi
callq 0x2b47e
cmpl %ebx, %eax
sete %al
testl %r15d, %r15d
setne %cl
xorb %al, %cl
movzbl %cl, %eax
addl %eax, %ebp
movq 0x10(%r14), %r14
jmp 0x9077a
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/univariatetree.c
// Function: test_univariate
int test_univariate(Instanceptr testingdata, int fno, double split, int leftclass, int rightclass)
{
 /*!Last Changed 23.09.2004*/
 int i, error = 0;
 double value;
 Instanceptr test = testingdata;
 while (test)
  {
   value = real_feature(test, fno);   
   i = give_classno(test);
   if (value <= split)
    {
     if (i != leftclass)
       error++;
    }
   else
    {
     if (i != rightclass)
       error++;
    }
   test = test->next;
  }
 return error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %ecx, %ebx
movl %edx, %ebp
movsd %xmm0, (%rsp)
movl %esi, %r14d
movq %rdi, %r12
xorl %r15d, %r15d
testq %r12, %r12
je 0x908e5
movq %r12, %rdi
movl %r14d, %esi
callq 0x2aea2
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x2b47e
movsd (%rsp), %xmm0
ucomisd 0x8(%rsp), %xmm0
movl %ebp, %ecx
cmovbl %ebx, %ecx
xorl %edx, %edx
cmpl %ecx, %eax
setne %dl
addl %edx, %r15d
movq 0x10(%r12), %r12
jmp 0x908a6
movl %r15d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/univariatetree.c
// Function: find_occurences_for_discrete_feature
void find_occurences_for_discrete_feature(Instanceptr instances, int fno, int ratio[MAXVALUES][MAXCLASSES])
{
/*!Last Changed 22.04.2003*/
 int i, j;
 Instanceptr tmp = instances;
 for (i = 0; i < MAXVALUES; i++)
   for (j = 0;j < MAXCLASSES; j++)
     ratio[i][j] = 0;
 while (tmp)
  {
   j = give_classno(tmp);
   i = tmp->values[fno].stringindex;
   ratio[i][j]++;
   tmp = tmp->next;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
xorl %eax, %eax
movq %rdx, %rcx
cmpq $0x64, %rax
je 0x90928
xorl %edx, %edx
cmpq $0x32, %rdx
je 0x9091c
andl $0x0, (%rcx,%rdx,4)
incq %rdx
jmp 0x9090d
incq %rax
addq $0xc8, %rcx
jmp 0x90905
movslq %esi, %r15
testq %r14, %r14
je 0x90954
movq %r14, %rdi
callq 0x2b47e
movq (%r14), %rcx
movslq (%rcx,%r15,8), %rcx
cltq
imulq $0xc8, %rcx, %rcx
addq %rbx, %rcx
incl (%rcx,%rax,4)
movq 0x10(%r14), %r14
jmp 0x9092b
popq %rbx
popq %r14
popq %r15
retq