// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/ripper.c
// Function: grow_revision_rule
Decisionruleptr grow_revision_rule(Instanceptr* growset, Decisionruleptr rule, int positive, Ripper_parameterptr param)
{
 /* Last Changed 21.01.2004*/
 /* Last Changed 14.01.2004*/
 /* Last Changed 20.05.2003*/
 Decisionruleptr newrule = create_copy_of_rule(rule);
 Decisionconditionptr newcondition;
 Instanceptr obey, notobey = NULL;
 int n, pnew, nnew;
 double bestgain;
 obey = (*growset);
 if (rule_cover_negative(obey, *newrule))
   n = 1;
 else
   n = 0;
 while (n > 0)
  {
   if (get_parameter_o("usediscrete") == ON)
     if (get_parameter_i("smallsetsize") == 0)
       newcondition = find_best_discrete_condition_omnivariate(obey, positive);
     else
       newcondition = find_best_discrete_condition(obey, get_parameter_i("smallsetsize"), positive, &bestgain);
   else
     newcondition = find_best_condition(obey, positive, param);
   if (newcondition && newcondition->featureindex != -1)
    {
     count_examples_for_condition(newcondition, &pnew, &nnew, positive, obey);
     if (notobey == NULL || nnew != n)
       n = nnew;
     else
      {
       free_condition(*newcondition);
       safe_free(newcondition);       
       break;
      }
     send_exceptions(newcondition, &obey, &notobey);
     add_condition(newrule, newcondition);
    }
   else
    {
     if (newcondition && newcondition->featureindex == -1)
      {
       free_condition(*newcondition);
       safe_free(newcondition);
      }
     break;
    }
  }
 if (notobey)
  {
   merge_instancelist(&notobey, obey);
   (*growset) = notobey;
  }
 return newrule;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rcx, 0x90(%rsp)
movl %edx, %ebp
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x717f9
leaq 0x78(%rsp), %rcx
andq $0x0, (%rcx)
movq %rax, %r14
movq %rbx, 0x88(%rsp)
movq (%rbx), %rdi
leaq 0x70(%rsp), %rax
movq %rdi, (%rax)
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)
callq 0x71f54
xorl %ebx, %ebx
testl %eax, %eax
setne %bl
leaq 0x2724f(%rip), %r12     # 0x95874
testl %ebx, %ebx
jle 0x6e70e
leaq 0x2727a(%rip), %rdi     # 0x958ae
callq 0x4cff1
cmpl $0x1, %eax
jne 0x6e66d
movq %r12, %rdi
callq 0x4cd35
movq 0x70(%rsp), %r13
testl %eax, %eax
je 0x6e683
movq %r12, %rdi
callq 0x4cd35
movq %r13, %rdi
movl %eax, %esi
movl %ebp, %edx
leaq 0xa0(%rsp), %rcx
callq 0x2e283
jmp 0x6e68d
movq 0x70(%rsp), %rdi
movl %ebp, %esi
movq 0x90(%rsp), %rdx
callq 0x8fa26
jmp 0x6e68d
movq %r13, %rdi
movl %ebp, %esi
callq 0x2e180
movq %rax, %r13
testq %rax, %rax
je 0x6e70e
cmpl $-0x1, (%r13)
je 0x6e6f5
movq 0x70(%rsp), %r8
movq %r13, %rdi
leaq 0x9c(%rsp), %rsi
leaq 0x84(%rsp), %rdx
movl %ebp, %ecx
callq 0x70ba5
cmpq $0x0, 0x78(%rsp)
movl 0x84(%rsp), %r15d
je 0x6e6d0
cmpl %ebx, %r15d
je 0x6e6f5
movq %r13, %rdi
leaq 0x70(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x8ffc1
movq %r14, %rdi
movq %r13, %rsi
callq 0x719fe
movl %r15d, %ebx
jmp 0x6e625
pushq $0xe
popq %rcx
movq %rsp, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
callq 0x71b91
movq %r13, %rdi
callq 0x34ff7
cmpq $0x0, 0x78(%rsp)
je 0x6e736
movq 0x70(%rsp), %rsi
leaq 0x78(%rsp), %rbx
movq %rbx, %rdi
callq 0x2c6e4
movq (%rbx), %rax
movq 0x88(%rsp), %rcx
movq %rax, (%rcx)
movq %r14, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq