// File: /workspace/github_cpp_makefile_star2_O2/mirkat1206[P]Quine-McCluskey-Petrick-Method/Quine_McCluskey.cpp
// Function: Quine_McCluskey::Generate_Prime_Impli()
void Quine_McCluskey::Generate_Prime_Impli() {
	vector<bool> flag;
	int size = Impli.size() ;
	for( int i=0 ; i<size ; i++ )
		flag.push_back( false );
	
	string s;
	vector<string> temp;
	for( int i=0 ; i<size ; i++ ) {
		for( int j=i+1 ; j<size ; j++ ) {
			if( is_GrayCode( Impli[i] , Impli[j] ) ) {
				string s = Merge( Impli[i] , Impli[j] ) ;
				if( find( temp.begin() , temp.end() , s )==temp.end() )
					temp.push_back( s );
				flag[i] = true ;
				flag[j] = true ;
			}
		}
		if( flag[i]==false ) 
			Prime_Impli.push_back( Impli[i] );
	}
	Impli.clear();
	size = temp.size() ;
	for( int i=0 ; i<size ; i++ )
		Impli.push_back( temp[i] );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
leaq -0xd0(%rbp), %r14
andq $0x0, (%r14)
andl $0x0, 0x8(%r14)
andq $0x0, 0x10(%r14)
andl $0x0, 0x18(%r14)
andq $0x0, 0x20(%r14)
leaq 0x50(%rdi), %rax
movq %rax, -0x30(%rbp)
movq 0x58(%rdi), %rax
movq %rdi, -0x58(%rbp)
subq 0x50(%rdi), %rax
shrq $0x5, %rax
xorl %r15d, %r15d
testl %eax, %eax
movq %rax, -0x88(%rbp)
cmovgl %eax, %r15d
movl %r15d, %r12d
subl $0x1, %r12d
jb 0x2cd8
movq %r14, %rdi
xorl %esi, %esi
callq 0x3338
jmp 0x2cc6
leaq -0x100(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorps %xmm0, %xmm0
leaq -0x50(%rbp), %rax
andq $0x0, 0x10(%rax)
movaps %xmm0, (%rax)
addq $0x68, -0x58(%rbp)
movl %r15d, %eax
movq %rax, -0x68(%rbp)
pushq $0x1
popq %r14
pushq $0x20
popq %r13
xorl %ecx, %ecx
leaq -0x150(%rbp), %r12
leaq -0xd0(%rbp), %rbx
cmpq -0x68(%rbp), %rcx
je 0x2e9e
leaq 0x1(%rcx), %rax
movq %rax, -0x70(%rbp)
movq %rcx, -0x60(%rbp)
shlq $0x5, %rcx
movq %rcx, -0x38(%rbp)
movq %r13, -0x78(%rbp)
movq %r14, -0x80(%rbp)
cmpl -0x88(%rbp), %r14d
jge 0x2e61
movq -0x30(%rbp), %r15
movq (%r15), %rsi
addq -0x38(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
callq 0x2230
movq (%r15), %rsi
addq %r13, %rsi
movq %r12, %rdi
callq 0x2230
leaq -0xf0(%rbp), %r15
movq %r15, %rsi
movq %r12, %rdx
callq 0x2f8c
movq %r12, %rdi
movl %eax, %r12d
callq 0x20c0
movq %r15, %rdi
callq 0x20c0
testb %r12b, %r12b
je 0x2e4e
movq %rbx, %r15
movq -0x30(%rbp), %rbx
movq (%rbx), %rsi
addq -0x38(%rbp), %rsi
leaq -0x130(%rbp), %r12
movq %r12, %rdi
callq 0x2230
movq (%rbx), %rsi
addq %r13, %rsi
leaq -0x170(%rbp), %rbx
movq %rbx, %rdi
callq 0x2230
leaq -0xa8(%rbp), %rdi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x2fc6
movq %rbx, %rdi
callq 0x20c0
movq %r12, %rdi
callq 0x20c0
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
callq 0x4cf3
cmpq -0x48(%rbp), %rax
jne 0x2e22
leaq -0x50(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x3384
movq %r15, %rbx
movq %r15, %rdi
movq -0x60(%rbp), %rsi
callq 0x33c0
orq %rdx, (%rax)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x33c0
orq %rdx, (%rax)
leaq -0xa8(%rbp), %rdi
callq 0x20c0
incq %r14
addq $0x20, %r13
leaq -0x150(%rbp), %r12
jmp 0x2d44
movq %rbx, %rdi
movq -0x60(%rbp), %rsi
callq 0x33c0
testq %rdx, (%rax)
movq -0x80(%rbp), %r14
movq -0x78(%rbp), %r13
jne 0x2e8e
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rsi
addq (%rax), %rsi
movq -0x58(%rbp), %rdi
callq 0x3384
incq %r14
addq $0x20, %r13
movq -0x70(%rbp), %rcx
jmp 0x2d1e
movq -0x30(%rbp), %rdi
callq 0x3404
movq -0x48(%rbp), %r14
subq -0x50(%rbp), %r14
shrq $0x5, %r14
xorl %r15d, %r15d
testl %r14d, %r14d
cmovlel %r15d, %r14d
shlq $0x5, %r14
cmpq %r15, %r14
je 0x2edc
movq -0x50(%rbp), %rsi
addq %r15, %rsi
movq -0x30(%rbp), %rdi
callq 0x3384
addq $0x20, %r15
jmp 0x2ec1
leaq -0x50(%rbp), %rdi
callq 0x28bc
leaq -0x110(%rbp), %rdi
callq 0x20c0
leaq -0xd0(%rbp), %rdi
callq 0x3412
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2f3a
jmp 0x2f3a
jmp 0x2f3a
movq %rax, %rbx
jmp 0x2f63
jmp 0x2f20
jmp 0x2f20
jmp 0x2f20
movq %rax, %rbx
leaq -0xa8(%rbp), %rdi
jmp 0x2f49
jmp 0x2f3a
movq %rax, %rbx
leaq -0x130(%rbp), %rdi
jmp 0x2f49
movq %rax, %rbx
jmp 0x2f4e
movq %rax, %rbx
leaq -0xf0(%rbp), %rdi
callq 0x20c0
leaq -0x50(%rbp), %rdi
callq 0x28bc
leaq -0x110(%rbp), %rdi
callq 0x20c0
leaq -0xd0(%rbp), %rdi
callq 0x3412
movq %rbx, %rdi
callq 0x22b0
nop