// File: /workspace/github_cpp_makefile_star2_O1/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 $0x138, %rsp            # imm = 0x138
xorl %eax, %eax
movq %rax, -0x50(%rbp)
movl %eax, -0x48(%rbp)
movq %rax, -0x40(%rbp)
movl %eax, -0x38(%rbp)
movq %rax, -0x30(%rbp)
movq 0x58(%rdi), %r15
movq %rdi, -0x78(%rbp)
subq 0x50(%rdi), %r15
shrq $0x5, %r15
testl %r15d, %r15d
jle 0x30f3
leaq -0x50(%rbp), %rbx
movl %r15d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3c2c
decl %r14d
jne 0x30e4
movq -0x78(%rbp), %rax
leaq 0x50(%rax), %r13
leaq -0xa0(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
movq %rax, -0x80(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x90(%rbp)
testl %r15d, %r15d
jle 0x3472
addq $0x68, -0x78(%rbp)
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
movl $0x1, %eax
movq %rax, -0xb8(%rbp)
xorl %eax, %eax
movq %rax, -0xc0(%rbp)
incq %rax
movq %rax, -0x110(%rbp)
cmpq %r15, %rax
jae 0x342b
movq -0xc0(%rbp), %rcx
movq %rcx, %rax
movl $0x1, %edx
shlq %cl, %rdx
movq %rdx, -0x118(%rbp)
shrq $0x6, %rax
movq %rax, -0x120(%rbp)
shlq $0x5, %rcx
movq %rcx, -0xc8(%rbp)
movq -0xb8(%rbp), %r14
movq (%r13), %rax
leaq -0xf8(%rbp), %rcx
movq %rcx, -0x108(%rbp)
movq -0xc8(%rbp), %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
addq %rsi, %rdx
leaq -0x108(%rbp), %rdi
callq 0x3ccc
movq %r15, %rbx
movq %r13, %r12
movq (%r13), %rax
movq %r14, %r13
shlq $0x5, %r13
leaq -0x150(%rbp), %rcx
movq %rcx, -0x160(%rbp)
movq (%rax,%r13), %rsi
movq 0x8(%rax,%r13), %rdx
addq %rsi, %rdx
leaq -0x160(%rbp), %rdi
callq 0x3ccc
movq -0x100(%rbp), %rax
xorl %r15d, %r15d
testl %eax, %eax
jle 0x323d
movq -0x108(%rbp), %rcx
movq -0x160(%rbp), %rdx
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %esi, %esi
movb (%rcx,%rsi), %dil
xorl %r8d, %r8d
cmpb (%rdx,%rsi), %dil
setne %r8b
addl %r8d, %r15d
incq %rsi
cmpq %rsi, %rax
jne 0x321b
cmpl $0x1, %r15d
sete %r15b
movq -0x160(%rbp), %rdi
leaq -0x150(%rbp), %rax
cmpq %rax, %rdi
je 0x325f
movq -0x150(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x108(%rbp), %rdi
leaq -0xf8(%rbp), %rax
cmpq %rax, %rdi
je 0x3281
movq -0xf8(%rbp), %rsi
incq %rsi
callq 0x21d0
testb %r15b, %r15b
je 0x3419
movq %r12, %r15
movq (%r12), %rax
leaq -0x60(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq -0xc8(%rbp), %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
addq %rsi, %rdx
leaq -0x70(%rbp), %rdi
callq 0x3ccc
movq (%r15), %rax
leaq -0x130(%rbp), %rcx
movq %rcx, -0x140(%rbp)
movq (%rax,%r13), %rsi
movq 0x8(%rax,%r13), %rdx
addq %rsi, %rdx
leaq -0x140(%rbp), %rdi
callq 0x3ccc
cmpl $0x0, -0x68(%rbp)
leaq -0xd8(%rbp), %r15
leaq -0x60(%rbp), %r13
jle 0x3365
movq -0x70(%rbp), %rax
movq -0x140(%rbp), %rcx
movb (%rax), %dl
cmpb (%rcx), %dl
jne 0x3317
xorl %esi, %esi
leaq 0x1(%rsi), %rdx
movb 0x1(%rax,%rsi), %dil
cmpb 0x1(%rcx,%rsi), %dil
movq %rdx, %rsi
je 0x3302
jmp 0x3319
xorl %edx, %edx
movb $0x2d, (%rax,%rdx)
movq %r15, -0xe8(%rbp)
movq -0x70(%rbp), %rax
cmpq %r13, %rax
je 0x3341
movq %rax, -0xe8(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0xd8(%rbp)
jmp 0x334a
movups (%r13), %xmm0
movups %xmm0, (%r15)
movq -0x68(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq %r13, -0x70(%rbp)
movq $0x0, -0x68(%rbp)
movb $0x0, -0x60(%rbp)
movq -0x140(%rbp), %rdi
leaq -0x130(%rbp), %rax
cmpq %rax, %rdi
je 0x3387
movq -0x130(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x339c
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
leaq -0xe8(%rbp), %rdx
callq 0x5741
cmpq -0x88(%rbp), %rax
jne 0x33d2
leaq -0x90(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x3c80
movq -0x50(%rbp), %rax
movq -0x120(%rbp), %rcx
movq -0x118(%rbp), %rdx
orq %rdx, (%rax,%rcx,8)
movq %r14, %rdx
movl $0x1, %esi
movl %r14d, %ecx
shlq %cl, %rsi
shrq $0x6, %rdx
orq %rsi, (%rax,%rdx,8)
movq -0xe8(%rbp), %rdi
cmpq %r15, %rdi
je 0x3419
movq -0xd8(%rbp), %rsi
incq %rsi
callq 0x21d0
incq %r14
movq %rbx, %r15
cmpq %rbx, %r14
movq %r12, %r13
jne 0x3190
movq -0x50(%rbp), %rax
movq -0xc0(%rbp), %rsi
movq %rsi, %rcx
shrq $0x6, %rcx
movq (%rax,%rcx,8), %rax
btq %rsi, %rax
jb 0x3458
shlq $0x5, %rsi
addq (%r13), %rsi
movq -0x78(%rbp), %rdi
callq 0x3c80
incq -0xb8(%rbp)
movq -0x110(%rbp), %rcx
movq %rcx, %rax
cmpq %r15, %rcx
jne 0x3140
movq (%r13), %rsi
movq %r13, %rdi
callq 0x5a9e
movq -0x88(%rbp), %r14
subq -0x90(%rbp), %r14
shrq $0x5, %r14
testl %r14d, %r14d
jle 0x34ba
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
xorl %r15d, %r15d
movq -0x90(%rbp), %rsi
addq %r15, %rsi
movq %r13, %rdi
callq 0x3c80
addq $0x20, %r15
decq %r14
jne 0x349f
leaq -0x90(%rbp), %rdi
callq 0x2bfe
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x34e8
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x3511
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
xorl %eax, %eax
movq %rax, -0x50(%rbp)
movl %eax, -0x48(%rbp)
movq %rax, -0x40(%rbp)
movl %eax, -0x38(%rbp)
movq %rax, -0x30(%rbp)
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x359d
jmp 0x359d
movq %rax, %rbx
jmp 0x35ce
jmp 0x3533
jmp 0x359d
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
cmpq %r15, %rdi
leaq -0xa0(%rbp), %r14
je 0x35a7
movq -0xd8(%rbp), %rsi
jmp 0x3593
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
leaq -0xa0(%rbp), %r14
je 0x35a7
movq -0x60(%rbp), %rsi
jmp 0x3593
movq %rax, %rbx
movq -0x108(%rbp), %rdi
leaq -0xf8(%rbp), %rax
cmpq %rax, %rdi
leaq -0xa0(%rbp), %r14
je 0x35a7
movq -0xf8(%rbp), %rsi
incq %rsi
callq 0x21d0
jmp 0x35a7
movq %rax, %rbx
leaq -0xa0(%rbp), %r14
leaq -0x90(%rbp), %rdi
callq 0x2bfe
movq -0xb0(%rbp), %rdi
cmpq %r14, %rdi
je 0x35ce
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x21d0
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x35f7
movq -0x30(%rbp), %rsi
subq %rdi, %rsi
callq 0x21d0
xorl %eax, %eax
movq %rax, -0x50(%rbp)
movl %eax, -0x48(%rbp)
movq %rax, -0x40(%rbp)
movl %eax, -0x38(%rbp)
movq %rax, -0x30(%rbp)
movq %rbx, %rdi
callq 0x22e0
nop