// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/lerils.c
// Function: description_length_of_ruleset_lerils
int description_length_of_ruleset_lerils(Ruleset rule_pool, int* included, Instanceptr instances, int positive)
{
 int i, exception = 0, literals = 0, M = rule_pool.rulecount, classno;
 BOOLEAN covered;
 Instanceptr tmp;
 Decisionruleptr current_rule;
 for (current_rule = rule_pool.start, i = 0; i < M; current_rule = current_rule->next, i++)
  {
   current_rule->falsepositives = 0;
   if (included[i])
     literals += current_rule->decisioncount;
  }
 tmp = instances;
 while (tmp)
  {
   classno = give_classno(tmp);
   covered = BOOLEAN_FALSE;
   for (current_rule = rule_pool.start, i = 0; i < M; current_rule = current_rule->next, i++)
     if (included[i] && rule_cover_instance(tmp, *current_rule))
      {
       covered = BOOLEAN_TRUE;
       break;
      }
   if ((covered && classno != positive) || (!covered && classno == positive))
    {
     if (covered)
       (current_rule->falsepositives)++;
     exception++;
    }
   tmp = tmp->next;
  }
 return exception + literals;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movl 0x10(%rax), %ecx
movl %ecx, -0x24(%rbp)
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x4f1d7
movq -0x40(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x4f1be
movq -0x40(%rbp), %rax
movl 0x28(%rax), %eax
addl -0x20(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x4f1c0
movq -0x40(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x40(%rbp)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x4f190
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x4f2c5
movq -0x38(%rbp), %rdi
callq 0x43530
movl %eax, %ecx
movq -0x48(%rbp), %rax
movl %ecx, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
movq (%rax), %rax
movq %rax, -0x40(%rbp)
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x4f27c
movq -0x8(%rbp), %rax
movslq -0x18(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
je 0x4f263
movq -0x38(%rbp), %rdi
movq -0x40(%rbp), %rcx
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 0xacfd0
cmpl $0x0, %eax
je 0x4f263
movl $0x1, -0x2c(%rbp)
jmp 0x4f27c
jmp 0x4f265
movq -0x40(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x40(%rbp)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x4f211
cmpl $0x0, -0x2c(%rbp)
je 0x4f28a
movl -0x28(%rbp), %eax
cmpl -0x14(%rbp), %eax
jne 0x4f298
cmpl $0x0, -0x2c(%rbp)
jne 0x4f2b4
movl -0x28(%rbp), %eax
cmpl -0x14(%rbp), %eax
jne 0x4f2b4
cmpl $0x0, -0x2c(%rbp)
je 0x4f2ab
movq -0x40(%rbp), %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x4f1df
movl -0x1c(%rbp), %eax
addl -0x20(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)