LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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, %r13
movq %rdi, %rbp
movl $0x0, (%rdx)
movq (%rdi), %rdi
callq 0x37e22
movl %eax, (%r13)
xorl %r14d, %r14d
movslq (%rbx), %rax
leaq 0x1(%rax), %rdi
movl %edi, (%rbx)
movq 0x8(%rbp,%rax,8), %rax
testq %rax, %rax
je 0x982f2
movq %rax, %rdi
callq 0x37e22
cmpl (%r13), %eax
je 0x982cc
jmp 0x983dc
shlq $0x3, %rdi
leaq 0x16a16(%rip), %rsi     # 0xaed13
movl $0xc, %edx
callq 0x390f5
movq %rax, %r14
cmpl $0x0, (%rbx)
jle 0x983dc
xorl %r15d, %r15d
movq %rbx, 0x10(%rsp)
movq %rbp, 0x8(%rsp)
movq (%rbp,%r15,8), %rdi
leaq 0x10563(%rip), %rsi     # 0xa888f
callq 0x40f0
testq %rax, %rax
je 0x983c6
movq %rax, (%rsp)
movslq (%r13), %rdi
shlq $0x5, %rdi
leaq 0x169c6(%rip), %rsi     # 0xaed13
movl $0x14, %edx
callq 0x390f5
movq %rax, (%r14,%r15,8)
cmpl $0x0, (%r13)
leaq 0xe8a9(%rip), %r12      # 0xa6c10
jle 0x983a2
movl $0x18, %ebx
xorl %ebp, %ebp
movq (%r14,%r15,8), %rax
leaq (%rax,%rbx), %rdx
addq $-0x10, %rdx
movq (%rsp), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x4070
movq (%r14,%r15,8), %rax
movl %r15d, (%rax,%rbx)
incq %rbp
movslq (%r13), %rax
addq $0x20, %rbx
cmpq %rax, %rbp
jl 0x98370
movq (%rsp), %rdi
callq 0x42a0
incq %r15
movq 0x10(%rsp), %rbx
movslq (%rbx), %rax
cmpq %rax, %r15
movq 0x8(%rsp), %rbp
jl 0x98320
jmp 0x983dc
movq (%rbp,%r15,8), %rsi
leaq 0xae38(%rip), %rdi      # 0xa320a
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_O1/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 0x95b63
xorl %ecx, %ecx
testq %rax, %rax
je 0x98c0d
movl (%rsp), %edx
cmpl 0x4(%rsp), %edx
jne 0x98c0d
testl %edx, %edx
jle 0x98ba8
movq (%rax), %rcx
movq 0x8(%rax), %rsi
xorl %edi, %edi
xorl %r15d, %r15d
xorl %ebp, %ebp
movsd (%rcx,%rdi,8), %xmm0
movsd (%rsi,%rdi,8), %xmm1
xorl %r8d, %r8d
ucomisd %xmm1, %xmm0
seta %r8b
addl %r8d, %ebp
xorl %r8d, %r8d
ucomisd %xmm0, %xmm1
seta %r8b
addl %r8d, %r15d
incq %rdi
cmpq %rdi, %rdx
jne 0x98b78
jmp 0x98bad
xorl %ebp, %ebp
xorl %r15d, %r15d
movq %rax, %rdi
movl $0x2, %esi
callq 0x3915f
cmpl %r15d, %ebp
jle 0x98be1
movl $0x1, (%r14)
leaq 0xfe6f(%rip), %rdi      # 0xa8a3c
callq 0x536e7
movl $0x1, %ecx
movsd 0x9941(%rip), %xmm0     # 0xa2520
jmp 0x98bfa
movl $0x2, (%r14)
leaq 0xfe4d(%rip), %rdi      # 0xa8a3c
callq 0x536e7
xorl %ecx, %ecx
xorpd %xmm0, %xmm0
testl %eax, %eax
jne 0x98c09
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_O1/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 0x95b63
testq %rax, %rax
je 0x996b7
movq %rax, %r15
movl 0x8(%rsp), %r14d
cmpl 0xc(%rsp), %r14d
jne 0x996c6
testl %r14d, %r14d
jle 0x996e6
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 0x996a3
jmp 0x996ee
movabsq $0x3fe0000000000000, %rax # imm = 0x3FE0000000000000
movq %rax, (%rbx)
jmp 0x996df
leaq 0x15828(%rip), %rdi     # 0xaeef5
callq 0x4090
movq %r15, %rdi
movl $0x2, %esi
callq 0x3915f
xorl %ebp, %ebp
jmp 0x997b2
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 0xf32d(%rip), %rdi      # 0xa8a3c
callq 0x536e7
testl %eax, %eax
jne 0x99725
movl $0x3, %eax
subl (%r12), %eax
movl %eax, (%r12)
movq %r15, %rdi
movl $0x2, %esi
callq 0x3915f
xorl %ebp, %ebp
xorpd %xmm0, %xmm0
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x99746
jnp 0x997b2
movsd (%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, (%rsp)
movl %r14d, %edi
movl %r14d, %esi
callq 0x1faa9
movsd 0x8db9(%rip), %xmm1     # 0xa2520
subsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
leaq 0xfe79(%rip), %rdi      # 0xa95ef
callq 0x5341c
cmpl $0x2, %eax
jne 0x997a6
movsd 0x8d98(%rip), %xmm0     # 0xa2520
subsd 0x18(%rsp), %xmm0
movl %r14d, %edi
movl %r14d, %esi
callq 0x1fd87
xorl %ebp, %ebp
ucomisd (%rsp), %xmm0
setbe %bpl
jmp 0x997b2
leaq 0x1571b(%rip), %rdi     # 0xaeec8
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_O1/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 0x10(%rsp), %rsi
movq $0x0, (%rsi)
leaq 0x20(%rsp), %r12
leaq 0x24(%rsp), %rbx
movq %r12, %rdx
movq %rbx, %rcx
callq 0x957a6
movq %rax, %r14
movslq (%rbx), %rbx
leaq 0x145ce(%rip), %rdx     # 0xaed79
movl $0x8, %esi
movq %rbx, %rdi
movl $0x1b, %ecx
callq 0x39210
movq %rax, %r15
movslq (%r12), %r12
leaq -0x611a6(%rip), %rcx    # 0x39625
movl $0x20, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x4240
movq %r14, %rdi
movl %r12d, %esi
callq 0x95260
xorpd %xmm3, %xmm3
testq %r12, %r12
jle 0x9a858
leal 0x1(%r12), %eax
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x18(%rsp)
movq %r12, %r13
shlq $0x5, %r13
xorl %ebp, %ebp
movsd %xmm3, 0x8(%rsp)
movsd 0x10(%r14,%rbp), %xmm0
divsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x10(%r14,%rbp)
callq 0x205d6
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 0x9a807
testl %ebx, %ebx
xorpd %xmm2, %xmm2
jle 0x9a893
movq 0x10(%rsp), %rax
xorl %ecx, %ecx
xorps %xmm0, %xmm0
cvtsi2sdl (%rax,%rcx,4), %xmm0
movsd (%r15,%rcx,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%r15,%rcx,8)
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
addsd %xmm0, %xmm2
incq %rcx
cmpq %rcx, %rbx
jne 0x9a867
decl %r12d
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
divsd %xmm0, %xmm3
divsd %xmm3, %xmm2
movsd %xmm2, 0x8(%rsp)
movq 0x10(%rsp), %rdi
callq 0x39194
movq %r14, %rdi
callq 0x39194
movq %r15, %rdi
callq 0x39194
decl %ebx
movl %ebx, %edi
movsd 0x8(%rsp), %xmm0
callq 0x1f4cd
movsd 0x7c43(%rip), %xmm1     # 0xa2520
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_O1/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 0x376aa(%rip), %r13     # 0xd2870
movq (%r13), %rax
cmpl $0x0, 0x1bc(%rax)
jle 0x9b2ac
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 0x9b209
cmpl $0x1, %ecx
je 0x9b286
testl %ecx, %ecx
jne 0x9b293
movq %rbx, %rdi
movl %r14d, %esi
movq %r12, %rdx
callq 0x9d053
movslq 0x4(%rsp), %rdx
testq %rdx, %rdx
jle 0x9b27c
movq (%r13), %rcx
movl 0x30f08(%rcx,%rbp), %ecx
shlq $0x4, %rdx
leaq (%rdx,%rdx,2), %rdx
xorl %esi, %esi
movsd 0x72da(%rip), %xmm0     # 0xa2518
movq (%rax,%rsi), %rdi
testl %ecx, %ecx
je 0x9b24e
movsd (%rdi,%r14,8), %xmm1
jmp 0x9b257
xorps %xmm1, %xmm1
cvtsi2sdl (%rdi,%r14,8), %xmm1
leal 0x2(%r15), %edi
ucomisd %xmm0, %xmm1
cmovnel %edi, %r15d
cmovpl %edi, %r15d
jne 0x9b26f
jp 0x9b26f
movapd %xmm0, %xmm1
addq $0x30, %rsi
movapd %xmm1, %xmm0
cmpq %rsi, %rdx
jne 0x9b23e
movq %rax, %rdi
callq 0x39194
jmp 0x9b293
addq %rbp, %rax
addq $0x30f08, %rax          # imm = 0x30F08
addl 0x18(%rax), %r15d
incq %r14
movq (%r13), %rax
movslq 0x1bc(%rax), %rcx
cmpq %rcx, %r14
jl 0x9b1e5
jmp 0x9b2af
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_O1/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, %r14
movq %rax, %rdx
callq 0x9b3fe
movq 0x18(%r15), %rax
testq %rax, %rax
je 0x9b3a7
movsd %xmm0, 0x78(%rsp)
xorl %r12d, %r12d
xorl %ebx, %ebx
movq %rax, %rbp
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x7af03
movq %r15, %rdi
movl 0x84(%rsp), %esi
movq %r14, %rdx
callq 0x9b3fe
movsd %xmm0, 0x88(%rsp)
movsd 0x78(%rsp), %xmm1
callq 0x38d8e
testl %eax, %eax
jne 0x9b35d
movsd 0x88(%rsp), %xmm0
movsd 0x78(%rsp), %xmm1
callq 0x38d52
movsd 0x78(%rsp), %xmm0
testl %eax, %eax
je 0x9b376
movl $0x1, %ebx
movsd 0x88(%rsp), %xmm0
movq %rbp, %r13
movq %r12, 0x90(%rsp)
movsd %xmm0, 0x78(%rsp)
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x7ae99
movq 0x48(%rbp), %rax
movq %rbp, %r12
testq %rax, %rax
jne 0x9b304
testl %ebx, %ebx
sete %al
movsd 0x78(%rsp), %xmm0
jmp 0x9b3a9
movb $0x1, %al
testb %al, %al
jne 0x9b3ec
movq %r15, %rdi
movq 0x90(%rsp), %rsi
movq %r13, %rdx
movsd %xmm0, 0x78(%rsp)
callq 0x7af03
movl $0xe, %ecx
movq %rsp, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x7a935
movq %r13, %rdi
callq 0x39194
movsd 0x78(%rsp), %xmm0
jmp 0x9b2ec
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x9b49b
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 0x7a0fc
testl %eax, %eax
sete %r13b
movq %rbx, %rdi
callq 0x2eaca
cmpl %ebp, %eax
setne %al
xorb %r13b, %al
movzbl %al, %eax
addl %eax, %r12d
incl %r15d
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x9b423
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 0x786d(%rip), %xmm0     # 0xa2d10
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x9b7d8
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
testq %rbx, %rbx
je 0x9b7cf
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 0x7a0fc
testl %eax, %eax
jne 0x9b7a9
movq 0x30(%rbp), %rbp
testq %rbp, %rbp
jne 0x9b76f
jmp 0x9b7cf
incl (%r12)
decl (%r15)
movq %r13, %rdi
callq 0x2eaca
cmpl (%rbp), %eax
jne 0x9b7c9
incl 0x4(%rbp)
movq 0x40(%rsp), %rax
decl (%rax)
jmp 0x9b7cf
incl (%r14)
incl 0x8(%rbp)
movq 0x10(%r13), %r13
testq %r13, %r13
jne 0x9b767
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x79482
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 0x79355
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 0x79482
movsd 0x38(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jae 0x9b8c6
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 0x7454(%rip), %xmm0     # 0xa2d18
jb 0x9b8e9
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_O1/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 0x9ba00
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 0x7adaf
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 0x38d8e
movsd (%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
testl %eax, %eax
je 0x9b9f4
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_O1/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 0x9c29a
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x9c28c
jmp 0x9c29d
xorl %r13d, %r13d
movq (%r15), %r12
xorl %ebp, %ebp
testq %r12, %r12
je 0x9c2ed
movq %rcx, (%rsp)
movq 0x10(%r12), %rbx
movq %r12, %rdi
movq %rcx, %rsi
callq 0x795f2
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 0x9c2ab
testq %r13, %r13
je 0x9c2fa
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_O1/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 0x9c33a
movl %esi, %eax
addl %edi, %eax
je 0x9c34d
subl %edi, %esi
cvtsi2sd %esi, %xmm0
cvtsi2sd %eax, %xmm1
addsd 0x6d08(%rip), %xmm1     # 0xa3040
jmp 0x9c348
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_O1/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 $0x58, %rsp
movq %rsi, 0x50(%rsp)
movq %rdi, 0x48(%rsp)
movq 0x90(%rsp), %rbp
testl %edx, %edx
jle 0x9c80b
movq 0x30(%rbp), %rbp
decl %edx
jne 0x9c803
movq 0x50(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x9c826
movq %rax, %r13
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x9c818
jmp 0x9c829
xorl %r13d, %r13d
movq 0x48(%rsp), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x9c913
testq %rbp, %rbp
sete 0x3f(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x10(%r15), %r14
testq %rbp, %rbp
je 0x9c8e3
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 %r15, %rdi
callq 0x7a0fc
movb 0x3f(%rsp), %bl
movq %rbp, %r12
testl %eax, %eax
jne 0x9c8ce
movq 0x30(%r12), %r12
testq %r12, %r12
sete %bl
je 0x9c8e7
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 0x7a0fc
jmp 0x9c88a
leaq 0x10(%r13), %rax
testq %r13, %r13
cmoveq 0x50(%rsp), %rax
movq %r15, (%rax)
movq %r15, %r13
jmp 0x9c8e7
movb 0x3f(%rsp), %bl
testb %bl, %bl
je 0x9c905
movq 0x40(%rsp), %rcx
leaq 0x10(%rcx), %rax
testq %rcx, %rcx
cmoveq 0x48(%rsp), %rax
movq %r15, (%rax)
movq %r15, 0x40(%rsp)
movq %r14, %r15
testq %r14, %r14
jne 0x9c84b
jmp 0x9c91c
movq $0x0, 0x40(%rsp)
testq %r13, %r13
je 0x9c929
movq $0x0, 0x10(%r13)
movq 0x40(%rsp), %rcx
leaq 0x10(%rcx), %rax
testq %rcx, %rcx
cmoveq 0x48(%rsp), %rax
movq $0x0, (%rax)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x9c97b
movq %rcx, %rax
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0x9c96d
jmp 0x9c97d
xorl %eax, %eax
movq (%r15), %r12
xorl %r13d, %r13d
testq %r12, %r12
je 0x9c9f5
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 0x7a0fc
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 0x9c990
testq %rax, %rax
je 0x9ca02
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_O1/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 0x9caa9
movq %rsi, %r14
movq %rdi, %r15
leaq 0x35e32(%rip), %rcx     # 0xd2870
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 0x39a80
testl %eax, %eax
je 0x9ca94
movsd 0x10(%r15), %xmm0
ucomisd 0x10(%r14), %xmm0
jne 0x9caa9
jp 0x9caa9
movsd 0x18(%r15), %xmm0
ucomisd 0x18(%r14), %xmm0
jne 0x9caa9
jp 0x9caa9
movb 0x4(%r15), %al
cmpb 0x4(%r14), %al
je 0x9caa4
jmp 0x9caa9
movsd 0x8(%r15), %xmm0
ucomisd 0x8(%r14), %xmm0
jne 0x9caa9
jp 0x9caa9
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x9caf4
movq 0x18(%rdi), %r15
testq %r15, %r15
je 0x9caef
movq %rsi, %r14
addq $0x18, %r14
movq (%r14), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x9ca23
testl %eax, %eax
je 0x9caf4
addq $0x48, %r14
movq 0x48(%r15), %r15
testq %r15, %r15
jne 0x9cad0
movl $0x1, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x9cba2
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 0x7acbb
movl %eax, %r15d
movq %r14, %rdi
callq 0x2eaca
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 0x9cb54
jmp 0x9cba4
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_O1/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 0x7b0fb
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
// File: /workspace/github_c_makefile_star2_O1/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
testq %rdi, %rdi
je 0x9ccc4
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %r12
xorl %r15d, %r15d
movsd %xmm0, (%rsp)
movq %r12, %rdi
movl %r14d, %esi
callq 0x2e4b6
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x2eaca
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
testq %r12, %r12
jne 0x9cc85
jmp 0x9ccc7
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x4e20, %edx           # imm = 0x4E20
movq %rbx, %rdi
xorl %esi, %esi
callq 0x4050
testq %r14, %r14
je 0x9cd24
movslq %ebp, %r15
movq %r14, %rdi
callq 0x2eaca
movq (%r14), %rcx
movslq (%rcx,%r15,8), %rcx
cltq
imulq $0xc8, %rcx, %rcx
addq %rbx, %rcx
incl (%rcx,%rax,4)
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x9ccfd
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/univariatetree.c
// Function: quicksort_instances
void quicksort_instances(Instanceptr instances,int start,int end,int fno)
{
 /*!Last Changed 26.01.2003*/
 int pivot;
 if (start < end)
  {
   if (!mustrealize)
     if (quicksort_all_sorted(instances, start, end, fno))
       return;
   pivot = quicksort_partition(instances, start, end, fno);
   quicksort_instances(instances, start, pivot - 1, fno);
   quicksort_instances(instances, pivot + 1, end, fno);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r14
leaq 0x311d8f(%rip), %r13    # 0x3aefa4
cmpl %ebp, %r15d
jge 0x9d260
cmpl $0x0, (%r13)
jne 0x9d234
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
movl %ebx, %ecx
callq 0x9d715
testl %eax, %eax
jne 0x9d260
movq %r14, %rdi
movl %r15d, %esi
movl %ebp, %edx
movl %ebx, %ecx
callq 0x9d5b3
movl %eax, %r12d
leal -0x1(%r12), %edx
movq %r14, %rdi
movl %r15d, %esi
movl %ebx, %ecx
callq 0x9d1f9
incl %r12d
movl %r12d, %r15d
jmp 0x9d215
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/univariatetree.c
// Function: sort_function_instances
int sort_function_instances(Instanceptr x, Instanceptr y, int fno)
{
 /*!Last Changed 22.05.2005*/
 if (!mustrealize)
   if (current_dataset->features[fno].type == INTEGER)
     if (x->values[fno].intvalue < y->values[fno].intvalue)
       return -1;
     else
       if (x->values[fno].intvalue > y->values[fno].intvalue)
         return 1;
       else
         return 0;
   else
     if (x->values[fno].floatvalue < y->values[fno].floatvalue)
       return -1;
     else
       if (x->values[fno].floatvalue > y->values[fno].floatvalue)
         return 1;
       else
         return 0;
 else
   if (real_feature(x, fno) < real_feature(y, fno))
     return -1;
   else
     if (real_feature(x, fno) > real_feature(y, fno))
       return 1;
     else
       return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x311cb1(%rip), %rax    # 0x3aefa4
cmpl $0x0, (%rax)
je 0x9d347
movq %r14, %rdi
movl %ebp, %esi
callq 0x2e4b6
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2e4b6
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
ucomisd 0x8(%rsp), %xmm0
ja 0x9d389
movq %r14, %rdi
movl %ebp, %esi
callq 0x2e4b6
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movl %ebp, %esi
callq 0x2e4b6
xorl %eax, %eax
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jmp 0x9d386
leaq 0x35522(%rip), %rax     # 0xd2870
movq (%rax), %rax
movslq %ebp, %rcx
imulq $0x340, %rcx, %rdx      # imm = 0x340
cmpl $0x0, 0x30f08(%rax,%rdx)
movq (%r14), %rdx
movq (%rbx), %rax
je 0x9d392
movsd (%rdx,%rcx,8), %xmm0
movsd (%rax,%rcx,8), %xmm1
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
ucomisd %xmm0, %xmm1
ja 0x9d389
xorl %eax, %eax
ucomisd %xmm1, %xmm0
seta %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl (%rax,%rcx,8), %esi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %esi, (%rdx,%rcx,8)
jl 0x9d389
setg %al
movzbl %al, %eax
jmp 0x9d389
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/univariatetree.c
// Function: quicksort_partition
int quicksort_partition(Instanceptr instances, int start, int end, int fno)
{
 /*!Last Changed 22.01.2004*/
 /*!Last Changed 26.01.2003*/
 Instance x;
 int i = start - 1, j;
 x = quicksort_three_elements(instances, start, end, fno);
 for (j = start; j < end; j++)
   if (sort_function_instances(&(instances[j]), &x, fno) <= 0)
    {
     i++;
     exchange_instances(instances,i,j);
    }
 exchange_instances(instances,i+1,end);
 return i + 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %ecx, %r15d
movl %edx, %r12d
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x48(%rsp), %rdi
movq %rbx, %rsi
movl %r14d, %edx
movl %r12d, %ecx
movl %r15d, %r8d
callq 0x9d3a7
movl %r12d, %ebp
subl %r14d, %ebp
jle 0x9d69a
movl %r12d, 0xc(%rsp)
movslq %r14d, %rax
decl %r14d
leaq (%rax,%rax,2), %r12
shlq $0x4, %r12
addq %rbx, %r12
leaq 0x48(%rsp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl %r15d, %edx
callq 0x9d2dc
testl %eax, %eax
jg 0x9d686
incl %r14d
movslq %r14d, %rax
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movups (%rbx,%rax), %xmm0
movups 0x10(%rbx,%rax), %xmm1
movups 0x20(%rbx,%rax), %xmm2
movaps %xmm2, 0x30(%rsp)
movaps %xmm1, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movups 0x20(%r12), %xmm2
movups %xmm2, 0x20(%rbx,%rax)
movups %xmm1, 0x10(%rbx,%rax)
movups %xmm0, (%rbx,%rax)
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movaps 0x30(%rsp), %xmm2
movups %xmm2, 0x20(%r12)
movups %xmm1, 0x10(%r12)
movups %xmm0, (%r12)
addq $0x30, %r12
decl %ebp
jne 0x9d60a
incl %r14d
movl 0xc(%rsp), %r12d
movslq %r14d, %rax
leaq (%rax,%rax,2), %rcx
shlq $0x4, %rcx
movups (%rbx,%rcx), %xmm0
movups 0x10(%rbx,%rcx), %xmm1
movups 0x20(%rbx,%rcx), %xmm2
movaps %xmm2, 0x30(%rsp)
movaps %xmm1, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movslq %r12d, %rdx
leaq (%rdx,%rdx,2), %rdx
shlq $0x4, %rdx
movups (%rbx,%rdx), %xmm0
movups 0x10(%rbx,%rdx), %xmm1
movups 0x20(%rbx,%rdx), %xmm2
movups %xmm2, 0x20(%rbx,%rcx)
movups %xmm1, 0x10(%rbx,%rcx)
movups %xmm0, (%rbx,%rcx)
movaps 0x10(%rsp), %xmm0
movaps 0x20(%rsp), %xmm1
movaps 0x30(%rsp), %xmm2
movups %xmm2, 0x20(%rbx,%rdx)
movups %xmm1, 0x10(%rbx,%rdx)
movups %xmm0, (%rbx,%rdx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/univariatetree.c
// Function: quicksort_all_sorted
int quicksort_all_sorted(Instanceptr instances, int start, int end, int fno)
{
 /*!Last Changed 21.05.2005*/
 int i;
 if (current_dataset->features[fno].type == INTEGER)
  {
   for (i = start + 1; i <= end; i++)
     if (instances[i].values[fno].intvalue < instances[i - 1].values[fno].intvalue)
       return 0;
  }
 else
  {
   for (i = start + 1; i <= end; i++)
     if (instances[i].values[fno].floatvalue < instances[i - 1].values[fno].floatvalue)
       return 0;
  }   
 return 1;
}

// Assembly:
leaq 0x35154(%rip), %rax     # 0xd2870
movq (%rax), %r8
movslq %ecx, %rax
imulq $0x340, %rax, %rcx      # imm = 0x340
cmpl %esi, %edx
cmovlel %esi, %edx
cmpl $0x0, 0x30f08(%r8,%rcx)
movslq %esi, %rsi
movslq %edx, %rcx
je 0x9d76e
subq %rsi, %rcx
incq %rcx
leaq (%rsi,%rsi,2), %rdx
shlq $0x4, %rdx
addq %rdx, %rdi
decq %rcx
je 0x9d79a
movq (%rdi), %rdx
movq 0x30(%rdi), %rsi
addq $0x30, %rdi
movsd (%rdx,%rax,8), %xmm0
ucomisd (%rsi,%rax,8), %xmm0
jbe 0x9d750
jmp 0x9d797
subq %rsi, %rcx
incq %rcx
leaq (%rsi,%rsi,2), %rdx
shlq $0x4, %rdx
addq %rdx, %rdi
decq %rcx
je 0x9d79a
movq (%rdi), %rdx
movq 0x30(%rdi), %rsi
addq $0x30, %rdi
movl (%rsi,%rax,8), %esi
cmpl (%rdx,%rax,8), %esi
jge 0x9d77f
xorl %eax, %eax
retq
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/univariatetree.c
// Function: find_value_list
double* find_value_list(Instanceptr instances, int fno, int* size)
{
/*!Last Changed 22.03.2002*/
 Instanceptr tmp = instances;
 double* values = NULL, value;
 int i, found;
 (*size) = 0;
 while (tmp)
  {
   found = 0;
   if (current_dataset->features[fno].type == INTEGER)
     value = tmp->values[fno].intvalue;
   else
     value = tmp->values[fno].floatvalue;
   for (i = 0; i < (*size); i++)
     if (values[i] == value)
      {
       found = 1;
       break;
      }
   if (!found)
    {
     (*size)++;
     values = (double *)alloc(values, (*size) * sizeof(double), (*size));
     values[(*size) - 1] = value;
    }
   tmp = tmp->next;
  }
 return values;
}

// Assembly:
movl $0x0, (%rdx)
testq %rdi, %rdi
je 0x9d858
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rdi, %r14
movslq %esi, %r15
xorl %eax, %eax
leaq 0x350a2(%rip), %r12     # 0xd2870
imulq $0x340, %r15, %r13      # imm = 0x340
movq (%r12), %rcx
cmpl $0x0, 0x30f08(%rcx,%r13)
movq (%r14), %rcx
je 0x9d7ef
movsd (%rcx,%r15,8), %xmm1
jmp 0x9d7f8
xorps %xmm1, %xmm1
cvtsi2sdl (%rcx,%r15,8), %xmm1
movslq (%rbx), %rcx
testq %rcx, %rcx
jle 0x9d817
xorl %edx, %edx
movsd (%rax,%rdx,8), %xmm0
ucomisd %xmm1, %xmm0
jne 0x9d80f
jnp 0x9d841
incq %rdx
cmpq %rdx, %rcx
jne 0x9d802
leal 0x1(%rcx), %edx
movl %edx, (%rbx)
leaq 0x8(,%rcx,8), %rsi
movq %rax, %rdi
movsd %xmm1, 0x8(%rsp)
callq 0x390c8
movslq (%rbx), %rcx
movsd 0x8(%rsp), %xmm0
movsd %xmm0, -0x8(%rax,%rcx,8)
movq 0x10(%r14), %r14
testq %r14, %r14
jne 0x9d7d5
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/univariatetree.c
// Function: find_best_feature
int find_best_feature(Instanceptr instances, double* split)
{
/*!Last Changed 23.03.2002*/
 int i, bestfeature = -1;
 double bestgain = +INT_MAX;
 for (i = 0; i < current_dataset->featurecount; i++)
   if (find_best_split_for_feature_i(instances, i, split, &bestgain))
    {
     bestfeature = i;
     if (bestgain == 0)
       return i;
    }
 if (bestgain == ISELL)
   return -1;
 else
   return bestfeature;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movabsq $0x41dfffffffc00000, %rax # imm = 0x41DFFFFFFFC00000
movq %rax, (%rsp)
leaq 0x34da5(%rip), %r13     # 0xd2870
movq (%r13), %rax
cmpl $0x0, 0x1bc(%rax)
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jle 0x9db1f
movq %rsi, %rbx
movq %rdi, %r14
xorl %ebp, %ebp
movq %rsp, %r15
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x9d85b
testl %eax, %eax
je 0x9db11
movsd (%rsp), %xmm0
ucomisd 0x51fe(%rip), %xmm0     # 0xa2d08
movl %ebp, %r12d
jne 0x9db11
jnp 0x9db39
incl %ebp
movq (%r13), %rax
cmpl 0x1bc(%rax), %ebp
jl 0x9dae9
movsd (%rsp), %xmm0
ucomisd 0x51c4(%rip), %xmm0     # 0xa2cf0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmovnel %r12d, %ebp
cmovpl %r12d, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/univariatetree.c
// Function: count_feature_combinations
int** count_feature_combinations(Instanceptr instances, int* iter, int size, int* permsize)
{
 int i, classno, permpos, permmultiplier;
 int** featurecounts;
 Instanceptr tmp = instances;
 (*permsize) = 1;
 for (i = 0; i < size; i++)
   (*permsize) *= current_dataset->features[iter[i]].valuecount;
 featurecounts = (int**) safecalloc_2d(sizeof(int*), sizeof(int), *permsize, current_dataset->classno, "count_feature_combinations", 7);
 while (tmp != NULL)
  {
   classno = give_classno(tmp);
   permpos = 0;
   permmultiplier = 1;
   for (i = 0; i < size; i++)
    {
     permpos += permmultiplier * tmp->values[iter[i]].stringindex;
     permmultiplier *= current_dataset->features[iter[i]].valuecount;
    }
   featurecounts[permpos][classno]++;
   tmp = tmp->next;
  }
 return featurecounts;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movl $0x1, (%rcx)
movl %edx, %r13d
testl %edx, %edx
jle 0x9de98
leaq 0x349fe(%rip), %rdx     # 0xd2870
movl $0x30f08, %eax          # imm = 0x30F08
addq (%rdx), %rax
movl (%rcx), %edx
xorl %esi, %esi
movslq (%r14,%rsi,4), %rdi
imulq $0x340, %rdi, %rdi      # imm = 0x340
imull 0x18(%rax,%rdi), %edx
movl %edx, (%rcx)
incq %rsi
cmpq %rsi, %r13
jne 0x9de7e
movl (%rcx), %edx
leaq 0x349cf(%rip), %rax     # 0xd2870
movq (%rax), %rax
movl 0x10(%rax), %ecx
leaq 0x7d3e(%rip), %r8       # 0xa5bec
movl $0x8, %edi
movl $0x4, %esi
movl $0x7, %r9d
callq 0x39245
movq %rax, %r12
testq %r15, %r15
je 0x9df33
movl $0x30f08, %ebp          # imm = 0x30F08
movq %r15, %rdi
callq 0x2eaca
testl %ebx, %ebx
jle 0x9df1f
movq (%r15), %rcx
leaq 0x3498a(%rip), %rdx     # 0xd2870
movq (%rdx), %rdx
addq %rbp, %rdx
xorl %esi, %esi
movl $0x1, %edi
xorl %r8d, %r8d
movslq (%r14,%rsi,4), %r9
movl (%rcx,%r9,8), %r10d
imull %edi, %r10d
addl %r10d, %r8d
imulq $0x340, %r9, %r9        # imm = 0x340
imull 0x18(%rdx,%r9), %edi
incq %rsi
cmpq %rsi, %r13
jne 0x9def6
movslq %r8d, %rcx
jmp 0x9df21
xorl %ecx, %ecx
movq (%r12,%rcx,8), %rcx
cltq
incl (%rcx,%rax,4)
movq 0x10(%r15), %r15
testq %r15, %r15
jne 0x9ded0
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq