LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/martinferianc[P]CPUSimulator-EIE2/src/mips_cpu_execute.cpp
// Function: mips_execute_J(mips_cpu_impl*, unsigned int const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, unsigned int&, unsigned int&)
mips_error mips_execute_J(mips_cpu_h state, const uint32_t* instruction_data, string& instruction, uint32_t& pcN, uint32_t& pc){

	switch(instruction_data[0]){
		case 0b000010:
			return mips_execute_J_X(state, instruction_data, "JUMP", instruction, pcN, pc);
		case 0b000011:
			return mips_execute_J_X(state, instruction_data, "JAL", instruction, pcN, pc);
		default:
		break;
	}

	instruction = "Invalid instruction format";
	return mips_ExceptionInvalidInstruction;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r13
movl (%rsi), %eax
cmpl $0x3, %eax
je 0x659c
cmpl $0x2, %eax
jne 0x65f1
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x4757(%rip), %rsi      # 0xacc7
leaq 0x4754(%rip), %rdx      # 0xaccb
leaq 0x8(%rsp), %rdi
callq 0x40ba
leaq 0x8(%rsp), %rdx
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rcx
movq %r15, %r8
movq %r14, %r9
callq 0x7e7b
jmp 0x65d6
leaq 0x18(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x417d(%rip), %rsi      # 0xa729
leaq 0x4179(%rip), %rdx      # 0xa72c
leaq 0x8(%rsp), %rdi
callq 0x40ba
leaq 0x8(%rsp), %rdx
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rcx
movq %r15, %r8
movq %r14, %r9
callq 0x7e7b
movl %eax, %ebx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6611
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31e0
jmp 0x6611
movq 0x8(%rbx), %rdx
leaq 0x46b0(%rip), %rcx      # 0xacac
movl $0x1a, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x32d0
movl $0x2005, %ebx           # imm = 0x2005
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6624
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6645
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x31e0
jmp 0x6645
jmp 0x6642
movq %rax, %rbx
movq %rbx, %rdi
callq 0x3330
// File: /workspace/github_cpp_makefile_star2_O3/martinferianc[P]CPUSimulator-EIE2/src/mips_cpu_execute.cpp
// Function: mips_execute_J_X(mips_cpu_impl*, unsigned int const*, 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 int&, unsigned int&)
mips_error mips_execute_J_X(mips_cpu_h state, const uint32_t* instruction_data, const string& op, string& instruction, uint32_t& pcN, uint32_t& pc){

	stringstream ss;
	mips_error err = mips_ExceptionInvalidInstruction;
	uint32_t imm_unsigned = uint32_t(instruction_data[1]);

	if (op.compare("JUMP")==0){
		pc = pcN;
		pcN = (pc & 0xF0000000) | (imm_unsigned << 2);
		err = mips_ExceptionBreak;
	}

	if (op.compare("JAL")==0){
		mips_cpu_set_register(state, 31, pc + 8);
		pc = pcN;
		pcN = (pc & 0xF0000000) | (imm_unsigned << 2);
		err = mips_ExceptionBreak;
	}

	ss <<op<<" "<<"#"<<instruction_data[1];

	instruction = ss.str();
	return err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %r9, %r13
movq %r8, %r12
movq %rcx, 0x8(%rsp)
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, (%rsp)
leaq 0x30(%rsp), %rdi
callq 0x3150
movl 0x4(%r14), %ebx
leaq 0x2e11(%rip), %rsi      # 0xacc7
movq %r15, %rdi
callq 0x30a0
movl $0x2005, %ebp           # imm = 0x2005
testl %eax, %eax
jne 0x7ee6
movl (%r12), %eax
movl %eax, (%r13)
andl $0xf0000000, %eax       # imm = 0xF0000000
leal (,%rbx,4), %ecx
orl %eax, %ecx
movl %ecx, (%r12)
movl $0x2000, %ebp           # imm = 0x2000
leaq 0x283c(%rip), %rsi      # 0xa729
movq %r15, %rdi
callq 0x30a0
testl %eax, %eax
jne 0x7f29
movl (%r13), %edx
addl $0x8, %edx
movq (%rsp), %rdi
movl $0x1f, %esi
callq 0x4c51
movl (%r12), %eax
movl %eax, (%r13)
andl $0xf0000000, %eax       # imm = 0xF0000000
shll $0x2, %ebx
orl %eax, %ebx
movl %ebx, (%r12)
movl $0x2000, %ebp           # imm = 0x2000
leaq 0x40(%rsp), %rdi
movq (%r15), %rsi
movq 0x8(%r15), %rdx
callq 0x3210
movq %rax, %rbx
leaq 0x2db0(%rip), %rsi      # 0xacf4
movl $0x1, %edx
movq %rax, %rdi
callq 0x3210
leaq 0x2d7e(%rip), %rsi      # 0xacd6
movl $0x1, %edx
movq %rbx, %rdi
callq 0x3210
movl 0x4(%r14), %esi
movq %rbx, %rdi
callq 0x3120
leaq 0x48(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x32f0
leaq 0x10(%rsp), %rbx
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x3250
movq (%rbx), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x7fac
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x31e0
movq 0x6ffd(%rip), %rsi      # 0xefb0
leaq 0x30(%rsp), %rdi
callq 0x3170
leaq 0xb0(%rsp), %rdi
callq 0x30b0
movl %ebp, %eax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x7fe0
movq %rax, %rbx
movq 0x6fc6(%rip), %rsi      # 0xefb0
leaq 0x30(%rsp), %rdi
callq 0x3170
leaq 0xb0(%rsp), %rdi
callq 0x30b0
movq %rbx, %rdi
callq 0x3330
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/martinferianc[P]CPUSimulator-EIE2/src/test_mips.cpp
// Function: print_registers(unsigned int const*)
void print_registers(const uint32_t *array){
  for (size_t i = 0; i < 32; i++) {
    if (i % 4 == 0)
    cout<<endl;
    cout<<"R["<<i<<"]"<<":= "<<array[i]<<"\t";
  }
  cout<<endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
xorl %r15d, %r15d
movq 0x6abf(%rip), %rbx      # 0xefc8
leaq 0x25de(%rip), %rbp      # 0xaaee
leaq 0x2621(%rip), %r12      # 0xab38
testb $0x3, %r15b
jne 0x8544
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x3130
movl $0x2, %edx
movq %rbx, %rdi
leaq 0x277d(%rip), %rsi      # 0xacd0
callq 0x3210
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3120
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x2577(%rip), %rsi      # 0xaaec
callq 0x3210
movl $0x3, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x3210
movl (%r14,%r15,4), %esi
movq %r13, %rdi
callq 0x3120
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x3210
incq %r15
cmpq $0x20, %r15
jne 0x8517
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x31c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x3040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3130
// File: /workspace/github_cpp_makefile_star2_O3/martinferianc[P]CPUSimulator-EIE2/src/test_mips.cpp
// Function: load_registers(unsigned int*, mips_cpu_impl*)
void load_registers(uint32_t* array, mips_cpu_h cpu){
  for (size_t i = 0; i < 32; i++) {
    uint32_t* reg = new uint32_t;
    mips_cpu_get_register(cpu, i, reg);
    array[i] = uint32_t(*reg);
    delete reg;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r15d, %r15d
movl $0x4, %edi
callq 0x31d0
movq %rax, %r12
movq %rbx, %rdi
movl %r15d, %esi
movq %rax, %rdx
callq 0x4c31
movl (%r12), %eax
movl %eax, (%r14,%r15,4)
movl $0x4, %esi
movq %r12, %rdi
callq 0x31e0
incq %r15
cmpq $0x20, %r15
jne 0x85f9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/martinferianc[P]CPUSimulator-EIE2/src/test_mips.cpp
// Function: test::str[abi:cxx11]()
string str(){
    stringstream ss;
    ss<<std::hex<<instruction_code<<" "
    <<instruction_name<<" "
    <<" R2: "<<instruction_r1
    <<" R3: "<<instruction_r2
    <<" Ex. Result: "<<instruction_result;
    return ss.str();
  }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp            # imm = 0x190
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3150
leaq 0x18(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
movl 0x30(%rsp,%rax), %ecx
andl $-0x4b, %ecx
orl $0x8, %ecx
movl %ecx, 0x30(%rsp,%rax)
movl (%r14), %esi
callq 0x3120
movq %rax, %r15
leaq 0x184a(%rip), %rsi      # 0xacf4
movl $0x1, %edx
movq %rax, %rdi
callq 0x3210
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
movq %r15, %rdi
callq 0x3210
movq %rax, %r15
leaq 0x1823(%rip), %rsi      # 0xacf4
movl $0x1, %edx
movq %rax, %rdi
callq 0x3210
leaq 0x1abc(%rip), %rsi      # 0xafa1
movl $0x5, %edx
movq %r15, %rdi
callq 0x3210
movl 0x2c(%r14), %esi
movq %r15, %rdi
callq 0x3120
movq %rax, %r15
leaq 0x1a9f(%rip), %rsi      # 0xafa7
movl $0x5, %edx
movq %rax, %rdi
callq 0x3210
movl 0x30(%r14), %esi
movq %r15, %rdi
callq 0x3120
movq %rax, %r15
leaq 0x1a82(%rip), %rsi      # 0xafad
movl $0xd, %edx
movq %rax, %rdi
callq 0x3210
movl 0x28(%r14), %esi
movq %r15, %rdi
callq 0x3120
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x32f0
movq 0x5a58(%rip), %rsi      # 0xefb0
leaq 0x8(%rsp), %rdi
callq 0x3170
leaq 0x88(%rsp), %rdi
callq 0x30b0
movq %rbx, %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x5a27(%rip), %rsi      # 0xefb0
leaq 0x8(%rsp), %rdi
callq 0x3170
leaq 0x88(%rsp), %rdi
callq 0x30b0
movq %rbx, %rdi
callq 0x3330
// File: /workspace/github_cpp_makefile_star2_O3/coduin[P]epiphany-bin-info/epiphany-bin-info.cpp
// Function: operator<<(std::ostream&, addr const&)
ostream& operator<<(ostream& stream, const addr& addr) {
    if (isExtmem(addr.val)) {
        outputSetWhite();
        stream << ashex(addr.val);
        outputReset();
    } else {
        stream << ashex(addr.val);
    }
    return stream;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rsi), %eax
cmpl $0x100000, %eax         # imm = 0x100000
jb 0x25cb
cmpb $0x1, 0x5c08(%rip)      # 0x8181
jne 0x2599
movq %rsi, %r14
movq 0x5a4b(%rip), %rdi      # 0x7fd0
leaq 0x2a78(%rip), %rsi      # 0x5004
movl $0x5, %edx
callq 0x21a0
movl (%r14), %eax
leaq 0x4(%rsp), %rsi
movl %eax, (%rsi)
movq %rbx, %rdi
callq 0x24cc
cmpb $0x1, 0x5bd2(%rip)      # 0x8181
jne 0x25d8
movq 0x5a18(%rip), %rdi      # 0x7fd0
leaq 0x2a51(%rip), %rsi      # 0x5010
movl $0x4, %edx
callq 0x21a0
jmp 0x25d8
movq %rsp, %rsi
movl %eax, (%rsi)
movq %rbx, %rdi
callq 0x24cc
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/coduin[P]epiphany-bin-info/epiphany-bin-info.cpp
// Function: demangle(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string demangle(const string& name) {
    string ret;
    int status;
    char* realname = 0;

    realname = abi::__cxa_demangle(name.c_str(), 0, 0, &status);

    if (status == 0)
        ret = realname;
    else
        ret = name;

    if (realname)
        free(realname);
    return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq (%rsi), %rdi
leaq 0x4(%rsp), %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0x2140
movq %rax, %r14
cmpl $0x0, 0x4(%rsp)
je 0x262c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x20e0
jmp 0x264b
movq 0x8(%rbx), %r15
movq %r14, %rdi
callq 0x20c0
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x2220
testq %r14, %r14
je 0x2658
movq %r14, %rdi
callq 0x21b0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x267e
movq (%r12), %rsi
incq %rsi
callq 0x2180
movq %r14, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O3/coduin[P]epiphany-bin-info/epiphany-bin-info.cpp
// Function: isEpiphanyElf(Elf32_Ehdr*)
bool isEpiphanyElf(Elf32_Ehdr* ehdr) {
    return ehdr && memcmp(ehdr->e_ident, ELFMAG, SELFMAG) == 0 &&
           ehdr->e_ident[EI_CLASS] == ELFCLASS32 && ehdr->e_type == ET_EXEC &&
           ehdr->e_version == EV_CURRENT &&
           ehdr->e_machine == EM_ADAPTEVA_EPIPHANY;
}

// Assembly:
testq %rdi, %rdi
je 0x26b0
cmpl $0x464c457f, (%rdi)     # imm = 0x464C457F
jne 0x26b0
cmpb $0x1, 0x4(%rdi)
jne 0x26b0
cmpw $0x2, 0x10(%rdi)
jne 0x26b0
cmpl $0x1, 0x14(%rdi)
jne 0x26b0
cmpw $0x1223, 0x12(%rdi)     # imm = 0x1223
sete %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/coduin[P]epiphany-bin-info/epiphany-bin-info.cpp
// Function: parseSections(Elf32_Shdr*, unsigned long, char const*, unsigned long)
void parseSections(Elf32_Shdr* shdr, size_t count, const char* strtab,
                   size_t strsize) {
    if (showSections) {
        cout << "\nSection table (linker info):\n";
        cout << "ADDR        SIZE        NAME\n";
        for (size_t i = 0; i < count; i++) {
            if (shdr[i].sh_flags & SHF_ALLOC) {
                cout << addr(shdr[i].sh_addr);
            } else {
                cout << "          ";
            }
            cout << "  " << ashex(shdr[i].sh_size);
            if (shdr[i].sh_name != SHN_UNDEF && shdr[i].sh_name < strsize)
                cout << "  " << (&strtab[shdr[i].sh_name]);
            cout << endl;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
cmpb $0x1, 0x57b6(%rip)      # 0x8183
jne 0x2b26
movq %rcx, %rbx
movq %rsi, %r15
movq %rdi, %r12
movq 0x55ed(%rip), %r13      # 0x7fd0
leaq 0x26c9(%rip), %rsi      # 0x50b3
movl $0x1e, %edx
movq %r13, %rdi
callq 0x21a0
leaq 0x26d4(%rip), %rsi      # 0x50d2
movl $0x1d, %edx
movq %r13, %rdi
callq 0x21a0
testq %r15, %r15
je 0x2b26
leaq 0x26dd(%rip), %rbp      # 0x50f8
movq %rsp, %r14
movq %rbx, 0x8(%rsp)
testb $0x2, 0x8(%r12)
jne 0x2a41
movl $0xa, %edx
movq %r13, %rdi
leaq 0x26b6(%rip), %rsi      # 0x50f0
callq 0x21a0
jmp 0x2a57
movl 0xc(%r12), %eax
movl %eax, 0x4(%rsp)
movq %r13, %rdi
leaq 0x4(%rsp), %rsi
callq 0x2562
movl $0x2, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x21a0
movl 0x14(%r12), %eax
movl %eax, (%rsp)
movq %r13, %rdi
movq %r14, %rsi
callq 0x24cc
movl (%r12), %eax
testq %rax, %rax
sete %cl
cmpq %rbx, %rax
setae %al
orb %cl, %al
jne 0x2af1
movl $0x2, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x21a0
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x2ad8
movq %rbp, %rbx
movq %r14, %rbp
movl (%r12), %r14d
addq %rax, %r14
movq %r14, %rdi
callq 0x20c0
movq %r13, %rdi
movq %r14, %rsi
movq %rbp, %r14
movq %rbx, %rbp
movq 0x8(%rsp), %rbx
movq %rax, %rdx
callq 0x21a0
jmp 0x2af1
movq (%r13), %rax
movq -0x18(%rax), %rax
leaq (%rax,%r13), %rdi
movl 0x20(%r13,%rax), %esi
orl $0x1, %esi
callq 0x2240
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2100
addq $0x28, %r12
decq %r15
jne 0x2a23
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/coduin[P]epiphany-bin-info/epiphany-bin-info.cpp
// Function: getCmdOption(char**, char**, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
char* getCmdOption(char** begin, char** end, const std::string& option) {
    char** itr = std::find(begin, end, option);
    if (itr != end && ++itr != end) {
        return *itr;
    }
    return 0;
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
callq 0x4974
cmpq %rbx, %rax
je 0x31c3
addq $0x8, %rax
cmpq %rbx, %rax
je 0x31c3
movq (%rax), %rax
jmp 0x31c5
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/coduin[P]epiphany-bin-info/epiphany-bin-info.cpp
// Function: showHelp(char*)
void showHelp(char* cmd) {
    cout << "Usage: " << cmd
         << " [-h] [-p] [-sec] [-s] [-a] [--nodemangle] file\n";
    cout << "Options:\n";
    cout << "    -h             Show this help.\n";
    cout << "    -p             Show program headers (runtime information).\n";
    cout << "    -sec           Show section headers (linking information).\n";
    cout << "                   Sections stored in external memory are "
            "highlighted.\n";
    cout << "    -s             Show symbols (function names).\n";
    cout << "                   Symbols are sorted by address.\n";
    cout << "    -a             Show all.\n";
    cout << "    --nodemangle   Do not demangle C++ symbol names.\n";
    cout << "  By default, only the total program size in local and external "
            "memory is shown."
         << endl;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x4dea(%rip), %rbx      # 0x7fd0
leaq 0x2008(%rip), %rsi      # 0x51f5
movl $0x7, %edx
movq %rbx, %rdi
callq 0x21a0
testq %r14, %r14
je 0x321b
movq %r14, %rdi
callq 0x20c0
movq 0x4dc2(%rip), %rdi      # 0x7fd0
movq %r14, %rsi
movq %rax, %rdx
callq 0x21a0
jmp 0x3232
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x2240
leaq 0x1fc4(%rip), %rsi      # 0x51fd
movl $0x30, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0x1fe1(%rip), %rsi      # 0x522e
movl $0x9, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0x1fd7(%rip), %rsi      # 0x5238
movl $0x23, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0x1fe7(%rip), %rsi      # 0x525c
movl $0x3f, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0x2013(%rip), %rsi      # 0x529c
movl $0x3f, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0x203f(%rip), %rsi      # 0x52dc
movl $0x47, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0x2073(%rip), %rsi      # 0x5324
movl $0x32, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0x2092(%rip), %rsi      # 0x5357
movl $0x32, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0x20b1(%rip), %rsi      # 0x538a
movl $0x1d, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0x20bb(%rip), %rsi      # 0x53a8
movl $0x35, %edx
movq %rbx, %rdi
callq 0x21a0
leaq 0x20dd(%rip), %rsi      # 0x53de
movl $0x50, %edx
movq %rbx, %rdi
callq 0x21a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2160
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2100
// File: /workspace/github_cpp_makefile_star2_O3/permui[P]CastleAdventure/src/command.hpp
// Function: std::pair<int, double> GetAin<int>()
std::pair<T, double> GetAin() {
	auto t1 = std::chrono::high_resolution_clock::now();
	T ret = GetA<T>();
	auto t2 = std::chrono::high_resolution_clock::now();
	std::chrono::duration<double> sec = t2 - t1;
	return {ret, sec.count()};
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
callq 0x2050
movq %rax, %rbx
callq 0x3a84
movl %eax, %ebp
callq 0x2050
subq %rbx, %rax
cvtsi2sd %rax, %xmm0
divsd 0x57d7(%rip), %xmm0     # 0x9090
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/permui[P]CastleAdventure/src/command.hpp
// Function: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> GetA<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>()
T GetA() {
	T ret;
	while (true) {
		if (std::cin >> ret) {
			std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
			break;
		}
		std::cout << "invalid input!" << std::endl;
		std::cin.clear();
		std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rbp
movq %rbp, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x43fa(%rip), %r14      # 0xcfe0
movq 0x43e3(%rip), %r15      # 0xcfd0
leaq 0x5c0(%rip), %r12       # 0x91b4
movabsq $0x7fffffffffffffff, %r13 # imm = 0x7FFFFFFFFFFFFFFF
movq %r14, %rdi
movq %rbx, %rsi
callq 0x21f0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
je 0x8c71
movl $0xe, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x21e0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
xorl %esi, %esi
callq 0x2270
movq %r14, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x20f0
jmp 0x8bfe
movq 0x4368(%rip), %rdi      # 0xcfe0
movabsq $0x7fffffffffffffff, %rsi # imm = 0x7FFFFFFFFFFFFFFF
movl $0xa, %edx
callq 0x20f0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8ca0
movq %rax, %r14
movq (%rbx), %rdi
cmpq %rbp, %rdi
je 0x8cb7
movq (%rbp), %rsi
incq %rsi
callq 0x21c0
movq %r14, %rdi
callq 0x22a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/permui[P]CastleAdventure/src/base.cpp
// Function: Player::show_state(Grid const&) const
void Player::show_state(const Grid &grid) const {
	std::cout << "You are at (floor " << pos.floor << ", section " << pos.section << ") [" << grid.name << "]" << std::endl;
	std::cout << "shield: " << shield << " | sword: " << sword << " | ";
	std::cout << "BitCoin: " << btc;
	if (with_princess) std::cout << " | with princess";
	std::cout << std::endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
movq 0x931b(%rip), %rbx      # 0xcfd0
leaq 0x5524(%rip), %rsi      # 0x91e0
movl $0x12, %edx
movq %rbx, %rdi
callq 0x21e0
movl (%r14), %esi
movq %rbx, %rdi
callq 0x2280
movq %rax, %r12
leaq 0x5515(%rip), %rsi      # 0x91f3
movl $0xa, %edx
movq %rax, %rdi
callq 0x21e0
movl 0x4(%r14), %esi
movq %r12, %rdi
callq 0x2280
movq %rax, %r12
leaq 0x54fd(%rip), %rsi      # 0x91fe
movl $0x3, %edx
movq %rax, %rdi
callq 0x21e0
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %r12, %rdi
callq 0x21e0
movq %rax, %r15
leaq 0x54da(%rip), %rsi      # 0x9202
movl $0x1, %edx
movq %rax, %rdi
callq 0x21e0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
leaq 0x54a1(%rip), %rsi      # 0x9204
movl $0x8, %edx
movq %rbx, %rdi
callq 0x21e0
movl 0x8(%r14), %esi
movq %rbx, %rdi
callq 0x2280
movq %rax, %r15
leaq 0x5487(%rip), %rsi      # 0x920d
movl $0xa, %edx
movq %rax, %rdi
callq 0x21e0
movl 0xc(%r14), %esi
movq %r15, %rdi
callq 0x2280
leaq 0x5472(%rip), %rsi      # 0x9218
movl $0x3, %edx
movq %rax, %rdi
callq 0x21e0
leaq 0x5462(%rip), %rsi      # 0x921c
movl $0x9, %edx
movq %rbx, %rdi
callq 0x21e0
movl 0x10(%r14), %esi
movq %rbx, %rdi
callq 0x2280
cmpb $0x1, 0x14(%r14)
jne 0x3df2
movq 0x91ef(%rip), %rdi      # 0xcfd0
leaq 0x543e(%rip), %rsi      # 0x9226
movl $0x10, %edx
callq 0x21e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2120
// File: /workspace/github_cpp_makefile_star2_O3/permui[P]CastleAdventure/src/genmap.cpp
// Function: GenMap()
map<Position, Grid> GenMap() {
	vector<Grid> vec = GenGrids();
	map<Position, Grid> mp;
	for (const Grid &g: vec) mp.emplace(g.pos, g);
	return mp;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x419c
leaq 0x8(%rbx), %rax
movl $0x0, 0x8(%rbx)
xorl %ecx, %ecx
movq %rcx, 0x10(%rbx)
movq %rax, 0x18(%rbx)
movq %rax, 0x20(%rbx)
movq %rcx, 0x28(%rbx)
movq (%r15), %r14
movq 0x8(%r15), %r15
cmpq %r15, %r14
je 0x7731
movq %rbx, %rdi
movq %r14, %rsi
movq %r14, %rdx
callq 0x8302
subq $-0x80, %r14
jmp 0x7718
leaq 0x8(%rsp), %rdi
callq 0x7cf0
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2a2e
leaq 0x8(%rsp), %rdi
callq 0x7cf0
movq %r14, %rdi
callq 0x22a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/permui[P]CastleAdventure/src/command.cpp
// Function: EncounterPrincess(Player&, Grid&)
void EncounterPrincess(Player &player, Grid &grid) {
	cout << "Lovely Princess Here!" << endl;
	cout << "Commands: pick_her leave_her_alone" << endl;
	while (true) {
		string com = GetA<string>();
		if (com == "pick_her") {
			grid.info.t = GT::None;
			player.with_princess = true;
			break;
		} else if (com == "leave_her_alone") {
			break;
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, (%rsp)
movq %rdi, %r14
movq 0x4505(%rip), %r15      # 0xcfd0
leaq 0x1095(%rip), %rsi      # 0x9b67
movl $0x15, %edx
movq %r15, %rdi
callq 0x21e0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
leaq 0x1070(%rip), %rsi      # 0x9b7d
movl $0x22, %edx
movq %r15, %rdi
callq 0x21e0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21a0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2120
leaq 0x18(%rsp), %rbp
leaq 0x8(%rsp), %r15
leaq 0x104e(%rip), %r12      # 0x9ba0
leaq 0x1037(%rip), %r13      # 0x9b90
movq %r15, %rdi
callq 0x8bbe
movq %r15, %rdi
movq %r12, %rsi
callq 0x2080
testl %eax, %eax
je 0x8b82
movq %r15, %rdi
movq %r13, %rsi
callq 0x2080
testl %eax, %eax
setne %bl
jmp 0x8b94
movq (%rsp), %rax
movl $0x3, 0x8(%rax)
movb $0x1, 0x14(%r14)
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x8bab
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21c0
testb %bl, %bl
jne 0x8b59
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/graph.cpp
// Function: Graph::add_edge(Edge*)
void Graph::add_edge(Edge* e){
    /*!
     * @brief Ajoute l'arrête \p e au graphe
     * 
     * @param e L'arrête
     * 
     * @note Il n'est pas nécessaire d'ajouter les points de \p e au graphe; si ces derniers
     * n'est font pas déjà partie, ils seront ajoutés automatiquement.
     * 
     */

    this->add_node(e->p1);
    this->add_node(e->p2);

    std::unordered_set<Edge*>& adj_p1 = this->adjacency_lists.at(e->p1);
    adj_p1.insert(e);

    std::unordered_set<Edge*>& adj_p2 = this->adjacency_lists.at(e->p2);
    adj_p2.insert(e);

    this->all_edges.insert(e);

    e->id = this->edge_counter;
    this->edge_id_mapper.insert(std::pair<edge_id_t, Edge*>(this->edge_counter++, e));

}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
movq (%rsi), %rsi
callq 0x4ba0
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x4ba0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6216
testq %rax, %rax
je 0x4858
addq $0x10, %rax
leaq 0x10(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x8(%rsp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x654c
movq (%r14), %rsi
addq $0x8, %rsi
movq %rbx, %rdi
callq 0x6216
testq %rax, %rax
je 0x4858
addq $0x10, %rax
leaq 0x10(%rsp), %r14
movq %rax, (%r14)
leaq 0x8(%rsp), %r15
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x654c
leaq 0x38(%rbx), %rdi
movq %rdi, (%r14)
leaq 0x10(%rsp), %r14
movq %r15, %rsi
movq %r14, %rdx
callq 0x654c
movl 0xe4(%rbx), %eax
movq (%r15), %rcx
movl %eax, 0x18(%rcx)
leal 0x1(%rax), %edx
movl %edx, 0xe4(%rbx)
addq $0xa8, %rbx
movl %eax, (%r14)
movq %rcx, 0x8(%r14)
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x67da
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0xc92b(%rip), %rdi      # 0x1118a
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/graph.cpp
// Function: Graph::Graph(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Graph::Graph(std::string file_path) : Graph()
{
    /*!
     * @brief Builds a graph from scratch, with its nodes and edges contained in a file
     * 
     * @param file_path The path to the file 
     * 
     */
    build_from_ashiip(this, file_path);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x30(%rdi), %rax
movq %rax, (%rdi)
movl $0x1, %eax
movq %rax, 0x8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movl $0x3f800000, %ecx       # imm = 0x3F800000
movl %ecx, 0x20(%rdi)
movups %xmm0, 0x28(%rdi)
leaq 0x68(%rdi), %rdx
movq %rdx, 0x38(%rdi)
movq %rax, 0x40(%rdi)
movups %xmm0, 0x48(%rdi)
movl %ecx, 0x58(%rdi)
movups %xmm0, 0x60(%rdi)
leaq 0xa0(%rdi), %rdx
movq %rdx, 0x70(%rdi)
movq %rax, 0x78(%rdi)
movups %xmm0, 0x80(%rdi)
movl %ecx, 0x90(%rdi)
movups %xmm0, 0x98(%rdi)
leaq 0xd8(%rdi), %rdx
movq %rdx, 0xa8(%rdi)
movq %rax, 0xb0(%rdi)
movups %xmm0, 0xb8(%rdi)
movl %ecx, 0xc8(%rdi)
movups %xmm0, 0xd0(%rdi)
movq $0x0, 0xe0(%rdi)
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rsp, %rdi
movq %rax, %rsi
callq 0x5610
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3f3e
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4940
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x4968
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3290
jmp 0x4968
movq %rax, %r14
movq %rbx, %rdi
callq 0x4f8a
movq %r14, %rdi
callq 0x34a0
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/graph.cpp
// Function: Graph::add_node(Node*)
void Graph::add_node(Node* n){
    /*!
     * @brief Ajoute le noeud \p n au graphe
     * 
     * @param n Le noeud
     * 
     */


    if(this->has_node(n))
        return;

    this->adjacency_lists.insert(
        std::pair<Node*, std::unordered_set<Edge*> >(
                                                        n,
                                                        std::unordered_set<Edge*>()
                                                    )
                                );
    
    n->set_id(this->node_counter);
    this->node_id_mapper.insert(std::pair<node_id_t, Node*>(this->node_counter++, n));

    
    
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x80, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x40(%rsp), %rsi
movq %rbx, (%rsi)
callq 0x6216
testq %rax, %rax
jne 0x4c5f
leaq 0x38(%rsp), %rax
movq $0x0, -0x10(%rax)
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
leaq 0x48(%rsp), %r15
movq %rbx, -0x8(%r15)
leaq 0x8(%rsp), %rdx
movq %r15, %rdi
movq %rdx, %rsi
callq 0x53a6
leaq 0x40(%rsp), %rsi
movq %r14, %rdi
callq 0x6272
movq %r15, %rdi
callq 0x529c
leaq 0x8(%rsp), %rdi
callq 0x529c
movl 0xe0(%r14), %esi
movq %rbx, %rdi
callq 0xa578
leaq 0x70(%r14), %rdi
movl 0xe0(%r14), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0xe0(%r14)
leaq 0x40(%rsp), %rsi
movl %eax, (%rsi)
movq %rbx, 0x8(%rsi)
callq 0x5702
addq $0x80, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %r15, %rdi
callq 0x529c
leaq 0x8(%rsp), %rdi
callq 0x529c
movq %rbx, %rdi
callq 0x34a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/graph.cpp
// Function: Graph::connected_edges(Node*)
const std::unordered_set<Edge*>& Graph::connected_edges(Node* n){
    /*!
     * @brief Liste les arrêtes entrantes/sortantes de \p n
     * 
     * @param n Le noeud dont on veut connaître les arrêtes liées
     * 
     * @return Un ensemble en lecture seule des arrêtes liées à \p n
     * 
     */

    return this->adjacency_lists.at(n);
}

// Assembly:
pushq %rax
movq %rsp, %rax
movq %rsi, (%rax)
movq %rax, %rsi
callq 0x6216
testq %rax, %rax
je 0x4cbc
addq $0x10, %rax
popq %rcx
retq
leaq 0xc4c7(%rip), %rdi      # 0x1118a
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/graph.cpp
// Function: Graph::get_nodes()
std::vector<Node*> Graph::get_nodes()
{
    /*!
     * @brief Renvoie tous les noeuds du graphe (pointeurs)
     * 
     * @return Un vecteur avec les noeuds du graphe
     * 
     */

    std::vector<Node*> nodes;
    for (auto kv : this->adjacency_lists) {
        nodes.push_back(kv.first);
    }

    return nodes;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x10(%rsi), %r13
testq %r13, %r13
je 0x4d83
leaq 0x10(%rsp), %r14
xorl %ebp, %ebp
movq %rsp, %r15
leaq 0x8(%rsp), %r12
movq 0x8(%r13), %rax
movq %rax, 0x8(%rsp)
leaq 0x10(%r13), %rsi
movq %rbp, 0x10(%rsp)
movq 0x18(%r13), %rax
movq %rax, 0x18(%rsp)
movq %rbp, 0x20(%rsp)
movq 0x28(%r13), %rax
movq %rax, 0x28(%rsp)
movups 0x30(%r13), %xmm0
movups %xmm0, 0x20(%r14)
movq %rbp, 0x40(%rsp)
movq %r14, (%rsp)
movq %r14, %rdi
movq %r15, %rdx
callq 0x541c
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x4d67
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x4d72
movq %rbx, %rdi
movq %r12, %rdx
callq 0x6a6e
movq %r14, %rdi
callq 0x529c
movq (%r13), %r13
testq %r13, %r13
jne 0x4d07
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq %r14, %rdi
callq 0x529c
jmp 0x4da5
movq %rax, %r15
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4db9
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x3290
movq %r15, %rdi
callq 0x34a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/graph.cpp
// Function: Graph::get_any_node()
Node* Graph::get_any_node()
{
    /*!
     * @brief Renvoie un sommet au hasard dans les sommets du graphe
     * 
     * @return Un noeud au hasard
     * 
     */

    std::vector<Node*> nodes = this->get_nodes();
    int n = this->get_number_of_nodes();

    std::random_device rd; 
    std::mt19937 gen(rd());
    std::uniform_int_distribution<> distrib(0, n-1);

    int idx = distrib(gen);

    return nodes[idx];
}

// Assembly:
pushq %rbx
subq $0x2730, %rsp           # imm = 0x2730
movq %rdi, %rbx
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x4ccc
movl 0x18(%rbx), %ebx
leaq 0x20(%rsp), %rdi
callq 0x4fb6
leaq 0x20(%rsp), %rdi
callq 0x3390
movl %eax, %eax
movq %rax, 0x13a8(%rsp)
movl $0x1, %ecx
movq %rax, %rdx
shrq $0x1e, %rdx
xorl %eax, %edx
imull $0x6c078965, %edx, %eax # imm = 0x6C078965
addl %ecx, %eax
movq %rax, 0x13a8(%rsp,%rcx,8)
incq %rcx
cmpq $0x270, %rcx            # imm = 0x270
jne 0x4e4c
leaq 0x13a8(%rsp), %rsi
movq $0x270, 0x1380(%rsi) # imm = 0x270
decl %ebx
leaq 0x18(%rsp), %rdi
movl $0x0, (%rdi)
movl %ebx, 0x4(%rdi)
movq %rdi, %rdx
callq 0x6b4a
cltq
movq (%rsp), %rcx
movq (%rcx,%rax,8), %rbx
leaq 0x20(%rsp), %rdi
callq 0x3250
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4ec6
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3290
movq %rbx, %rax
addq $0x2730, %rsp           # imm = 0x2730
popq %rbx
retq
jmp 0x4ee5
jmp 0x4ed6
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3250
jmp 0x4ef0
movq %rax, %rdi
callq 0x5030
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4f06
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3290
movq %rbx, %rdi
callq 0x34a0
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/graph.cpp
// Function: Graph::get_node(int)
Node* Graph::get_node(node_id_t id){
    /*!
     * @brief Returns the node whose id matches \p id
     *
     * @param id The id of the node
     * 
     * @returns The node matching \p id
     */


    return this->node_id_mapper.at(id); 
}

// Assembly:
pushq %rax
leaq 0x4(%rsp), %rax
movl %esi, (%rax)
addq $0x70, %rdi
movq %rax, %rsi
callq 0x56a6
testq %rax, %rax
je 0x4f4f
movq 0x10(%rax), %rax
popq %rcx
retq
leaq 0xc234(%rip), %rdi      # 0x1118a
callq 0x33e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/graph.cpp
// Function: Graph::get_edge(int)
Edge* Graph::get_edge(edge_id_t id){
    /*!
     * @brief Returns the edge whose id matches \p id
     *
     * @param id The id of the edge
     * 
     * @returns The edge matching \p id
     */

    return this->edge_id_mapper.at(id);
}

// Assembly:
pushq %rax
leaq 0x4(%rsp), %rax
movl %esi, (%rax)
addq $0xa8, %rdi
movq %rax, %rsi
callq 0x6da8
testq %rax, %rax
je 0x4f7e
movq 0x10(%rax), %rax
popq %rcx
retq
leaq 0xc205(%rip), %rdi      # 0x1118a
callq 0x33e0
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/node.cpp
// Function: Node::dist(Node*)
double Node::dist(Node* other)
{    
    /*!
     * @brief Returns the Euclidian distance between two Nodes
     * 
     * @param other The \p other Node to evaluate distance with
     * 
     * @return The Euclidian distance between this Node and the \p other Node
     * 
     */

    Point* p1_p = this->p;
    Point* p2_p = other->get_point();

    if (p1_p != NULL && p2_p != NULL) {
        if (p1_p->get_dim() == p2_p->get_dim()) {
            return p1_p->distance(p2_p);
        }
    }

    return 1; // arbitrary choice
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq 0x8(%rdi), %rbx
movq 0x8(%rsi), %r14
testq %rbx, %rbx
sete %al
testq %r14, %r14
sete %cl
orb %al, %cl
jne 0x953d
movq %rbx, %rdi
callq 0x3a7c
movl %eax, %ebp
movq %r14, %rdi
callq 0x3a7c
cmpl %eax, %ebp
jne 0x953d
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x3b3a
movsd 0x7b53(%rip), %xmm0     # 0x11098
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/mst_algorithm.cpp
// Function: MSTAlgorithm::MSTAlgorithm(Graph*)
MSTAlgorithm::MSTAlgorithm(Graph* graph)
{
    /*!
     * @brief Constructor of a MST Algorithm
     * 
     * @param graph A pointer towards the graph of which we want to compute the MST
     * 
     */

    this->initial_graph = graph;
    this->mst_weight = 0.0;
    this->treated = false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xc337(%rip), %rax      # 0x16c88
movq %rax, (%rdi)
addq $0x10, %rdi
callq 0x3eac
movq %rbx, 0x8(%r14)
movq $0x0, 0xf8(%r14)
movb $0x0, 0x100(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/union_find.cpp
// Function: UnionFind::get_parent(Node*)
Node* UnionFind::get_parent(Node* node) 
{
    /*!
     * @brief Returns the parent of \p node in the data structure, if it exists
     * 
     * @param node Node of which we want the parent
     * 
     * @return NULL if the node is not part of the data structure, otherwise 
     * its parent
     * 
     */

    if(this->parent.find(node) == this->parent.end()) {
        return NULL;
    }
    return this->parent.at(node);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rax
movq %rsi, (%rax)
movq %rax, %rsi
callq 0xa888
testq %rax, %rax
je 0xe023
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xa888
testq %rax, %rax
je 0xe02b
movq 0x10(%rax), %rax
jmp 0xe025
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
leaq 0x3158(%rip), %rdi      # 0x1118a
callq 0x33e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/union_find.cpp
// Function: UnionFind::get_rank(Node*)
int UnionFind::get_rank(Node* node)
{
    /*!
     * @brief Returns the rank of \p node in the data structure, if it exists
     * 
     * @param node Node of which we want the rank
     * 
     * @return 0 if the node is not part of the data structure, otherwise 
     * its rank
     * 
     */

    if(this->rank.find(node) == this->rank.end()) {
        return 0;
    }
    return this->rank.at(node);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rax
movq %rsi, (%rax)
addq $0x38, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe35e
testq %rax, %rax
je 0xe073
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xe35e
testq %rax, %rax
je 0xe07b
movl 0x10(%rax), %eax
jmp 0xe075
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
leaq 0x3108(%rip), %rdi      # 0x1118a
callq 0x33e0
nop
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/union_find.cpp
// Function: UnionFind::Find(Node*)
Node* UnionFind::Find(Node* node)
{
    /*!
     * @brief For a \p node that belongs to the data structure, find its 
     * representative in the data structure using path compression
     * 
     * @param node Node of which we want the reprensentative
     * 
     * @return The representative of the initial node
     * 
     */

    assert(("This node is not part of the data structure", this->get_parent(node) != NULL));

    Node* parent = this->get_parent(node);

    if(node == parent) {
        return parent;
    }

    Node* r = this->Find(parent);
    this->parent[node] = r;
    return r;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
callq 0xdfee
testq %rax, %rax
je 0xe13c
movq %rbx, %rdi
movq %r15, %rsi
callq 0xdfee
movq %rax, %r14
cmpq %r15, %rax
je 0xe12f
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe0e0
movq %rax, %r14
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xe3ba
movq %r14, (%rax)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x377b(%rip), %rdi      # 0x118be
leaq 0x37c4(%rip), %rsi      # 0x1190e
leaq 0x37d0(%rip), %rcx      # 0x11921
movl $0x65, %edx
callq 0x3170
nop
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/union_find.cpp
// Function: UnionFind::Union(Node*, Node*)
void UnionFind::Union(Node* n1, Node* n2)
{
    /*!
     * @brief For two nodes \p n1 and \p n2 of the data structure, computes 
     * the union of their two classes 
     * 
     * @param n1 First node 
     * @param n2 Second node
     * 
     */

    Node* rep1 = this->Find(n1);
    Node* rep2 = this->Find(n2);

    if(rep1 != rep2) {
        this->num_classes -= 1; // proceeding with Union

        int r1 = this->get_rank(rep1);
        int r2 = this->get_rank(rep2);

        if(r1 > r2) {
            this->parent[rep2] = rep1;
            this->representatives.erase(rep2);
        } else if(r2 > r1) {
            this->parent[rep1] = rep2;
            this->representatives.erase(rep1);
        } else { // arbitrary choice
            this->parent[rep1] = rep2;
            this->representatives.erase(rep1);
            this->rank[rep2] += 1;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r15
movq %rdi, %rbx
callq 0xe0e0
movq %rax, %r14
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe0e0
movq %rax, (%rsp)
cmpq %rax, %r14
je 0xe20e
movq %rax, %r15
decl 0xa8(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe038
movl %eax, %ebp
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe038
cmpl %eax, %ebp
jle 0xe1d6
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe3ba
movq %r14, (%rax)
addq $0x70, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe472
jmp 0xe20e
movl %eax, %r12d
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe3ba
movq %r15, (%rax)
leaq 0x70(%rbx), %rdi
movq %r14, %rsi
callq 0xe472
cmpl %ebp, %r12d
jg 0xe20e
addq $0x38, %rbx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xe562
incl (%rax)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/kmeans.cpp
// Function: Cloud::Cloud(int, int, int)
Cloud::Cloud(int _d, int _nmax, int _k)	
{
    /*!
     * @brief Builds an empty cloud
     * 
     * @param _d The dimension of the points
	 * @param _nmax The maximal number of points in this cloud
	 * @param _k The number of clusters to be drawn
     */

	d = _d;
	Point::d = _d;
	n = 0;
	k = _k;

	nmax = _nmax;

	points = new Point[nmax];
	centers = new Point[k];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdi, %rbx
movl %esi, (%rdi)
leaq 0x8c6f(%rip), %rax      # 0x172a8
movl %esi, (%rax)
movl $0x0, 0x4(%rdi)
movl %ecx, 0x8(%rdi)
movl %edx, 0xc(%rdi)
movslq %edx, %r12
movq %r12, %r13
shlq $0x4, %r13
leaq 0x8(%r13), %r14
testl %r12d, %r12d
movq $-0x1, %rax
cmovsq %rax, %r14
movq %r14, %rdi
callq 0x3030
leaq 0x8(%rax), %r15
movq %rax, (%rsp)
movq %r12, (%rax)
testl %r12d, %r12d
je 0xe69c
negq %r13
xorl %ebp, %ebp
movq %r15, %r12
movq %r12, %rdi
callq 0x3a20
addq $-0x10, %rbp
addq $0x10, %r12
cmpq %rbp, %r13
jne 0xe684
movl 0x8(%rbx), %ebp
movq %r15, 0x10(%rbx)
movslq %ebp, %r12
movq %r12, %rbp
shlq $0x4, %rbp
leaq 0x8(%rbp), %r14
testl %r12d, %r12d
movq $-0x1, %rax
cmovsq %rax, %r14
movq %r14, %rdi
callq 0x3030
leaq 0x8(%rax), %r15
movq %rax, (%rsp)
movq %r12, (%rax)
testl %r12d, %r12d
je 0xe6f2
negq %rbp
xorl %r13d, %r13d
movq %r15, %r12
movq %r12, %rdi
callq 0x3a20
addq $-0x10, %r13
addq $0x10, %r12
cmpq %r13, %rbp
jne 0xe6dd
movq %r15, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
testq %r13, %r13
je 0xe74b
negq %r13
movq (%rsp), %r15
addq $-0x8, %r15
leaq (%r15,%r13), %rdi
callq 0x3a6e
addq $-0x10, %r13
jne 0xe718
jmp 0xe74b
movq %rax, %rbx
testq %rbp, %rbp
je 0xe74b
negq %rbp
movq (%rsp), %r15
addq $-0x8, %r15
leaq (%r15,%rbp), %rdi
callq 0x3a6e
addq $-0x10, %rbp
jne 0xe73c
movq (%rsp), %rdi
movq %r14, %rsi
callq 0x3500
movq %rbx, %rdi
callq 0x34a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/kmeans.cpp
// Function: Cloud::add_point(Point&, int)
void Cloud::add_point(Point &p, int label)
{
    /*!
     * @brief Adds a point in the cloud by copying its values
     * 
     * @param p The point to be added
	 * @param label A label to give to this point
     */

	assert(("Too much points!", n < nmax));
	assert(("No center to assign to this point!", label<k));

	for(int m = 0; m < d; m++)
	{
		points[n].coords[m] = p.coords[m];
	}

	points[n].label = label;

	n++;
}

// Assembly:
pushq %rax
movslq 0x4(%rdi), %rax
cmpl 0xc(%rdi), %eax
jge 0xe860
cmpl %edx, 0x8(%rdi)
jle 0xe87f
movslq (%rdi), %r8
testq %r8, %r8
jle 0xe84a
movq (%rsi), %rsi
movq 0x10(%rdi), %rcx
movq %rax, %r9
shlq $0x4, %r9
movq (%rcx,%r9), %r9
xorl %r10d, %r10d
movsd (%rsi,%r10,8), %xmm0
movsd %xmm0, (%r9,%r10,8)
incq %r10
cmpq %r10, %r8
jne 0xe834
jmp 0xe84e
movq 0x10(%rdi), %rcx
movq %rax, %rsi
shlq $0x4, %rsi
movl %edx, 0x8(%rcx,%rsi)
incl %eax
movl %eax, 0x4(%rdi)
popq %rax
retq
leaq 0x3121(%rip), %rdi      # 0x11988
leaq 0x3139(%rip), %rsi      # 0x119a7
leaq 0x3141(%rip), %rcx      # 0x119b6
movl $0x2b, %edx
callq 0x3170
leaq 0x3154(%rip), %rdi      # 0x119da
leaq 0x311a(%rip), %rsi      # 0x119a7
leaq 0x3122(%rip), %rcx      # 0x119b6
movl $0x2c, %edx
callq 0x3170
// File: /workspace/github_cpp_makefile_star2_O3/sebastienmeyer2[P]mst-clustering/src/kmeans.cpp
// Function: Cloud::intracluster_variance()
double Cloud::intracluster_variance()
{
    /*!
     * @brief Computes the intracluster variance in this cloud
     * 
     * @return The intracluster variance
     */

	double intraclusterVar = 0.0;
	for(int i = 0; i < this->n; i ++){
		intraclusterVar += points[i].distance(&(centers[points[i].label]));
	}
	if (n > 0) {
		intraclusterVar /= n;
	}

	return intraclusterVar;
}

// Assembly:
movl 0x4(%rdi), %eax
testl %eax, %eax
jle 0xe953
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
xorpd %xmm1, %xmm1
xorl %r14d, %r14d
xorl %r15d, %r15d
movsd %xmm1, 0x8(%rsp)
movq 0x10(%rbx), %rdi
movslq 0x8(%rdi,%r14), %rsi
addq %r14, %rdi
shlq $0x4, %rsi
addq 0x18(%rbx), %rsi
callq 0x3b3a
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
incq %r15
movslq 0x4(%rbx), %rax
addq $0x10, %r14
cmpq %rax, %r15
jl 0xe90f
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xe957
xorpd %xmm1, %xmm1
testl %eax, %eax
jle 0xe966
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
retq
nop