// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movsd %xmm0, -0x38(%rbp)
movl %r9d, -0x3c(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movl 0x8(%rcx), %ecx
movq -0x10(%rbp), %rdx
addl 0x4(%rdx), %ecx
subl %ecx, %eax
movl %eax, -0x40(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movl 0x8(%rcx), %ecx
movq -0x10(%rbp), %rdx
addl 0x4(%rdx), %ecx
addl %ecx, %eax
movl %eax, -0x44(%rbp)
movq -0x28(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
subl 0x8(%rcx), %eax
movl %eax, -0x48(%rbp)
movq -0x30(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x4(%rcx), %eax
movl %eax, -0x4c(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %edi
movq -0x20(%rbp), %rax
movl (%rax), %esi
movq -0x28(%rbp), %rax
movl (%rax), %edx
movq -0x30(%rbp), %rax
movl (%rax), %ecx
movsd -0x38(%rbp), %xmm0
callq 0xabdd0
movsd %xmm0, -0x70(%rbp)
movq -0x10(%rbp), %rcx
movl -0x3c(%rbp), %edi
movq 0x30(%rcx), %rdx
movq %rsp, %rax
movq %rdx, 0x30(%rax)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups 0x20(%rcx), %xmm2
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0xabc80
movaps %xmm0, %xmm1
movsd -0x70(%rbp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x60(%rbp)
movl -0x40(%rbp), %edi
movl -0x44(%rbp), %esi
movl -0x48(%rbp), %edx
movl -0x4c(%rbp), %ecx
movsd -0x38(%rbp), %xmm0
callq 0xabdd0
movsd %xmm0, -0x68(%rbp)
movq -0x10(%rbp), %rax
cvtsi2sdl 0x8(%rax), %xmm0
xorps %xmm1, %xmm1
addsd %xmm1, %xmm0
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x10(%rbp), %rcx
addl 0x4(%rcx), %eax
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x60(%rbp), %xmm0
ucomisd -0x68(%rbp), %xmm0
jae 0xda1d4
movsd -0x58(%rbp), %xmm0
movsd 0x87ea(%rip), %xmm1     # 0xe29b8
ucomisd %xmm1, %xmm0
jb 0xda201
movl -0x40(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movl -0x44(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movl -0x48(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movl -0x4c(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0xda208
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)