LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/Student.cpp
// Function: Student::Student(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
Student::Student(const vector<string>& row)
: Element(size, question_ratio), id(row[0]), name(row[1]) {
	for (int i = 2; i < row.size(); ++i)
		data[i-2] = str2int(row[i]);

	raw_data = data;

	data[2] = sqrt_trans(data[2] += 1);	// 起床时间
	data[3] = sqrt_trans(data[3] += 1);	// 就寝时间
	data[12] = sqrt_trans(data[12] += 1);// 家庭收入水平
	data[10] *= MAX[10];	// 性格分明，尽量不要出现三个安静+1个活跃
	for (int i = 0; i < size; ++i)
		if (MAX[i] > MIN[i])
			data[i] = (data[i] - MIN[i]) / (MAX[i] - MIN[i]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r12
movq %rdi, %rbx
leaq 0x350f(%rip), %rdx      # 0xa280
movl $0xf, %esi
callq 0x7404
leaq 0x30(%rbx), %r14
movq (%r12), %rax
leaq 0x40(%rbx), %rcx
movq %rcx, 0x8(%rsp)
movq %rcx, 0x30(%rbx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x4ca2
movq %r14, 0x10(%rsp)
leaq 0x50(%rbx), %r15
movq (%r12), %rax
leaq 0x60(%rbx), %rcx
movq %rcx, (%rsp)
movq %rcx, 0x50(%rbx)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x4ca2
leaq 0x70(%rbx), %r13
xorpd %xmm0, %xmm0
movupd %xmm0, 0x70(%rbx)
movq $0x0, 0x80(%rbx)
movq (%r12), %rdi
movq 0x8(%r12), %rax
subq %rdi, %rax
cmpq $0x41, %rax
jb 0x6e38
movl $0x2, %r14d
movl $0x40, %ebp
addq %rbp, %rdi
callq 0x31dc
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movq (%rbx), %rax
movsd %xmm0, -0x10(%rax,%r14,8)
incq %r14
movq (%r12), %rdi
movq 0x8(%r12), %rax
subq %rdi, %rax
sarq $0x5, %rax
addq $0x20, %rbp
cmpq %r14, %rax
ja 0x6e03
movq %r13, %rdi
movq %rbx, %rsi
callq 0x5db4
movq (%rbx), %rax
movupd 0x10(%rax), %xmm0
addpd 0x340d(%rip), %xmm0     # 0xa260
mulpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rax)
movsd 0x60(%rax), %xmm0
addsd 0x3407(%rip), %xmm0     # 0xa270
mulsd %xmm0, %xmm0
movsd %xmm0, 0x60(%rax)
movsd 0x50(%rax), %xmm0
mulsd 0x33f9(%rip), %xmm0     # 0xa278
movsd %xmm0, 0x50(%rax)
xorl %ecx, %ecx
leaq 0x34f3(%rip), %rdx      # 0xa380
leaq 0x346c(%rip), %rsi      # 0xa300
movsd (%rcx,%rdx), %xmm0
movsd (%rcx,%rsi), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x6eba
movsd (%rax,%rcx), %xmm2
subsd %xmm1, %xmm2
subsd %xmm1, %xmm0
divsd %xmm0, %xmm2
movsd %xmm2, (%rax,%rcx)
addq $0x8, %rcx
cmpq $0x78, %rcx
jne 0x6e94
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6edf
movq %rax, %r12
jmp 0x6f12
movq %rax, %r12
jmp 0x6f31
movq %rax, %r12
movq (%r13), %rdi
testq %rdi, %rdi
je 0x6efa
movq 0x80(%rbx), %rsi
subq %rdi, %rsi
callq 0x2230
movq (%r15), %rdi
cmpq (%rsp), %rdi
je 0x6f12
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2230
movq 0x10(%rsp), %rax
movq (%rax), %rdi
cmpq 0x8(%rsp), %rdi
je 0x6f31
movq 0x8(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x4b06
movq %r12, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/Student.cpp
// Function: operator>>(std::istream&, Student&)
istream& operator >> (istream& is, Student& stu) {
	vector<string> row(Student::size);
	for (int i = 0; i < Student::size; ++i)
		is >> row[i];
	stu = Student(row);
	return is;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movl $0xf, %esi
callq 0x734a
xorl %r15d, %r15d
movq 0x8(%rsp), %rsi
addq %r15, %rsi
movq %rbx, %rdi
callq 0x2280
addq $0x20, %r15
cmpq $0x1e0, %r15            # imm = 0x1E0
jne 0x6f70
leaq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x6d56
movq (%r14), %rdi
movq 0x10(%r14), %rsi
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%r14)
movq 0x30(%rsp), %rax
movq %rax, 0x10(%r14)
xorps %xmm1, %xmm1
movaps %xmm1, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
testq %rdi, %rdi
je 0x6fd6
subq %rdi, %rsi
callq 0x2230
xorps %xmm1, %xmm1
movq 0x18(%r14), %rdi
movq 0x28(%r14), %rsi
movups 0x38(%rsp), %xmm0
movups %xmm0, 0x18(%r14)
movq 0x48(%rsp), %rax
movq %rax, 0x28(%r14)
movups %xmm1, 0x38(%rsp)
movq $0x0, 0x48(%rsp)
testq %rdi, %rdi
je 0x700c
subq %rdi, %rsi
callq 0x2230
leaq 0x30(%r14), %rdi
leaq 0x50(%rsp), %rsi
callq 0x2270
leaq 0x50(%r14), %rdi
leaq 0x70(%rsp), %r15
movq %r15, %rsi
callq 0x2270
movq 0x70(%r14), %rdi
movq 0x80(%r14), %rsi
movaps 0x20(%r15), %xmm0
movups %xmm0, 0x70(%r14)
movq 0x30(%r15), %rax
movq %rax, 0x80(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%r15)
movq $0x0, 0x30(%r15)
testq %rdi, %rdi
je 0x7085
subq %rdi, %rsi
callq 0x2230
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x7085
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x70a6
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x70c1
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x70d8
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x70ef
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x8(%rsp), %rdi
callq 0x4b8a
movq %rbx, %rax
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x710b
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x4b8a
movq %rbx, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/Student.cpp
// Function: Student::display() const
void Student::display() const {
	printf("Id is %s", id.c_str());
	for (int i = 0; i < size; ++i)
		printf(", %.3lf", data[i]);
	printf("\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %rsi
leaq 0x342d(%rip), %rdi      # 0xa560
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x2050
leaq 0x3425(%rip), %r14      # 0xa569
movq (%rbx), %rax
movsd (%rax,%r15,8), %xmm0
movq %r14, %rdi
movb $0x1, %al
callq 0x2050
incq %r15
cmpq $0xf, %r15
jne 0x7144
movl $0xa, %edi
popq %rbx
popq %r14
popq %r15
jmp 0x22a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/Student.cpp
// Function: Student::output(std::ostream&) const
void Student::output(ostream& out) const {
	out << id << ',' << name;

	for (int i = 0; i < size; ++i) {
		if (i == 4) {
			out << ",\"";
			bool have = false;
			for (int j = 0; j < 6; ++i, ++j) {
				if (!have && answers[i][int(raw_data[i])].size() > 0) {
					have = true;
					out << answers[i][int(raw_data[i])];
				}
				else if (answers[i][int(raw_data[i])].size() > 0)
					out << ',' << answers[i][int(raw_data[i])];
			}
			out << "\"";
			--i;
		}
		else
			out << ',' << answers[i][int(raw_data[i])];
	}
	out << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x30(%rdi), %rsi
movq 0x38(%rdi), %rdx
movq %rbx, %rdi
callq 0x2250
leaq 0x7(%rsp), %rsi
movb $0x2c, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2250
movq 0x50(%r14), %rsi
movq 0x58(%r14), %rdx
movq %rax, %rdi
callq 0x2250
xorl %ebp, %ebp
leaq 0x8071(%rip), %r15      # 0xf230
cmpl $0x4, %ebp
jne 0x72ac
movl $0x2, %edx
movq %rbx, %rdi
leaq 0x339a(%rip), %rsi      # 0xa571
callq 0x2250
movl $0x4, %r13d
xorl %ebp, %ebp
xorl %r12d, %r12d
movq 0x70(%r14), %rax
cvttsd2si (%rax,%r13,8), %eax
cltq
testb $0x1, %r12b
jne 0x7225
movq %rax, %rcx
shlq $0x5, %rcx
addq %r15, %rcx
movq 0x308(%rbp,%rcx), %rdx
testq %rdx, %rdx
je 0x7225
movq 0x300(%rcx,%rbp), %rsi
movq %rbx, %rdi
callq 0x2250
movb $0x1, %r12b
jmp 0x727a
shlq $0x5, %rax
addq %r15, %rax
cmpq $0x0, 0x308(%rbp,%rax)
je 0x727a
movb $0x2c, 0x5(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x5(%rsp), %rsi
callq 0x2250
movq 0x70(%r14), %rcx
cvttsd2si (%rcx,%r13,8), %ecx
movslq %ecx, %rcx
shlq $0x5, %rcx
addq %r15, %rcx
movq 0x300(%rbp,%rcx), %rsi
movq 0x308(%rbp,%rcx), %rdx
movq %rax, %rdi
callq 0x2250
incq %r13
addq $0xc0, %rbp
cmpq $0x480, %rbp            # imm = 0x480
jne 0x71e7
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x32d2(%rip), %rsi      # 0xa572
callq 0x2250
movl $0xa, %ebp
jmp 0x72f4
movb $0x2c, 0x6(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x6(%rsp), %rsi
callq 0x2250
movslq %ebp, %rcx
movq 0x70(%r14), %rdx
cvttsd2si (%rdx,%rcx,8), %edx
movslq %edx, %rdx
leaq (%rcx,%rcx,2), %rcx
shlq $0x6, %rcx
addq %r15, %rcx
shlq $0x5, %rdx
movq (%rdx,%rcx), %rsi
movq 0x8(%rdx,%rcx), %rdx
movq %rax, %rdi
callq 0x2250
incl %ebp
cmpl $0xf, %ebp
jl 0x71bf
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2160
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/Element.cpp
// Function: Element::dist(Element const&) const
double Element::dist(const Element& e) const {
	double d = 0.0, tmp;
	for (size_t i = 0; i < data.size(); ++i) {
		tmp = data[i] - e.data[i];
		d += tmp * tmp * weights[i];
	}

	return d;
}

// Assembly:
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
subq %rax, %rcx
je 0x74c1
sarq $0x3, %rcx
movq (%rsi), %rdx
movq 0x18(%rdi), %rsi
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorpd %xmm0, %xmm0
xorl %edi, %edi
movsd (%rax,%rdi,8), %xmm1
subsd (%rdx,%rdi,8), %xmm1
mulsd %xmm1, %xmm1
mulsd (%rsi,%rdi,8), %xmm1
addsd %xmm1, %xmm0
incq %rdi
cmpq %rdi, %rcx
jne 0x74a1
retq
xorps %xmm0, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/transform.cpp
// Function: transform_original_data(char const*)
int transform_original_data(const char* inputFile) {
	const char* outputFile = file_after_process;
	const char* studentsListFile = "data/students_list_2016.csv";
	transform(inputFile, outputFile, studentsListFile);
	return 0;
}

// Assembly:
pushq %rax
leaq 0x7c1c(%rip), %rax      # 0xf1e8
movq (%rax), %rsi
leaq 0x2fa6(%rip), %rdx      # 0xa57c
callq 0x75df
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/transform.cpp
// Function: province2int(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void province2int(string& province) {
	if (province.find(GuangDong) != string::npos)
		province = "0";
	else
		province = "1";
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x7710(%rip), %rax      # 0xf1e0
movq (%rax), %r14
movq %r14, %rdi
callq 0x20f0
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x2360
cmpq $-0x1, %rax
movq 0x8(%rbx), %rdx
leaq 0x2a9e(%rip), %rax      # 0xa598
leaq 0x2a45(%rip), %rcx      # 0xa546
cmoveq %rax, %rcx
movl $0x1, %r8d
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x22f0
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/transform.cpp
// Function: readStudentsList(char const*, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&)
void readStudentsList(const char* fileName, map<string, string>& list) {
	// CSVReader reader;
	// vector<vector<string> > data;
	// reader.read(fileName, data);
	// for (int i = 0; i < data.size(); ++i)
	// 	list[data[i][1]] = data[i][0];

	CSVMapContainer mc(1);
	CSVReader::read(fileName, &mc);
	mc.getColData(list, 0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
movl $0x1, %esi
movq %r15, %rdi
callq 0x8fd0
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x83b8
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x91d2
leaq 0x71fd(%rip), %rax      # 0xed60
addq $0x10, %rax
leaq 0x28(%rsp), %rdi
movq %rax, -0x20(%rdi)
callq 0x7c34
leaq 0x10(%rsp), %rdi
callq 0x4b8a
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x71cd(%rip), %rax      # 0xed60
addq $0x10, %rax
leaq 0x28(%rsp), %rdi
movq %rax, -0x20(%rdi)
callq 0x7c34
leaq 0x10(%rsp), %rdi
callq 0x4b8a
movq %rbx, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/CSVReader/CSVReader.cpp
// Function: CSVReader::read(char const*, CSVContainerAdapter*, bool)
void CSVReader::read(const char* fileName, CSVContainerAdapter* adapter, bool haveHeader) {
	fstream in(fileName, ios::in);
	string line;

	if (haveHeader)
		getline(in, line, line_delimiter);

	while (getline(in, line, line_delimiter)) {
		line_to_cells(line, adapter);
	}

	in.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %rsi
leaq -0x248(%rbp), %rdi
movl $0x8, %edx
callq 0x2290
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
testl %r14d, %r14d
je 0x8412
movsbl 0x6dff(%rip), %edx      # 0xf201
leaq -0x248(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2390
movsbl 0x6de8(%rip), %edx      # 0xf201
leaq -0x248(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x2390
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x8445
leaq -0x38(%rbp), %rdi
movq %rbx, %rsi
callq 0x84ae
jmp 0x8412
leaq -0x248(%rbp), %rdi
callq 0x2060
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x8466
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x248(%rbp), %rdi
callq 0x2080
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8482
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0x849a
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2230
leaq -0x248(%rbp), %rdi
callq 0x2080
movq %rbx, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/CSVReader/CSVReader.cpp
// Function: CSVReader::escape_double_quots(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void CSVReader::escape_double_quots(string& str) {
	string tmp;
	bool last_is_quot = false;
	int len = str.length();
	for (int i = 0; i < len; ++i) {
		if (last_is_quot && str[i] == DOUBLE_QUOTS) {
			tmp.erase(tmp.size()-1, 1);
			last_is_quot = false;
		} else {
			last_is_quot = str[i] == DOUBLE_QUOTS;
			tmp.push_back(str[i]);
		}
	}

	str = tmp;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x8(%rdi), %r12
testl %r12d, %r12d
jle 0x871b
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
xorl %r13d, %r13d
leaq -0x48(%rbp), %r14
xorl %r15d, %r15d
movq (%rbx), %rax
movb (%rax,%r13), %al
cmpb $0x22, %al
sete %cl
andb %r15b, %cl
cmpb $0x1, %cl
jne 0x8702
movq -0x40(%rbp), %rsi
decq %rsi
movl $0x1, %edx
movq %r14, %rdi
callq 0x2090
xorl %r15d, %r15d
jmp 0x8713
cmpb $0x22, %al
sete %r15b
movsbl %al, %esi
movq %r14, %rdi
callq 0x21d0
incq %r13
cmpq %r13, %r12
jne 0x86d5
leaq -0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0x2120
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x8740
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8751
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x876d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2370
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/CSVReader/CSVVectorContainer.cpp
// Function: CSVVectorContainer::getColData(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, unsigned long) const
void CSVVectorContainer::getColData(vector<string>& data, size_t indexOfCol) const {
	for (int i = 0; i < m_table.size(); ++i) {
		if (indexOfCol >= m_table[i].size())
			throw logic_error("The index of column is large than the row's size.");
		data.push_back(m_table[i][indexOfCol]);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, -0x30(%rbp)
movq 0x20(%rdi), %rax
cmpq %rax, 0x28(%rdi)
je 0x8926
movq %rdx, %r14
movq %rdi, %r15
movl $0x8, %r12d
xorl %r13d, %r13d
movq %rdx, %rbx
shlq $0x5, %rbx
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %r14, %rax
jbe 0x8935
addq %rbx, %rsi
movq -0x30(%rbp), %rdi
callq 0x897a
incq %r13
movq 0x20(%r15), %rax
movq 0x28(%r15), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rdx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rdx, %rcx
addq $0x18, %r12
cmpq %r13, %rcx
ja 0x88dc
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2100
movq %rax, %rbx
leaq 0x1c87(%rip), %rsi      # 0xa5d0
movq %rax, %rdi
callq 0x22b0
movq 0x6688(%rip), %rsi      # 0xefe0
movq 0x6669(%rip), %rdx      # 0xefc8
movq %rbx, %rdi
callq 0x2340
movq %rax, %r14
movq %rbx, %rdi
callq 0x2190
movq %r14, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/CSVReader/CSVMapContainer.cpp
// Function: CSVMapContainer::addToRowDone()
void CSVMapContainer::addToRowDone() {
	if (m_indexOfKeyRow >= m_row.size())
		throw logic_error("The key's index is large than the size of row.");
	if (m_table.find(m_row[m_indexOfKeyRow]) != m_table.end())
		throw logic_error("The key is duplicate.");
	m_table[m_row[m_indexOfKeyRow]] = m_row;
	m_row.clear();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x50(%rdi), %rax
movq 0x8(%rdi), %rsi
movq 0x10(%rdi), %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
cmpq %rcx, %rax
jae 0x9094
movq %rdi, %rbx
leaq 0x20(%rdi), %r14
shlq $0x5, %rax
addq %rax, %rsi
movq %r14, %rdi
callq 0x94c2
leaq 0x28(%rbx), %rcx
cmpq %rcx, %rax
jne 0x90b2
leaq 0x8(%rbx), %r15
movq 0x50(%rbx), %rsi
shlq $0x5, %rsi
addq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x9294
movq %rax, %rdi
movq %r15, %rsi
callq 0x9314
movq 0x8(%rbx), %rsi
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x8f7e
movl $0x10, %edi
callq 0x2100
movq %rax, %rbx
leaq 0x1585(%rip), %rsi      # 0xa62d
movq %rax, %rdi
callq 0x22b0
jmp 0x90ce
movl $0x10, %edi
callq 0x2100
movq %rax, %rbx
leaq 0x1596(%rip), %rsi      # 0xa65c
movq %rax, %rdi
callq 0x22b0
movq 0x5f0b(%rip), %rsi      # 0xefe0
movq 0x5eec(%rip), %rdx      # 0xefc8
movq %rbx, %rdi
callq 0x2340
jmp 0x90e6
movq %rax, %r14
movq %rbx, %rdi
callq 0x2190
movq %r14, %rdi
callq 0x2370
nop
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/CSVReader/CSVMapContainer.cpp
// Function: CSVMapContainer::display() const
void CSVMapContainer::display() const {
	map<string, vector<string> >::const_iterator it = m_table.begin();
	while (it != m_table.end()) {
		const vector<string>& row = it->second;
		for (int i = 0; i < row.size(); ++i)
			cout << row[i] << '\t';
		cout << endl;
		++it;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0x38(%rdi), %r14
addq $0x28, %rdi
movq %rdi, -0x38(%rbp)
cmpq %rdi, %r14
je 0x91b9
movq 0x5ea9(%rip), %r15      # 0xefd0
leaq -0x29(%rbp), %r12
movq 0x40(%r14), %rax
cmpq %rax, 0x48(%r14)
je 0x917d
movl $0x8, %r13d
xorl %ebx, %ebx
movq -0x8(%rax,%r13), %rsi
movq (%rax,%r13), %rdx
movq %r15, %rdi
callq 0x2250
movb $0x9, -0x29(%rbp)
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x2250
incq %rbx
movq 0x40(%r14), %rax
movq 0x48(%r14), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
addq $0x20, %r13
cmpq %rbx, %rcx
ja 0x913d
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2210
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2160
movq %r14, %rdi
callq 0x2260
movq %rax, %r14
cmpq -0x38(%rbp), %rax
jne 0x912b
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/cooljacket[P]Dormitory-distribution/CSVReader/CSVMapContainer.cpp
// Function: CSVMapContainer::getColData(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&, unsigned long) const
void CSVMapContainer::getColData(map<string, string>& data, size_t indexOfCol) const {
	map<string, vector<string> >::const_iterator it = m_table.begin();
	while (it != m_table.end()) {
		const vector<string>& row = it->second;
		if (indexOfCol >= row.size())
			throw logic_error("The index of column is large than the row's size.");
		data[it->first] = row[indexOfCol];
		++it;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, -0x30(%rbp)
movq %rdi, %r15
movq 0x38(%rdi), %r12
addq $0x28, %r15
cmpq %r15, %r12
je 0x9240
movq %rdx, %r14
movq %rdx, %rbx
shlq $0x5, %rbx
movq 0x40(%r12), %r13
movq 0x48(%r12), %rax
subq %r13, %rax
sarq $0x5, %rax
cmpq %r14, %rax
jbe 0x924f
leaq 0x20(%r12), %rsi
addq %rbx, %r13
movq -0x30(%rbp), %rdi
callq 0x7bb8
movq %rax, %rdi
movq %r13, %rsi
callq 0x2120
movq %r12, %rdi
callq 0x2260
movq %rax, %r12
cmpq %r15, %rax
jne 0x91fe
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x2100
movq %rax, %rbx
leaq 0x136d(%rip), %rsi      # 0xa5d0
movq %rax, %rdi
callq 0x22b0
movq 0x5d6e(%rip), %rsi      # 0xefe0
movq 0x5d4f(%rip), %rdx      # 0xefc8
movq %rbx, %rdi
callq 0x2340
movq %rax, %r14
movq %rbx, %rdi
callq 0x2190
movq %r14, %rdi
callq 0x2370
// File: /workspace/github_cpp_makefile_star2_O3/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::lru_update(unsigned int, unsigned int)
void cache::lru_update(unsigned int ind, unsigned int blk){
	unsigned int tmp;
	tmp=lru_store[ind][blk];
	for (unsigned int j=0; j<a; j++){
		if(lru_store[ind][j]<tmp)
			lru_store[ind][j]++;
	}
	lru_store[ind][blk]=0;

}

// Assembly:
movq 0x40(%rdi), %rax
movl %esi, %ecx
movq (%rax,%rcx,8), %rax
movl %edx, %ecx
movl 0x18(%rdi), %edx
testl %edx, %edx
je 0x1fb3
movl (%rax,%rcx,4), %esi
xorl %r8d, %r8d
movl (%rax,%r8,4), %r9d
cmpl %esi, %r9d
jae 0x1fa8
incl %r9d
movl %r9d, (%rax,%r8,4)
movl 0x18(%rdi), %edx
incq %r8
movl %edx, %r9d
cmpq %r9, %r8
jb 0x1f95
movl $0x0, (%rax,%rcx,4)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::lru_block2evict(unsigned int)
unsigned int cache::lru_block2evict(unsigned int ind){

	unsigned int max=0;
	for(unsigned int j=0;j<a; j++){	
		if(lru_store[ind][max]<lru_store[ind][j])
			max=j;
	}
	return max;
}

// Assembly:
movl 0x18(%rdi), %ecx
testq %rcx, %rcx
je 0x2207
movq 0x40(%rdi), %rax
movl %esi, %edx
movq (%rax,%rdx,8), %rdx
xorl %esi, %esi
xorl %edi, %edi
movl %edi, %eax
movl (%rdx,%rax,4), %r8d
movl %esi, %eax
cmpl (%rdx,%rsi,4), %r8d
jb 0x21fc
movl %edi, %eax
incq %rsi
movl %eax, %edi
cmpq %rsi, %rcx
jne 0x21ec
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::lfu_block2evict(unsigned int)
unsigned int cache::lfu_block2evict(unsigned int ind){
	unsigned int min=0;
	for(unsigned int j=0; j<a; j++){	
		if(lfu_block_store[ind][min]>lfu_block_store[ind][j])
			min=j;
	}
	return min;
}

// Assembly:
movl 0x18(%rdi), %ecx
testq %rcx, %rcx
je 0x223b
movq 0x48(%rdi), %rax
movl %esi, %edx
movq (%rax,%rdx,8), %rdx
xorl %esi, %esi
xorl %edi, %edi
movl %edi, %eax
movl (%rdx,%rax,4), %r8d
movl %esi, %eax
cmpl (%rdx,%rsi,4), %r8d
ja 0x2230
movl %edi, %eax
incq %rsi
movl %eax, %edi
cmpq %rsi, %rcx
jne 0x2220
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/sopanpatra160[P]OOO_Superscalar_Processor_Simulator/cache.cc
// Function: cache::print_tag_store()
void cache::print_tag_store(){
//printf("num set = %d \n",num_set);
	for(unsigned int i=0; i<num_set; i++){
	printf("set  %4d:  ",i);
		for(unsigned int j=0; j<a; j++){
			printf ("%8x ",tag_store[i][j]);
			if(wp == 0){
				if(dirty_store[i][j]==1)
					printf ("D");
				else
					printf (" ");
			}
		}
	printf ("\n");
	}
}

// Assembly:
cmpl $0x0, 0x70(%rdi)
je 0x2e20
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x2482(%rip), %r14      # 0x5219
leaq 0x2487(%rip), %r15      # 0x5225
movl $0x44, %ebp
xorl %r12d, %r12d
movq %r14, %rdi
movl %r12d, %esi
xorl %eax, %eax
callq 0x1040
cmpl $0x0, 0x18(%rbx)
je 0x2dfd
xorl %r13d, %r13d
movq 0x28(%rbx), %rax
movq (%rax,%r12,8), %rax
movl (%rax,%r13,4), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x1040
cmpl $0x0, 0x20(%rbx)
jne 0x2df2
movq 0x38(%rbx), %rax
movq (%rax,%r12,8), %rax
cmpl $0x1, (%rax,%r13,4)
movl $0x20, %edi
cmovel %ebp, %edi
callq 0x10e0
incq %r13
movl 0x18(%rbx), %eax
cmpq %rax, %r13
jb 0x2dbc
movl $0xa, %edi
callq 0x10e0
incq %r12
movl 0x70(%rbx), %eax
cmpq %rax, %r12
jb 0x2da6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::assign_value(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void RealNumber::assign_value(const std::string& str) {
    std::size_t dot_position = str.find('.');
		std::size_t i;
    int integer_part = 0;
    if (dot_position > MAX_DECIMAL_INTEGER_DIGITS) {
        throw std::invalid_argument("Too many digits before decimal!");
    }
    for (i = 0; i < dot_position; ++i) {
        if (0 <= str[i] - '0' && str[i] - '0' <= 9) {
            integer_part = 10 * integer_part + (str[i] - '0');
        }
        else {
            throw std::invalid_argument("Input can contain only decimal digits!");
        }   
    }
    set_integer_part(integer_part);
		std::size_t fractional_digits_len = str.size() - dot_position - 1;
    unsigned char* decimal_digits = array_arithmetic::convert::helpers::to_digit_array(str.substr(dot_position + 1));
    for (i = INTEGER_DIGITS; i < ARRAY_SIZE; ++i) {
        value[i] = array_arithmetic::convert::helpers::times_radix(decimal_digits, fractional_digits_len);
    }
    delete[] decimal_digits;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
movq %rsi, %rdi
movl $0x2e, %esi
xorl %edx, %edx
callq 0x21a0
cmpq $0x9, %rax
ja 0x2fc4
testq %rax, %rax
je 0x2eef
movq (%r14), %rcx
xorl %edx, %edx
xorl %r15d, %r15d
movzbl (%rcx,%rdx), %esi
leal -0x30(%rsi), %edi
cmpb $0x9, %dil
ja 0x2f92
leal (%r15,%r15,4), %edi
leal (%rsi,%rdi,2), %r15d
addl $-0x30, %r15d
incq %rdx
cmpq %rdx, %rax
jne 0x2eca
movl $0x4, %ecx
movq (%rbx), %rdx
movb %r15b, -0x1(%rdx,%rcx)
shrl $0x8, %r15d
decq %rcx
jne 0x2ef4
movq %rax, %rcx
notq %rcx
addq 0x8(%r14), %rcx
movq %rcx, -0x28(%rbp)
incq %rax
leaq -0x48(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq $-0x1, %rcx
callq 0x2170
movq %r15, %rdi
callq 0x4071
movq %rax, %r14
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2f53
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2160
movl $0x4, %r12d
leaq -0x28(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x40fd
movq (%rbx), %rcx
movb %al, (%rcx,%r12)
incq %r12
cmpq $0x36, %r12
jne 0x2f5d
testq %r14, %r14
je 0x2f85
movq %r14, %rdi
callq 0x2190
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20a0
movq %rax, %r14
leaq 0x2130(%rip), %rsi      # 0x50d6
movq %rax, %rdi
callq 0x2230
movq 0x502b(%rip), %rsi      # 0x7fe0
movq 0x5014(%rip), %rdx      # 0x7fd0
movq %r14, %rdi
callq 0x21f0
movl $0x10, %edi
callq 0x20a0
movq %rax, %r14
leaq 0x20de(%rip), %rsi      # 0x50b6
movq %rax, %rdi
callq 0x2230
jmp 0x2fae
jmp 0x3002
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x300d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x2160
jmp 0x300d
movq %rax, %rbx
movq %r14, %rdi
callq 0x2100
movq %rbx, %rdi
callq 0x2210
nop
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::to_decimal_string[abi:cxx11]() const
std::string RealNumber::to_decimal_string() const {
    std::stringstream result;
    result << get_integer_part() << '.';
    // make a copy of value because we will be changing it
    unsigned char* fractional_part = new unsigned char[PRECISION];
    std::size_t i;
    for (i = 0; i < PRECISION; ++i) { fractional_part[i] = value[i + INTEGER_DIGITS]; }
		for (i = 0; i < DECIMAL_PRECISION; ++i) { 
			result << (int)(array_arithmetic::convert::helpers::times_ten(fractional_part, PRECISION)); 
		}    
    delete[] fractional_part;
    return result.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rsi, %r15
movq %rdi, %rbx
leaq -0x1b8(%rbp), %rdi
callq 0x20e0
movq (%r15), %rax
xorl %ecx, %ecx
xorl %edx, %edx
movl %edx, %esi
shll $0x8, %esi
movzbl (%rax,%rcx), %edx
orl %esi, %edx
incq %rcx
cmpq $0x4, %rcx
jne 0x308d
leaq -0x1a8(%rbp), %r14
movl %edx, %esi
movq %r14, %rdi
callq 0x20c0
leaq -0x30(%rbp), %rsi
movb $0x2e, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x2180
movl $0x32, %edi
callq 0x2030
movq %rax, %r12
movq (%r15), %rax
xorl %ecx, %ecx
movb 0x4(%rax,%rcx), %dl
movb %dl, (%r12,%rcx)
incq %rcx
cmpq $0x32, %rcx
jne 0x30d8
movl $0x78, %r13d
leaq -0x30(%rbp), %r15
movq $0x32, -0x30(%rbp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x4139
movzbl %al, %esi
movq %r14, %rdi
callq 0x2200
decq %r13
jne 0x30f3
movq %r12, %rdi
callq 0x2190
leaq -0x1a0(%rbp), %rsi
movq %rbx, %rdi
callq 0x21d0
movq 0x4e6c(%rip), %rsi      # 0x7fa0
leaq -0x1b8(%rbp), %rdi
callq 0x2110
leaq -0x138(%rbp), %rdi
callq 0x2070
movq %rbx, %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3167
jmp 0x3167
jmp 0x3167
movq %rax, %rbx
movq 0x4e2f(%rip), %rsi      # 0x7fa0
leaq -0x1b8(%rbp), %rdi
callq 0x2110
leaq -0x138(%rbp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2210
nop
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::get_integer_part() const
unsigned int RealNumber::get_integer_part() const {
    unsigned int result = 0;
    for (std::size_t i = 0; i < INTEGER_DIGITS; ++i) {
        result = result * array_arithmetic::RADIX + value[i];
    }
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
xorl %edx, %edx
xorl %eax, %eax
movl %eax, %esi
shll $0x8, %esi
movzbl (%rcx,%rdx), %eax
orl %esi, %eax
incq %rdx
cmpq $0x4, %rdx
jne 0x319d
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::operator=(RealNumber const&)
RealNumber& RealNumber::operator=(const RealNumber& num) {
    if (this == &num) { return *this; }
    for (std::size_t i = 0; i < ARRAY_SIZE; ++i) {
        this->value[i] = num.value[i];
    }
    return *this;
}

// Assembly:
movq %rdi, %rax
cmpq %rsi, %rdi
je 0x31d8
pushq %rbp
movq %rsp, %rbp
xorl %ecx, %ecx
movq (%rsi), %rdx
movb (%rdx,%rcx), %dl
movq (%rax), %rdi
movb %dl, (%rdi,%rcx)
incq %rcx
cmpq $0x36, %rcx
jne 0x31c2
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::operator>(RealNumber const&) const
bool RealNumber::operator>(const RealNumber& num_to_compare) const {
    for (std::size_t i = 0; i < ARRAY_SIZE; ++i) {
        if (this->value[i] > num_to_compare.value[i]) { return true; }
        else if (this->value[i] < num_to_compare.value[i]) { return false; }
    }
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movq (%rsi), %rdx
movb (%rcx), %sil
movb (%rdx), %r8b
movb $0x1, %al
cmpb %r8b, %sil
ja 0x321d
xorl %edi, %edi
cmpb %r8b, %sil
jb 0x3217
cmpq $0x35, %rdi
setb %al
je 0x321b
movb 0x1(%rcx,%rdi), %sil
movb 0x1(%rdx,%rdi), %r8b
incq %rdi
cmpb %r8b, %sil
jbe 0x31f3
movb $0x1, %cl
jmp 0x321b
xorl %ecx, %ecx
jmp 0x321b
andb %cl, %al
andb $0x1, %al
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::operator>=(RealNumber const&) const
bool RealNumber::operator>=(const RealNumber& num_to_compare) const {
    for (std::size_t i = 0; i < ARRAY_SIZE; ++i) {
        if (this->value[i] > num_to_compare.value[i]) { return true; }
        else if (this->value[i] < num_to_compare.value[i]) { return false; }
    }
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movq (%rsi), %rdx
movb (%rcx), %sil
movb (%rdx), %r8b
movb $0x1, %al
cmpb %r8b, %sil
ja 0x3267
xorl %edi, %edi
xorl %eax, %eax
cmpb %r8b, %sil
jb 0x3261
cmpq $0x35, %rdi
setae %al
je 0x3265
movb 0x1(%rcx,%rdi), %sil
movb 0x1(%rdx,%rdi), %r8b
incq %rdi
cmpb %r8b, %sil
jbe 0x323d
movb $0x1, %cl
jmp 0x3265
xorl %ecx, %ecx
jmp 0x3265
orb %cl, %al
andb $0x1, %al
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::equals(RealNumber const&) const
bool RealNumber::equals(const RealNumber& num_to_compare) const {
	// get the real number against which to measure difference
	std::size_t total_bits = ARRAY_SIZE * 8;
	std::size_t first_bit_to_set = total_bits - BITS_FOR_EQUALITY;
	RealNumber max_diff;
	for (std::size_t i = first_bit_to_set; i < total_bits; ++i) {
		array_arithmetic::bits::set(max_diff.value, i);
	}
	return this->difference(num_to_compare) <= max_diff;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %r15
movl $0x36, %edi
callq 0x2030
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movq $0x0, 0x2e(%rax)
leaq -0x28(%rbp), %r12
movq $0x1ac, (%r12)          # imm = 0x1AC
movq %rbx, %rdi
movq %r12, %rsi
callq 0x452a
movq -0x28(%rbp), %rax
incq %rax
movq %rax, -0x28(%rbp)
cmpq $0x1b0, %rax            # imm = 0x1B0
jb 0x33b2
leaq -0x28(%rbp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x345e
movq -0x28(%rbp), %rdi
movb (%rdi), %al
movb (%rbx), %cl
movb $0x1, %r14b
cmpb %cl, %al
jb 0x3428
jbe 0x33f5
xorl %r14d, %r14d
jmp 0x3428
xorl %ecx, %ecx
movq %rcx, %rax
cmpq $0x35, %rax
je 0x341d
movb 0x1(%rdi,%rax), %dl
movb 0x1(%rbx,%rax), %sil
cmpb %sil, %dl
jb 0x341b
leaq 0x1(%rax), %rcx
cmpb %sil, %dl
jbe 0x33f7
xorl %ecx, %ecx
jmp 0x341d
movb $0x1, %cl
cmpq $0x35, %rax
setae %r14b
orb %cl, %r14b
callq 0x2190
movq %rbx, %rdi
callq 0x2190
andb $0x1, %r14b
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x344b
movq %rax, %r14
movq %rbx, %rdi
callq 0x2190
movq %r14, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/real_number.cpp
// Function: RealNumber::set_integer_part(int const&)
void RealNumber::set_integer_part(const int& integer_part) {
    unsigned int tmp = integer_part;
    for (int i = INTEGER_DIGITS - 1; i >= 0; --i) {
        value[i] = tmp % array_arithmetic::RADIX;
        tmp /= array_arithmetic::RADIX;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl (%rsi), %eax
movl $0x4, %ecx
movq (%rdi), %rdx
movb %al, -0x1(%rdx,%rcx)
shrl $0x8, %eax
decq %rcx
jne 0x36fb
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/convergent_series.cpp
// Function: ConvergentSeries::babylonian_sqrt(RealNumber const&, RealNumber const&, unsigned long const&)
RealNumber ConvergentSeries::babylonian_sqrt(const RealNumber& num, const RealNumber& guess,
                                            const std::size_t& iterations) {
    RealNumber result = guess;
    RealNumber two("2.0");
    for (std::size_t i = 0; i < iterations; ++i) {
        result = (result + (num / result)) / two;
    }
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rcx, -0x38(%rbp)
movq %rsi, -0x60(%rbp)
movq %rdi, %rbx
movq %rdx, %rsi
callq 0x3016
leaq -0x48(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x1924(%rip), %rsi      # 0x5063
leaq 0x1920(%rip), %rdx      # 0x5066
leaq -0x58(%rbp), %rdi
callq 0x2d52
leaq -0x30(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x2e50
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
je 0x3771
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2160
movq -0x38(%rbp), %rax
cmpq $0x0, (%rax)
je 0x37e5
xorl %r14d, %r14d
leaq -0x68(%rbp), %r12
leaq -0x70(%rbp), %r13
leaq -0x58(%rbp), %r15
movq %r12, %rdi
movq -0x60(%rbp), %rsi
movq %rbx, %rdx
callq 0x366a
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x34be
movq %r15, %rdi
movq %r13, %rsi
leaq -0x30(%rbp), %rdx
callq 0x366a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x31b4
movq %r15, %rdi
callq 0x304c
movq %r13, %rdi
callq 0x304c
movq %r12, %rdi
callq 0x304c
incq %r14
movq -0x38(%rbp), %rax
cmpq (%rax), %r14
jb 0x378a
leaq -0x30(%rbp), %rdi
callq 0x304c
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
je 0x3855
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2160
jmp 0x3855
movq %rax, %r14
jmp 0x3855
movq %rax, %r14
jmp 0x384c
movq %rax, %r14
jmp 0x3843
movq %rax, %r14
jmp 0x383a
movq %rax, %r14
leaq -0x58(%rbp), %rdi
callq 0x304c
leaq -0x70(%rbp), %rdi
callq 0x304c
leaq -0x68(%rbp), %rdi
callq 0x304c
leaq -0x30(%rbp), %rdi
callq 0x304c
movq %rbx, %rdi
callq 0x304c
movq %r14, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::convert::from_int(unsigned int const&, unsigned char*, unsigned long const&)
void from_int(const unsigned int& num, unsigned char* result, 
				const std::size_t& result_len) {
			unsigned int num_copy = num;
			std::size_t i = result_len;
			while (i > 0) {
				--i;
				result[i] = num_copy % RADIX;
				num_copy /= RADIX;
			}
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdx), %rax
testq %rax, %rax
je 0x4046
movl (%rdi), %edx
movl %edx, %ecx
shrl $0x8, %ecx
movb %dl, -0x1(%rsi,%rax)
movl %ecx, %edx
decq %rax
jne 0x4038
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::convert::to_int(unsigned char const*, unsigned long const&)
unsigned int to_int(const unsigned char* arr, const std::size_t& arr_len) {
			unsigned int result = 0;
			for (std::size_t i = 0; i < arr_len; ++i) {
				result = result * RADIX + arr[i];
			}
			return result;
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rcx
testq %rcx, %rcx
je 0x406d
xorl %edx, %edx
xorl %esi, %esi
shll $0x8, %esi
movzbl (%rdi,%rdx), %eax
orl %esi, %eax
incq %rdx
movl %eax, %esi
cmpq %rdx, %rcx
jne 0x4058
jmp 0x406f
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::convert::helpers::to_digit_array(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
unsigned char* to_digit_array(const std::string& str) {
				std::size_t len = str.size();
				unsigned char* result = new unsigned char[len];
				std::size_t i = 0;
				while (i < len) {
					if (0 <= str[i] - '0' && str[i] - '0' <= 9) {
						result[i] = str[i] - '0';
					}
					else {
						delete[] result;
						throw std::invalid_argument("Input can contain only decimal digits!");
					}
					++i;
				}
				return result;
			}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rbx
movq %rbx, %rdi
callq 0x2030
testq %rbx, %rbx
je 0x40ab
movq (%r14), %rcx
xorl %edx, %edx
movb (%rcx,%rdx), %sil
addb $-0x30, %sil
cmpb $0x9, %sil
ja 0x40b0
movb %sil, (%rax,%rdx)
incq %rdx
cmpq %rdx, %rbx
jne 0x4091
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rdi
callq 0x2190
movl $0x10, %edi
callq 0x20a0
movq %rax, %rbx
leaq 0x100a(%rip), %rsi      # 0x50d6
movq %rax, %rdi
callq 0x2230
movq 0x3f05(%rip), %rsi      # 0x7fe0
movq 0x3eee(%rip), %rdx      # 0x7fd0
movq %rbx, %rdi
callq 0x21f0
movq %rax, %r14
movq %rbx, %rdi
callq 0x2100
movq %r14, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::convert::helpers::times_radix(unsigned char*, unsigned long const&)
unsigned char times_radix(unsigned char* decimal_digits, 
					const std::size_t& arr_len) {
				unsigned char carry = 0;
				unsigned int tmp;
				std::size_t i = arr_len;
				while (i > 0) {
					--i;
					tmp = carry + decimal_digits[i] * RADIX;
					decimal_digits[i] = tmp % 10;
					carry = tmp / 10;
				}
				return carry;
			}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x4137
movzbl %al, %edx
movzbl -0x1(%rdi,%rcx), %esi
shll $0x8, %esi
orl %edx, %esi
movzwl %si, %edx
imull $0xcccd, %edx, %edx     # imm = 0xCCCD
shrl $0x13, %edx
leal (%rdx,%rdx), %esi
leal (%rsi,%rsi,4), %esi
subl %esi, %eax
movb %al, -0x1(%rdi,%rcx)
movl %edx, %eax
decq %rcx
jne 0x410b
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::convert::helpers::times_ten(unsigned char*, unsigned long const&)
unsigned char times_ten(unsigned char* radix_digits, const std::size_t& arr_len) {
				unsigned char carry = 0;
				unsigned int tmp;
				std::size_t i = arr_len;
				while (i > 0) {
					--i;
					tmp = carry + radix_digits[i] * 10;
					radix_digits[i] = tmp % RADIX;
					carry = tmp / RADIX;
				}
				return carry;
			}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rcx
xorl %eax, %eax
testq %rcx, %rcx
je 0x415e
movzbl -0x1(%rdi,%rcx), %edx
leal (%rdx,%rdx,4), %edx
leal (%rax,%rdx,2), %eax
movb %al, -0x1(%rdi,%rcx)
shrl $0x8, %eax
decq %rcx
jne 0x4147
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::helpers::copy_into(unsigned char const*, unsigned char*, unsigned long const&, unsigned long const&)
void copy_into(const unsigned char* source, unsigned char* target, const std::size_t&
				source_len, const std::size_t& target_len) {
			std::size_t i;
			for (i = 0; i < source_len; ++i) {
				target[i] = source[i];
			}
			for ( ; i < target_len; ++i) {
				target[i] = 0;
			}
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpq $0x0, (%rdx)
je 0x417e
xorl %eax, %eax
movb (%rdi,%rax), %r8b
movb %r8b, (%rsi,%rax)
incq %rax
cmpq (%rdx), %rax
jb 0x416c
jmp 0x4189
xorl %eax, %eax
jmp 0x4189
movb $0x0, (%rsi,%rax)
incq %rax
cmpq (%rcx), %rax
jb 0x4182
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::helpers::shift_right(unsigned char*, unsigned long const&, unsigned long const&)
void shift_right(unsigned char* arr, const size_t& places, const size_t& arr_size) {
			std::size_t i = arr_size - places;
			while (i > 0) {
				--i;
				arr[i + places] = arr[i];
			}
			i = places;
			while (i > 0) {
				--i;
				arr[i] = 0;
			}
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdx), %rax
movq (%rsi), %rdx
subq %rdx, %rax
je 0x41ba
leaq -0x1(%rdi), %rcx
leaq (%rcx,%rax), %rdx
movb (%rcx,%rax), %r8b
movq (%rsi), %r9
movb %r8b, (%r9,%rdx)
decq %rax
jne 0x41a3
movq (%rsi), %rdx
testq %rdx, %rdx
je 0x41c7
xorl %esi, %esi
popq %rbp
jmp 0x20b0
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::helpers::less_or_equal(unsigned char const*, unsigned char const*, unsigned long const&)
bool less_or_equal(const unsigned char* arr1, const unsigned char* arr2, 
															 const std::size_t& len) {
			for (std::size_t i = 0; i < len; ++i) {
				if (arr1[i] < arr2[i]) { return true; }
				if (arr1[i] > arr2[i]) { return false; }
				// loop continues only when arr1[i] == arr2[i]
			}
			// nothing was returned in the loop, so values are equal
			return true;
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdx), %rcx
movb $0x1, %al
testq %rcx, %rcx
je 0x4210
movb (%rdi), %r8b
movb (%rsi), %r9b
cmpb %r9b, %r8b
jb 0x4210
movl $0x1, %edx
xorl %eax, %eax
cmpb %r9b, %r8b
ja 0x420a
cmpq %rcx, %rdx
setae %al
je 0x420e
movb (%rdi,%rdx), %r8b
movb (%rsi,%rdx), %r9b
incq %rdx
cmpb %r9b, %r8b
jae 0x41e9
movb $0x1, %cl
jmp 0x420e
xorl %ecx, %ecx
jmp 0x420e
orb %cl, %al
andb $0x1, %al
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::helpers::division::align_dividend(unsigned char*, unsigned char const*, unsigned long const&)
int align_dividend(unsigned char* dividend, const unsigned char* divisor, const std::size_t& len) {
				int result = 0;
				while (less_or_equal(divisor, dividend, len)) {
					bits::shift_right(dividend, 1, len);
					--result;
				}
				return result;
			}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
xorl %r15d, %r15d
leaq -0x30(%rbp), %r13
movq (%rbx), %rax
testq %rax, %rax
je 0x42c6
movq %rax, %rcx
negq %rcx
movl $0x1, %edx
xorl %esi, %esi
movb -0x1(%r12,%rdx), %dil
cmpb %dil, -0x1(%r14,%rdx)
jb 0x42c6
ja 0x42c0
cmpq %rax, %rdx
setae %sil
leaq (%rcx,%rdx), %rdi
incq %rdi
incq %rdx
cmpq $0x1, %rdi
jne 0x4299
jmp 0x42c6
testb $0x1, %sil
je 0x42e1
movq $0x1, -0x30(%rbp)
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x42f3
decl %r15d
jmp 0x4284
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/aisthesis[P]realnumber/src/array_arithmetic.cpp
// Function: array_arithmetic::bits::shift_right(unsigned char*, unsigned long const&, unsigned long const&)
void shift_right(unsigned char* arr, const std::size_t& places, const std::size_t& arr_size) {
			std::size_t byte_places = places / 8;
			std::size_t bit_places = places % 8;
			helpers::shift_right(arr, byte_places, arr_size);
			// now we only have to worry about bit_places
			if (bit_places == 0) { return; }
			unsigned char mask = get_mask(bit_places);
			std::size_t offset = 8 - bit_places;
			unsigned char tmp;
			std::size_t i = arr_size - 1;
			// the first byte_places positions are all 0, so we don't have to worry about them
			while (i > byte_places) {
				// shift the given position
				arr[i] >>= bit_places;
				// get the relevant bits from the position to the left and add them in
				tmp = arr[i - 1] & mask;
				arr[i] += (tmp << offset);
				--i;
			}
			arr[byte_places] >>= bit_places;
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r12
movq %rdi, %rbx
movq (%rsi), %rax
movq %rax, %r14
shrq $0x3, %r14
movl %eax, %r15d
andl $0x7, %r15d
movq (%rdx), %rcx
cmpq %r14, %rcx
je 0x4340
movq %r14, %rdx
negq %rdx
leaq -0x1(%rbx), %rsi
movq %rsi, %rdi
subq %r14, %rdi
movb (%rdi,%rcx), %r8b
movb %r8b, (%rsi,%rcx)
decq %rcx
movq %rdx, %r8
addq %rcx, %r8
jne 0x432d
cmpq $0x8, %rax
jb 0x4353
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x20b0
testq %r15, %r15
je 0x43aa
xorl %edx, %edx
movq %r15, %rax
addb %dl, %dl
movzbl %dl, %edx
incl %edx
decq %rax
jne 0x435d
movq (%r12), %rsi
decq %rsi
cmpq %r14, %rsi
jbe 0x43a3
movl $0x8, %eax
subl %r15d, %eax
movzbl (%rbx,%rsi), %edi
movl %r15d, %ecx
shrl %cl, %edi
movzbl -0x1(%rbx,%rsi), %r8d
andl %edx, %r8d
movl %eax, %ecx
shll %cl, %r8d
addl %edi, %r8d
movb %r8b, (%rbx,%rsi)
decq %rsi
cmpq %r14, %rsi
ja 0x437d
movl %r15d, %ecx
shrb %cl, (%rbx,%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq