// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/rule.c
// Function: condition_cover_instance2
int condition_cover_instance2(Instanceptr instance, Decisionconditionptr condition)
{
	/*!Last Changed 19.09.2004*/
	int fno;
	double combin;
	fno = condition->featureindex;
	if (fno >= 0)
	 {
	  if (condition->conditiontype == HYBRID_CONDITION)
			 {
     if (dequal(real_feature(instance, fno), condition->value))
						 return NO;
     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;
				    	           break;
		     case    REAL:if (condition->comparison == '<' && instance->values[fno].floatvalue >= condition->value - 0.0001)
				    														return NO;
				  	             if (condition->comparison == '>' && instance->values[fno].floatvalue <= condition->value + 0.0001)
				  			  	 									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 && condition->comparison == '>')
						 return NO;
					if (combin > condition->w0 && condition->comparison == '<')
						 return NO;
			 }
	return YES;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %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 0xae193
movq -0x18(%rbp), %rax
cmpl $0x2, 0x40(%rax)
jne 0xae028
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x42c40
movq -0x18(%rbp), %rax
movsd 0x8(%rax), %xmm1
callq 0x526b0
cmpl $0x0, %eax
je 0xadfbc
movl $0x0, -0x4(%rbp)
jmp 0xae226
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3c, %eax
jne 0xadfec
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x42c40
movq -0x18(%rbp), %rax
ucomisd 0x8(%rax), %xmm0
jbe 0xadfec
movl $0x0, -0x4(%rbp)
jmp 0xae226
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3e, %eax
jne 0xae023
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 0xae023
movl $0x0, -0x4(%rbp)
jmp 0xae226
jmp 0xae18e
leaq 0x57811(%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 0xae068
jmp 0xae04d
movl -0x2c(%rbp), %eax
subl $0x1, %eax
je 0xae15f
jmp 0xae05b
movl -0x2c(%rbp), %eax
subl $0x2, %eax
je 0xae0d9
jmp 0xae18c
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3c, %eax
jne 0xae09c
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
cvtsi2sdl (%rax,%rcx,8), %xmm0
movq -0x18(%rbp), %rax
ucomisd 0x8(%rax), %xmm0
jb 0xae09c
movl $0x0, -0x4(%rbp)
jmp 0xae226
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3e, %eax
jne 0xae0d4
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
jb 0xae0d4
movl $0x0, -0x4(%rbp)
jmp 0xae226
jmp 0xae18c
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3c, %eax
jne 0xae11d
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x18(%rbp), %rax
movsd 0x8(%rax), %xmm1
movsd 0x363f1(%rip), %xmm2    # 0xe44f8
subsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jb 0xae11d
movl $0x0, -0x4(%rbp)
jmp 0xae226
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3e, %eax
jne 0xae15d
movq -0x10(%rbp), %rax
movq (%rax), %rax
movslq -0x1c(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq -0x18(%rbp), %rax
movsd 0x363b2(%rip), %xmm0    # 0xe44f8
addsd 0x8(%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0xae15d
movl $0x0, -0x4(%rbp)
jmp 0xae226
jmp 0xae18c
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 0xae17e
jp 0xae17e
jmp 0xae18a
movl $0x0, -0x4(%rbp)
jmp 0xae226
jmp 0xae18c
jmp 0xae18e
jmp 0xae21f
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 0xae21d
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 0x30(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xae1f5
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3e, %eax
jne 0xae1f5
movl $0x0, -0x4(%rbp)
jmp 0xae226
movsd -0x28(%rbp), %xmm0
movq -0x18(%rbp), %rax
ucomisd 0x30(%rax), %xmm0
jbe 0xae21b
movq -0x18(%rbp), %rax
movsbl 0x4(%rax), %eax
cmpl $0x3c, %eax
jne 0xae21b
movl $0x0, -0x4(%rbp)
jmp 0xae226
jmp 0xae21d
jmp 0xae21f
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nop