// File: /workspace/github_cpp_makefile_star2_O3/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Clustering/../../algorithms/Clustering/clustering.h
// Function: Clustering<double>::Clustering(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>>, unsigned int, unsigned int, unsigned int)
Clustering(std::string assignment_method, std::vector<std::vector<T>> feature_vectors,
			uint32_t k, uint32_t lsh_l, uint32_t lsh_k): feature_vectors(feature_vectors), k(k), lsh_l(lsh_l), lsh_k(lsh_k) {
				if (assignment_method != "reverse_LSH") {
					cout << "Wrong assignment method selected\n";
					exit(EXIT_FAILURE);
				}	
				// initialize all the classs fields necessary
				this->assignment_method = assignment_method;

				// default lsh arguments
				uint32_t m = pow(2,32) - 5;
				uint32_t M = n_points / 16;
				uint32_t w = 10000;
				
				n_points = feature_vectors.size();
				assert(n_points);
				space_dim = feature_vectors.at(0).size();

				// initialize the lsh class
				lsh_instant = new LSH<T>(lsh_l, m, M, n_points, lsh_k, space_dim, w, feature_vectors);

				vector<int> assigned(n_points, 0);
				assigned_centroid = assigned;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %r9d, %r13d
movl %r8d, %ebp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movl %ecx, (%rdi)
leaq 0x10(%rdi), %rax
movq %rax, 0x18(%rsp)
leaq 0x20(%rdi), %rax
movq %rax, 0x28(%rsp)
movq %rax, 0x10(%rdi)
xorl %eax, %eax
movq %rax, 0x18(%rdi)
movb $0x0, 0x20(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
movq %rax, 0x40(%rdi)
leaq 0x48(%rdi), %r12
movq %r12, %rdi
movq %rdx, %rsi
callq 0x4594
leaq 0x60(%r14), %rax
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%r14)
movq $0x0, 0x70(%r14)
movl %ebp, 0x8(%rsp)
movl %ebp, 0x78(%r14)
movl %r13d, 0xc(%rsp)
movl %r13d, 0x7c(%r14)
leaq 0x6a23(%rip), %rsi      # 0xb283
movq %r15, %rdi
callq 0x20a0
testl %eax, %eax
movq %r12, 0x20(%rsp)
jne 0x497f
movq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x2160
movl 0x4(%r14), %eax
leal 0xf(%rax), %r12d
testl %eax, %eax
cmovnsl %eax, %r12d
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %r15 # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %r15
movl %r15d, 0x4(%r14)
testl %r15d, %r15d
je 0x499c
cmpq %rax, %rcx
je 0x49bb
movq 0x8(%rax), %r13
subq (%rax), %r13
shrq $0x3, %r13
movl %r13d, 0x8(%r14)
movl $0x68, %edi
callq 0x2290
movq %rax, %rbp
leaq 0x50(%rsp), %rdi
movq %rbx, %rsi
callq 0x4594
sarl $0x4, %r12d
subq $0x8, %rsp
movl $0xfffffffb, %edx       # imm = 0xFFFFFFFB
movq %rbp, %rdi
movl 0x10(%rsp), %esi
movl %r12d, %ecx
movl %r15d, %r8d
movl 0x14(%rsp), %r9d
leaq 0x58(%rsp), %rax
pushq %rax
pushq $0x2710                 # imm = 0x2710
pushq %r13
callq 0x59d6
addq $0x20, %rsp
movq %rbp, 0x80(%r14)
leaq 0x50(%rsp), %rdi
callq 0x3656
movslq 0x4(%r14), %rsi
leaq 0x34(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0x38(%rsp), %rdi
leaq 0x7(%rsp), %rcx
callq 0x5762
leaq 0x38(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x58de
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x4970
callq 0x2260
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xb652(%rip), %rdi      # 0xffd8
leaq 0x6a0c(%rip), %rsi      # 0xb399
callq 0x2280
movl $0x1, %edi
callq 0x22e0
leaq 0x6a18(%rip), %rdi      # 0xb3bb
leaq 0x6a1a(%rip), %rsi      # 0xb3c4
leaq 0x6ae1(%rip), %rcx      # 0xb492
movl $0x9b, %edx
callq 0x21a0
leaq 0x6963(%rip), %rdi      # 0xb325
xorl %esi, %esi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2370
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x4a05
jmp 0x49f4
jmp 0x4a02
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x3656
jmp 0x49f1
movq %rax, %rbx
movq %rbp, %rdi
callq 0x2260
jmp 0x4a05
movq %rax, %rbx
jmp 0x4a21
jmp 0x4a02
movq %rax, %rbx
movq 0x10(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x4a17
callq 0x2260
movq 0x20(%rsp), %rdi
callq 0x3656
addq $0x30, %r14
movq %r14, %rdi
callq 0x3656
movq 0x18(%rsp), %rax
movq (%rax), %rdi
cmpq 0x28(%rsp), %rdi
je 0x4a41
callq 0x2260
movq %rbx, %rdi
callq 0x2450
nop