LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/liujan[P]MPI_multi_thread_randomforest/Tree.cpp
// Function: Tree::buildTree()
bool Tree::buildTree(){

	if (root == NULL)
		return false;

	cout << "building tree ..." << endl;

	double p = 0.7;  //��һ���ڵ�����p������Ϊͬһ���ͣ����ýڵ㲻�ٽ��з���
	queue<Node *> q; //���ڸ����ǵݹ齨��
	q.push(root);
	int sum = 0; //��¼һ�������˶��ٴ�
	while (!q.empty()) {
		Node * current = q.front();
		q.pop();
		if (current == NULL)
			continue;

		for (int i = 0; i < numOfTypes; i++){ //��һ���ڵ�����p������Ϊͬһ���ͣ����ýڵ㲻�ٽ��з���
			if ((current->num[i] * 1.0 / current->sum) > p)
				continue;
		}
		if (current->depth >= maxDepth) //����ǰ�ڵ��ĸ߶ȴ���5ʱ����ǰ�ڵ㲻�ٽ��з���
			continue;

		if (current->sum < 50) //��һ���ڵ���������С��50ʱ���ýڵ㲻�ٽ��з���
			continue;

		//cout <<"depth = " <<  current->depth << " bin = " << sum << endl;
		pair<Node *, Node *> child = this->selectBestPart(current);
		Node *left = child.first;
		Node *right = child.second;

		current->left = left;
		current->right = right;

		q.push(left);
		q.push(right);
		sum++;
	}

	cout << "building tree completed" << endl;
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq (%rdi), %rax
testq %rax, %rax
je 0x2e24
movq %rdi, %rbx
movq %rax, -0x30(%rbp)
movq 0x726b(%rip), %rdi      # 0x9fd0
leaq 0x3311(%rip), %rsi      # 0x607d
callq 0x21e0
movq %rax, %rdi
callq 0x2110
leaq -0x90(%rbp), %r14
movq %r14, %rdi
callq 0x36ea
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3e6c
leaq -0x40(%rbp), %r15
leaq -0x38(%rbp), %r12
movq -0x80(%rbp), %rax
cmpq %rax, -0x60(%rbp)
je 0x2df9
movq (%rax), %r13
movq %r14, %rdi
callq 0x40c4
testq %r13, %r13
je 0x2d9b
cmpl $0xb, 0x8c(%r13)
jg 0x2d9b
cmpl $0x32, 0x20(%r13)
jl 0x2d9b
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2e56
movq %rax, -0x40(%rbp)
movq %rdx, -0x38(%rbp)
movq %rax, 0x10(%r13)
movq %rdx, 0x18(%r13)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3e6c
movq %r14, %rdi
movq %r12, %rsi
callq 0x3e6c
jmp 0x2d9b
movq 0x71d0(%rip), %rdi      # 0x9fd0
leaq 0x3288(%rip), %rsi      # 0x608f
callq 0x21e0
movq %rax, %rdi
callq 0x2110
leaq -0x90(%rbp), %rdi
callq 0x3892
movq -0x30(%rbp), %rax
testq %rax, %rax
setne %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2e3f
jmp 0x2e3f
jmp 0x2e3f
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x3892
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/liujan[P]MPI_multi_thread_randomforest/Tree.cpp
// Function: getType(Node*)
int getType(Node *node){
	if (node == NULL)
		return 0;
	int max_value = -1000, index = 0;
	for (int i = 0; i < numOfTypes; i++){
		if (max_value <= node->num[i]){
			max_value = node->num[i];
			index = i + 1;
		}
	}
	return index;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x3504
xorl %ecx, %ecx
movl $0xfffffc18, %edx       # imm = 0xFFFFFC18
xorl %eax, %eax
cmpq $0x1a, %rcx
je 0x3506
movl 0x24(%rdi,%rcx,4), %esi
incq %rcx
cmpl %esi, %edx
cmovlel %esi, %edx
cmovlel %ecx, %eax
jmp 0x34ed
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/liujan[P]MPI_multi_thread_randomforest/Tree.cpp
// Function: Tree::predict(std::vector<double, std::allocator<double>>)
int Tree::predict(vector<double> features){
	if (root == NULL){
		cout << "[Error] empty tree" << endl;
		return 0;
	}
	Node *head = root;
	while (true) {
		if (head->left == NULL && head->right == NULL){
			return getType(head);
		}
		int attr = head->attribute;
		double value = head->value;
		if (features[attr] < value){
			if (head->left == NULL)
				return getType(head);
			else
				head = head->left;
		}
		else {
			if (head->right == NULL)
				return getType(head);
			else
				head = head->right;
		}
	}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
testq %rax, %rax
je 0x3548
movq %rax, %rdi
movq 0x10(%rax), %rax
testq %rax, %rax
jne 0x3527
cmpq $0x0, 0x18(%rdi)
je 0x3542
movslq (%rdi), %rcx
movsd 0x8(%rdi), %xmm0
movq (%rsi), %rdx
ucomisd (%rdx,%rcx,8), %xmm0
ja 0x353d
movq 0x18(%rdi), %rax
testq %rax, %rax
jne 0x3514
popq %rbp
jmp 0x34db
movq 0x6a81(%rip), %rdi      # 0x9fd0
leaq 0x2b51(%rip), %rsi      # 0x60a7
callq 0x21e0
movq %rax, %rdi
callq 0x2110
xorl %eax, %eax
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/liujan[P]MPI_multi_thread_randomforest/Tree.cpp
// Function: Tree::randomSelect()
vector<int> Tree::randomSelect(){
	vector<int> v;
	for (int i = 0; i < numOfFeatures; i++){
		double p = rand() * 1.0 / RAND_MAX;
		if (p <= 0.05)
			v.push_back(i);
	}
	return v;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movupd %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
xorl %eax, %eax
leaq -0x14(%rbp), %r14
movl %eax, -0x14(%rbp)
cmpl $0x269, %eax            # imm = 0x269
jge 0x35c4
callq 0x2090
cvtsi2sd %eax, %xmm0
divsd 0x2a64(%rip), %xmm0     # 0x6008
movsd 0x2a8c(%rip), %xmm1     # 0x6038
ucomisd %xmm0, %xmm1
jb 0x35bd
movq %rbx, %rdi
movq %r14, %rsi
callq 0x386c
movl -0x14(%rbp), %eax
incl %eax
jmp 0x3589
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x412c
movq %r14, %rdi
callq 0x2340
nop
// File: /workspace/github_cpp_makefile_star2_O2/liujan[P]MPI_multi_thread_randomforest/Tree.cpp
// Function: Tree::~Tree()
Tree::~Tree(){
	Node *head = root;
	queue<Node*>q;
	q.push(head);
	while (!q.empty()){
		head = q.front();
		q.pop();
		if (head == NULL)
			continue;
		Node *left = head->left;
		Node *right = head->right;
		delete head;
		q.push(left);
		q.push(right);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq (%rdi), %rax
movq %rax, -0x28(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x36ea
leaq -0x88(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x3e6c
leaq -0x88(%rbp), %rbx
leaq -0x38(%rbp), %r14
leaq -0x30(%rbp), %r15
movq -0x78(%rbp), %rax
cmpq %rax, -0x58(%rbp)
je 0x368b
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq %rbx, %rdi
callq 0x40c4
movq -0x28(%rbp), %r12
testq %r12, %r12
je 0x3625
movq 0x10(%r12), %rax
movq %rax, -0x38(%rbp)
movq 0x18(%r12), %rax
movq %rax, -0x30(%rbp)
leaq 0x90(%r12), %rdi
callq 0x26a4
movl $0xa8, %esi
movq %r12, %rdi
callq 0x2200
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3e6c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3e6c
jmp 0x3625
leaq -0x88(%rbp), %rdi
callq 0x3892
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x36a6
movq %rax, %rdi
callq 0x26cf
// File: /workspace/github_cpp_makefile_star2_O2/liujan[P]MPI_multi_thread_randomforest/RandomForest.cpp
// Function: build(void*)
void* build(void *arg){
	M t1 = (M)(*((M*)arg));
	RandomForest *rf = t1.rf;
	int t = t1.i;
	if (rf->test_samples.empty()){
		cout << "[Error] test sample is empty" << endl;
		return NULL;
	}

	Tree *tree = new Tree();
	if (tree->readSample(rf->all_samples)){
		cout << t  << "  ";
		tree->buildTree();
		for (int j = 0; j < rf->test_samples.size(); j++){
			int id = rf->test_samples[j].first;
			int type = tree->predict(rf->test_samples[j].second);
			result[t][id][type]++;
		}
	}
	delete tree;
	
	return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq (%rdi), %rcx
movq 0x18(%rcx), %rax
movq %rcx, -0x38(%rbp)
cmpq 0x20(%rcx), %rax
je 0x4f88
movslq 0x8(%rdi), %r12
pushq $0x8
popq %r15
movq %r15, %rdi
callq 0x21f0
movq %rax, %rbx
movq %rax, %rdi
callq 0x2be0
leaq -0x58(%rbp), %r13
movq %r13, %rdi
movq -0x38(%rbp), %rsi
callq 0x370a
movq %rbx, -0x30(%rbp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2c20
movl %eax, %r13d
leaq -0x58(%rbp), %rdi
callq 0x26a4
testb %r13b, %r13b
je 0x4f6f
movq 0x50f2(%rip), %rdi      # 0x9fd0
movl %r12d, %esi
callq 0x2330
leaq 0x1250(%rip), %rsi      # 0x613d
movq %rax, %rdi
callq 0x21e0
movq -0x30(%rbp), %rdi
callq 0x2d3a
xorl %ebx, %ebx
leaq -0x70(%rbp), %r13
imulq $0x291b4, %r12, %rax    # imm = 0x291B4
leaq 0x52ee(%rip), %rcx      # 0xa200
addq %rax, %rcx
movq %rcx, -0x40(%rbp)
movq -0x38(%rbp), %rax
movq 0x18(%rax), %rsi
movq 0x20(%rax), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rbx, %rax
jbe 0x4f6f
movslq -0x8(%rsi,%r15), %r14
addq %r15, %rsi
movq %r13, %rdi
callq 0x28c4
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq 0x3508
movl %eax, %r12d
movq %r13, %rdi
callq 0x2726
movslq %r12d, %rax
imulq $0x6c, %r14, %rcx
addq -0x40(%rbp), %rcx
incl (%rcx,%rax,4)
incq %rbx
addq $0x20, %r15
jmp 0x4f19
movq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x35e4
pushq $0x8
popq %rsi
movq %rbx, %rdi
callq 0x2200
jmp 0x4fa3
movq 0x5041(%rip), %rdi      # 0x9fd0
leaq 0x118a(%rip), %rsi      # 0x6120
callq 0x21e0
movq %rax, %rdi
callq 0x2110
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq -0x58(%rbp), %rdi
callq 0x26a4
jmp 0x4fde
movq %rax, %r14
pushq $0x8
popq %rsi
movq %rbx, %rdi
callq 0x2200
jmp 0x4fde
movq %rax, %r14
leaq -0x70(%rbp), %rdi
callq 0x2726
movq %r14, %rdi
callq 0x2340
// File: /workspace/github_cpp_makefile_star2_O2/liujan[P]MPI_multi_thread_randomforest/RandomForest.cpp
// Function: RandomForest::buildTree(int)
bool RandomForest::buildTree(int num){
	if (all_samples.empty()){
		cout << "[Error] all sample is empty" << endl;
		return false;
	}

	memset(result, 0, sizeof(result));
	r = new int*[numOfTest];
	for (int i = 0; i < numOfTest; i++){
		r[i] = new int[numOfTypes+1];
		for (int j = 0; j < numOfTypes + 1; j++)
			r[i][j] = 0;
	}

	for (int i = 0; i < num; i+=numOfThread){
		pthread_t thread[numOfThread];
		M *m = new M[numOfThread];
		for (int j = 0; j < numOfThread; j++){
			m[j].rf = this;
			m[j].i = j;
			pthread_create(&thread[j], NULL, build, &(m[j]));
		}
		for (int j = 0; j < numOfThread; j++)
			pthread_join(thread[j], NULL);
		
		delete[] m;
	}
	

	for (int i = 0; i < numOfTest; i++){
		for (int j = 0; j < numOfTypes + 1; j++){
			for (int k = 0; k < numOfThread; k++){
				r[i][j] += result[k][i][j];
			}
		}
	}
	
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %esi, -0x2c(%rbp)
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
cmpq %r15, %rbx
je 0x5158
movq %rdi, %r14
movq %rbx, -0x40(%rbp)
leaq 0x51e8(%rip), %rdi      # 0xa200
xorl %ebx, %ebx
movl $0x148da0, %edx         # imm = 0x148DA0
xorl %esi, %esi
callq 0x2130
movl $0x30b8, %edi           # imm = 0x30B8
callq 0x2030
movq %rax, %r12
movq %rax, 0x30(%r14)
pushq $0x6c
popq %r13
cmpq $0x617, %rbx            # imm = 0x617
je 0x506e
movq %r13, %rdi
callq 0x2030
movq %rax, (%r12,%rbx,8)
movq 0x30(%r14), %r12
movq (%r12,%rbx,8), %rax
xorl %ecx, %ecx
cmpq $0x1b, %rcx
je 0x5069
andl $0x0, (%rax,%rcx,4)
incq %rcx
jmp 0x505a
incq %rbx
jmp 0x503b
movq %r15, -0x38(%rbp)
xorl %eax, %eax
leaq -0x219(%rip), %r12      # 0x4e62
cmpl -0x2c(%rbp), %eax
jge 0x50f8
movq %rax, -0x50(%rbp)
movl $0x80, %edi
callq 0x2030
movq %rax, %r13
movq %rax, -0x48(%rbp)
leaq -0x90(%rbp), %rbx
xorl %r15d, %r15d
cmpq $0x8, %r15
je 0x50ca
movq %r14, (%r13)
movl %r15d, 0x8(%r13)
movq %rbx, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r13, %rcx
callq 0x2360
incq %r15
addq $0x8, %rbx
addq $0x10, %r13
jmp 0x509f
xorl %ebx, %ebx
cmpq $0x8, %rbx
je 0x50e6
movq -0x90(%rbp,%rbx,8), %rdi
xorl %esi, %esi
callq 0x21d0
incq %rbx
jmp 0x50cc
movq -0x48(%rbp), %rdi
callq 0x2280
movq -0x50(%rbp), %rax
addl $0x8, %eax
jmp 0x507b
movq 0x30(%r14), %rax
xorl %ecx, %ecx
movq -0x40(%rbp), %rbx
movq -0x38(%rbp), %r15
leaq 0x50f3(%rip), %r10      # 0xa200
cmpq $0x617, %rcx            # imm = 0x617
je 0x5173
movq (%rax,%rcx,8), %rdx
movq %r10, %rsi
xorl %edi, %edi
cmpq $0x1b, %rdi
je 0x514f
movl (%rdx,%rdi,4), %r8d
xorl %r9d, %r9d
cmpq $0x148da0, %r9          # imm = 0x148DA0
je 0x5146
addl (%rsi,%r9), %r8d
movl %r8d, (%rdx,%rdi,4)
addq $0x291b4, %r9           # imm = 0x291B4
jmp 0x512c
incq %rdi
addq $0x4, %rsi
jmp 0x511f
incq %rcx
addq $0x6c, %r10
jmp 0x510d
movq 0x4e71(%rip), %rdi      # 0x9fd0
leaq 0xfda(%rip), %rsi       # 0x6140
callq 0x21e0
movq %rax, %rdi
callq 0x2110
cmpq %r15, %rbx
setne %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/liujan[P]MPI_multi_thread_randomforest/main.cpp
// Function: new_type(ompi_datatype_t**)
void new_type(MPI_Datatype *ctype) {
    struct Sample sample;

    int blockcounts[2];
    MPI_Datatype oldtypes[2];

    oldtypes[0] = MPI_INT;
    oldtypes[1] = MPI_DOUBLE;

    MPI_Type_vector(numOfTest, numOfTypes+1, numOfTypes + 1, MPI_INT, ctype);
    MPI_Type_commit(ctype);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x46e0(%rip), %rcx      # 0x9fd8
pushq $0x1b
popq %rdx
movl $0x617, %edi            # imm = 0x617
movl %edx, %esi
movq %rbx, %r8
callq 0x2320
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2270
// File: /workspace/github_cpp_makefile_star2_O2/nmmmnu[P]HM3/test/test_levelorderlookup.cc
// Function: main
int main(){
	using size_type = unsigned short int;

	constexpr LevelOrderLookup<size_type, 3> ll;

	for(size_type i = 0; i < ll.SIZE; ++i)
		printf("%4u | %4u\n", i, ll.value[i] );

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0xebc(%rip), %r15       # 0x2004
leaq 0xec3(%rip), %rbx       # 0x2012
xorl %r14d, %r14d
cmpq $0x7, %r14
je 0x1172
movzwl (%r15), %edx
movq %rbx, %rdi
movl %r14d, %esi
xorl %eax, %eax
callq 0x1030
incq %r14
addq $0x2, %r15
jmp 0x1152
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/jp-myk[P]WAVUtil/src/wav_split.cpp
// Function: main
int main(int argc, char *argv[]){
  if(argc<4){
    std::cout << argv[0] << " WAVFILE PREFIX SPLIT_TIME_SPAN[sec]" << std::endl;
    exit(0);
  }
  const char* wavFName=argv[1];
  std::string prefix(argv[2]);
  float splitTime=5.0;
  splitTime=atof(argv[3]);
  WAV wav;
  std::vector<WAV> wavList;
  std::vector<WAV>::iterator it;
  int res=0;
  res=wav.Read(wavFName);
  std::cout << "split!" << std::endl;
  wavList=SimpleWAV::split_wav(splitTime, wav); // extra 0.0 - 1.00[sec]
  
  int i=0;
  char outfname[100];
  for(it=wavList.begin();it!=wavList.end();++it){
    sprintf(outfname, "%s.%d.wav", prefix.c_str(), i);
    it->Write(outfname);
    i++;
  }

  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %r14
cmpl $0x3, %edi
jle 0x3759
movq 0x8(%r14), %rbx
movq 0x10(%r14), %rsi
leaq 0x28(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x37b6
movq 0x18(%r14), %rdi
callq 0x2190
movsd %xmm0, 0x20(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x3294
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
leaq 0x48(%rsp), %rdi
movq %rbx, %rsi
callq 0x2862
movq 0x3927(%rip), %rdi      # 0x6fd0
leaq 0xc7e(%rip), %rsi       # 0x432e
callq 0x2140
movq %rax, %rdi
callq 0x20d0
cvtsd2ss 0x20(%rsp), %xmm0
leaq 0xa0(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x2de2
movq %rsp, %r14
leaq 0xa0(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3888
movq %rbx, %rdi
callq 0x32e6
movq (%r14), %r14
leaq 0xc38(%rip), %r15       # 0x4335
xorl %ebp, %ebp
cmpq 0x8(%rsp), %r14
je 0x372d
movq 0x28(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %ecx
xorl %eax, %eax
callq 0x2050
movq %r14, %rdi
movq %rbx, %rsi
callq 0x26ae
incl %ebp
addq $0x58, %r14
jmp 0x36ff
movq %rsp, %rdi
callq 0x32e6
leaq 0x48(%rsp), %rdi
callq 0x32d6
leaq 0x28(%rsp), %rdi
callq 0x20c0
xorl %eax, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq (%r14), %rsi
movq 0x386d(%rip), %rdi      # 0x6fd0
callq 0x2140
leaq 0xb9a(%rip), %rsi       # 0x4309
movq %rax, %rdi
callq 0x2140
movq %rax, %rdi
callq 0x20d0
xorl %edi, %edi
callq 0x2180
jmp 0x378f
movq %rax, %rbx
jmp 0x37a4
jmp 0x378f
movq %rax, %rbx
movq %rsp, %rdi
callq 0x32e6
leaq 0x48(%rsp), %rdi
callq 0x32d6
leaq 0x28(%rsp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O2/Baobaobear[P]sort/demo.cpp
// Function: main
int main(void)
{
    typedef int sort_t;
    const size_t count = 1000;
    std::vector<sort_t> arr;

    for (size_t i = 0; i < count; i++)
    {
        arr.push_back(i);
    }

    baobao::random_shuffle(arr.begin(), arr.end());
    baobao::sort::insert_sort(arr.begin(), arr.end());
    print_check_sorted(arr.begin(), arr.end());

    baobao::random_shuffle(arr.begin(), arr.end());
    baobao::sort::heap_sort(arr.begin(), arr.end());
    print_check_sorted(arr.begin(), arr.end());

    baobao::random_shuffle(arr.begin(), arr.end());
    baobao::sort::shell_sort(arr.begin(), arr.end());
    print_check_sorted(arr.begin(), arr.end());

    baobao::random_shuffle(arr.begin(), arr.end());
    baobao::sort::quick_sort(arr.begin(), arr.end());
    print_check_sorted(arr.begin(), arr.end());

    baobao::random_shuffle(arr.begin(), arr.end());
    baobao::sort::merge_sort(arr.begin(), arr.end());
    print_check_sorted(arr.begin(), arr.end());

    baobao::random_shuffle(arr.begin(), arr.end());
    baobao::sort::tim_sort(arr.begin(), arr.end());
    print_check_sorted(arr.begin(), arr.end());

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsp, %rbx
andq $0x0, 0x10(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
xorl %r15d, %r15d
leaq 0x1c(%rsp), %r14
cmpq $0x3e8, %r15            # imm = 0x3E8
je 0x14e8
movl %r15d, 0x1c(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1780
incq %r15
jmp 0x14ca
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x179e
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xa133
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x17df
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x179e
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xa19e
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x17df
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x179e
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xa249
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x17df
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x179e
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xa48c
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x17df
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x179e
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xa814
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x17df
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x179e
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xaa79
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x17df
movq %rsp, %rdi
callq 0x9ff8
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x15fa
movq %rax, %rbx
movq %rsp, %rdi
callq 0x9ff8
movq %rbx, %rdi
callq 0x1190
movq %rax, %rdi
callq 0x17ff
nop
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/main.cpp
// Function: (anonymous namespace)::draw_p(unsigned int, unsigned long)
void draw_p(std::uint32_t depth, std::uint64_t mask)
  {
    if (depth == ~(static_cast<std::uint32_t>(0)))
      return;

    std::wcout << L"\x1b[32m";
    for (std::uint32_t i = 0; i < depth; ++i)
    {
      if (mask & (static_cast<std::uint64_t>(1) << i))
        std::cout << "\x20\x20\x20";
      else
        std::cout << "\u2502\x20\x20";
    }

    if (mask & (static_cast<std::uint64_t>(1) << depth))
      std::cout << "\u2514\u2500 ";
    else
      std::cout << "\u251C\u2500 ";

    std::wcout << L"\x1b[37m";
  }

// Assembly:
cmpl $-0x1, %edi
je 0x5333
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
movq 0x15d1c(%rip), %rdi     # 0x1afc8
leaq 0xc011(%rip), %rsi      # 0x112c4
callq 0x43f0
movl %ebp, %r15d
xorl %r12d, %r12d
leaq 0xbe0a(%rip), %r13      # 0x110cf
leaq 0xbdff(%rip), %rbp      # 0x110cb
movq 0x15ced(%rip), %r14     # 0x1afc0
cmpq %r12, %r15
je 0x52f0
btq %r12, %rbx
movq %rbp, %rsi
cmovaeq %r13, %rsi
movq %r14, %rdi
callq 0x4200
incq %r12
jmp 0x52d3
btq %r15, %rbx
leaq 0xbde2(%rip), %rax      # 0x110dd
leaq 0xbdd3(%rip), %rsi      # 0x110d5
cmovaeq %rax, %rsi
movq 0x15cb3(%rip), %rdi     # 0x1afc0
callq 0x4200
movq 0x15caf(%rip), %rdi     # 0x1afc8
leaq 0xbfbc(%rip), %rsi      # 0x112dc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x43f0
retq
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/../node.hpp
// Function: akbit::system::etype_to_str[abi:cxx11](akbit::system::Node::etype_t)
inline std::string etype_to_str(Node::etype_t t)
  {
    switch (t)
    {
      case Node::etype_t::unknown: return "unknown";
      case Node::etype_t::string: return "string";
      case Node::etype_t::character: return "character";
      case Node::etype_t::integer: return "integer";
      case Node::etype_t::decimal: return "decimal";

      case Node::etype_t::function: return "function";
      case Node::etype_t::tuple: return "tuple";

      case Node::etype_t::any: return "any";
    } 
  }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl %esi, %eax
leaq 0xaa63(%rip), %rcx      # 0x11004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xacc3(%rip), %rsi      # 0x11274
leaq 0xf(%rsp), %rdx
jmp 0x6618
leaq 0xaeb6(%rip), %rsi      # 0x11475
leaq 0xb(%rsp), %rdx
jmp 0x6618
leaq 0xabb8(%rip), %rsi      # 0x11185
leaq 0xd(%rsp), %rdx
jmp 0x6618
leaq 0xae8b(%rip), %rsi      # 0x11466
leaq 0xc(%rsp), %rdx
jmp 0x6618
leaq 0xac93(%rip), %rsi      # 0x1127c
leaq 0x8(%rsp), %rdx
jmp 0x6618
leaq 0xab87(%rip), %rsi      # 0x1117e
leaq 0xe(%rsp), %rdx
jmp 0x6618
leaq 0xab93(%rip), %rsi      # 0x11198
leaq 0xa(%rsp), %rdx
jmp 0x6618
leaq 0xab8e(%rip), %rsi      # 0x111a1
leaq 0x9(%rsp), %rdx
movq %rbx, %rdi
callq 0x6728
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/error_handling.cpp
// Function: akbit::system::log_error(akbit::system::parsing::LexerState&)
void log_error(parsing::LexerState &state)
  {
    log_error_common(state);

    std::cout << "Line: " << state.line << "\n";
    std::cout << "Column: " << state.column << "\n\n";

    // throw std::runtime_error("halt");
  }

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x71b4
movq 0x14012(%rip), %rdi     # 0x1afc0
leaq 0xa381(%rip), %rsi      # 0x11336
callq 0x4200
movl 0x20(%rsp), %esi
movq %rax, %rdi
callq 0x43b0
leaq 0xa373(%rip), %rsi      # 0x11340
movq %rax, %rdi
callq 0x4200
leaq 0x28(%rsp), %r14
movq 0x13fdf(%rip), %rdi     # 0x1afc0
movq %r14, %rsi
callq 0x41e0
leaq 0xa343(%rip), %rsi      # 0x11333
movq %rax, %rdi
callq 0x4200
movq %r14, %rdi
callq 0x4120
movq 0x13fb9(%rip), %r14     # 0x1afc0
leaq 0xa315(%rip), %rsi      # 0x11323
movq %r14, %rdi
callq 0x4200
movl 0x4(%rbx), %esi
movq %rax, %rdi
callq 0x4180
leaq 0xa30c(%rip), %rsi      # 0x11334
movq %rax, %rdi
callq 0x4200
leaq 0xa2f3(%rip), %rsi      # 0x1132a
movq %r14, %rdi
callq 0x4200
movl 0x8(%rbx), %esi
movq %rax, %rdi
callq 0x4180
leaq 0xa2e2(%rip), %rsi      # 0x11333
movq %rax, %rdi
callq 0x4200
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x4120
movq %rbx, %rdi
callq 0x43c0
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/error_handling.cpp
// Function: akbit::system::log_error(akbit::system::parsing::ParserState&)
void log_error(parsing::ParserState &state)
  {
    log_error_common(state);

    std::cout << "Line: " << state.peek().line << "\n";
    std::cout << "Column: " << state.peek().column << "\n\n";
    // TODO: Implement specific error handling stuff
    // TODO: Implement specific error handling stuff
    // TODO: Implement specific error handling stuff
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rdi, %rbx
leaq 0x40(%rsp), %rdi
movq %rbx, %rsi
callq 0x71d0
movq 0x13f27(%rip), %rdi     # 0x1afc0
leaq 0xa296(%rip), %rsi      # 0x11336
callq 0x4200
movl 0x50(%rsp), %esi
movq %rax, %rdi
callq 0x43b0
leaq 0xa288(%rip), %rsi      # 0x11340
movq %rax, %rdi
callq 0x4200
leaq 0x58(%rsp), %rsi
movq 0x13ef4(%rip), %rdi     # 0x1afc0
callq 0x41e0
leaq 0xa25b(%rip), %rsi      # 0x11333
movq %rax, %rdi
callq 0x4200
leaq 0x40(%rsp), %rdi
callq 0x721c
movq 0x13ecf(%rip), %rdi     # 0x1afc0
leaq 0xa22b(%rip), %rsi      # 0x11323
callq 0x4200
movq %rax, %r14
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7236
movl 0x4(%r15), %esi
movq %r14, %rdi
callq 0x4180
leaq 0xa211(%rip), %rsi      # 0x11334
movq %rax, %rdi
callq 0x4200
leaq 0x18(%rsp), %rdi
callq 0x4120
movq 0x13e84(%rip), %rdi     # 0x1afc0
leaq 0xa1e7(%rip), %rsi      # 0x1132a
callq 0x4200
movq %rax, %r14
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7236
movl 0x8(%r15), %esi
movq %r14, %rdi
callq 0x4180
leaq 0xa1c5(%rip), %rsi      # 0x11333
movq %rax, %rdi
callq 0x4200
leaq 0x18(%rsp), %rdi
callq 0x4120
addq $0x90, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x718f
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x4120
jmp 0x71ab
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x721c
movq %rbx, %rdi
callq 0x43c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/token.cpp
// Function: akbit::system::parsing::get_type_name[abi:cxx11](akbit::system::parsing::TokenType)
std::string get_type_name(TokenType type)
  {
    using tt = TokenType;

    switch (type)
    {
      case tt::t_commentary: return "commentary";
      case tt::t_identifier: return "identifier";
      case tt::t_character: return "character";
      case tt::t_string: return "string";
      case tt::t_number: return "number";
      case tt::t_operator: return "operator";
      case tt::t_eof: return "##EOF##";
    
      default: return "#???";
    }
  }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
decl %esi
cmpl $0x6, %esi
ja 0x748b
leaq 0x9f1e(%rip), %rax      # 0x11368
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x9fb6(%rip), %rsi      # 0x11410
leaq 0xf(%rsp), %rdx
jmp 0x74c1
leaq 0x9d1d(%rip), %rsi      # 0x11185
leaq 0xd(%rsp), %rdx
jmp 0x74c1
leaq 0x9fb0(%rip), %rsi      # 0x11426
leaq 0xb(%rsp), %rdx
jmp 0x74c1
leaq 0x9cfa(%rip), %rsi      # 0x1117e
leaq 0xc(%rsp), %rdx
jmp 0x74c1
leaq 0x9c74(%rip), %rsi      # 0x11106
leaq 0x8(%rsp), %rdx
jmp 0x74c1
leaq 0x9f7b(%rip), %rsi      # 0x1141b
leaq 0xe(%rsp), %rdx
jmp 0x74c1
leaq 0x9f7f(%rip), %rsi      # 0x1142d
leaq 0xa(%rsp), %rdx
jmp 0x74c1
leaq 0x9f7a(%rip), %rsi      # 0x11436
leaq 0x9(%rsp), %rdx
movq %rbx, %rdi
callq 0x6728
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/token.cpp
// Function: akbit::system::parsing::operator<<(std::ostream&, akbit::system::parsing::Token&)
std::ostream &operator<<(std::ostream &out, parsing::Token &token)
  {
    out << std::setw(4) << token.line << '|' << std::setw(4) << token.column << ' '
        << std::setw(24) << get_sub_type_name(token.sub_type) << "  "
        << token.value;
    return out;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rax
movq -0x18(%rax), %rax
pushq $0x4
popq %r15
movq %r15, 0x10(%rdi,%rax)
movl 0x4(%rsi), %esi
callq 0x4180
pushq $0x7c
popq %rsi
movq %rax, %rdi
callq 0x4280
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r15, 0x10(%rax,%rcx)
movl 0x8(%r14), %esi
movq %rax, %rdi
callq 0x4180
pushq $0x20
popq %rsi
movq %rax, %rdi
callq 0x4280
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movq $0x18, 0x10(%r15,%rax)
movl 0x34(%r14), %esi
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x74d2
movq %r15, %rdi
movq %r12, %rsi
callq 0x41e0
leaq 0x99b3(%rip), %rsi      # 0x110cc
movq %rax, %rdi
callq 0x4200
addq $0x10, %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x41e0
leaq 0x8(%rsp), %rdi
callq 0x4120
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4120
movq %rbx, %rdi
callq 0x43c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/lexing.cpp
// Function: akbit::system::parsing::LexerState::move()
void LexerState::move()
  {
    if (index >= source.size())
      return;

    ++column;
    if (source[index++] != '\n')
      return;

    ++line;
    column = 1;
  }

// Assembly:
movl (%rdi), %eax
movq 0x10(%rdi), %rcx
cmpq %rax, 0x8(%rcx)
jbe 0x7787
incl 0x8(%rdi)
leal 0x1(%rax), %edx
movl %edx, (%rdi)
movq (%rcx), %rcx
cmpb $0xa, (%rcx,%rax)
jne 0x7787
incl 0x4(%rdi)
movl $0x1, 0x8(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/lexing.cpp
// Function: akbit::system::parsing::get_character_type(char)
parsing::TokenSubType get_character_type(char c)
  {
    using tst = TokenSubType;

    switch (c)
    {
      case '@': return tst::t_at_sign;

      case '(': return tst::t_brace_round_left;
      case ')': return tst::t_brace_round_right;
      case '[': return tst::t_brace_square_left;
      case ']': return tst::t_brace_square_right;
      case '<': return tst::t_brace_triangular_left;
      case '>': return tst::t_brace_triangular_right;
      case '{': return tst::t_brace_curly_left;
      case '}': return tst::t_brace_curly_right;

      case '+': return tst::t_plus;
      case '-': return tst::t_dash;
      case '~': return tst::t_tilde;
      case '.': return tst::t_dot;
      case ',': return tst::t_comma;

      case '*': return tst::t_star;
      case '/': return tst::t_slash;
      case '\\': return tst::t_backslash;
      case '%': return tst::t_percent;

      case '|': return tst::t_vertical_bar;
      case '&': return tst::t_ampersand;
      case '^': return tst::t_caret;

      case '=': return tst::t_equal;
      case '!': return tst::t_exclamation_mark;
      case '?': return tst::t_question_mark;

      case ':': return tst::t_colon;
      case ';': return tst::t_semicolon;

      default: return tst::t_unknown;
    }
  }

// Assembly:
leal -0x21(%rdi), %eax
cmpl $0x1f, %eax
ja 0x77a7
leaq 0x9e75(%rip), %rcx      # 0x1160c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0x1e
jmp 0x783c
leal -0x5b(%rdi), %eax
cmpl $0x3, %eax
jbe 0x77cb
addl $-0x7b, %edi
cmpl $0x3, %edi
ja 0x77df
leaq 0x9ede(%rip), %rax      # 0x1169c
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
pushq $0xf
jmp 0x783c
leaq 0x9eba(%rip), %rcx      # 0x1168c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
pushq $0xb
jmp 0x783c
xorl %eax, %eax
retq
pushq $0x18
jmp 0x783c
pushq $0x21
jmp 0x783c
pushq $0xd
jmp 0x783c
pushq $0x11
jmp 0x783c
pushq $0xe
jmp 0x783c
pushq $0x1b
jmp 0x783c
pushq $0x20
jmp 0x783c
pushq $0xa
jmp 0x783c
pushq $0x1d
jmp 0x783c
pushq $0x14
jmp 0x783c
pushq $0x12
jmp 0x783c
pushq $0x17
jmp 0x783c
pushq $0x1f
jmp 0x783c
pushq $0x9
jmp 0x783c
pushq $0x19
jmp 0x783c
pushq $0x15
jmp 0x783c
pushq $0x8
jmp 0x783c
pushq $0xc
jmp 0x783c
pushq $0x10
jmp 0x783c
pushq $0x1c
jmp 0x783c
pushq $0x16
jmp 0x783c
pushq $0x13
jmp 0x783c
pushq $0x1a
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/lexing.cpp
// Function: akbit::system::parsing::tokenize(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
std::vector<Token> tokenize(std::string &source)
  {
    std::vector<Token> tokens{};
    parsing::LexerState state(source);

    while (state.index < source.size() && not state.is_error_occurred())
      tokens.push_back(get_next_token(state));

    if (state.is_error_occurred())
    {
      log_error(state);
    }

    return tokens;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x8(%rsp), %rdi
callq 0x7da8
leaq 0x58(%rsp), %r15
leaq 0x48(%rsp), %r12
leaq 0x8(%rsp), %r13
movl 0x8(%rsp), %ecx
movl 0x20(%rsp), %eax
cmpq %rcx, 0x8(%r14)
jbe 0x7d09
testl %eax, %eax
jne 0x7d09
movq %r12, %rdi
movq %r13, %rsi
callq 0x783e
movq %rbx, %rdi
movq %r12, %rsi
callq 0x7ddc
movq %r15, %rdi
callq 0x4120
jmp 0x7cd7
testl %eax, %eax
je 0x7d17
leaq 0x8(%rsp), %rdi
callq 0x6f90
leaq 0x28(%rsp), %rdi
callq 0x4120
movq %rbx, %rax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x7d3c
movq %rax, %r14
jmp 0x7d56
movq %rax, %r14
jmp 0x7d4c
movq %rax, %r14
movq %r15, %rdi
callq 0x4120
leaq 0x28(%rsp), %rdi
callq 0x4120
movq %rbx, %rdi
callq 0x66ba
movq %r14, %rdi
callq 0x43c0
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/parsing.cpp
// Function: akbit::system::parsing::ParserState::consume(akbit::system::parsing::TokenType, akbit::system::parsing::TokenSubType)
Token ParserState::consume(TokenType const type, TokenSubType const subtype)
  {
    Token tok = this->peek();
    if (type != tok.type || (subtype != TokenSubType::t_unknown && subtype != tok.sub_type))
    {
      std::string expected = (subtype != TokenSubType::t_unknown ? get_sub_type_name(subtype) : get_type_name(type));
      this->error.code = error_t::p_unexpected_token;
      this->error.message = "[somewhere]: <" + expected + "> expected, but <"
      + get_sub_type_name(tok.sub_type) + "> was given";
      return tok;
    }

    this->move();
    return tok;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xc8, %rsp
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
callq 0x7236
cmpl %r15d, 0x30(%rbx)
jne 0x8035
testl %ebp, %ebp
je 0x8028
cmpl %ebp, 0x34(%rbx)
jne 0x8039
movq %r14, %rdi
callq 0x9c6e
jmp 0x811c
testl %ebp, %ebp
je 0x8047
leaq 0x8(%rsp), %rdi
movl %ebp, %esi
callq 0x74d2
jmp 0x8054
leaq 0x8(%rsp), %rdi
movl %r15d, %esi
callq 0x7434
movl $0x7da, 0x10(%r14)      # imm = 0x7DA
leaq 0x9750(%rip), %rsi      # 0x117b3
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x9bf7
leaq 0x9749(%rip), %rdx      # 0x117c2
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x7d66
movl 0x34(%rbx), %esi
leaq 0x28(%rsp), %rdi
callq 0x74d2
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x9b90
leaq 0x9721(%rip), %rdx      # 0x117d4
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x7d66
addq $0x18, %r14
leaq 0xa8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x42a0
movq %r15, %rdi
callq 0x4120
leaq 0x88(%rsp), %rdi
callq 0x4120
leaq 0x28(%rsp), %rdi
callq 0x4120
leaq 0x68(%rsp), %rdi
callq 0x4120
leaq 0x48(%rsp), %rdi
callq 0x4120
leaq 0x8(%rsp), %rdi
callq 0x4120
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x88(%rsp), %rdi
callq 0x4120
jmp 0x8142
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x4120
jmp 0x8151
movq %rax, %r14
leaq 0x68(%rsp), %rdi
callq 0x4120
jmp 0x8160
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0x4120
jmp 0x816f
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x4120
addq $0x10, %rbx
movq %rbx, %rdi
callq 0x4120
movq %r14, %rdi
callq 0x43c0
movq %rax, %r14
jmp 0x8179
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/parsing.cpp
// Function: akbit::system::parsing::ParserState::consume(akbit::system::parsing::TokenSubType)
Token ParserState::consume(TokenSubType const subtype)
  {
    Token tok = this->peek();
    if (subtype != tok.sub_type)
    {
      std::string expected = get_sub_type_name(subtype);
      this->error.code = error_t::p_unexpected_token;
      this->error.message = "[somewhere]: <" + expected + "> expected, but <"
      + get_sub_type_name(tok.sub_type) + ">(" + tok.value +  ") was given";
      return tok;
    }

    this->move();
    return tok;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x7236
cmpl %ebp, 0x34(%rbx)
jne 0x81be
movq %r14, %rdi
callq 0x9c6e
jmp 0x82e1
leaq 0xc8(%rsp), %rdi
movl %ebp, %esi
callq 0x74d2
movl $0x7da, 0x10(%r14)      # imm = 0x7DA
leaq 0x95d7(%rip), %rsi      # 0x117b3
leaq 0x28(%rsp), %rdi
leaq 0xc8(%rsp), %rdx
callq 0x9bf7
leaq 0x95cd(%rip), %rdx      # 0x117c2
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x7d66
movl 0x34(%rbx), %esi
leaq 0x8(%rsp), %rdi
callq 0x74d2
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
leaq 0x8(%rsp), %rdx
callq 0x9b90
leaq 0x95b4(%rip), %rdx      # 0x117e0
leaq 0x88(%rsp), %rdi
leaq 0x68(%rsp), %rsi
callq 0x7d66
leaq 0x10(%rbx), %rdx
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x9c91
leaq 0x9585(%rip), %rdx      # 0x117e3
leaq 0xe8(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x7d66
addq $0x18, %r14
leaq 0xe8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x42a0
movq %r15, %rdi
callq 0x4120
leaq 0xa8(%rsp), %rdi
callq 0x4120
leaq 0x88(%rsp), %rdi
callq 0x4120
leaq 0x68(%rsp), %rdi
callq 0x4120
leaq 0x8(%rsp), %rdi
callq 0x4120
leaq 0x48(%rsp), %rdi
callq 0x4120
leaq 0x28(%rsp), %rdi
callq 0x4120
leaq 0xc8(%rsp), %rdi
callq 0x4120
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0xa8(%rsp), %rdi
callq 0x4120
jmp 0x8307
movq %rax, %r14
leaq 0x88(%rsp), %rdi
callq 0x4120
jmp 0x8319
movq %rax, %r14
leaq 0x68(%rsp), %rdi
callq 0x4120
jmp 0x8328
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x4120
jmp 0x8337
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0x4120
leaq 0x28(%rsp), %rdi
callq 0x4120
leaq 0xc8(%rsp), %rdi
callq 0x4120
addq $0x10, %rbx
movq %rbx, %rdi
callq 0x4120
movq %r14, %rdi
callq 0x43c0
movq %rax, %r14
jmp 0x8341
movq %rax, %r14
jmp 0x834b
movq %rax, %r14
jmp 0x8358
nop
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/parsing.cpp
// Function: akbit::system::parsing::parse(std::vector<akbit::system::parsing::Token, std::allocator<akbit::system::parsing::Token>>&)
std::shared_ptr<Node> parse(std::vector<Token> &tokens)
  {
    ParserState state(tokens);
    auto module = parse_module(state);

    if (state.is_failed())
    {
      std::get<Node::module_t>(module->value).has_errors = state.is_failed();
      log_error(state);
      return module;
    }

    return module;
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
movq %rsp, %rdi
callq 0x9cba
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rsi
movups %xmm0, 0x19(%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, (%rsi)
movq %rbx, %rdi
callq 0x9d6a
leaq 0x50(%rsp), %r15
movq %r15, %rdi
callq 0x6830
leaq 0x58(%rsp), %r14
movq %rsp, %r12
movl 0x10(%r12), %ecx
pushq $0x38
popq %rbp
movq (%rsp), %rdx
movq 0x8(%rsp), %rsi
movq 0x8(%rdx), %rax
subq (%rdx), %rax
cqto
idivq %rbp
decq %rax
cmpq %rax, %rsi
jae 0x8698
testl %ecx, %ecx
jne 0x8698
movq (%rbx), %rdi
addq $0x10, %rdi
callq 0x6d43
movq %rax, %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x87ce
movq %r13, %rdi
movq %r15, %rsi
callq 0xa056
movq %r14, %rdi
callq 0x69e2
xorl %ecx, %ecx
cmpl $0x0, 0x10(%rsp)
je 0x863f
jmp 0x869c
testl %ecx, %ecx
je 0x86b4
movq (%rbx), %rdi
addq $0x10, %rdi
callq 0x6d43
movb $0x1, 0x28(%rax)
movq %rsp, %rdi
callq 0x7076
movq %rsp, %rdi
callq 0x721c
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
leaq 0x50(%rsp), %rdi
callq 0x6830
jmp 0x8700
jmp 0x86f1
jmp 0x86f1
movq %rax, %r15
movq %r14, %rdi
callq 0x69e2
jmp 0x86f4
movq %rax, %r15
addq $0x8, %rbx
movq %rbx, %rdi
callq 0x69e2
movq %rsp, %rdi
callq 0x721c
movq %r15, %rdi
callq 0x43c0
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/parsing.cpp
// Function: akbit::system::parsing::convert_to_tuple(std::shared_ptr<akbit::system::Node>)
std::shared_ptr<Node> convert_to_tuple(std::shared_ptr<Node> node)
  {
    if (nullptr == node) return nullptr;
    try
    {
      std::get<Node::value_tuple_t>(node->value);
      return node;
    }
    catch (...) { }
    
    auto container = std::make_shared<Node>(Node::value_tuple_t{
      .entries = {
        {node}
      }
    });

    return container;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x8742
movq %rsi, %r14
addq $0x10, %rdi
callq 0x9d4d
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, (%rbx)
andq $0x0, (%r14)
jmp 0x8748
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rdi
callq 0x40f0
callq 0x4390
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x6d30
leaq 0x18(%rsp), %rdi
pushq $0x1
popq %rdx
leaq 0x7(%rsp), %rcx
movq %r15, %rsi
callq 0x9d14
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x9cf5
leaq 0x18(%rsp), %rdi
callq 0x69c0
leaq 0x10(%rsp), %rdi
callq 0x69e2
jmp 0x8748
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x69c0
jmp 0x87bc
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x69e2
movq %rbx, %rdi
callq 0x43c0
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/parsing.cpp
// Function: akbit::system::parsing::(anonymous namespace)::parse_statement(akbit::system::parsing::ParserState&)
std::shared_ptr<Node> parse_statement(ParserState &state)
    {
      if (state.peek().sub_type == TokenSubType::t_identifier && state.peek().value == "let")
        return parse_statement_declaration(state);
      else if (state.peek().sub_type == TokenSubType::t_identifier && state.peek().value == "if")
        return parse_statement_condition(state);
      return parse_expression(state);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r15
movq %r15, %rdi
callq 0x7236
cmpl $0x3, 0x34(%r15)
jne 0x883a
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x7236
leaq 0x50(%rsp), %r15
leaq 0x8ff8(%rip), %rsi      # 0x11801
movq %r15, %rdi
callq 0xa200
movl %eax, %ebp
movq %r15, %rdi
callq 0x4120
leaq 0x10(%rsp), %rdi
callq 0x4120
testb %bpl, %bpl
je 0x8844
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8931
jmp 0x8904
leaq 0x10(%rsp), %rdi
callq 0x4120
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x7236
cmpl $0x3, 0x34(%r15)
jne 0x88a0
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x7236
leaq 0x50(%rsp), %r15
leaq 0x8f93(%rip), %rsi      # 0x11805
movq %r15, %rdi
callq 0xa200
movl %eax, %ebp
movq %r15, %rdi
callq 0x4120
leaq 0x10(%rsp), %rdi
callq 0x4120
testb %bpl, %bpl
je 0x88aa
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8c7d
jmp 0x8904
leaq 0x10(%rsp), %rdi
callq 0x4120
movq %rsp, %rdi
movq %r14, %rsi
callq 0x9638
cmpl $0x0, 0x10(%r14)
je 0x88d0
movaps (%rsp), %xmm0
andq $0x0, 0x8(%rsp)
movups %xmm0, (%rbx)
andq $0x0, (%rsp)
jmp 0x88fa
leaq 0x40(%rsp), %r15
movq %rsp, %rsi
movq %r15, %rdi
callq 0x6d30
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x8ea9
leaq 0x48(%rsp), %rdi
callq 0x69e2
leaq 0x8(%rsp), %rdi
callq 0x69e2
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x69e2
leaq 0x8(%rsp), %rdi
callq 0x69e2
movq %rbx, %rdi
callq 0x43c0
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/parsing.cpp
// Function: akbit::system::parsing::(anonymous namespace)::parse_operator(akbit::system::parsing::ParserState&)
operator_t const & parse_operator(ParserState &state)
    {
      state.save();
      Token t = state.consume(TokenType::t_operator);
      if (state.is_failed())
      {
        state.drop();
        return operator_unknown;
      }
      state.restore();

      operator_t const * operation = &operator_unknown;
      std::string representation = "";
      state.save();

      while (state.peek().type == TokenType::t_operator && representation.size() < 5)
      {
        representation += state.peek().value;
        state.move();

        for (std::size_t index = 0; index < operators_list.size(); ++index)
          if (operators_list[index].representation == representation)
            operation = &operators_list[index];
      }

      state.restore();
      for (std::size_t i = 0; i < operation->representation.size(); ++i)
          state.move();

      return *operation;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
callq 0xa7fc
leaq 0x60(%rsp), %rdi
pushq $0x6
popq %rdx
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0x7ffc
cmpl $0x0, 0x10(%rbx)
je 0x93ec
addq $-0x8, 0x40(%rbx)
leaq 0x1151c(%rip), %rax     # 0x1a900
movq (%rax), %r14
jmp 0x94f0
movq %rbx, %rdi
callq 0xa80c
leaq 0x7f3a(%rip), %rsi      # 0x11335
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x6728
movq %rbx, %rdi
callq 0xa7fc
leaq 0x114e7(%rip), %rax     # 0x1a900
movq (%rax), %r14
leaq 0x38(%rsp), %r12
leaq 0x28(%rsp), %r13
leaq 0x8(%rsp), %rbp
movq %rbx, (%rsp)
movq %r13, %rdi
movq %rbx, %rsi
callq 0x7236
cmpl $0x6, 0x58(%rsp)
jne 0x94be
movq 0x10(%rsp), %r15
leaq 0x38(%rsp), %rdi
callq 0x4120
cmpq $0x4, %r15
ja 0x94c8
movq %rbx, %r15
movq %r13, %rbx
movq %r13, %rdi
movq %r15, %rsi
callq 0x7236
movq %rbp, %rdi
movq %r12, %rsi
callq 0x4420
movq %r12, %r13
movq %r12, %rdi
callq 0x4120
movq %r15, %rdi
callq 0x9c6e
leaq 0x11dac(%rip), %r12     # 0x1b238
pushq $0x16
popq %r15
subq $0x1, %r15
jb 0x94af
leaq 0x10(%r12), %rdi
movq %rbp, %rsi
callq 0x73fc
testb %al, %al
cmovneq %r12, %r14
addq $0x30, %r12
jmp 0x9490
movq %r13, %r12
movq %rbx, %r13
movq (%rsp), %rbx
jmp 0x942f
leaq 0x38(%rsp), %rdi
callq 0x4120
movq %rbx, %rdi
callq 0xa80c
xorl %r15d, %r15d
cmpq 0x18(%r14), %r15
jae 0x94e6
movq %rbx, %rdi
callq 0x9c6e
incq %r15
jmp 0x94d3
leaq 0x8(%rsp), %rdi
callq 0x4120
leaq 0x70(%rsp), %rdi
callq 0x4120
movq %r14, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x9511
movq %rax, %rbx
jmp 0x9530
movq %rax, %rbx
jmp 0x9526
movq %rax, %rbx
movq %r12, %rdi
callq 0x4120
leaq 0x8(%rsp), %rdi
callq 0x4120
leaq 0x70(%rsp), %rdi
callq 0x4120
movq %rbx, %rdi
callq 0x43c0
// File: /workspace/github_cpp_makefile_star2_O2/AgathokakologicalBit[P]wit/src/parsing/parsing.cpp
// Function: akbit::system::parsing::(anonymous namespace)::parse_statement_or_composite_unit(akbit::system::parsing::ParserState&)
std::shared_ptr<Node> parse_statement_or_composite_unit(ParserState &state)
    {
      if (state.peek().sub_type == TokenSubType::t_identifier && state.peek().value == "let")
        return parse_statement_declaration(state);
      else if (state.peek().sub_type == TokenSubType::t_identifier && state.peek().value == "if")
        return parse_statement_condition(state);
      return parse_composite_unit(state);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x7236
cmpl $0x3, 0x34(%r15)
jne 0x95ad
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x7236
leaq 0x50(%rsp), %r15
leaq 0x8282(%rip), %rsi      # 0x11801
movq %r15, %rdi
callq 0xa200
movl %eax, %ebp
movq %r15, %rdi
callq 0x4120
leaq 0x18(%rsp), %rdi
callq 0x4120
testb %bpl, %bpl
je 0x95b7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8931
jmp 0x962a
leaq 0x18(%rsp), %rdi
callq 0x4120
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x7236
cmpl $0x3, 0x34(%r15)
jne 0x9615
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
callq 0x7236
leaq 0x50(%rsp), %r15
leaq 0x821e(%rip), %rsi      # 0x11805
movq %r15, %rdi
callq 0xa200
movl %eax, %ebp
movq %r15, %rdi
callq 0x4120
leaq 0x18(%rsp), %rdi
callq 0x4120
testb %bpl, %bpl
je 0x961f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8c7d
jmp 0x962a
leaq 0x18(%rsp), %rdi
callq 0x4120
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9638
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq