// File: /workspace/github_cpp_makefile_star2_O1/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, unsigned int)
Clustering(std::string assignment_method, std::vector<std::vector<T>> feature_vectors, uint32_t k,
			uint32_t hc_M, uint32_t hc_k, uint32_t hc_probes): feature_vectors(feature_vectors), k(k),
			hc_M(hc_M), hc_k(hc_k), hc_probes(hc_probes) {
				if (assignment_method != "reverse_Hypercube") {
					cout << "Wrong assignment method selected\n";
					exit(EXIT_FAILURE);
				}	
				// initialize all the classs fields necessary
				this->assignment_method = assignment_method;

				// default hypercube arguments
				uint32_t m = pow(2,32) - 5;
				uint32_t w = 10000;

				
				n_points = feature_vectors.size();
				assert(n_points);
				space_dim = feature_vectors.at(0).size();

				hc_instant = new Hypercube<T>(hc_k, m, hc_M, hc_probes, n_points, w, space_dim, 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, %ebp
movl %r8d, %r13d
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 0x4574
movl 0xa0(%rsp), %ecx
leaq 0x60(%r14), %rax
movq %rax, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%r14)
movq $0x0, 0x70(%r14)
movl %r13d, 0xc(%rsp)
movl %r13d, 0x88(%r14)
movl %ebp, 0x8(%rsp)
movl %ebp, 0x8c(%r14)
movl %ecx, 0x90(%r14)
leaq 0x67fe(%rip), %rsi      # 0xb2c6
movq %r15, %rdi
callq 0x20a0
testl %eax, %eax
movq %r12, 0x20(%rsp)
jne 0x4bd7
movq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x2160
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %r12
movl %r12d, 0x4(%r14)
testl %r12d, %r12d
je 0x4bf4
cmpq %rax, %rcx
je 0x4c13
movq 0x8(%rax), %rbp
subq (%rax), %rbp
shrq $0x3, %rbp
movl %ebp, 0x8(%r14)
movl $0x88, %edi
callq 0x2290
movq %rax, %r15
leaq 0x50(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4574
subq $0x8, %rsp
movl $0xfffffffb, %edx       # imm = 0xFFFFFFFB
movq %r15, %rdi
movl 0x10(%rsp), %esi
movl 0x14(%rsp), %ecx
movl 0xa8(%rsp), %r8d
movl %r12d, %r9d
pushq %r13
pushq %rbp
pushq $0x2710                 # imm = 0x2710
callq 0x705c
addq $0x20, %rsp
movq %r15, 0x98(%r14)
leaq 0x50(%rsp), %rdi
callq 0x3618
movslq 0x4(%r14), %rsi
leaq 0x34(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0x38(%rsp), %rdi
leaq 0x7(%rsp), %rcx
callq 0x578a
leaq 0x38(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x58fe
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x4bc8
callq 0x2260
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xb3fa(%rip), %rdi      # 0xffd8
leaq 0x67d4(%rip), %rsi      # 0xb3b9
callq 0x2280
movl $0x1, %edi
callq 0x22e0
leaq 0x67e0(%rip), %rdi      # 0xb3db
leaq 0x67e2(%rip), %rsi      # 0xb3e4
leaq 0x69b6(%rip), %rcx      # 0xb5bf
movl $0xb6, %edx
callq 0x21a0
leaq 0x672b(%rip), %rdi      # 0xb345
xorl %esi, %esi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2370
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x4c5d
jmp 0x4c4c
jmp 0x4c5a
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x3618
jmp 0x4c49
movq %rax, %rbx
movq %r15, %rdi
callq 0x2260
jmp 0x4c5d
movq %rax, %rbx
jmp 0x4c79
jmp 0x4c5a
movq %rax, %rbx
movq 0x10(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x4c6f
callq 0x2260
movq 0x20(%rsp), %rdi
callq 0x3618
addq $0x30, %r14
movq %r14, %rdi
callq 0x3618
movq 0x18(%rsp), %rax
movq (%rax), %rdi
cmpq 0x28(%rsp), %rdi
je 0x4c99
callq 0x2260
movq %rbx, %rdi
callq 0x2450
nop