// File: /workspace/github_cpp_makefile_star2_O2/lionalion[P]clusterization/clust_w2v.cpp
// Function: postClast(std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>, std::vector<std::vector<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>, std::allocator<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>>>, std::allocator<std::vector<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>, std::allocator<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>>>>>, int, float, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&, std::vector<std::vector<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>, std::allocator<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>>>, std::allocator<std::vector<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>, std::allocator<std::map<int, float, std::less<int>, std::allocator<std::pair<int const, float>>>>>>>&)
void postClast (std::vector < std::vector < int > > vIdStr,std::vector < std::vector <std::map<int,float> > > vMapCls, int th3, float th4, std::vector < std::vector < int > > & vOutIdStr, std::vector < std::vector <std::map<int,float> > > & vOutMapCls){
	std::multimap <int,int> SizeMapCls;
	int n=0;
	for (int k=0; k<vMapCls.size(); k++)
		SizeMapCls.insert(std::pair<int,int>( vMapCls[k].size(),k )); 

	std::vector <int> vCheck;			
	for (std::multimap<int,int>::const_reverse_iterator rit = SizeMapCls.rbegin(); rit != SizeMapCls.rend(); ++rit){		
		bool flg_x=false;
		for (int q=0; q<vCheck.size(); q++){
			if (vCheck[q] == (*rit).second)
				flg_x=true;
		}
		if (vIdStr[(*rit).second].size() > th3 && flg_x==false){	
			vOutIdStr.resize( vOutIdStr.size()+1 );
			vOutMapCls.resize( vOutMapCls.size()+1 );
			for (int h=0; h< vIdStr[(*rit).second].size(); h++){							
				vOutIdStr[n].push_back(vIdStr[(*rit).second][h]); 							
				vOutMapCls[n].push_back(vMapCls[(*rit).second][h]); 
			}
			for ( std::multimap<int,int>::const_reverse_iterator tir = rit; tir != SizeMapCls.rend(); ++tir){
				bool flg_y=false;
				for (int q=0; q<vCheck.size(); q++){
					if (vCheck[q] == (*tir).second)
						flg_y=true;
				}
				if ((*rit).second!=(*tir).second && flg_y==false){
					int cnt=0;
					if (vIdStr[(*tir).second].size() > th3){
						for (int w=0; w<vIdStr[(*rit).second].size(); w++){
							for (int z=0; z<vIdStr[(*tir).second].size(); z++){
								if (vIdStr[(*rit).second][w] == vIdStr[(*tir).second][z]) {
									cnt++;
									break;
								}
							}
						}
						if ( cnt > vIdStr[(*tir).second].size()*th4){
							for (int g=0; g< vIdStr[(*tir).second].size(); g++){ 
								bool be=false;
								for (int j=0; j< vOutIdStr[n].size(); j++){
									if(vOutIdStr[n][j] == vIdStr[(*tir).second][g])
										be=true;
								}
								if (be==false){
									vOutIdStr[n].push_back(vIdStr[(*tir).second][g]);
									vOutMapCls[n].push_back(vMapCls[(*tir).second][g]);
								}
							}
							vCheck.push_back((*tir).second);
						}
					}
				}
			}	
			n++;					
		}		
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %r8, -0x50(%rbp)
movq %rcx, %r13
movss %xmm0, -0x6c(%rbp)
movl %edx, -0x30(%rbp)
leaq -0xc0(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
movq %rsi, -0x60(%rbp)
movq %rdi, -0x40(%rbp)
pushq $0x8
popq %rbx
xorl %r14d, %r14d
pushq $0x30
popq %r12
leaq -0x90(%rbp), %r15
movq -0x60(%rbp), %rax
movq (%rax), %rcx
movq 0x8(%rax), %rax
subq %rcx, %rax
cqto
pushq $0x18
popq %rsi
idivq %rsi
cmpq %r14, %rax
jbe 0x2560
movq (%rcx,%rbx), %rax
subq -0x8(%rcx,%rbx), %rax
cqto
idivq %r12
movl %eax, -0x90(%rbp)
movl %r14d, -0x8c(%rbp)
leaq -0xc8(%rbp), %rdi
movq %r15, %rsi
callq 0x4804
incq %r14
addq $0x18, %rbx
jmp 0x2512
xorps %xmm0, %xmm0
leaq -0x90(%rbp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movslq -0x30(%rbp), %rax
movq %rax, -0x98(%rbp)
movq $0x0, -0x48(%rbp)
movq -0xb0(%rbp), %rbx
leaq -0xc0(%rbp), %rax
movq %r13, -0x58(%rbp)
cmpq %rbx, %rax
je 0x2919
movq %rbx, -0x30(%rbp)
movq %rax, -0x38(%rbp)
movq -0x90(%rbp), %rax
movq -0x88(%rbp), %r12
movq %rax, %r13
subq %rax, %r12
sarq $0x2, %r12
xorl %r14d, %r14d
xorl %ebx, %ebx
cmpq %r14, %r12
je 0x25ea
movl (%r13,%r14,4), %r15d
movq -0x38(%rbp), %rdi
callq 0x2120
cmpl 0x24(%rax), %r15d
movzbl %bl, %ebx
pushq $0x1
popq %rax
cmovel %eax, %ebx
incq %r14
jmp 0x25c5
movq -0x38(%rbp), %r15
movq %r15, %rdi
callq 0x2120
movslq 0x24(%rax), %rax
movq -0x40(%rbp), %rcx
movq (%rcx), %rcx
imulq $0x18, %rax, %rax
movq 0x8(%rcx,%rax), %rdx
subq (%rcx,%rax), %rdx
sarq $0x2, %rdx
cmpq -0x98(%rbp), %rdx
jbe 0x26fc
andb $0x1, %bl
movq -0x58(%rbp), %r13
jne 0x26fc
movq 0x8(%r13), %rax
subq (%r13), %rax
cqto
pushq $0x18
popq %rbx
idivq %rbx
leaq 0x1(%rax), %rsi
movq %r13, %rdi
callq 0x40fc
movq -0x50(%rbp), %rdi
movq 0x8(%rdi), %rax
subq (%rdi), %rax
cqto
idivq %rbx
leaq 0x1(%rax), %rsi
callq 0x413e
movslq -0x48(%rbp), %rax
imulq $0x18, %rax, %rax
movq %rax, -0x68(%rbp)
xorl %r13d, %r13d
xorl %r12d, %r12d
xorl %ebx, %ebx
movq %r15, %rdi
callq 0x2120
movslq 0x24(%rax), %rax
movq -0x40(%rbp), %rcx
movq (%rcx), %rcx
imulq $0x18, %rax, %rax
movq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rax
subq %rsi, %rax
sarq $0x2, %rax
cmpq %rbx, %rax
jbe 0x2705
movq -0x58(%rbp), %rax
movq (%rax), %rdi
movq -0x68(%rbp), %r14
addq %r14, %rdi
addq %r12, %rsi
callq 0x4180
movq -0x50(%rbp), %rax
movq (%rax), %r15
addq %r14, %r15
movq -0x38(%rbp), %rdi
callq 0x2120
movslq 0x24(%rax), %rax
movq -0x60(%rbp), %rcx
movq (%rcx), %rcx
imulq $0x18, %rax, %rax
movq (%rcx,%rax), %rsi
addq %r13, %rsi
movq %r15, %rdi
callq 0x41a6
incq %rbx
addq $0x4, %r12
addq $0x30, %r13
movq -0x38(%rbp), %r15
jmp 0x2675
movq -0x30(%rbp), %rbx
jmp 0x290c
movq %r15, %rbx
cmpq -0xb0(%rbp), %rbx
je 0x2902
movq %rbx, -0x30(%rbp)
movq -0x90(%rbp), %r12
movq -0x88(%rbp), %r14
subq %r12, %r14
sarq $0x2, %r14
xorl %r15d, %r15d
xorl %ebx, %ebx
cmpq %r15, %r14
je 0x2757
movl (%r12,%r15,4), %r13d
movq -0x30(%rbp), %rdi
callq 0x2120
cmpl 0x24(%rax), %r13d
movzbl %bl, %ebx
pushq $0x1
popq %rax
cmovel %eax, %ebx
incq %r15
jmp 0x2733
movq -0x38(%rbp), %r15
movq %r15, %rdi
callq 0x2120
movslq 0x24(%rax), %r14
movq -0x30(%rbp), %rdi
callq 0x2120
movslq 0x24(%rax), %rax
cmpl %eax, %r14d
movq -0x58(%rbp), %r13
je 0x28f1
andb $0x1, %bl
jne 0x28f1
movq -0x40(%rbp), %rcx
movq (%rcx), %r12
imulq $0x18, %rax, %rax
movq (%r12,%rax), %rdx
movq 0x8(%r12,%rax), %rax
subq %rdx, %rax
sarq $0x2, %rax
cmpq -0x98(%rbp), %rax
jbe 0x28f1
imulq $0x18, %r14, %rcx
movq (%r12,%rcx), %rsi
movq 0x8(%r12,%rcx), %rdi
subq %rsi, %rdi
sarq $0x2, %rdi
xorl %r8d, %r8d
xorl %ecx, %ecx
cmpq %rdi, %r8
je 0x27f0
movl (%rsi,%r8,4), %r9d
xorl %r10d, %r10d
cmpq %r10, %rax
je 0x27eb
leaq 0x1(%r10), %r11
cmpl (%rdx,%r10,4), %r9d
movq %r11, %r10
jne 0x27d7
incl %ecx
incq %r8
jmp 0x27cb
testq %rax, %rax
js 0x27fc
cvtsi2ss %rax, %xmm0
jmp 0x2811
movq %rax, %rdx
shrq %rdx
andl $0x1, %eax
orq %rdx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %ecx, %xmm1
mulss -0x6c(%rbp), %xmm0
ucomiss %xmm0, %xmm1
jbe 0x28f1
xorl %ebx, %ebx
movq -0x50(%rbp), %r14
movq -0x30(%rbp), %rdi
callq 0x2120
movslq 0x24(%rax), %rcx
imulq $0x18, %rcx, %rcx
movq (%r12,%rcx), %rdx
movq 0x8(%r12,%rcx), %rcx
subq %rdx, %rcx
sarq $0x2, %rcx
cmpq %rbx, %rcx
jbe 0x28de
movq (%r13), %rcx
movq -0x68(%rbp), %rsi
leaq (%rcx,%rsi), %rdi
movq (%rcx,%rsi), %rax
movq 0x8(%rcx,%rsi), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
leaq (%rdx,%rbx,4), %rsi
xorl %edx, %edx
xorl %r8d, %r8d
cmpq %rdx, %rcx
je 0x2895
movl (%rax,%rdx,4), %r9d
cmpl (%rsi), %r9d
movzbl %r8b, %r8d
pushq $0x1
popq %r9
cmovel %r9d, %r8d
incq %rdx
jmp 0x2878
testb $0x1, %r8b
jne 0x28d6
callq 0x4180
movq (%r14), %r12
addq -0x68(%rbp), %r12
movq -0x30(%rbp), %rdi
callq 0x2120
movslq 0x24(%rax), %rax
movq -0x60(%rbp), %rcx
movq (%rcx), %rcx
imulq $0x18, %rax, %rax
imulq $0x30, %rbx, %rsi
addq (%rcx,%rax), %rsi
movq %r12, %rdi
callq 0x41a6
movq -0x40(%rbp), %rax
movq (%rax), %r12
incq %rbx
jmp 0x2829
addq $0x24, %rax
leaq -0x90(%rbp), %rdi
movq %rax, %rsi
callq 0x4180
movq -0x30(%rbp), %rdi
callq 0x2120
movq %rax, %rbx
jmp 0x2708
movq -0x48(%rbp), %rax
incl %eax
movq %rax, -0x48(%rbp)
movq %r15, %rdi
callq 0x2120
jmp 0x2597
leaq -0x90(%rbp), %rdi
callq 0x4954
leaq -0xc8(%rbp), %rdi
callq 0x46b0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x294e
movq %rax, %rbx
jmp 0x295d
jmp 0x294e
jmp 0x294e
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x4954
leaq -0xc8(%rbp), %rdi
callq 0x46b0
movq %rbx, %rdi
callq 0x2300