LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/yukioc[P]tscrpt/tscrpt.cpp
// Function: tscrpt_t::factor()
obj_t* tscrpt_t::factor() {
	obj_t *o(0);
	bool minus=false;
	if     (is('+')){ } // unary-operator
	else if(is('-')){ minus=true; }
//	else if(is('!')){ assert(0); }
//	else if(is('~')){ assert(0); }
//	else if(is('*')){ assert(0); }
//	else if(is('&')){ assert(0); }
	if      (is('(')){ o=expr(); be(')'); }
	else if (eq('I')){ assert(0); }
	else if (eq('N')||eq('S')){ o=obj(); }
	else throw std::runtime_error("factor: syntax error");
	if (minus) {
		obj_t l('N',-1), *r;
		o=mul(&l,r=o);
		delete r;
	}
	return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
pushq $0x2b
popq %rsi
pushq $0x1
popq %rdx
callq 0x2b74
testb %al, %al
je 0x3114
xorl %ebp, %ebp
jmp 0x3124
pushq $0x2d
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x2b74
movl %eax, %ebp
pushq $0x28
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x2b74
testb %al, %al
je 0x314e
movq %rbx, %rdi
callq 0x2bfc
movq %rax, %r14
pushq $0x29
popq %rsi
movq %rbx, %rdi
callq 0x2d34
jmp 0x318e
pushq $0x49
popq %rsi
movq %rbx, %rdi
callq 0x2d2c
testb %al, %al
jne 0x31f3
pushq $0x4e
popq %rsi
movq %rbx, %rdi
callq 0x2d2c
testb %al, %al
jne 0x3183
pushq $0x53
popq %rsi
movq %rbx, %rdi
callq 0x2d2c
testb %al, %al
je 0x3212
movq %rbx, %rdi
callq 0x2cc6
movq %rax, %r14
testb %bpl, %bpl
je 0x31e5
leaq 0x10(%rsp), %rbx
movb $0x4e, -0x8(%rbx)
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
orl $-0x1, 0x10(%rax)
leaq 0x8(%rsp), %rsi
movq %r14, %rdx
callq 0x3262
movq %rax, %r15
testq %r14, %r14
je 0x31cf
leaq 0x8(%r14), %rdi
callq 0x20e0
pushq $0x30
popq %rsi
movq %r14, %rdi
callq 0x2160
movq %rbx, %rdi
callq 0x20e0
movq %r15, %r14
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4638(%rip), %rdi      # 0x7832
leaq 0x41c6(%rip), %rsi      # 0x73c7
leaq 0x3fab(%rip), %rcx      # 0x71b3
movl $0xbb, %edx
callq 0x2100
pushq $0x10
popq %rdi
callq 0x20f0
movq %rax, %rbx
leaq 0x3fa9(%rip), %rsi      # 0x71cd
movq %rax, %rdi
callq 0x20b0
movq 0x6dc5(%rip), %rsi      # 0x9ff8
movq 0x6d8e(%rip), %rdx      # 0x9fc8
movq %rbx, %rdi
callq 0x2260
movq %rax, %r14
movq %rbx, %rdi
callq 0x2120
jmp 0x325a
movq %rax, %r14
movq %rbx, %rdi
callq 0x20e0
movq %r14, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O2/yukioc[P]tscrpt/tscrpt.cpp
// Function: tscrpt_t::mul(obj_t*, obj_t*)
obj_t* tscrpt_t::mul(obj_t* l, obj_t* r){
	obj_t* o(0);
	verbose(VTRACE,"parse: %s*%s\n",l->str().c_str(), r->str().c_str());
	if(l->type=='N'){
		o = new obj_t('N', l->value() * r->value());
	}else if(l->type=='S'){
		o = new obj_t('S', "");
		std::string& s=o->str();
		for(int i=r->value();i>0;--i) s.append(l->str());
	}else assert(0);
	return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
cmpl $0x9, 0x6ef1(%rip)      # 0xa168
jl 0x32a0
movq %rbx, %rdi
callq 0x23f2
movq (%rax), %r14
movq %r15, %rdi
callq 0x23f2
movq (%rax), %rdx
leaq 0x3fb6(%rip), %rdi      # 0x724c
movq %r14, %rsi
xorl %eax, %eax
callq 0x2040
movzbl (%rbx), %eax
cmpl $0x53, %eax
je 0x32f7
cmpl $0x4e, %eax
jne 0x3344
pushq $0x30
popq %rdi
callq 0x2150
movq %rax, %r14
movq %rbx, %rdi
callq 0x23ac
movl %eax, %ebx
movq %r15, %rdi
callq 0x23ac
movb $0x4e, (%r14)
leaq 0x18(%r14), %rcx
movq %rcx, 0x8(%r14)
andq $0x0, 0x10(%r14)
imull %ebx, %eax
movb $0x0, 0x18(%r14)
movl %eax, 0x28(%r14)
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
pushq $0x30
popq %rdi
callq 0x2150
movq %rax, %r14
leaq 0x40bb(%rip), %rdx      # 0x73c4
pushq $0x53
popq %rsi
movq %rax, %rdi
callq 0x3630
movq %r14, %rdi
callq 0x23f2
movq %rax, %r12
movq %r15, %rdi
callq 0x23ac
movl %eax, %ebp
testl %ebp, %ebp
jle 0x32eb
movq %rbx, %rdi
callq 0x23f2
movq %r12, %rdi
movq %rax, %rsi
callq 0x22a0
decl %ebp
jmp 0x3329
leaq 0x44e7(%rip), %rdi      # 0x7832
leaq 0x4075(%rip), %rsi      # 0x73c7
leaq 0x3f01(%rip), %rcx      # 0x725a
movl $0xe1, %edx
callq 0x2100
movq %rax, %rbx
pushq $0x30
popq %rsi
movq %r14, %rdi
callq 0x2160
movq %rbx, %rdi
callq 0x2280
nop
// File: /workspace/github_cpp_makefile_star2_O2/yukioc[P]tscrpt/tscrpt.cpp
// Function: tscrpt_t::div(obj_t*, obj_t*)
obj_t* tscrpt_t::div(obj_t* l, obj_t* r){
	obj_t* o(0);
	verbose(VTRACE,"parse: %s/%s\n",l->str().c_str(), r->str().c_str());
	if(l->type=='N'||l->type=='S'){
		if(r->value()==0) throw std::runtime_error("div: divide by zero");
		o = new obj_t('N', l->value() / r->value());
	}else assert(0);
	return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
cmpl $0x9, 0x6dda(%rip)      # 0xa168
jl 0x33b7
movq %r14, %rdi
callq 0x23f2
movq (%rax), %r15
movq %rbx, %rdi
callq 0x23f2
movq (%rax), %rdx
leaq 0x3ed4(%rip), %rdi      # 0x7281
movq %r15, %rsi
xorl %eax, %eax
callq 0x2040
movzbl (%r14), %eax
cmpl $0x53, %eax
je 0x33c9
cmpl $0x4e, %eax
jne 0x3451
movq %rbx, %rdi
callq 0x23ac
testl %eax, %eax
je 0x3421
pushq $0x30
popq %rdi
callq 0x2150
movq %rax, %r15
movq %r14, %rdi
callq 0x23ac
movl %eax, %ebp
movq %rbx, %rdi
callq 0x23ac
movl %eax, %ecx
movl %ebp, %eax
cltd
idivl %ecx
movb $0x4e, (%r15)
leaq 0x18(%r15), %rcx
movq %rcx, 0x8(%r15)
andq $0x0, 0x10(%r15)
movb $0x0, 0x18(%r15)
movl %eax, 0x28(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x20f0
movq %rax, %rbx
leaq 0x3e5c(%rip), %rsi      # 0x728f
movq %rax, %rdi
callq 0x20b0
movq 0x6bb6(%rip), %rsi      # 0x9ff8
movq 0x6b7f(%rip), %rdx      # 0x9fc8
movq %rbx, %rdi
callq 0x2260
leaq 0x43da(%rip), %rdi      # 0x7832
leaq 0x3f68(%rip), %rsi      # 0x73c7
leaq 0x3e3d(%rip), %rcx      # 0x72a3
movl $0xea, %edx
callq 0x2100
movq %rax, %r14
movq %rbx, %rdi
callq 0x2120
movq %r14, %rdi
callq 0x2280
nop
// File: /workspace/github_cpp_makefile_star2_O2/yukioc[P]tscrpt/tscrpt.cpp
// Function: tscrpt_t::rem(obj_t*, obj_t*)
obj_t* tscrpt_t::rem(obj_t* l, obj_t* r){
	obj_t* o(0);
	verbose(VTRACE,"parse: %s%%%s\n",l->str().c_str(), r->str().c_str());
	if(l->type=='N'||l->type=='S'){
		if(r->value()==0) throw std::runtime_error("div: divide by zero");
		o = new obj_t('N', l->value() % r->value());
	}else assert(0);
	return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
cmpl $0x9, 0x6cd0(%rip)      # 0xa168
jl 0x34c1
movq %r14, %rdi
callq 0x23f2
movq (%rax), %r15
movq %rbx, %rdi
callq 0x23f2
movq (%rax), %rdx
leaq 0x3e13(%rip), %rdi      # 0x72ca
movq %r15, %rsi
xorl %eax, %eax
callq 0x2040
movzbl (%r14), %eax
cmpl $0x53, %eax
je 0x34d3
cmpl $0x4e, %eax
jne 0x355b
movq %rbx, %rdi
callq 0x23ac
testl %eax, %eax
je 0x352b
pushq $0x30
popq %rdi
callq 0x2150
movq %rax, %r15
movq %r14, %rdi
callq 0x23ac
movl %eax, %ebp
movq %rbx, %rdi
callq 0x23ac
movl %eax, %ecx
movl %ebp, %eax
cltd
idivl %ecx
movb $0x4e, (%r15)
leaq 0x18(%r15), %rax
movq %rax, 0x8(%r15)
andq $0x0, 0x10(%r15)
movb $0x0, 0x18(%r15)
movl %edx, 0x28(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x20f0
movq %rax, %rbx
leaq 0x3d52(%rip), %rsi      # 0x728f
movq %rax, %rdi
callq 0x20b0
movq 0x6aac(%rip), %rsi      # 0x9ff8
movq 0x6a75(%rip), %rdx      # 0x9fc8
movq %rbx, %rdi
callq 0x2260
leaq 0x42d0(%rip), %rdi      # 0x7832
leaq 0x3e5e(%rip), %rsi      # 0x73c7
leaq 0x3d69(%rip), %rcx      # 0x72d9
movl $0xf3, %edx
callq 0x2100
movq %rax, %r14
movq %rbx, %rdi
callq 0x2120
movq %r14, %rdi
callq 0x2280
// File: /workspace/github_cpp_makefile_star2_O2/yukioc[P]tscrpt/t-tscrpt.cpp
// Function: main
int main(int argc, char* argv[])
{
//	symbol_table.insert(symbol(":"));

	mu_run_test(t_estrndup);
	mu_run_test(t_number);
	mu_run_test(t_string);
	mu_run_test(t_unaryop);
	mu_run_test(t_mul);
	mu_run_test(t_div);
	mu_run_test(t_rem);
	mu_run_test(t_add);
	mu_run_test(t_sub);
	mu_show_failures();
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x39ef(%rip), %ebx      # 0xa18c
incl 0x39ed(%rip)            # 0xa190
callq 0x3888
cmpl 0x39de(%rip), %ebx      # 0xa18c
leaq 0x121f(%rip), %r15      # 0x79d4
leaq 0x121f(%rip), %rbx      # 0x79db
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x11eb(%rip), %r14      # 0x79b5
leaq 0x11f8(%rip), %rsi      # 0x79c9
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x39ab(%rip), %ebp      # 0xa18c
incl 0x39a9(%rip)            # 0xa190
callq 0x4147
cmpl 0x399a(%rip), %ebp      # 0xa18c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x11e2(%rip), %rsi      # 0x79e2
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x397c(%rip), %ebp      # 0xa18c
incl 0x397a(%rip)            # 0xa190
callq 0x4455
cmpl 0x396b(%rip), %ebp      # 0xa18c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x11bc(%rip), %rsi      # 0x79eb
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x394d(%rip), %ebp      # 0xa18c
incl 0x394b(%rip)            # 0xa190
callq 0x4757
cmpl 0x393c(%rip), %ebp      # 0xa18c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x1196(%rip), %rsi      # 0x79f4
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x391e(%rip), %ebp      # 0xa18c
incl 0x391c(%rip)            # 0xa190
callq 0x4a2f
cmpl 0x390d(%rip), %ebp      # 0xa18c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x1171(%rip), %rsi      # 0x79fe
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x38ef(%rip), %ebp      # 0xa18c
incl 0x38ed(%rip)            # 0xa190
callq 0x5097
cmpl 0x38de(%rip), %ebp      # 0xa18c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x1148(%rip), %rsi      # 0x7a04
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x38c0(%rip), %ebp      # 0xa18c
incl 0x38be(%rip)            # 0xa190
callq 0x54d6
cmpl 0x38af(%rip), %ebp      # 0xa18c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x111f(%rip), %rsi      # 0x7a0a
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x3891(%rip), %ebp      # 0xa18c
incl 0x388f(%rip)            # 0xa190
callq 0x5aa0
cmpl 0x3880(%rip), %ebp      # 0xa18c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x10f6(%rip), %rsi      # 0x7a10
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x3862(%rip), %ebp      # 0xa18c
incl 0x3860(%rip)            # 0xa190
callq 0x6134
cmpl 0x3851(%rip), %ebp      # 0xa18c
cmoveq %r15, %rbx
leaq 0x10d0(%rip), %rsi      # 0x7a16
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2040
movl 0x3833(%rip), %esi      # 0xa18c
movl 0x3835(%rip), %edx      # 0xa194
movl 0x382b(%rip), %ecx      # 0xa190
leaq 0x10b0(%rip), %rdi      # 0x7a1c
xorl %eax, %eax
callq 0x2040
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/mukul-mehta[P]meta/tokenizer.cc
// Function: parsePipeTokens(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>>>>)
vector<vector<string>> parsePipeTokens(vector<string> tokens) {
    vector<vector<string>> parsedTokens;
    // Create a temporary vector for a single token group. Fill it and add it to parsedTokens on pipe character
    vector<string> temp;
    size_t num_tokens = tokens.size();

    for (size_t i = 0; i < num_tokens; i++) {
        if (tokens[i] != "|") {
            temp.push_back(tokens[i]);
        } else {
            parsedTokens.push_back(temp);
            temp.clear();
        }
    }
    parsedTokens.push_back(temp);

    return parsedTokens;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
movq %rsp, %r15
andq $0x0, 0x10(%r15)
movaps %xmm0, (%r15)
movq 0x8(%rsi), %r13
subq (%rsi), %r13
sarq $0x5, %r13
xorl %ebp, %ebp
leaq 0x17a2(%rip), %r12      # 0x51ee
subq $0x1, %r13
jb 0x3a8d
movq (%r14), %rdi
addq %rbp, %rdi
movq %r12, %rsi
callq 0x3afc
testb %al, %al
je 0x3a74
movq (%r14), %rsi
addq %rbp, %rsi
movq %r15, %rdi
callq 0x3ad0
jmp 0x3a87
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3b06
movq %r15, %rdi
callq 0x3288
addq $0x20, %rbp
jmp 0x3a4c
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3b06
movq %rsp, %rdi
callq 0x3196
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3ab4
movq %rax, %r14
movq %rsp, %rdi
callq 0x3196
movq %rbx, %rdi
callq 0x3266
movq %r14, %rdi
callq 0x24a0
nop
// File: /workspace/github_cpp_makefile_star2_O2/mukul-mehta[P]meta/utils.cc
// Function: parse_memory(long)
char* parse_memory(long int memory) {
    char* response = (char*)malloc(1024 * sizeof(char));
    if (memory <= 1024) {
        int mem = (int)memory;
        sprintf(response, "%dB", mem);
    } else if (memory <= 1024 * 1024) {
        int mem = (int)(memory / 1024.0);
        sprintf(response, "%dKB", mem);
    } else {
        int mem = (int)(memory / (1024.0 * 1024.0));
        sprintf(response, "%dMB", mem);
    }
    return response;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x400, %edi            # imm = 0x400
callq 0x23a0
movq %rax, %rbx
cmpq $0x400, %r14            # imm = 0x400
jg 0x3f08
leaq 0x13c8(%rip), %rsi      # 0x52c8
movq %rbx, %rdi
movl %r14d, %edx
jmp 0x3f41
cvtsi2sd %r14, %xmm0
cmpq $0x100000, %r14         # imm = 0x100000
ja 0x3f2b
mulsd 0x13a2(%rip), %xmm0     # 0x52c0
cvttsd2si %xmm0, %edx
leaq 0x13a3(%rip), %rsi      # 0x52cc
jmp 0x3f3e
mulsd 0x1385(%rip), %xmm0     # 0x52b8
cvttsd2si %xmm0, %edx
leaq 0x1393(%rip), %rsi      # 0x52d1
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2070
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/mukul-mehta[P]meta/utils.cc
// Function: parse_time(long)
char* parse_time(long int time) {
    int days = time / (24 * 3600);
    int hours = (time - (days * 24 * 3600)) / 3600;
    int minutes = (time - hours * 3600) / 60;

    char* response = (char*)malloc(1024 * sizeof(char));

    if (hours == 0) {
        sprintf(response, "%d minutes", minutes);
    } else if (days == 0) {
        if (hours == 1)
            sprintf(response, "%d hour, %d minutes", hours, minutes);
        else
            sprintf(response, "%d hours, %d minutes", hours, minutes);
    } else {
        if (days == 1)
            sprintf(response, "%d day, %d hours, %d minutes", days, hours, minutes);
        else
            sprintf(response, "%d days, %d hours, %d minutes", days, hours, minutes);
    }
    return response;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl $0x15180, %ecx          # imm = 0x15180
movq %rdi, %rax
cqto
idivq %rcx
movq %rax, %r12
movabsq $0x1518000000000, %rcx  # imm = 0x1518000000000
imulq %rax, %rcx
sarq $0x20, %rcx
movq %rdi, %rax
subq %rcx, %rax
movl $0xe10, %ecx            # imm = 0xE10
cqto
idivq %rcx
movq %rax, %r15
movabsq $0xe1000000000, %rax    # imm = 0xE1000000000
imulq %r15, %rax
sarq $0x20, %rax
subq %rax, %rdi
pushq $0x3c
popq %rcx
movq %rdi, %rax
cqto
idivq %rcx
movq %rax, %r14
movl $0x400, %edi            # imm = 0x400
callq 0x23a0
movq %rax, %rbx
testl %r15d, %r15d
je 0x3fe5
cmpl $0x1, %r12d
je 0x3ffb
testl %r12d, %r12d
jne 0x400a
cmpl $0x1, %r15d
jne 0x4026
leaq 0x12f9(%rip), %rsi      # 0x52d6
pushq $0x1
popq %rdx
movq %rbx, %rdi
jmp 0x4033
leaq 0x12f3(%rip), %rsi      # 0x52df
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x2070
jmp 0x403d
leaq 0x12e8(%rip), %rsi      # 0x52ea
pushq $0x1
popq %rdx
movq %rbx, %rdi
jmp 0x4017
leaq 0x12f6(%rip), %rsi      # 0x5307
movq %rbx, %rdi
movl %r12d, %edx
movl %r15d, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0x2070
jmp 0x403d
leaq 0x12e3(%rip), %rsi      # 0x5310
movq %rbx, %rdi
movl %r15d, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0x2070
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/mukul-mehta[P]meta/utils.cc
// Function: getHistoryFilename()
char* getHistoryFilename() {
    char* histfile = (char*)malloc(BUFSIZE * sizeof(char));
    uid_t uid = geteuid();
    struct passwd* pw = getpwuid(uid);
    if (!pw) {
        histfile = NULL;
    }
    histfile = pw->pw_dir;

    char* fullFilePath = (char*)malloc(BUFSIZE * sizeof(char));
    sprintf(fullFilePath, "%s/%s", histfile, HISTORYFILENAME);
    return fullFilePath;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x21a0
movl %eax, %edi
callq 0x22e0
movq 0x20(%rax), %rbx
movl $0x1000, %edi           # imm = 0x1000
callq 0x23a0
movq %rax, %r14
leaq 0x12b1(%rip), %rsi      # 0x5325
leaq 0x12b0(%rip), %rcx      # 0x532b
movq %rax, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2070
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/mukul-mehta[P]meta/utils.cc
// Function: getUsername[abi:cxx11]()
string getUsername() {
    char* username = (char*)malloc(BUFSIZE * sizeof(char));
    uid_t uid = geteuid();
    struct passwd* pw = getpwuid(uid);
    if (!pw) {
        username = (char*)"";
    }
    username = pw->pw_name;

    return string(username);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x21a0
movl %eax, %edi
callq 0x22e0
movq (%rax), %rsi
leaq 0xf(%rsp), %rdx
movq %rbx, %rdi
callq 0x30bc
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/mukul-mehta[P]meta/utils.cc
// Function: getHostname[abi:cxx11]()
string getHostname() {
    char* hostname = (char*)malloc(BUFSIZE * sizeof(char));
    int ret = gethostname(hostname, BUFSIZE);
    if (ret < 0) {
        hostname = (char*)"";
    }
    return string(hostname);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1000, %edi           # imm = 0x1000
callq 0x23a0
movq %rax, %r14
movl $0x1000, %esi           # imm = 0x1000
movq %rax, %rdi
callq 0x2440
testl %eax, %eax
leaq 0x1794(%rip), %rsi      # 0x587e
cmovnsq %r14, %rsi
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
callq 0x30bc
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/mukul-mehta[P]meta/utils.cc
// Function: getOSName[abi:cxx11]()
string getOSName() {
    ifstream infile("/etc/os-release");

    if (infile.good()) {
        string temp;
        getline(infile, temp);
        string OSName = temp.substr(temp.find("=") + 2, temp.size() - 1);
        OSName.pop_back();
        return OSName;
    }
    return "Unknown Linux Distribution";
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rdi, %rbx
leaq 0x1220(%rip), %rsi      # 0x533a
leaq 0x20(%rsp), %r14
pushq $0x8
popq %rdx
movq %r14, %rdi
callq 0x24c0
movq (%r14), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x40(%rsp,%rax)
je 0x414c
leaq 0x120d(%rip), %rsi      # 0x534c
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x30bc
jmp 0x41a4
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x2080
leaq 0x11d9(%rip), %rsi      # 0x534a
movq %rsp, %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x2500
leaq 0x2(%rax), %rdx
movq 0x8(%r14), %rcx
decq %rcx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x22c0
movq %rbx, %rdi
callq 0x2340
movq %rsp, %rdi
callq 0x2120
leaq 0x20(%rsp), %rdi
callq 0x2090
movq %rbx, %rax
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r14
retq
movq %rax, %rbx
jmp 0x41cc
movq %rax, %rbx
movq %rsp, %rdi
callq 0x2120
leaq 0x20(%rsp), %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x24a0
nop
// File: /workspace/github_cpp_makefile_star2_O2/mukul-mehta[P]meta/builtins.cc
// Function: metash_history(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>>>>)
int metash_history(unused vector<string> tokens) {
    HIST_ENTRY** hist_list = history_list();

    if (!hist_list)
        return 1;

    for (int i = 0; i < history_length; i++)
        printf("%s%d%s: %s\n", RED, i + history_base, NORM, hist_list[i]->line);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
callq 0x2490
testq %rax, %rax
je 0x4a30
movq %rax, %r14
movq 0x45eb(%rip), %rbp      # 0x8fd0
leaq 0xf5e(%rip), %r15       # 0x594a
leaq 0x7c0(%rip), %r12       # 0x51b3
leaq 0x7a8(%rip), %r13       # 0x51a2
xorl %ebx, %ebx
movslq (%rbp), %rax
cmpq %rax, %rbx
jge 0x4a2c
movq 0x45e4(%rip), %rax      # 0x8ff0
movl (%rax), %edx
addl %ebx, %edx
movq (%r14,%rbx,8), %rax
movq (%rax), %r8
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rcx
xorl %eax, %eax
callq 0x2030
incq %rbx
jmp 0x49fc
xorl %eax, %eax
jmp 0x4a33
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb_dump.c
// Function: text
static void text(MDB_val *v)
{
	unsigned char *c, *end;

	putchar(' ');
	c = v->mv_data;
	end = c + v->mv_size;
	while (c < end) {
		if (isprint(*c)) {
			putchar(*c);
		} else {
			putchar('\\');
			hex(*c);
		}
		c++;
	}
	putchar('\n');
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
pushq $0x20
popq %rdi
callq 0x2040
movq 0x8(%rbx), %r14
movq (%rbx), %r15
addq %r14, %r15
pushq $0x5c
popq %rbx
cmpq %r15, %r14
jae 0x2cec
callq 0x2470
movq (%rax), %rax
movzbl (%r14), %edi
testb $0x40, 0x1(%rax,%rdi,2)
jne 0x2ce2
movl %ebx, %edi
callq 0x2040
movzbl (%r14), %edi
callq 0x2d34
jmp 0x2ce7
callq 0x2040
incq %r14
jmp 0x2cb8
pushq $0xa
popq %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2040
// File: /workspace/github_cpp_makefile_star2_O2/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb_dump.c
// Function: byte
static void byte(MDB_val *v)
{
	unsigned char *c, *end;

	putchar(' ');
	c = v->mv_data;
	end = c + v->mv_size;
	while (c < end) {
		hex(*c++);
	}
	putchar('\n');
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x20
popq %rdi
callq 0x2040
movq 0x8(%rbx), %r14
movq (%rbx), %rbx
addq %r14, %rbx
cmpq %rbx, %r14
jae 0x2d25
movzbl (%r14), %edi
incq %r14
callq 0x2d34
jmp 0x2d12
pushq $0xa
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2040
// File: /workspace/github_cpp_makefile_star2_O2/wx-csy[P]librmq/main.cpp
// Function: main
int main() {
    functional_test<rmq_zkw>();
    functional_test<rmq_ind>();
    functional_test<rmq_block>();
    performance_test<rmq_zkw>(10000000, 10000000, 10);
    performance_test<rmq_st>(10000000, 10000000, 10);
    performance_test<rmq_ind>(10000000, 10000000, 10);
    performance_test<rmq_block>(10000000, 10000000, 10);
    return 0;
}

// Assembly:
pushq %rbx
callq 0x12ab
callq 0x1360
callq 0x1415
pushq $0xa
popq %rbx
movl $0x989680, %edi         # imm = 0x989680
movl $0x989680, %esi         # imm = 0x989680
movq %rbx, %rdx
callq 0x14ca
movl $0x989680, %edi         # imm = 0x989680
movl $0x989680, %esi         # imm = 0x989680
movq %rbx, %rdx
callq 0x16a3
movl $0x989680, %edi         # imm = 0x989680
movl $0x989680, %esi         # imm = 0x989680
movq %rbx, %rdx
callq 0x187c
movl $0x989680, %edi         # imm = 0x989680
movl $0x989680, %esi         # imm = 0x989680
movq %rbx, %rdx
callq 0x1a55
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/wx-csy[P]librmq/main.cpp
// Function: void functional_test<librmq::rmq_zkw>()
void functional_test() {
    for (int i = 0; i < 100; i++) 
        functional_test_instance<TSolver<int>>(gen() % 10 + 1);
    for (int i = 0; i < 100; i++) 
        functional_test_instance<TSolver<int>>(gen() % 50 + 1);
    for (int i = 0; i < 20; i++) 
        functional_test_instance<TSolver<int>>(gen() % 100000 + 1);
    for (int i = 0; i < 10; i++) 
        functional_test_instance<TSolver<int>>(gen() % 1000000 + 1);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
pushq $0x64
popq %rbp
leaq 0xf2dff(%rip), %rbx     # 0xf40b8
pushq $0xa
popq %r14
subl $0x1, %ebp
jb 0x12d9
movq %rbx, %rdi
callq 0x1e60
xorl %edx, %edx
divq %r14
leal 0x1(%rdx), %edi
callq 0x1c65
jmp 0x12bd
pushq $0x64
popq %rbp
leaq 0xf2dd5(%rip), %rbx     # 0xf40b8
pushq $0x32
popq %r14
subl $0x1, %ebp
jb 0x1303
movq %rbx, %rdi
callq 0x1e60
xorl %edx, %edx
divq %r14
leal 0x1(%rdx), %edi
callq 0x1c65
jmp 0x12e7
pushq $0x14
popq %rbp
leaq 0xf2dab(%rip), %rbx     # 0xf40b8
movl $0x186a0, %r14d         # imm = 0x186A0
subl $0x1, %ebp
jb 0x132f
movq %rbx, %rdi
callq 0x1e60
xorl %edx, %edx
divq %r14
leal 0x1(%rdx), %edi
callq 0x1c65
jmp 0x1313
pushq $0xa
popq %rbp
leaq 0xf2d7f(%rip), %rbx     # 0xf40b8
movl $0xf4240, %r14d         # imm = 0xF4240
subl $0x1, %ebp
jb 0x135b
movq %rbx, %rdi
callq 0x1e60
xorl %edx, %edx
divq %r14
leal 0x1(%rdx), %edi
callq 0x1c65
jmp 0x133f
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wx-csy[P]librmq/./librmq/zkw.h
// Function: librmq::rmq_zkw<int>::rmq_zkw(unsigned long, int const*)
rmq_zkw(size_t n, const T *data) : n(n), data(data) {
        ntot = n;
        while (ntot & (ntot - 1)) ntot += ntot & -ntot;
        tr = new size_t[ntot << 1];
        std::iota(tr + ntot, tr + ntot + n, 0);
        std::fill(tr + ntot + n, tr + ntot + ntot, 0);
        for (size_t i = ntot - 1; i > 0; i--)
            tr[i] = data[tr[i<<1]] < data[tr[i<<1|1]] ? tr[i<<1] : tr[i<<1|1];
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, (%rdi)
movq %rdx, 0x10(%rdi)
movq %rsi, %r13
leaq -0x1(%r13), %r12
testq %r12, %r13
je 0x1f2d
movq %r13, %rax
negq %rax
andq %r13, %rax
addq %rax, %r13
jmp 0x1f16
movq %r13, 0x8(%r15)
movabsq $0x7000000000000000, %rax # imm = 0x7000000000000000
andq %r13, %rax
movq %r13, %rcx
shlq $0x4, %rcx
xorl %ebp, %ebp
negq %rax
movl $0x0, %edi
sbbq %rdi, %rdi
orq %rcx, %rdi
callq 0x1030
movq %rax, 0x18(%r15)
leaq (%rax,%r13,8), %rcx
leaq (,%r14,8), %rdx
testq %rdx, %rdx
je 0x1f7c
movq %rbp, (%rcx,%rbp,8)
incq %rbp
addq $-0x8, %rdx
jmp 0x1f6a
shlq $0x3, %r14
leaq (,%r13,8), %rdx
cmpq %r14, %rdx
je 0x1f98
andq $0x0, (%rcx,%r14)
addq $0x8, %r14
jmp 0x1f88
leaq -0x4(,%r13,8), %rcx
movq %r12, %rdx
subq $0x1, %rdx
jb 0x1fcb
movq -0x8(%rax,%rcx,2), %rsi
movq (%rax,%rcx,2), %rdi
movl (%rbx,%rsi,4), %r8d
cmpl (%rbx,%rdi,4), %r8d
cmovlq %rsi, %rdi
movq %rdi, (%rax,%r12,8)
addq $-0x8, %rcx
movq %rdx, %r12
jmp 0x1fa3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wx-csy[P]librmq/./librmq/zkw.h
// Function: librmq::rmq_zkw<int>::query(unsigned long, unsigned long)
size_t query(size_t l, size_t r) {
        size_t ret = l;
        l += ntot - 1;
        r += ntot;
        while (l ^ r ^ 1) {
            if ((~l & 1) && data[tr[l ^ 1]] < data[ret]) ret = tr[l ^ 1]; 
            if (( r & 1) && data[tr[r ^ 1]] < data[ret]) ret = tr[r ^ 1];
            l >>= 1;
            r >>= 1;
        }
        return ret;
    }

// Assembly:
movq %rsi, %rax
movq 0x8(%rdi), %r8
movq 0x10(%rdi), %rcx
addq %r8, %rsi
decq %rsi
addq %r8, %rdx
movq 0x18(%rdi), %rdi
movabsq $0x1ffffffffffffffe, %r8 # imm = 0x1FFFFFFFFFFFFFFE
movq %rdx, %r9
xorq %rsi, %r9
cmpq $0x1, %r9
je 0x2082
testb $0x1, %sil
jne 0x205b
movq 0x8(%rdi,%rsi,8), %r9
movl (%rcx,%r9,4), %r10d
cmpl (%rcx,%rax,4), %r10d
jl 0x2058
movq %rax, %r9
movq %r9, %rax
testb $0x1, %dl
je 0x207a
movq %rdx, %r9
andq %r8, %r9
movq (%rdi,%r9,8), %r9
movl (%rcx,%r9,4), %r10d
cmpl (%rcx,%rax,4), %r10d
jl 0x2077
movq %rax, %r9
movq %r9, %rax
shrq %rsi
shrq %rdx
jmp 0x2034
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/wx-csy[P]librmq/./librmq/st.h
// Function: librmq::rmq_st<int>::init(unsigned long, int const*, unsigned long*)
void init(size_t n, const T *data, size_t *first = nullptr) {
        this->n = n; this->data = data;
        if (first) {
            st[0] = first; 
        } else { 
            st[0] = new size_t[n]; std::iota(st[0], st[0] + n, size_t(0));
        }
        for (size_t lv = 0; (2 << lv) <= n; lv++) {
            st[lv+1] = new size_t[n - (2 << lv) + 1];
            for (size_t i = 0; i + (2 << lv) <= n; i++) {
                size_t p1 = st[lv][i], p2 = st[lv][i + (1 << lv)];
                st[lv+1][i] = (data[p1] < data[p2] ? p1 : p2);
            }
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movabsq $0x1fffffffffffffff, %rdx # imm = 0x1FFFFFFFFFFFFFFF
movq %rsi, (%rdi)
movq %rbx, 0x1e8(%rdi)
pushq $-0x1
popq %rsi
testq %rcx, %rcx
je 0x2192
movq %rcx, 0x8(%r15)
xorl %r12d, %r12d
pushq $0x2
popq %rax
movl %r12d, %ecx
shll %cl, %eax
movslq %eax, %r13
movq %r14, %rax
subq %r13, %rax
jb 0x2183
movl %r12d, %ebp
leaq 0x1(%rax), %rcx
cmpq %rdx, %rcx
leaq 0x8(,%rax,8), %rdi
cmovaq %rsi, %rdi
callq 0x1030
movq %rax, 0x10(%r15,%r12,8)
pushq $0x1
popq %rdx
movl %ebp, %ecx
shll %cl, %edx
incq %r12
movslq %edx, %rcx
shlq $0x3, %rcx
xorl %edx, %edx
leaq (%rdx,%r13), %rsi
cmpq %r14, %rsi
ja 0x2171
movq (%r15,%r12,8), %rsi
leaq (%rsi,%rdx,8), %rdi
movq (%rsi,%rdx,8), %rsi
movq (%rcx,%rdi), %rdi
movl (%rbx,%rsi,4), %r8d
cmpl (%rbx,%rdi,4), %r8d
cmovlq %rsi, %rdi
movq %rdi, (%rax,%rdx,8)
incq %rdx
jmp 0x2143
movabsq $0x1fffffffffffffff, %rdx # imm = 0x1FFFFFFFFFFFFFFF
pushq $-0x1
popq %rsi
jmp 0x20fd
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq (,%r14,8), %r12
cmpq %rdx, %r14
movq %r12, %rdi
cmovaq %rsi, %rdi
callq 0x1030
pushq $-0x1
popq %rsi
movabsq $0x1fffffffffffffff, %rdx # imm = 0x1FFFFFFFFFFFFFFF
movq %rax, 0x8(%r15)
xorl %ecx, %ecx
testq %r12, %r12
je 0x20fa
movq %rcx, (%rax,%rcx,8)
incq %rcx
addq $-0x8, %r12
jmp 0x21bc
// File: /workspace/github_cpp_makefile_star2_O2/wx-csy[P]librmq/./librmq/ind.h
// Function: librmq::rmq_ind<int>::rmq_ind(unsigned long, int const*)
rmq_ind(size_t n, const T *data) :
            n(n), data(data) {
        nr_blocks = (n + SEGLEN - 1) / SEGLEN;
        size_t *segdata = new size_t[nr_blocks]; // ownership transferred to ST
        segid = new int[nr_blocks];
        size_t ptr = 0;
        for (size_t i = 0; ptr + SEGLEN <= n; ptr += SEGLEN, i++) {
            segdata[i] = std::min_element(data + ptr, data + ptr + SEGLEN) - data;
            segid[i] = select_segment(data + ptr);
        }
        if (ptr != n) {
            T rdata[SEGLEN] = {0};
            for (size_t i = 0; ptr + i < n; i++) rdata[i] = data[ptr + i];
            segdata[nr_blocks - 1] = std::min_element(data + ptr, data + n) - data;
            segid[nr_blocks - 1] = select_segment(rdata);
        }
        st.init(nr_blocks, data, segdata);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %rbx
movq %rsi, (%rdi)
movq %rdx, 0x10(%rdi)
addq $0x20, %rdi
movl $0x1f0, %edx            # imm = 0x1F0
movq %rdi, 0x8(%rsp)
xorl %esi, %esi
callq 0x10a0
leaq 0x7(%r13), %rdi
movq %rdi, %rbp
shrq $0x3, %rbp
movq %rbx, (%rsp)
movq %rbp, 0x8(%rbx)
andq $-0x8, %rdi
callq 0x1030
movq %rax, %r15
shlq $0x2, %rbp
movq %rbp, %rdi
callq 0x1030
movq (%rsp), %rcx
movq %rax, 0x18(%rcx)
xorl %eax, %eax
xorl %ebx, %ebx
leaq 0x8(%rax), %r12
cmpq %r13, %r12
ja 0x257d
leaq (%r14,%rax,4), %rbp
leaq (%r14,%rax,4), %rsi
addq $0x20, %rsi
movq %rbp, %rdi
callq 0x27aa
subq %r14, %rax
sarq $0x2, %rax
movq %rax, (%r15,%rbx,8)
movq %rbp, %rdi
callq 0x276c
movq (%rsp), %rcx
movq 0x18(%rcx), %rcx
movl %eax, (%rcx,%rbx,4)
incq %rbx
movq %r12, %rax
jmp 0x253a
cmpq %r13, %rax
jne 0x258c
movq (%rsp), %rax
movq 0x8(%rax), %rsi
jmp 0x25e9
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rcx
movaps %xmm0, 0x10(%rcx)
movaps %xmm0, (%rcx)
movq %rax, %rdx
cmpq %r13, %rdx
jae 0x25b2
movl (%r14,%rdx,4), %esi
movl %esi, (%rcx)
addq $0x4, %rcx
incq %rdx
jmp 0x259e
leaq (%r14,%rax,4), %rdi
leaq (%r14,%r13,4), %rsi
callq 0x27aa
subq %r14, %rax
sarq $0x2, %rax
movq (%rsp), %rbx
movq 0x8(%rbx), %rcx
movq %rax, -0x8(%r15,%rcx,8)
leaq 0x10(%rsp), %rdi
callq 0x276c
movq 0x8(%rbx), %rsi
movq 0x18(%rbx), %rcx
movl %eax, -0x4(%rcx,%rsi,4)
movq 0x8(%rsp), %rdi
movq %r14, %rdx
movq %r15, %rcx
callq 0x20c2
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x260e
jmp 0x260e
jmp 0x260e
movq %rax, %r14
movq 0x8(%rsp), %rdi
callq 0x2092
movq %r14, %rdi
callq 0x1120
nop
// File: /workspace/github_cpp_makefile_star2_O2/wx-csy[P]librmq/./librmq/ind.h
// Function: librmq::rmq_ind<int>::query(unsigned long, unsigned long)
size_t query(size_t l, size_t r) {
        size_t lb = l / SEGLEN, rb = r / SEGLEN;
        if (lb != rb) { // speculative policy
            size_t ret = st.query(lb, std::min(nr_blocks, rb + 1));
            if (ret >= l and ret < r) return ret;
        } else {
            size_t base = lb * SEGLEN;
            return lookup_table[segid[lb]][l - base][r - base - 1] + base;
        } 
        
        size_t lbase = lb * SEGLEN, rbase = rb * SEGLEN;
        size_t v = lookup_suf[segid[lb]][l - lbase] + lbase;
        if (r != rbase) {
            size_t v2 = lookup_pref[segid[rb]][r - rbase - 1] + rbase;
            if (data[v2] < data[v]) v = v2;
        }
        if (lb + 1 == rb) return v;
        size_t vv = st.query(lb + 1, rb);
        return data[vv] < data[v] ? vv : v;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %r13
shrq $0x3, %r13
movq %rdx, %r15
shrq $0x3, %r15
cmpq %r15, %r13
jne 0x2683
movq %r14, %rax
andq $-0x8, %rax
movq 0x18(%rbx), %rcx
movslq (%rcx,%r13,4), %rcx
andl $0x7, %r14d
movq %rax, %rdx
notq %rdx
shlq $0x6, %rcx
addq 0xf1951(%rip), %rcx     # 0xf3fc0
addq %r12, %rdx
leaq (%rcx,%r14,8), %rcx
movsbq (%rcx,%rdx), %rbp
addq %rax, %rbp
jmp 0x273a
leaq 0x20(%rbx), %rdi
leaq 0x1(%r15), %rax
movq 0x8(%rbx), %rdx
cmpq %rdx, %rax
cmovbq %rax, %rdx
movq %rdi, (%rsp)
movq %r13, %rsi
callq 0x1fda
movq %rax, %rbp
cmpq %r14, %rax
setae %al
cmpq %r12, %rbp
setb %cl
testb %cl, %al
jne 0x273a
movq %r14, %rdx
andq $-0x8, %rdx
movq %r12, %rax
andq $-0x8, %rax
movq 0x18(%rbx), %rcx
movslq (%rcx,%r13,4), %rsi
shlq $0x3, %rsi
addq 0xf18f6(%rip), %rsi     # 0xf3fd0
andl $0x7, %r14d
movsbq (%r14,%rsi), %rbp
addq %rdx, %rbp
cmpq %r12, %rax
je 0x2715
movslq (%rcx,%r15,4), %rcx
andl $0x7, %r12d
shlq $0x3, %rcx
addq 0xf18e2(%rip), %rcx     # 0xf3fe0
movsbq -0x1(%r12,%rcx), %rcx
addq %rcx, %rax
movq 0x10(%rbx), %rcx
movl (%rcx,%rax,4), %edx
cmpl (%rcx,%rbp,4), %edx
cmovlq %rax, %rbp
incq %r13
cmpq %r15, %r13
je 0x273a
movq (%rsp), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x1fda
movq 0x10(%rbx), %rcx
movl (%rcx,%rax,4), %edx
cmpl (%rcx,%rbp,4), %edx
cmovlq %rax, %rbp
movq %rbp, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wx-csy[P]librmq/./librmq/ind.h
// Function: librmq::rmq_ind<int>::select_segment(int const*)
static inline int select_segment(const T data[]) {
        int ptr = 0;
        int crit;
        while ((crit = decision_tree_nodes[ptr].crit) > 0) { 
            ptr = decision_tree_nodes[ptr].son[data[crit / SEGLEN] < data[crit % SEGLEN]];
        }
        return decision_tree_nodes[ptr].tree;
    }

// Assembly:
leaq 0xf1635(%rip), %rax     # 0xf3da8
movq (%rax), %rax
xorl %ecx, %ecx
movslq %ecx, %rdx
shlq $0x4, %rdx
leaq (%rax,%rdx), %rcx
movl (%rax,%rdx), %edx
testl %edx, %edx
jle 0x27a6
movl %edx, %esi
shrl $0x3, %esi
movl (%rdi,%rsi,4), %esi
andl $0x7, %edx
xorl %r8d, %r8d
cmpl (%rdi,%rdx,4), %esi
setl %r8b
movl 0x8(%rcx,%r8,4), %ecx
jmp 0x2778
movl 0x4(%rcx), %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/wx-csy[P]librmq/./librmq/block.h
// Function: librmq::rmq_block<int>::rmq_block(unsigned long, int const*)
rmq_block(size_t n, const T *data) :
            n(n), data(data) {
        nr_blocks = (n + BLOCKSZ - 1) / BLOCKSZ;
        size_t *segdata = new size_t[nr_blocks];
        pref = new size_t[nr_blocks * BLOCKSZ]; 
        suf = new size_t[nr_blocks * BLOCKSZ];
        size_t ptr = 0;
        for (size_t si = 0; ptr + BLOCKSZ <= n; ptr += BLOCKSZ, si++) {
            segdata[si] = std::min_element(data + ptr, data + ptr + BLOCKSZ) - data;
            init_block(data + ptr, si);
        }
        if (ptr != n) {
            T rdata[BLOCKSZ] = {0};
            for (size_t i = 0; ptr + i < n; i++) rdata[i] = data[ptr + i];
            segdata[nr_blocks - 1] = std::min_element(data + ptr, data + n) - data;
            init_block(rdata, nr_blocks - 1);
        }
        st.init(nr_blocks, data, segdata);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1028, %rsp           # imm = 0x1028
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
movq %rsi, (%rdi)
movq %rdx, 0x10(%rdi)
addq $0x28, %rdi
movl $0x1f0, %edx            # imm = 0x1F0
movq %rdi, 0x18(%rsp)
xorl %esi, %esi
callq 0x10a0
leaq 0x3ff(%r13), %r15
movq %r15, %r14
shrq $0xa, %r14
movq %rbx, 0x8(%rsp)
movq %r14, 0x8(%rbx)
leaq (,%r14,8), %rdi
callq 0x1030
movq %rax, 0x10(%rsp)
shrq $0x3d, %r15
shlq $0xd, %r14
xorl %ebx, %ebx
negq %r15
sbbq %rbx, %rbx
orq %r14, %rbx
movq %rbx, %rdi
callq 0x1030
movq 0x8(%rsp), %rcx
movq %rax, 0x18(%rcx)
movq %rbx, %rdi
callq 0x1030
movq 0x8(%rsp), %rcx
movq %rax, 0x20(%rcx)
xorl %ebp, %ebp
movq %r12, %r14
xorl %ebx, %ebx
leaq 0x400(%rbp), %r15
cmpq %r13, %r15
ja 0x2ac2
leaq 0x1000(%r14), %rbp
movq %r14, %rdi
movq %rbp, %rsi
callq 0x27aa
subq %r12, %rax
sarq $0x2, %rax
movq 0x10(%rsp), %rcx
movq %rax, (%rcx,%rbx,8)
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2c74
incq %rbx
movq %rbp, %r14
movq %r15, %rbp
jmp 0x2a79
cmpq %rbp, %r13
je 0x2b22
leaq 0x20(%rsp), %rbx
movl $0x1000, %edx           # imm = 0x1000
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10a0
cmpq %r13, %rbp
jae 0x2aef
movl (%r12,%rbp,4), %eax
movl %eax, (%rbx)
addq $0x4, %rbx
incq %rbp
jmp 0x2adb
leaq (%r12,%r13,4), %rsi
movq %r14, %rdi
callq 0x27aa
subq %r12, %rax
sarq $0x2, %rax
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rdx
movq 0x10(%rsp), %rcx
movq %rax, -0x8(%rcx,%rdx,8)
decq %rdx
leaq 0x20(%rsp), %rsi
callq 0x2c74
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rsi
movq 0x18(%rsp), %rdi
movq %r12, %rdx
movq 0x10(%rsp), %rcx
callq 0x20c2
addq $0x1028, %rsp           # imm = 0x1028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2b55
jmp 0x2b55
jmp 0x2b55
movq %rax, %rbx
movq 0x18(%rsp), %rdi
callq 0x2092
movq %rbx, %rdi
callq 0x1120
// File: /workspace/github_cpp_makefile_star2_O2/wx-csy[P]librmq/./librmq/block.h
// Function: librmq::rmq_block<int>::query(unsigned long, unsigned long)
size_t query(size_t l, size_t r) {
        size_t lb = l / BLOCKSZ, rb = r / BLOCKSZ;
        if (lb != rb) { // speculative policy
            size_t ret = st.query(lb, std::min(nr_blocks, rb + 1));
            if (ret >= l and ret < r) return ret;
        } else {
            return std::min_element(data + l, data + r) - data;
        }
        size_t lbase = lb * BLOCKSZ, rbase = rb * BLOCKSZ;
        size_t v = suf[l];
        if (r != rbase) {
            size_t v2 = pref[r - 1];
            if (data[v2] < data[v]) v = v2;
        }
        if (lb + 1 == rb) return v;
        size_t vv = st.query(lb + 1, rb);
        return data[vv] < data[v] ? vv : v;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbp
movq %rsi, %r13
movq %rdi, %rbx
movq %rsi, %r15
shrq $0xa, %r15
movq %rdx, %r12
shrq $0xa, %r12
cmpq %r12, %r15
jne 0x2bb2
movq 0x10(%rbx), %rax
leaq (%rax,%r13,4), %rdi
leaq (%rax,%rbp,4), %rsi
callq 0x27aa
movq %rax, %r14
subq 0x10(%rbx), %r14
sarq $0x2, %r14
jmp 0x2c34
leaq 0x28(%rbx), %rdi
leaq 0x1(%r12), %rax
movq 0x8(%rbx), %rdx
cmpq %rdx, %rax
cmovbq %rax, %rdx
movq %rdi, (%rsp)
movq %r15, %rsi
callq 0x1fda
movq %rax, %r14
cmpq %r13, %rax
setae %al
cmpq %rbp, %r14
setb %cl
testb %cl, %al
jne 0x2c34
movq 0x20(%rbx), %rax
movq (%rax,%r13,8), %r14
movq %rbp, %rax
shlq $0x36, %rax
je 0x2c0e
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
movq -0x8(%rcx,%rbp,8), %rcx
movl (%rax,%rcx,4), %edx
cmpl (%rax,%r14,4), %edx
cmovlq %rcx, %r14
incq %r15
cmpq %r12, %r15
je 0x2c34
movq (%rsp), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1fda
movq 0x10(%rbx), %rcx
movl (%rcx,%rax,4), %edx
cmpl (%rcx,%r14,4), %edx
cmovlq %rax, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/wx-csy[P]librmq/./librmq/block.h
// Function: librmq::rmq_block<int>::init_block(int const*, unsigned long)
void init_block(const T *data, size_t si) {
        size_t ptr = si * BLOCKSZ;
        for (int i = 0; i < BLOCKSZ; i++) {
            if (i) {
                pref[ptr + i] = data[i] < data[pref[ptr + i - 1]] ? 
                    i : pref[ptr + i - 1];
            } else {
                pref[ptr + i] = i;
            }
        }
        for (int i = BLOCKSZ - 1; i >= 0; i--) {
            if (i == BLOCKSZ - 1) {
                suf[ptr + i] = i;
            } else {
                suf[ptr + i] = data[i] < data[suf[ptr + i + 1]] ?
                    i : suf[ptr + i + 1];
            }
        }
        for (int i = 0; i < BLOCKSZ; i++) pref[ptr + i] += ptr;
        for (int i = 0; i < BLOCKSZ; i++) suf[ptr + i] += ptr;
    }

// Assembly:
pushq %r14
pushq %rbx
movq %rdx, %rax
shlq $0xa, %rax
movq 0x18(%rdi), %r8
shlq $0xd, %rdx
leaq (%r8,%rdx), %rcx
xorl %r9d, %r9d
testq %r9, %r9
je 0x2cb2
cmpq $0x400, %r9             # imm = 0x400
je 0x2cbc
movl (%rsi,%r9,4), %r10d
movq -0x8(%rcx,%r9,8), %r11
cmpl (%rsi,%r11,4), %r10d
cmovlq %r9, %r11
movq %r11, (%rcx,%r9,8)
jmp 0x2cb7
andq $0x0, (%r8,%rax,8)
incq %r9
jmp 0x2c8d
movq 0x20(%rdi), %rdi
leaq (%rdi,%rax,8), %r8
movq %rax, %r9
orq $0x3ff, %r9             # imm = 0x3FF
movl $0x3ff, %r10d           # imm = 0x3FF
testl %r10d, %r10d
js 0x2d09
cmpl $0x3ff, %r10d           # imm = 0x3FF
jne 0x2cec
movq $0x3ff, (%rdi,%r9,8)    # imm = 0x3FF
jmp 0x2d04
movl %r10d, %r11d
movl (%rsi,%r11,4), %ebx
movq 0x8(%r8,%r11,8), %r14
cmpl (%rsi,%r14,4), %ebx
cmovlq %r11, %r14
movq %r14, (%r8,%r11,8)
decl %r10d
jmp 0x2cd4
xorl %esi, %esi
cmpq $0x400, %rsi            # imm = 0x400
je 0x2d1d
addq %rax, (%rcx,%rsi,8)
incq %rsi
jmp 0x2d0b
addq %rdx, %rdi
xorl %ecx, %ecx
cmpq $0x400, %rcx            # imm = 0x400
je 0x2d34
addq %rax, (%rdi,%rcx,8)
incq %rcx
jmp 0x2d22
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/gioannides[P]Language_Processors/src/c_compiler.cpp
// Function: main
int main(int argc, char* argv[]){

    	if (argc == 5){

		std::string argument = argv[1];

		if( argument == "--translate" ) {

			argument = argv[3];

			if( argument == "-o" ) {
		 		const TranslationUnit* ast = parseAST(argv[2],argv[4]);
				std::string file_name = argv[4];
				char Last_letter = file_name[file_name.size()-1];
				if( Last_letter == 'y' ){
					ast->print_py(file_name);
					return 0;
				}

				else {
					return 0;

				}
				
			}
		}

		else if( argument == "-S" ) {

			argument = argv[3];

			if( argument == "-o" ) {
		 		const TranslationUnit* ast = parseAST(argv[2],argv[4]);
				std::string file_name = argv[4];
				char Last_letter = file_name[file_name.size()-1];
				if( Last_letter == 's' ){
					ast->render_asm(file_name);
					return 0;
				}
			}
		}

	}	
	return -1;
  
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x90, %rsp
pushq $-0x1
popq %rbx
cmpl $0x5, %edi
jne 0x7a9d
movq %rsi, %r14
movq 0x8(%rsi), %rsi
leaq 0x30(%rsp), %r15
leaq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0x7120
leaq 0x236ec(%rip), %rsi     # 0x2b030
movq %r15, %rdi
callq 0x820e
testb %al, %al
je 0x79da
movq 0x18(%r14), %rsi
leaq 0x30(%rsp), %rdi
callq 0x7630
leaq 0x236d3(%rip), %rsi     # 0x2b03c
leaq 0x30(%rsp), %rdi
callq 0x820e
testb %al, %al
je 0x7a93
movq 0x10(%r14), %rdi
movq 0x20(%r14), %rsi
callq 0xa3b1
movq %rax, %rbx
movq 0x20(%r14), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x7120
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpb $0x79, -0x1(%rax,%rcx)
jne 0x7a71
leaq 0x70(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x7460
movq (%rbx), %rax
leaq 0x70(%rsp), %rsi
movq %rbx, %rdi
callq *0x18(%rax)
leaq 0x70(%rsp), %rdi
jmp 0x7a6c
leaq 0x2365e(%rip), %rsi     # 0x2b03f
leaq 0x30(%rsp), %rdi
callq 0x820e
testb %al, %al
je 0x7a93
movq 0x18(%r14), %rsi
leaq 0x30(%rsp), %rdi
callq 0x7630
leaq 0x23634(%rip), %rsi     # 0x2b03c
leaq 0x30(%rsp), %rdi
callq 0x820e
testb %al, %al
je 0x7a93
movq 0x10(%r14), %rdi
movq 0x20(%r14), %rsi
callq 0xa3b1
movq %rax, %r15
movq 0x20(%r14), %rsi
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x7120
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpb $0x73, -0x1(%rax,%rcx)
jne 0x7a89
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x7460
movq (%r15), %rax
leaq 0x50(%rsp), %rsi
movq %r15, %rdi
callq *0x20(%rax)
leaq 0x50(%rsp), %rdi
callq 0x7170
leaq 0x10(%rsp), %rdi
callq 0x7170
leaq 0x30(%rsp), %rdi
callq 0x7170
xorl %ebx, %ebx
jmp 0x7a9d
leaq 0x10(%rsp), %rdi
callq 0x7170
leaq 0x30(%rsp), %rdi
callq 0x7170
movl %ebx, %eax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
jmp 0x7ac0
jmp 0x7ac7
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x7170
jmp 0x7aca
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x7170
jmp 0x7ae1
jmp 0x7ade
jmp 0x7ade
jmp 0x7ade
jmp 0x7ade
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x7170
movq %rbx, %rdi
callq 0x75c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/gioannides[P]Language_Processors/src/../include/ast/ast_node_python.cpp
// Function: TranslationUnit::print_py(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
inline void TranslationUnit::print_py(std::string file_name) const {
			
				
				std::ofstream file;
				file.open(file_name.c_str());
				if(TranslationUnitPtr != NULL){
					TranslationUnitPtr->print_py(file);
				}
				if( ExternalDecl != NULL){
					ExternalDecl->print_py(file);
				}

			if(main_){
				file << std::endl << std::endl << "if __name__ == " << "\"__main__\"" << ":"; 
   				file <<  std::endl << "\t\timport sys";
    				file <<  std::endl << "\t\tret=main()";
    				file << std::endl << "\t\tsys.exit(ret)";

			}

				file.close();
				

			}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x200, %rsp            # imm = 0x200
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r15
movq %r15, %rdi
callq 0x7570
movq (%r14), %rsi
pushq $0x10
popq %rdx
movq %r15, %rdi
callq 0x7060
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xa42c
movq %rsp, %rsi
callq 0xa4fc
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xa43d
movq %rsp, %rsi
callq 0xa538
cmpb $0x1, 0x5d0bc(%rip)     # 0x67500
jne 0xa4cc
movq %rsp, %rdi
callq 0x7190
movq %rax, %rdi
callq 0x7190
leaq 0x22f2f(%rip), %rsi     # 0x2d390
movq %rax, %rdi
callq 0x7310
leaq 0x22f30(%rip), %rsi     # 0x2d3a0
movq %rax, %rdi
callq 0x7310
leaq 0x22f77(%rip), %rsi     # 0x2d3f6
movq %rax, %rdi
callq 0x7310
movq %rsp, %rdi
callq 0x7190
leaq 0x22f15(%rip), %rsi     # 0x2d3ab
movq %rax, %rdi
callq 0x7310
movq %rsp, %rdi
callq 0x7190
leaq 0x22f0b(%rip), %rsi     # 0x2d3b8
movq %rax, %rdi
callq 0x7310
movq %rsp, %rdi
callq 0x7190
leaq 0x22f01(%rip), %rsi     # 0x2d3c5
movq %rax, %rdi
callq 0x7310
movq %rsp, %rdi
callq 0x7490
movq %rsp, %rdi
callq 0x74d0
addq $0x200, %rsp            # imm = 0x200
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x74d0
movq %rbx, %rdi
callq 0x75c0
// File: /workspace/github_cpp_makefile_star2_O2/gioannides[P]Language_Processors/src/../include/ast/ast_node_python.cpp
// Function: TranslationUnit::print_py(std::basic_ofstream<char, std::char_traits<char>>&)
inline void TranslationUnit::print_py(std::ofstream& file)  {

				if(TranslationUnitPtr != NULL){
					TranslationUnitPtr->print_py(file);
				}
				if( ExternalDecl != NULL){
					ExternalDecl->print_py(file);
				}

				

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0xa517
movq %rbx, %rsi
callq 0xa4fc
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0xa52f
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xa538
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop