LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/epfml[P]Bi-Sent2Vec/src/main.cc
// Function: analogiesSent(int, char**)
void analogiesSent(int argc, char** argv) {
  int32_t k;
  if (argc == 4) {
    k = 10;
  } else if (argc == 5) {
    k = atoi(argv[4]);
  } else {
    printAnalogiesSentUsage();
    exit(EXIT_FAILURE);
  }
  FastText fasttext;
  fasttext.loadModel(std::string(argv[2]));
  fasttext.analogiesSent(k,std::string(argv[3]));
  exit(0);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r14
cmpl $0x4, %edi
je 0x18b3b
cmpl $0x5, %edi
jne 0x18bae
movq 0x20(%r14), %rdi
callq 0x44e0
movl %eax, %ebx
jmp 0x18b3e
pushq $0xa
popq %rbx
leaq 0x50(%rsp), %rdi
callq 0xf93c
movq 0x10(%r14), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x5b64
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
pushq $-0x1
popq %rcx
xorl %edx, %edx
callq 0x1066c
leaq 0x10(%rsp), %rdi
callq 0x46c8
movq 0x18(%r14), %rsi
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x5b64
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rdx
movl %ebx, %esi
callq 0x13d4c
leaq 0x30(%rsp), %rdi
callq 0x46c8
xorl %edi, %edi
callq 0x43b0
callq 0x1814f
pushq $0x1
popq %rdi
callq 0x43b0
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
jmp 0x18bcf
jmp 0x18bd6
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x46c8
jmp 0x18bd9
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x19066
movq %rbx, %rdi
callq 0x45d0
// File: /workspace/github_cpp_makefile_star2_O2/epfml[P]Bi-Sent2Vec/src/main.cc
// Function: train(int, char**)
void train(int argc, char** argv) {
  std::shared_ptr<Args> a = std::make_shared<Args>();
  a->parseArgs(argc, argv);
  FastText fasttext;
  fasttext.train(a);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x15b8c
movq (%r14), %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x4b20
leaq 0x28(%rsp), %rdi
callq 0xf93c
leaq 0x18(%rsp), %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x8b26
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0x15166
leaq 0x20(%rsp), %rdi
callq 0x8b66
leaq 0x28(%rsp), %rdi
callq 0x19066
leaq 0x10(%rsp), %rdi
callq 0x8b66
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x8b66
leaq 0x28(%rsp), %rdi
callq 0x19066
jmp 0x18c86
jmp 0x18c83
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x8b66
movq %rbx, %rdi
callq 0x45d0
// File: /workspace/github_cpp_makefile_star2_O2/epfml[P]Bi-Sent2Vec/src/main.cc
// Function: trainFromDict(int, char**)
void trainFromDict(int argc, char** argv) {
  std::shared_ptr<Args> a = std::make_shared<Args>();
  a->parseArgs(argc, argv);
  FastText fasttext;
  fasttext.savedDictTrain(a);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x15b8c
movq (%r14), %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x4b20
leaq 0x28(%rsp), %rdi
callq 0xf93c
leaq 0x18(%rsp), %rbx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x8b26
leaq 0x28(%rsp), %rdi
movq %rbx, %rsi
callq 0x14d12
leaq 0x20(%rsp), %rdi
callq 0x8b66
leaq 0x28(%rsp), %rdi
callq 0x19066
leaq 0x10(%rsp), %rdi
callq 0x8b66
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x8b66
leaq 0x28(%rsp), %rdi
callq 0x19066
jmp 0x18de0
jmp 0x18ddd
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x8b66
movq %rbx, %rdi
callq 0x45d0
// File: /workspace/github_cpp_makefile_star2_O2/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)
Clustering(std::string assignment_method, std::vector<std::vector<T>> feature_vectors, uint32_t k)
		: feature_vectors(feature_vectors), k(k) {
			if (assignment_method != "lloyds") {
				cout << "Wrong assignment method selected\n";
				exit(EXIT_FAILURE);
			}
			// initialize all the classs fields necessary
			this->assignment_method = assignment_method;
			n_points = feature_vectors.size();
			assert(n_points);
			space_dim = feature_vectors.at(0).size();

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

		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %rbx
movl %ecx, (%rdi)
leaq 0x20(%rdi), %rax
movq %rax, 0x10(%rdi)
andq $0x0, 0x18(%rdi)
leaq 0x10(%rdi), %r14
movb $0x0, 0x20(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
andq $0x0, 0x40(%rdi)
leaq 0x48(%rdi), %r15
movq %r15, %rdi
movq %rdx, %rsi
callq 0x3a92
leaq 0x60(%rbx), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rbx)
andq $0x0, 0x70(%rbx)
leaq 0x66ef(%rip), %rsi      # 0xa23b
movq %rbp, %rdi
callq 0x4895
testb %al, %al
jne 0x3bd3
movq %r14, %rdi
movq %rbp, %rsi
callq 0x2130
movq 0x8(%r13), %rax
subq (%r13), %rax
pushq $0x18
popq %rcx
cqto
idivq %rcx
movl %eax, 0x4(%rbx)
testl %eax, %eax
je 0x3bee
movq %r13, %rdi
xorl %esi, %esi
callq 0x4200
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
movl %ecx, 0x8(%rbx)
movslq 0x4(%rbx), %rsi
leaq 0xc(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0xb(%rsp), %rcx
callq 0x48a0
leaq 0x10(%rsp), %rsi
movq %r12, %rdi
callq 0x48f6
leaq 0x10(%rsp), %rdi
callq 0x4888
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc3fe(%rip), %rdi      # 0xffd8
leaq 0x675e(%rip), %rsi      # 0xa33f
callq 0x2200
pushq $0x1
popq %rdi
callq 0x2250
leaq 0x676c(%rip), %rdi      # 0xa361
leaq 0x676e(%rip), %rsi      # 0xa36a
leaq 0x67a4(%rip), %rcx      # 0xa3a7
movl $0x83, %edx
callq 0x2170
movq %rax, %r13
leaq 0x10(%rsp), %rdi
callq 0x4888
jmp 0x3c26
jmp 0x3c23
movq %rax, %r13
jmp 0x3c36
movq %rax, %r13
movq %r12, %rdi
callq 0x4888
movq %r15, %rdi
callq 0x2f0e
addq $0x30, %rbx
movq %rbx, %rdi
callq 0x2f0e
movq %r14, %rdi
callq 0x20d0
movq %r13, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O2/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Clustering/../../algorithms/Clustering/clustering.h
// Function: Clustering<double>::run_clustering()
void run_clustering(void) {
			// Step 1: Initialize the centroids using init++
			initialization();

			// set manually a threshold for stoping the algorithm
			int threshold = n_points / 1000;
			// number of changed vector. It is going to change in each itteration
			int changed = INT_MAX;

			// repeat until the threshold is not reached
			while (changed > threshold) {
				// Step 2: call the appropriate method of assignment
				if (assignment_method == "lloyds")
					changed = assignment_lloyds();
				else 
					changed = reverse_assignment();
			
				// Step 3: Update the centroids
				update();
			}
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
callq 0x742c
movl 0x4(%rbx), %eax
movl $0x3e8, %ecx            # imm = 0x3E8
cltd
idivl %ecx
movl %eax, %ebp
leaq 0x10(%rbx), %r14
movl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
leaq 0x616d(%rip), %r15      # 0xa23b
cmpl %ebp, %r12d
jle 0x40fe
movq %r14, %rdi
movq %r15, %rsi
callq 0x49b7
movq %rbx, %rdi
testb %al, %al
je 0x40ec
callq 0x7850
jmp 0x40f1
callq 0x7934
movl %eax, %r12d
movq %rbx, %rdi
callq 0x7d66
jmp 0x40ce
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Clustering/../../algorithms/Clustering/clustering.h
// Function: Clustering<double>::get_centroids_map()
std::vector<std::vector<int>> get_centroids_map() {
			// we want to keep a map containing the true values of the vectors, in order to find the median
			std::vector<std::vector<int>> centroids_map(k);
			// insert the vectors in the map
			for (int i = 0; i < n_points; i++) {
				int assigned = assigned_centroid.at(i);
				centroids_map.at(assigned).push_back(i);
			}	
			return centroids_map;
		}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movslq (%rsi), %rsi
leaq 0x3(%rsp), %rdx
callq 0x8f3a
leaq 0x60(%r14), %r15
xorl %eax, %eax
leaq 0x4(%rsp), %r12
movl %eax, 0x4(%rsp)
cmpl 0x4(%r14), %eax
jge 0x4161
movslq %eax, %rsi
movq %r15, %rdi
callq 0x606e
movslq (%rax), %rsi
movq %rbx, %rdi
callq 0x4184
movq %rax, %rdi
movq %r12, %rsi
callq 0x8f8c
movl 0x4(%rsp), %eax
incl %eax
jmp 0x412e
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x47a6
movq %r14, %rdi
callq 0x23b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Clustering/../../algorithms/Clustering/clustering.h
// Function: Clustering<double>::~Clustering()
~Clustering(){
			// free the pointers to the classes in case we have a reverse assignment method selected
			if (assignment_method == "reverse_LSH") 
				delete lsh_instant;
			if (assignment_method == "reverse_Hypercube") 
				delete hc_instant;

		}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0x10(%rdi), %rbx
leaq 0x5b30(%rip), %rsi      # 0xa253
movq %rbx, %rdi
callq 0x49b7
testb %al, %al
je 0x474b
movq 0x80(%r14), %r15
testq %r15, %r15
je 0x4743
movq %r15, %rdi
callq 0x9352
movq %r15, %rdi
callq 0x21f0
leaq 0x5b24(%rip), %rsi      # 0xa276
movq %rbx, %rdi
callq 0x49b7
testb %al, %al
je 0x477a
movq 0x98(%r14), %r15
testq %r15, %r15
je 0x4772
movq %r15, %rdi
callq 0x9376
movq %r15, %rdi
callq 0x21f0
leaq 0x60(%r14), %rdi
callq 0x4888
leaq 0x48(%r14), %rdi
callq 0x2f0e
addq $0x30, %r14
movq %r14, %rdi
callq 0x2f0e
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x20d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Clustering/../../algorithms/Clustering/clustering.h
// Function: Clustering<double>::assignment_lloyds()
int assignment_lloyds(void) {
			// keep track of the changes in assignments
			int changes = 0;
			// itterate each vector of the dataset
			for (int i = 0; i < n_points; i++) {
				int prev = assigned_centroid.at(i);
				assigned_centroid.at(i) = nearest_centroid(feature_vectors.at(i));
				// check and record changed centroids
				if (prev != assigned_centroid.at(i))
					changes++;
			}

			return changes;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x60(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x48(%rdi), %rax
movq %rax, 0x18(%rsp)
xorl %r12d, %r12d
leaq 0x20(%rsp), %r15
xorl %eax, %eax
movslq 0x4(%rbx), %rcx
cmpq %rcx, %r12
jge 0x790f
movl %eax, 0xc(%rsp)
movq 0x10(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x606e
movl (%rax), %r13d
movq 0x18(%rsp), %rdi
movq %r12, %rsi
callq 0x4200
movq %r15, %rdi
movq %rax, %rsi
callq 0x31d2
movq %rbx, %rbp
movq %rbx, %rdi
movq %r15, %rbx
movq %r15, %rsi
callq 0x80b0
movl %eax, %r15d
movq %r14, %rdi
movq %r12, %rsi
callq 0x606e
movl %r15d, (%rax)
movq %rbx, %r15
movq %rbx, %rdi
callq 0x2f86
movq %r14, %rdi
movq %r12, %rsi
callq 0x606e
xorl %ecx, %ecx
cmpl (%rax), %r13d
setne %cl
movl 0xc(%rsp), %r14d
addl %ecx, %r14d
movl %r14d, %eax
incq %r12
movq %rbp, %rbx
jmp 0x787d
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x2f86
movq %rbx, %rdi
callq 0x23b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Clustering/../../algorithms/Clustering/clustering.h
// Function: Clustering<double>::update()
void update(void) {
			// we want to keep a map containing the true values of the vectors, in order to find the median
			std::vector<std::vector<std::vector<T>>> centroids_map(k);
			// insert the vectors in the map
			for (int i = 0; i < n_points; i++) {
				int assigned = assigned_centroid.at(i);
				centroids_map.at(assigned).push_back(feature_vectors.at(i));
			}
			// for each centroid 
			for (int i = 0; i < k; i++) {
				// for each one of its dimenions
				for (int j = 0; j < (int)space_dim; j++) {
					vector<T> current_component;
					// parse through all of its assigned vectors in order to find the median
					for (int n = 0; n < (int)centroids_map.at(i).size(); n++) {
						current_component.push_back(centroids_map.at(i).at(n).at(j));
					}
					centroids.at(i).at(j) = our_math::median(current_component);
				}
			}
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %r15
movslq (%rdi), %rsi
leaq 0x38(%rsp), %rbx
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x89bc
leaq 0x60(%r15), %r14
movq %r15, 0x8(%rsp)
addq $0x48, %r15
xorl %r12d, %r12d
movq 0x8(%rsp), %rax
movslq 0x4(%rax), %rax
cmpq %rax, %r12
jge 0x7dde
movq %r14, %rdi
movq %r12, %rsi
callq 0x606e
movslq (%rax), %rsi
movq %rbx, %rdi
callq 0x8a0e
movq %rax, %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x4200
movq %r13, %rdi
movq %rax, %rsi
callq 0x2ee2
incq %r12
jmp 0x7d9c
movq 0x8(%rsp), %rax
addq $0x30, %rax
movq %rax, 0x10(%rsp)
xorl %r15d, %r15d
leaq 0x38(%rsp), %r12
pushq $0x18
popq %rbp
leaq 0x20(%rsp), %r13
movq 0x8(%rsp), %rax
movslq (%rax), %rax
cmpq %rax, %r15
jge 0x7ee6
xorl %ebx, %ebx
movq 0x8(%rsp), %rax
movslq 0x8(%rax), %rax
cmpq %rax, %rbx
jge 0x7ede
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
xorl %r14d, %r14d
movq %r12, %rdi
movq %r15, %rsi
callq 0x8a0e
movq 0x8(%rax), %rcx
subq (%rax), %rcx
movq %rcx, %rax
cqto
idivq %rbp
cltq
cmpq %rax, %r14
jge 0x7e84
movq %r12, %rdi
movq %r15, %rsi
callq 0x8a0e
movq %rax, %rdi
movq %r14, %rsi
callq 0x4200
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5414
movq %r13, %rdi
movq %rax, %rsi
callq 0x2ec0
incq %r14
jmp 0x7e32
leaq 0x50(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0x31d2
movq %r14, %rdi
callq 0x8a2c
movsd %xmm0, 0x18(%rsp)
movq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x4200
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5414
movsd 0x18(%rsp), %xmm0
movsd %xmm0, (%rax)
leaq 0x50(%rsp), %rdi
callq 0x2f86
movq %r13, %rdi
callq 0x2f86
incq %rbx
jmp 0x7e0f
incq %r15
jmp 0x7dfc
leaq 0x38(%rsp), %rdi
callq 0x8a68
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x7f22
jmp 0x7f15
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x2f86
jmp 0x7f18
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x2f86
leaq 0x38(%rsp), %rdi
callq 0x8a68
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O2/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Clustering/../../algorithms/Clustering/clustering.h
// Function: Clustering<double>::nearest_centroid(std::vector<double, std::allocator<double>>)
int nearest_centroid(vector<T> vec) {
			T min_dist = (T)INT_MAX;
			int nearest = -1;
			// compute the distances to all the centroids
			for (int i = 0; i < k; i++) {
				T dist = metrics::ManhatanDistance(vec, centroids.at(i), space_dim);
				// set it as min
				if (dist < min_dist) {
					min_dist = dist;
					nearest = i;
				}
			}
			assert(nearest != -1);

			return nearest;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, (%rsp)
movq %rdi, %r15
leaq 0x30(%rdi), %r12
movsd 0x210f(%rip), %xmm0     # 0xa1e0
pushq $-0x1
popq %rbx
xorl %r13d, %r13d
leaq 0x30(%rsp), %rbp
leaq 0x18(%rsp), %r14
movslq (%r15), %rax
cmpq %rax, %r13
jge 0x8153
movsd %xmm0, 0x10(%rsp)
movq %rbp, %rdi
movq (%rsp), %rsi
callq 0x31d2
movq %r12, %rdi
movq %r13, %rsi
callq 0x4200
movq %r14, %rdi
movq %rax, %rsi
callq 0x31d2
movl 0x8(%r15), %edx
movq %rbp, %rdi
movq %r14, %rsi
callq 0x7f34
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x2f86
movq %rbp, %rdi
callq 0x2f86
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
cmovbl %r13d, %ebx
minsd %xmm1, %xmm0
incq %r13
jmp 0x80e1
cmpl $-0x1, %ebx
je 0x8169
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x25bd(%rip), %rdi      # 0xa72d
leaq 0x21f3(%rip), %rsi      # 0xa36a
leaq 0x2567(%rip), %rcx      # 0xa6e5
pushq $0x40
popq %rdx
callq 0x2170
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2f86
jmp 0x8198
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x2f86
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O2/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Clustering/../../algorithms/Clustering/clustering.h
// Function: Clustering<double>::min_dist_between_centroids()
T min_dist_between_centroids() {
			// initialize the min distance
			T min_dist = (T)INT_MAX;
			// brute force all the distances in order to find the smallest
			for (int i = 0; i < k; i++) {
				for (int j = 0; j < k; j++) {
					if (i != j) {
						T dist = metrics::ManhatanDistance(centroids.at(i), centroids.at(j), space_dim);
						if (dist < min_dist)
							min_dist = dist;
					}
				}
			} 

			return min_dist;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x30(%rdi), %r14
movl (%rdi), %eax
movsd 0x2017(%rip), %xmm0     # 0xa1e0
xorl %r15d, %r15d
leaq 0x30(%rsp), %r12
leaq 0x18(%rsp), %r13
movslq %eax, %rcx
cmpq %rcx, %r15
jge 0x8262
xorl %ebp, %ebp
movslq %eax, %rcx
cmpq %rcx, %rbp
jge 0x825a
cmpq %rbp, %r15
je 0x8255
movsd %xmm0, 0x10(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x4200
movq %r12, %rdi
movq %rax, %rsi
callq 0x31d2
movq %r14, %rdi
movq %rbp, %rsi
callq 0x4200
movq %r13, %rdi
movq %rax, %rsi
callq 0x31d2
movl 0x8(%rbx), %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x7f34
movq %r13, %rdi
movsd %xmm0, 0x8(%rsp)
callq 0x2f86
movq %r12, %rdi
callq 0x2f86
movsd 0x10(%rsp), %xmm0
minsd 0x8(%rsp), %xmm0
movl (%rbx), %eax
incq %rbp
jmp 0x81e4
incq %r15
jmp 0x81d6
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x2f86
jmp 0x8283
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x2f86
movq %rbx, %rdi
callq 0x23b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Clustering/../../algorithms/Clustering/clustering.h
// Function: Clustering<double>::count_unassigned(std::vector<int, std::allocator<int>>)
int count_unassigned(vector<int> assigned) {
			int res = 0;
			for (int i = 0; i < n_points; i++) {
				if (assigned.at(i) == UNASSIGNED) {
					res++;
				}
			}
			
			return res;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
xorl %ebp, %ebp
movslq 0x4(%r14), %rax
cmpq %rax, %r15
jge 0x8823
movq %rbx, %rdi
movq %r15, %rsi
callq 0x606e
xorl %ecx, %ecx
cmpl $-0x1, (%rax)
sete %cl
addl %ecx, %ebp
incq %r15
jmp 0x8800
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/Clustering/../../algorithms/Clustering/clustering.h
// Function: Clustering<double>::second_nearest_centroid(std::vector<double, std::allocator<double>>)
int second_nearest_centroid(vector <T> vec) {
			// get the nearest centroid
			int nearest = nearest_centroid(vec);

			T min_dist = (T)INT_MAX;
			int second_nearest = -1;
			// compute the distances to all the centroids
			for (int i = 0; i < k; i++) {
				T dist = metrics::ManhatanDistance(vec, centroids.at(i), space_dim);
				// set it as min
				if (dist < min_dist && i != nearest) {
					min_dist = dist;
					second_nearest = i;
				}
			}
			assert(second_nearest != -1);

			return second_nearest;
		}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %r15
leaq 0x38(%rsp), %rbx
movq %rbx, %rdi
movq %rsi, 0x10(%rsp)
callq 0x31d2
movq %r15, %rdi
movq %rbx, %rsi
callq 0x80b0
movl %eax, %ebp
leaq 0x38(%rsp), %rdi
callq 0x2f86
leaq 0x30(%r15), %r12
movl %ebp, %eax
movq %rax, 0x8(%rsp)
pushq $-0x1
popq %rbp
movsd 0xf9a(%rip), %xmm0      # 0xa1e0
movsd %xmm0, (%rsp)
xorl %r13d, %r13d
leaq 0x50(%rsp), %rbx
leaq 0x20(%rsp), %r14
movslq (%r15), %rax
cmpq %rax, %r13
jge 0x92d2
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0x31d2
movq %r12, %rdi
movq %r13, %rsi
callq 0x4200
movq %r14, %rdi
movq %rax, %rsi
callq 0x31d2
movl 0x8(%r15), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7f34
movsd %xmm0, 0x18(%rsp)
movq %r14, %rdi
callq 0x2f86
movq %rbx, %rdi
callq 0x2f86
movsd 0x18(%rsp), %xmm0
ucomisd (%rsp), %xmm0
setae %al
cmpq %r13, 0x8(%rsp)
sete %cl
orb %al, %cl
testb %cl, %cl
jne 0x92c9
movsd %xmm0, (%rsp)
cmovel %r13d, %ebp
incq %r13
jmp 0x9258
cmpl $-0x1, %ebp
je 0x92e8
movl %ebp, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1437(%rip), %rdi      # 0xa726
leaq 0x1074(%rip), %rsi      # 0xa36a
leaq 0x143e(%rip), %rcx      # 0xa73b
pushq $0x55
popq %rdx
callq 0x2170
jmp 0x9316
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x2f86
jmp 0x9319
movq %rax, %r14
movq %rbx, %rdi
callq 0x2f86
movq %r14, %rdi
callq 0x23b0
nop
// File: /workspace/github_cpp_makefile_star2_O2/6851-2021[P]Cache-Oblivious-Data-Structures/static_search_trees/perf_built_co_sst.cpp
// Function: main
int main(){
    srand(10);
    chrono::steady_clock::time_point begin = chrono::steady_clock::now();
    int n, Q;
    cin >> n >> Q;
    test(n, Q);
    chrono::steady_clock::time_point end = chrono::steady_clock::now();
    cout << "Time difference = " << chrono::duration_cast<chrono::microseconds>(end - begin).count() << "[µs]" << std::endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
pushq $0xa
popq %rdi
callq 0x10f0
callq 0x1150
movq %rax, %rbx
movq 0x36e7(%rip), %rdi      # 0x5fe0
leaq 0xc(%rsp), %r14
movq %r14, %rsi
callq 0x10a0
leaq 0x8(%rsp), %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x10a0
movl (%r14), %edi
movl (%r15), %esi
callq 0x274c
callq 0x1150
movq %rax, %r14
movq 0x36a0(%rip), %rdi      # 0x5fd0
leaq 0x862(%rip), %rsi       # 0x3199
callq 0x1100
movq %rax, %rdi
subq %rbx, %r14
movl $0x3e8, %ecx            # imm = 0x3E8
movq %r14, %rax
cqto
idivq %rcx
movq %rax, %rsi
callq 0x10e0
leaq 0x84e(%rip), %rsi       # 0x31ac
movq %rax, %rdi
callq 0x1100
movq %rax, %rdi
callq 0x1090
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/test/SignalTest.cpp
// Function: SignalTest_MetaTest_Test::TestBody()
TEST_F(SignalTest, MetaTest){
    cout << "Instantiating signal object" << endl;

    Signal<int, int> testSignal;
    cout << "Size of signal: " << sizeof(testSignal) << endl;
    BSignals::details::MPSCQueue<std::function<void()>> mpscQ;
    cout << "Size of MPSCQ: " << sizeof(mpscQ) << endl;
    
    auto dur = BSignals::details::WheeledThreadPool::getMaxWait();
    cout << "Max wait: " << std::chrono::duration<double, std::nano>(dur).count() << endl;
}

// Assembly:
pushq %rbx
subq $0x4a0, %rsp            # imm = 0x4A0
movq 0x5217f(%rip), %rbx     # 0x5ffb0
leaq 0x2c350(%rip), %rsi     # 0x3a188
movq %rbx, %rdi
callq 0xb4f0
movq %rax, %rdi
callq 0xb270
leaq 0x8(%rsp), %rdi
callq 0x10606
leaq 0x2c34b(%rip), %rsi     # 0x3a1a4
movq %rbx, %rdi
callq 0xb4f0
movl $0x118, %esi            # imm = 0x118
movq %rax, %rdi
callq 0xb390
movq %rax, %rdi
callq 0xb270
leaq 0x120(%rsp), %rdi
callq 0x10074
movq 0x52126(%rip), %rdi     # 0x5ffb0
leaq 0x2c324(%rip), %rsi     # 0x3a1b5
callq 0xb4f0
movl $0x380, %esi            # imm = 0x380
movq %rax, %rdi
callq 0xb390
movq %rax, %rdi
callq 0xb270
callq 0xd150
movsd %xmm0, (%rsp)
movq 0x520f4(%rip), %rdi     # 0x5ffb0
leaq 0x2c302(%rip), %rsi     # 0x3a1c5
callq 0xb4f0
movsd (%rsp), %xmm0
mulsd 0x2c133(%rip), %xmm0    # 0x3a008
movq %rax, %rdi
callq 0xb960
movq %rax, %rdi
callq 0xb270
leaq 0x120(%rsp), %rdi
callq 0x100f0
leaq 0x8(%rsp), %rdi
callq 0x1352c
addq $0x4a0, %rsp            # imm = 0x4A0
popq %rbx
retq
jmp 0xdf1d
jmp 0xdf0b
jmp 0xdf0b
movq %rax, %rbx
leaq 0x120(%rsp), %rdi
callq 0x100f0
jmp 0xdf20
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1352c
movq %rbx, %rdi
callq 0xba30
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/test/SafeQueue.hpp
// Function: BSignals::details::SafeQueue<BigThing>::enqueue(BigThing const&)
void enqueue(const T &t){
        std::unique_lock<std::mutex> lock(m);
        q.push(t);
        lock.unlock();
        c.notify_one();
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x258(%rdi), %rsi
leaq 0x8(%rsp), %rdi
callq 0xcc9e
leaq 0x208(%rbx), %rdi
movq %r14, %rsi
callq 0x132e0
leaq 0x8(%rsp), %rdi
callq 0xcd08
addq $0x280, %rbx            # imm = 0x280
movq %rbx, %rdi
callq 0xb290
leaq 0x8(%rsp), %rdi
callq 0xccb4
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xccb4
movq %rbx, %rdi
callq 0xba30
nop
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/test/SafeQueue.hpp
// Function: BSignals::details::SafeQueue<BigThing>::dequeue()
T dequeue(void){
        std::unique_lock<std::mutex> lock(m);
        if (terminateFlag) return shutdownObject;
        while (q.empty()){
            c.wait(lock);
            if (terminateFlag) return shutdownObject;
        }
        T val = q.front();
        q.pop();
        return val;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x258, %rsi            # imm = 0x258
leaq 0x8(%rsp), %rdi
callq 0xcc9e
cmpb $0x0, 0x200(%r14)
jne 0x102c7
leaq 0x280(%r14), %r15
leaq 0x8(%rsp), %r12
movq 0x218(%r14), %rsi
cmpq %rsi, 0x238(%r14)
jne 0x102d9
movq %r15, %rdi
movq %r12, %rsi
callq 0xb160
cmpb $0x1, 0x200(%r14)
jne 0x102a2
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb440
jmp 0x102f5
addq $0x208, %r14            # imm = 0x208
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rdi
callq 0xb440
movq %r14, %rdi
callq 0x17f5c
leaq 0x8(%rsp), %rdi
callq 0xccb4
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/inc/BSignals/details/SignalImpl.hpp
// Function: int BSignals::details::SignalImpl<unsigned int>::connectMemberSlot<void (TestClass::*)(unsigned int), TestClass*>(BSignals::ExecutorScheme, void (TestClass::*&&)(unsigned int), TestClass*&&)
int connectMemberSlot(BSignals::ExecutorScheme scheme, F&& function, C&& instance){
        //type check assertions
        static_assert(std::is_member_function_pointer<F>::value, "function is not a member function");
        static_assert(std::is_object<std::remove_reference<C>>::value, "instance is not a class object");
        
        //Construct a bound function from the function pointer and object
        auto boundFunc = objectBind(function, instance);
        return connectSlot(scheme, boundFunc);
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %esi, %ebx
movq %rdi, %r14
movq (%rcx), %rcx
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x10c7c
movq %rsp, %rdi
movq %r15, %rsi
callq 0x10c36
movq %rsp, %rdx
movq %r14, %rdi
movl %ebx, %esi
callq 0x10b50
movl %eax, %ebx
movq %rsp, %rdi
callq 0xd31c
leaq 0x20(%rsp), %rdi
callq 0xd31c
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0xd31c
jmp 0x10b3d
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0xd31c
movq %rbx, %rdi
callq 0xba30
nop
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/inc/BSignals/details/SignalImpl.hpp
// Function: BSignals::details::SignalImpl<unsigned int>::connectSlot(BSignals::ExecutorScheme, std::function<void (unsigned int)>)
int connectSlot(BSignals::ExecutorScheme scheme, std::function<void(Args...)> slot){
        uint32_t id = currentId.fetch_add(1);
        if (enableEmissionGuard){
            std::lock_guard<std::mutex> lock(connectBufferLock);
            connectBuffer.emplace(id, ConnectDescriptor{scheme, slot});
            connectBufferDirty = true;
            return id;
        }
        else{
            return connectSlotFunction(id, scheme, slot);
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdx, %r12
movq %rdi, %r14
pushq $0x1
popq %rbx
lock
xaddl %ebx, (%rdi)
movl %esi, %ebp
movl %ebx, 0x4(%rsp)
cmpb $0x1, 0x4(%rdi)
jne 0x10bcd
leaq 0xb8(%r14), %rbx
movq %rbx, %rdi
callq 0xccf4
leaq 0x30(%rsp), %r15
movl %ebp, -0x8(%r15)
movq %r15, %rdi
movq %r12, %rsi
callq 0x10c36
leaq 0xe8(%r14), %rdi
leaq 0x4(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x10f54
movq %r15, %rdi
callq 0xd31c
movb $0x1, %al
xchgb %al, 0xe0(%r14)
movl 0x4(%rsp), %ebp
movq %rbx, %rdi
callq 0xb400
jmp 0x10bf8
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x10c36
movq %r14, %rdi
movl %ebx, %esi
movl %ebp, %edx
movq %r15, %rcx
callq 0x10dde
movl %eax, %ebp
leaq 0x8(%rsp), %rdi
callq 0xd31c
movl %ebp, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %r15, %rdi
callq 0xd31c
jmp 0x10c26
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0xd31c
jmp 0x10c2e
movq %rax, %r14
movq %rbx, %rdi
callq 0xb400
movq %r14, %rdi
callq 0xba30
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/inc/BSignals/details/StrandSlot.hpp
// Function: BSignals::details::StrandSlot<unsigned int>::queueListener()
void queueListener(){
        std::tuple<Args...> tuple{};
        auto maxWait = WheeledThreadPool::getMaxWait();
        std::chrono::duration<double> waitTime = std::chrono::nanoseconds(1);
        while (!stop){
            if (strandQueue.dequeue(tuple)){
                if (!stop) this->callFuncWithTuple(tuple, std::index_sequence_for<Args...>());
                waitTime = std::chrono::nanoseconds(1);
            }
            else{
                std::this_thread::sleep_for(waitTime);
                waitTime*=2;
            }
            if (waitTime > maxWait){
                strandQueue.blockingDequeue(tuple);
                if (!stop) this->callFuncWithTuple(tuple, std::index_sequence_for<Args...>());
                waitTime = std::chrono::nanoseconds(1);
            }
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movabsq $0x3e112e0be826d695, %rbp # imm = 0x3E112E0BE826D695
leaq 0x4(%rsp), %r14
andl $0x0, (%r14)
callq 0xd150
movsd %xmm0, 0x10(%rsp)
leaq 0x8(%rsp), %r15
movq %rbp, (%r15)
leaq 0x30(%rbx), %r12
leaq 0x8(%rbx), %r13
cmpb $0x0, 0x238(%rbx)
jne 0x11806
movq %r12, %rdi
movq %r14, %rsi
callq 0x119e6
testb %al, %al
je 0x117bc
cmpb $0x0, 0x238(%rbx)
movsd 0x2887c(%rip), %xmm0    # 0x3a020
jne 0x117ce
movl 0x4(%rsp), %esi
movq %r13, %rdi
callq 0x11b16
movsd 0x28866(%rip), %xmm0    # 0x3a020
jmp 0x117ce
movq %r15, %rdi
callq 0xd430
movsd 0x8(%rsp), %xmm0
addsd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
ucomisd 0x10(%rsp), %xmm0
jbe 0x11779
movq %r12, %rdi
movq %r14, %rsi
callq 0x11a16
cmpb $0x0, 0x238(%rbx)
jne 0x117fc
movl 0x4(%rsp), %esi
movq %r13, %rdi
callq 0x11b16
movq %rbp, 0x8(%rsp)
jmp 0x11779
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/inc/BSignals/details/SignalImpl.hpp
// Function: BSignals::details::SignalImpl<unsigned int>::getIsStillConnectedFromExecutor(unsigned int) const
inline bool getIsStillConnectedFromExecutor(uint32_t id) const{
        slotLock.lock_shared();
        auto it = slots.find(id);
        bool retVal = (it != slots.end() && it->second->isAlive());
        slotLock.unlock_shared();
        return retVal;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x4(%rsp), %r15
movl %esi, (%r15)
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0xcda0
leaq 0x88(%r14), %rdi
movq %r15, %rsi
callq 0x11d9c
addq $0x90, %r14
cmpq %r14, %rax
je 0x11d81
movq 0x28(%rax), %rax
movb 0x28(%rax), %bpl
jmp 0x11d83
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0xcdce
andb $0x1, %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/inc/BSignals/details/ThreadPooledSlot.hpp
// Function: BSignals::details::ThreadPooledSlot<BigThing>::execute(BigThing const&)::'lambda'()::operator()() const
void execute(const Args& ... args){
        WheeledThreadPool::run([this, args...](){
            if (!checkIfValid || checkIfValid()){
                this->slotFunction(args...);
            }
        });
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rdi, %rbx
movq (%rdi), %r14
cmpq $0x0, 0x40(%r14)
je 0x17292
leaq 0x30(%r14), %rdi
callq 0x11f42
testb %al, %al
je 0x172bc
addq $0x8, %rbx
leaq 0x8(%rsp), %rdi
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rsi
callq 0xb440
cmpq $0x0, 0x18(%r14)
je 0x172c7
leaq 0x8(%r14), %rdi
leaq 0x8(%rsp), %rsi
callq *0x20(%r14)
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r14
retq
callq 0xb1e0
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/inc/BSignals/details/AsynchronousSlot.hpp
// Function: BSignals::details::AsynchronousSlot<BigThing>::execute(BigThing const&)
void execute(const Args& ... args){
        sem.acquire();
        std::thread slotThread([this, args...](){
            if (!checkIfValid || checkIfValid()){
                this->slotFunction(args...);
            }
            sem.release();
        });
        slotThread.detach();
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rsi, %rbx
movq %rdi, %r14
addq $0x50, %rdi
callq 0xcc28
leaq 0x18(%rsp), %rdi
movq %r14, -0x8(%rdi)
movl $0x200, %edx            # imm = 0x200
movq %rbx, %rsi
callq 0xb440
leaq 0x8(%rsp), %rbx
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x17512
movq %rbx, %rdi
callq 0xba20
leaq 0x8(%rsp), %rdi
callq 0xd738
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0xd738
movq %rbx, %rdi
callq 0xba30
nop
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/inc/BSignals/details/SignalImpl.hpp
// Function: BSignals::details::SignalImpl<unsigned int>::emitSignalThreadSafe(unsigned int const&)
inline void emitSignalThreadSafe(const Args& ... p){
        while (connectBufferDirty.load(std::memory_order_acquire)){
            connectBufferLock.lock();
            if (!connectBufferDirty.load(std::memory_order_acquire)){
                connectBufferLock.unlock();
                break;
            }
            for (auto const &kvpair : connectBuffer){
                connectSlotFunction(kvpair.first, kvpair.second.scheme, kvpair.second.slot);
            }
            connectBuffer.clear();
            connectBufferDirty.store(false, std::memory_order_release);
            connectBufferLock.unlock();
            slotLock.lock();
            for (auto it = slots.begin(); it!= slots.end();){
                if (!it->second->isAlive()){
                    it = slots.erase(it);
                }
                else{
                    ++it;
                }
            }
            slotLock.unlock();
        }
        slotLock.lock_shared();
        for (auto const &kvpair : slots){
            if (kvpair.second->isAlive()){
                kvpair.second->execute(p...);
            }
        }
        slotLock.unlock_shared();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, 0x10(%rsp)
movq %rdi, %r15
leaq 0xb8(%rdi), %rax
movq %rax, 0x8(%rsp)
leaq 0xe8(%rdi), %rax
movq %rax, 0x18(%rsp)
leaq 0xf0(%rdi), %rbp
leaq 0x18(%rdi), %r12
leaq 0x88(%rdi), %rax
movq %rax, 0x30(%rsp)
leaq 0x90(%rdi), %r13
leaq 0x38(%rsp), %rbx
movq %r12, 0x28(%rsp)
movq %r13, 0x20(%rsp)
movb 0xe0(%r15), %al
testb $0x1, %al
je 0x12ed1
movq 0x8(%rsp), %rdi
callq 0xccf4
movb 0xe0(%r15), %al
testb $0x1, %al
je 0x12ec7
movq 0x100(%r15), %r13
cmpq %rbp, %r13
je 0x12e5b
movl 0x20(%r13), %r14d
movl 0x28(%r13), %r12d
leaq 0x30(%r13), %rsi
movq %rbx, %rdi
callq 0x10c36
movq %r15, %rdi
movl %r14d, %esi
movl %r12d, %edx
movq %rbx, %rcx
callq 0x10dde
movq %rbx, %rdi
callq 0xd31c
movq %r13, %rdi
callq 0xb3a0
movq %rax, %r13
jmp 0x12e1c
movq 0x18(%rsp), %rdi
callq 0x12f7a
movb $0x0, 0xe0(%r15)
movq 0x8(%rsp), %rdi
callq 0xb400
movq 0x28(%rsp), %r12
movq %r12, %rdi
callq 0xcd38
movq 0xa0(%r15), %rax
movq 0x20(%rsp), %r13
cmpq %r13, %rax
je 0x12eba
movq 0x28(%rax), %rcx
movb 0x28(%rcx), %cl
testb $0x1, %cl
je 0x12eab
movq %rax, %rdi
callq 0xb3a0
jmp 0x12e90
movq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x12fa8
jmp 0x12e90
movq %r12, %rdi
callq 0xcd8e
jmp 0x12ded
movq 0x8(%rsp), %rdi
callq 0xb400
movq %r12, %rdi
callq 0xcda0
movq 0xa0(%r15), %rbx
movq 0x10(%rsp), %r14
cmpq %r13, %rbx
je 0x12f0f
movq 0x28(%rbx), %rax
movb 0x28(%rax), %al
testb $0x1, %al
je 0x12f02
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x10(%rax)
movq %rbx, %rdi
callq 0xb3a0
movq %rax, %rbx
jmp 0x12ee5
movq %r12, %rdi
callq 0xcdce
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xd31c
movq %rbx, %rdi
callq 0xba30
nop
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/inc/BSignals/details/SignalImpl.hpp
// Function: BSignals::details::SignalImpl<int, int>::disconnectSlot(int)
void disconnectSlot(int id){
        if (enableEmissionGuard){
            slotLock.lock_shared();
            auto it = slots.find(id);
            if (it == slots.end()) return;
            it->second->markForDeath();
            slotLock.unlock_shared();
        }
        else{
            disconnectSlotFunction(id);
        }
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %r14
cmpb $0x1, 0x4(%rdi)
jne 0x15697
leaq 0x18(%r14), %rbx
movq %rbx, %rdi
callq 0xcda0
leaq 0x88(%r14), %rdi
leaq 0xc(%rsp), %rsi
movl %ebp, (%rsi)
callq 0x15708
addq $0x90, %r14
cmpq %r14, %rax
je 0x1568e
movq 0x28(%rax), %rax
movb $0x0, 0x28(%rax)
movq %rbx, %rdi
callq 0xcdce
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %r14, %rdi
movl %ebp, %esi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x156aa
nop
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/inc/BSignals/details/SignalImpl.hpp
// Function: BSignals::details::SignalImpl<int, int>::disconnectSlotFunction(unsigned int)
inline void disconnectSlotFunction(uint32_t id){
        slotLock.lock();
        auto it = slots.find(id);
        if (it == slots.end()) return;
        slots.erase(it);
        slotLock.unlock();
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
leaq 0x4(%rsp), %r12
movl %esi, (%r12)
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0xcd38
leaq 0x88(%r15), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x15708
addq $0x90, %r15
cmpq %r15, %rax
je 0x156fb
movq %r14, %rdi
movq %rax, %rsi
callq 0x153b4
movq %rbx, %rdi
callq 0xcd8e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/inc/BSignals/details/SignalImpl.hpp
// Function: BSignals::details::SignalImpl<int, int>::invokeDeferred()
void invokeDeferred(){
        slotLock.lock_shared();
        std::pair<std::function<void()>, uint32_t> deferredInvocation;
        if (!deferredQueue) return;
        while (deferredQueue->dequeue(deferredInvocation)){
            if (!enableEmissionGuard || getIsStillConnectedFromExecutor(deferredInvocation.second)){
                deferredInvocation.first();
            }
        }
        slotLock.unlock_shared();
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0xcda0
xorps %xmm0, %xmm0
andl $0x0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x15ba4
movq %rsp, %r15
movq %r15, %rsi
callq 0x1242a
testb %al, %al
je 0x15b9c
cmpb $0x1, 0x4(%r14)
jne 0x15b8e
movl 0x20(%rsp), %esi
movq %r14, %rdi
callq 0x14868
testb %al, %al
je 0x15b96
movq %r15, %rdi
callq 0xd420
movq 0x8(%r14), %rdi
jmp 0x15b6b
movq %rbx, %rdi
callq 0xcdce
movq %rsp, %rdi
callq 0xd31c
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x15bb8
movq %rax, %rbx
movq %rsp, %rdi
callq 0xd31c
movq %rbx, %rdi
callq 0xba30
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/test/SignalTest_Parametrized.cpp
// Function: SignalTestParametrized::SetUp()
void SignalTestParametrized::SetUp() {
    auto tupleParams = GetParam();
    params = {::testing::get<0>(tupleParams), ::testing::get<1>(tupleParams), ::testing::get<2>(tupleParams), ::testing::get<3>(tupleParams), ::testing::get<4>(tupleParams), ::testing::get<5>(tupleParams)};
    
    cout << "Test for signal type: ";
    switch (params.scheme) {
        case (ExecutorScheme::DEFERRED_SYNCHRONOUS):
            return;
        case(ExecutorScheme::ASYNCHRONOUS):
            cout << "Asynchronous";
            break;
        case(ExecutorScheme::STRAND):
            cout << "Strand";
            break;
        case(ExecutorScheme::SYNCHRONOUS):
            cout << "Synchronous";
            break;
        case (ExecutorScheme::THREAD_POOLED):
            cout << "Thread Pooled";
            break;
    }
    cout << endl;
        
    cout << "Emissions: " << params.nEmissions << ", Connections: " << params.nConnections <<
            ", Operations: " << params.nOperations << ", Emitters: " << params.nEmitters <<
            ", Thread Safe: " << params.threadSafe << endl;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x10, %rdi
callq 0x1be56
movl (%rax), %ecx
movb 0x4(%rax), %dl
movdqu 0x8(%rax), %xmm0
pshufd $0x1b, %xmm0, %xmm0     # xmm0 = xmm0[3,2,1,0]
movdqu %xmm0, 0x18(%rbx)
movb %dl, 0x28(%rbx)
movl %ecx, 0x2c(%rbx)
movq 0x45adb(%rip), %rdi     # 0x5ffb0
leaq 0x217a8(%rip), %rsi     # 0x3bc84
callq 0xb4f0
movl 0x2c(%rbx), %eax
cmpq $0x4, %rax
ja 0x1a528
leaq 0x212e3(%rip), %rcx     # 0x3b7d4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x21989(%rip), %rsi     # 0x3be8a
jmp 0x1a51c
leaq 0x21791(%rip), %rsi     # 0x3bc9b
jmp 0x1a51c
leaq 0x21998(%rip), %rsi     # 0x3beab
jmp 0x1a51c
leaq 0x219b1(%rip), %rsi     # 0x3becd
movq 0x45a8d(%rip), %rdi     # 0x5ffb0
callq 0xb4f0
movq 0x45a81(%rip), %r14     # 0x5ffb0
movq %r14, %rdi
callq 0xb270
leaq 0x2176b(%rip), %rsi     # 0x3bca9
movq %r14, %rdi
callq 0xb4f0
movl 0x1c(%rbx), %esi
movq %rax, %rdi
callq 0xb390
leaq 0x2175d(%rip), %rsi     # 0x3bcb5
movq %rax, %rdi
callq 0xb4f0
movl 0x18(%rbx), %esi
movq %rax, %rdi
callq 0xb390
leaq 0x21753(%rip), %rsi     # 0x3bcc5
movq %rax, %rdi
callq 0xb4f0
movl 0x20(%rbx), %esi
movq %rax, %rdi
callq 0xb390
leaq 0x21748(%rip), %rsi     # 0x3bcd4
movq %rax, %rdi
callq 0xb4f0
movl 0x24(%rbx), %esi
movq %rax, %rdi
callq 0xb390
leaq 0x2173b(%rip), %rsi     # 0x3bce1
movq %rax, %rdi
callq 0xb4f0
movzbl 0x28(%rbx), %esi
movq %rax, %rdi
callq 0xb9b0
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xb270
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/3rdparty/googletest/inc/gtest/gtest.h
// Function: testing::WithParamInterface<std::tuple<unsigned int, unsigned int, unsigned int, unsigned int, bool, BSignals::ExecutorScheme>>::GetParam() const
const ParamType& GetParam() const {
    GTEST_CHECK_(parameter_ != NULL)
        << "GetParam() can only be called inside a value-parameterized test "
        << "-- did you intend to write TEST_P instead of TEST_F?";
    return *parameter_;
  }

// Assembly:
pushq %rbx
subq $0x10, %rsp
leaq 0x96bce(%rip), %rbx     # 0xb2a30
xorl %edi, %edi
cmpq $0x0, (%rbx)
setne %dil
callq 0x22790
testb %al, %al
jne 0x1bec9
leaq 0x203f0(%rip), %rdx     # 0x3c26c
leaq 0xc(%rsp), %rdi
pushq $0x3
popq %rsi
movl $0x6dc, %ecx            # imm = 0x6DC
callq 0x37960
movq 0x44153(%rip), %rdi     # 0x5ffe8
leaq 0x203f6(%rip), %rsi     # 0x3c292
callq 0xb4f0
leaq 0x20410(%rip), %rsi     # 0x3c2b8
movq %rax, %rdi
callq 0xb4f0
leaq 0x20442(%rip), %rsi     # 0x3c2f9
movq %rax, %rdi
callq 0xb4f0
leaq 0xc(%rsp), %rdi
callq 0x37a24
movq (%rbx), %rax
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rbx
leaq 0xc(%rsp), %rdi
callq 0x37a24
movq %rbx, %rdi
callq 0xba30
nop
// File: /workspace/github_cpp_makefile_star2_O2/Barath-Kannan[P]SignalsAndSlots/3rdparty/googletest/inc/gtest/internal/gtest-param-util-generated.h
// Function: testing::internal::CartesianProductHolder6<testing::internal::ValueArray3<int, int, int>, testing::internal::ValueArray3<int, int, int>, testing::internal::ValueArray7<int, int, int, int, int, int, int>, testing::internal::ValueArray7<int, int, int, int, int, int, int>, testing::internal::ValueArray1<bool>, testing::internal::ValueArray1<BSignals::ExecutorScheme>>::operator testing::internal::ParamGenerator<std::tuple<unsigned int, unsigned int, unsigned int, unsigned int, bool, BSignals::ExecutorScheme>><unsigned int, unsigned int, unsigned int, unsigned int, bool, BSignals::ExecutorScheme>() const
operator ParamGenerator< ::testing::tuple<T1, T2, T3, T4, T5, T6> >() const {
    return ParamGenerator< ::testing::tuple<T1, T2, T3, T4, T5, T6> >(
        new CartesianProductGenerator6<T1, T2, T3, T4, T5, T6>(
        static_cast<ParamGenerator<T1> >(g1_),
        static_cast<ParamGenerator<T2> >(g2_),
        static_cast<ParamGenerator<T3> >(g3_),
        static_cast<ParamGenerator<T4> >(g4_),
        static_cast<ParamGenerator<T5> >(g5_),
        static_cast<ParamGenerator<T6> >(g6_)));
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r15
movq %rdi, %r14
pushq $0x68
popq %rdi
callq 0xb510
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
movq %r15, %rsi
callq 0x202c0
leaq 0xc(%r15), %rsi
leaq 0x38(%rsp), %rdi
callq 0x202c0
leaq 0x18(%r15), %rsi
leaq 0x28(%rsp), %rdi
callq 0x202e8
leaq 0x34(%r15), %rsi
leaq 0x18(%rsp), %rdi
callq 0x202e8
leaq 0x50(%r15), %rsi
leaq 0x8(%rsp), %rdi
callq 0x20318
addq $0x54, %r15
leaq 0x58(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x20338
movq %r12, (%rsp)
leaq 0x48(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0x28(%rsp), %rcx
leaq 0x18(%rsp), %r8
leaq 0x8(%rsp), %r9
movq %rbx, %rdi
callq 0x20358
movq %rbx, (%r14)
leaq 0x8(%r14), %rax
movq %rax, 0x8(%r14)
leaq 0x58(%rsp), %rdi
callq 0x222a0
leaq 0x8(%rsp), %rdi
callq 0x222d2
leaq 0x18(%rsp), %rdi
callq 0x22304
leaq 0x28(%rsp), %rdi
callq 0x22304
leaq 0x38(%rsp), %rdi
callq 0x22304
leaq 0x48(%rsp), %rdi
callq 0x22304
movq %r14, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
leaq 0x58(%rsp), %rdi
callq 0x222a0
jmp 0x1c448
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x222d2
jmp 0x1c457
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x22304
jmp 0x1c466
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x22304
jmp 0x1c475
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x22304
leaq 0x48(%rsp), %rdi
callq 0x22304
pushq $0x68
popq %rsi
movq %rbx, %rdi
callq 0xb540
movq %r14, %rdi
callq 0xba30
movq %rax, %r14
jmp 0x1c47f
movq %rax, %r14
jmp 0x1c489