// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/univariaterule.c
// Function: description_length_with_or_without_rule
double description_length_with_or_without_rule(Ruleset* r, int positive, int startrule, Instanceptr list1, Instanceptr list2, Instanceptr list3, Instanceptr list4, double proportion, int with)
{
 /*!Last Changed 04.12.2003*/
 int covered = 0, uncovered, fp = 0, fn, rulecount = 0;
 Decisionruleptr rule = r->start;
 double dlnow = 0;
 uncovered = data_size(list1) + data_size(list2) + data_size(list3) + data_size(list4);
 fn = find_class_count(list1, positive) + find_class_count(list2, positive) + find_class_count(list3, positive) + find_class_count(list4, positive);
 while (rule && rule->classno != positive)
  {
   rulecount++;
   rule = rule->next;
  }
 while (rulecount < startrule)
  {
   dlnow += description_length_of_rule(*rule, r->possibleconditioncount);
   uncovered -= rule->covered + rule->falsepositives;
   covered += rule->covered + rule->falsepositives;
   fp += rule->falsepositives;
   fn -= rule->covered;
   rule = rule->next;
   rulecount++;
  }
 if (!with)
   rule = rule->next;
 if (rule)
  {
   initialize_counts(rule);
   update_counts_rules(rule, list1, &covered, &uncovered, &fp, &fn);
   update_counts_rules(rule, list2, &covered, &uncovered, &fp, &fn);
   update_counts_rules(rule, list3, &covered, &uncovered, &fp, &fn);
   update_counts_rules(rule, list4, &covered, &uncovered, &fp, &fn);
   while (rule)
    {
     if (!can_delete_rule(rule, &covered, &uncovered, &fp, &fn, proportion, r->possibleconditioncount))
       dlnow += description_length_of_rule(*rule, r->possibleconditioncount);
     rule = rule->next;
    }
  }
 dlnow += description_length_of_exceptions(covered, uncovered, fp, fn, proportion);
 return dlnow;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movl 0x18(%rbp), %eax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movq %r8, -0x20(%rbp)
movq %r9, -0x28(%rbp)
movsd %xmm0, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x44(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x58(%rbp)
movq -0x18(%rbp), %rdi
callq 0x449f0
movl %eax, -0x70(%rbp)
movq -0x20(%rbp), %rdi
callq 0x449f0
movl %eax, %ecx
movl -0x70(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x6c(%rbp)
movq -0x28(%rbp), %rdi
callq 0x449f0
movl %eax, %ecx
movl -0x6c(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x68(%rbp)
movq 0x10(%rbp), %rdi
callq 0x449f0
movl %eax, %ecx
movl -0x68(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x18240
movl %eax, -0x64(%rbp)
movq -0x20(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x18240
movl %eax, %ecx
movl -0x64(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x60(%rbp)
movq -0x28(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x18240
movl %eax, %ecx
movl -0x60(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x5c(%rbp)
movq 0x10(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x18240
movl %eax, %ecx
movl -0x5c(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x40(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x50(%rbp)
movb %al, -0x71(%rbp)
je 0xd9d66
movq -0x50(%rbp), %rax
movl (%rax), %eax
cmpl -0xc(%rbp), %eax
setne %al
movb %al, -0x71(%rbp)
movb -0x71(%rbp), %al
testb $0x1, %al
jne 0xd9d6f
jmp 0xd9d86
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
movq -0x50(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x50(%rbp)
jmp 0xd9d4b
jmp 0xd9d88
movl -0x44(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0xd9e2f
movq -0x50(%rbp), %rcx
movq -0x8(%rbp), %rax
movl 0x20(%rax), %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
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movq -0x50(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x50(%rbp), %rax
addl 0x8(%rax), %ecx
movl -0x38(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x38(%rbp)
movq -0x50(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x50(%rbp), %rcx
addl 0x8(%rcx), %eax
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x50(%rbp), %rax
movl 0x8(%rax), %eax
addl -0x3c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x50(%rbp), %rax
movl 0x4(%rax), %ecx
movl -0x40(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x40(%rbp)
movq -0x50(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x50(%rbp)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0xd9d88
cmpl $0x0, 0x18(%rbp)
jne 0xd9e41
movq -0x50(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0xd9f46
movq -0x50(%rbp), %rdi
callq 0xadc50
movq -0x50(%rbp), %rdi
movq -0x18(%rbp), %rsi
leaq -0x34(%rbp), %rdx
leaq -0x38(%rbp), %rcx
leaq -0x3c(%rbp), %r8
leaq -0x40(%rbp), %r9
callq 0xd9f80
movq -0x50(%rbp), %rdi
movq -0x20(%rbp), %rsi
leaq -0x34(%rbp), %rdx
leaq -0x38(%rbp), %rcx
leaq -0x3c(%rbp), %r8
leaq -0x40(%rbp), %r9
callq 0xd9f80
movq -0x50(%rbp), %rdi
movq -0x28(%rbp), %rsi
leaq -0x34(%rbp), %rdx
leaq -0x38(%rbp), %rcx
leaq -0x3c(%rbp), %r8
leaq -0x40(%rbp), %r9
callq 0xd9f80
movq -0x50(%rbp), %rdi
movq 0x10(%rbp), %rsi
leaq -0x34(%rbp), %rdx
leaq -0x38(%rbp), %rcx
leaq -0x3c(%rbp), %r8
leaq -0x40(%rbp), %r9
callq 0xd9f80
cmpq $0x0, -0x50(%rbp)
je 0xd9f44
movq -0x50(%rbp), %rdi
movsd -0x30(%rbp), %xmm0
movq -0x8(%rbp), %rax
movl 0x20(%rax), %r9d
leaq -0x34(%rbp), %rsi
leaq -0x38(%rbp), %rdx
leaq -0x3c(%rbp), %rcx
leaq -0x40(%rbp), %r8
callq 0xda090
cmpl $0x0, %eax
jne 0xd9f36
movq -0x50(%rbp), %rcx
movq -0x8(%rbp), %rax
movl 0x20(%rax), %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
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movq -0x50(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x50(%rbp)
jmp 0xd9ec9
jmp 0xd9f46
movl -0x34(%rbp), %edi
movl -0x38(%rbp), %esi
movl -0x3c(%rbp), %edx
movl -0x40(%rbp), %ecx
movsd -0x30(%rbp), %xmm0
callq 0xabdd0
addsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movsd -0x58(%rbp), %xmm0
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)