// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/rule.c
// Function: update_counts_ruleset
void update_counts_ruleset(Ruleset r, Instanceptr list)
{
	/*!Last Changed 18.03.2004*/
	int i;
 BOOLEAN covered;
	Decisionruleptr tmp;
	Instanceptr test = list;
 for (i = 0; i < current_dataset->classno; i++)
   r.counts[i] = 0;
	tmp = r.start;
	while (tmp)
	 {
		 tmp->covered = 0;
			tmp->falsepositives = 0;
   for (i = 0; i < current_dataset->classno; i++)
     tmp->counts[i] = 0;
		 tmp = tmp->next;
	 }
 while (test)
  {
   i = give_classno(test);
   covered = BOOLEAN_FALSE;
			tmp = r.start;
			while (tmp)
			 {
				 if (rule_cover_instance(test, *tmp))
					 {
       tmp->counts[i]++;
						 tmp->covered++;
       if (i != tmp->classno)
								 tmp->falsepositives++;
       covered = BOOLEAN_TRUE;
							break;
					 }
				 tmp = tmp->next;
			 }
   if (!covered)
     r.counts[i]++;
   test = test->next;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
leaq 0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
leaq 0x56cc3(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
cmpl 0x10(%rcx), %eax
jge 0xaeba3
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0xc(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xaeb73
movq -0x28(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0xaec10
movq -0x18(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x18(%rbp), %rax
movl $0x0, 0x8(%rax)
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
leaq 0x56c64(%rip), %rcx     # 0x105840
movq (%rcx), %rcx
cmpl 0x10(%rcx), %eax
jge 0xaec02
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0xc(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xaebd2
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xaebae
jmp 0xaec12
cmpq $0x0, -0x20(%rbp)
je 0xaecfb
movq -0x20(%rbp), %rdi
callq 0x43530
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0xaeccf
movq -0x20(%rbp), %rdi
movq -0x18(%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 0xaecbe
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0xc(%rbp), %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x4(%rax)
movl -0xc(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl (%rcx), %eax
je 0xaecb5
movq -0x18(%rbp), %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x8(%rax)
movl $0x1, -0x10(%rbp)
jmp 0xaeccf
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xaec3d
cmpl $0x0, -0x10(%rbp)
jne 0xaecea
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0xc(%rbp), %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0xaec12
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)