// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/rule.c
// Function: condition_cover_instance
int condition_cover_instance(Instanceptr instance, Decisionconditionptr condition)
{
	/*!Last Changed 22.01.2004*/
	/*!Last Changed 09.01.2004*/
	/*!Last Changed 10.05.2003*/
	int fno;
	double combin;
	fno = condition->featureindex;
	if (fno >= 0)
	 {
	  if (condition->conditiontype == HYBRID_CONDITION)
			 {
     if (condition->comparison == '<' && real_feature(instance, fno) > condition->value)
				   return NO;
				 if (condition->comparison == '>' && real_feature(instance, fno) < condition->value)
				  	return NO;
			 }
			else
			 {
    	switch (current_dataset->features[fno].type)
					 {
	    	 case INTEGER:if (condition->comparison == '<' && instance->values[fno].intvalue > condition->value)
		    	 														return NO;
			   		 	          if (condition->comparison == '>' && instance->values[fno].intvalue < condition->value)
				    														return NO;
                    if (condition->comparison == '*' && (instance->values[fno].intvalue > condition->upperlimit || instance->values[fno].intvalue < condition->lowerlimit))
                      return NO;
				    	           break;
		     case    REAL:if (condition->comparison == '<' && instance->values[fno].floatvalue > condition->value)
				    														return NO;
				  	             if (condition->comparison == '>' && instance->values[fno].floatvalue < condition->value)
				  			  	 									return NO;
                    if (condition->comparison == '*' && (instance->values[fno].floatvalue > condition->upperlimit || instance->values[fno].floatvalue < condition->lowerlimit))
                      return NO;
					 						   					break;
   		 	case  STRING:if (instance->values[fno].stringindex != condition->value)
		    																return NO;
				    												break;
					 }
			 }
	 }
	else
		 if (in_list(fno, 2, LINEAR, QUADRATIC))
			 {
				 combin = multiply_with_matrix(instance, condition->w);
					if (combin < condition->w0 + 0.0001 && combin > condition->w0 - 0.0001)
						 return YES;
					if (combin < condition->w0 && condition->comparison == '>')
						 return NO;
					if (combin > condition->w0 && condition->comparison == '<')
						 return NO;
			 }
			else
				 if (fno == DISCRETEMIX)
					 {
							if (is_smaller_discrete_order(instance, condition->ksplit))
								 if (condition->comparison == '<')
								   return YES;
									else
										 return NO;
							else
								 if (condition->comparison == '>')
										 return YES;
									else
										 return NO;
					 }
	return YES;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jl 0xac256
movq -0x18(%rbp), %rax
cmpl $0x2, 0x40(%rax)
jne 0xac059
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3c, %eax
jne 0xac01d
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x42c40
movq -0x18(%rbp), %rax
ucomisd 0x8(%rax), %xmm0
jbe 0xac01d
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3e, %eax
jne 0xac054
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x42c40
movaps %xmm0, %xmm1
movq -0x18(%rbp), %rax
movsd 0x8(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xac054
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
jmp 0xac251
leaq 0x597e0(%rip), %rax     # 0x105840
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
imulq $0x340, %rcx, %rcx      # imm = 0x340
movl 0x30f08(%rax,%rcx), %eax
movl %eax, -0x2c(%rbp)
testl %eax, %eax
je 0xac09d
jmp 0xac07e
movl -0x2c(%rbp), %eax
subl $0x1, %eax
je 0xac222
jmp 0xac08c
movl -0x2c(%rbp), %eax
subl $0x2, %eax
je 0xac161
jmp 0xac24f
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3c, %eax
jne 0xac0d1
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,8), %xmm0
movq -0x18(%rbp), %rax
ucomisd 0x8(%rax), %xmm0
jbe 0xac0d1
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3e, %eax
jne 0xac109
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,8), %xmm1
movq -0x18(%rbp), %rax
movsd 0x8(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xac109
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x2a, %eax
jne 0xac15c
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,8), %xmm0
movq -0x18(%rbp), %rax
ucomisd 0x10(%rax), %xmm0
ja 0xac150
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,8), %xmm1
movq -0x18(%rbp), %rax
movsd 0x18(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xac15c
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
jmp 0xac24f
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3c, %eax
jne 0xac195
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x18(%rbp), %rax
ucomisd 0x8(%rax), %xmm0
jbe 0xac195
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3e, %eax
jne 0xac1cd
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq -0x18(%rbp), %rax
movsd 0x8(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xac1cd
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x2a, %eax
jne 0xac220
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x18(%rbp), %rax
ucomisd 0x10(%rax), %xmm0
ja 0xac214
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq -0x18(%rbp), %rax
movsd 0x18(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xac220
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
jmp 0xac24f
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,8), %xmm0
movq -0x18(%rbp), %rax
ucomisd 0x8(%rax), %xmm0
jne 0xac241
jp 0xac241
jmp 0xac24d
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
jmp 0xac24f
jmp 0xac251
jmp 0xac3b2
movl -0x1c(%rbp), %edi
movl $0x2, %esi
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
movb $0x0, %al
callq 0x53e40
cmpl $0x0, %eax
je 0xac332
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
callq 0x42fb0
movsd %xmm0, -0x28(%rbp)
movsd -0x28(%rbp), %xmm1
movq -0x18(%rbp), %rax
movsd 0x38255(%rip), %xmm0    # 0xe44f8
addsd 0x30(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xac2da
movsd -0x28(%rbp), %xmm0
movq -0x18(%rbp), %rax
movsd 0x30(%rax), %xmm1
movsd 0x38234(%rip), %xmm2    # 0xe44f8
subsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jbe 0xac2da
movl $0x1, -0x4(%rbp)
jmp 0xac3b9
movsd -0x28(%rbp), %xmm1
movq -0x18(%rbp), %rax
movsd 0x30(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xac307
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3e, %eax
jne 0xac307
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
movsd -0x28(%rbp), %xmm0
movq -0x18(%rbp), %rax
ucomisd 0x30(%rax), %xmm0
jbe 0xac330
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3c, %eax
jne 0xac330
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
jmp 0xac3b0
cmpl $-0x5, -0x1c(%rbp)
jne 0xac3ae
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
addq $0x50, %rax
movq (%rax), %rcx
movq %rcx, (%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
callq 0x29990
cmpl $0x0, %eax
je 0xac38f
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3c, %eax
jne 0xac386
movl $0x1, -0x4(%rbp)
jmp 0xac3b9
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3e, %eax
jne 0xac3a5
movl $0x1, -0x4(%rbp)
jmp 0xac3b9
movl $0x0, -0x4(%rbp)
jmp 0xac3b9
jmp 0xac3b0
jmp 0xac3b2
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)