LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/typecheck.c
// Function: Type_copy
Type *Type_copy(Type *old) {
    Type *new       = challoc(sizeof(Type));
    new->form       = old->form;
    new->innerType  = (old->innerType)  ? Type_copy(old->innerType)  : NULL;
    if(old->innerTypes) {
        new->innerTypes = TypeVector_init();
        int idx;
        for(idx = 0; idx < TypeVector_size(old->innerTypes); idx++) {
            TypeVector_append(new->innerTypes,
                    Type_copy(TypeVector_get(old->innerTypes, idx)));
        }
    }
    else {
        new->innerTypes = NULL;
    }
    return new;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x18, %edi
callq 0x62ec
movq %rax, %r14
movl (%rbx), %eax
movl %eax, (%r14)
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x11bbf
callq 0x11b8f
jmp 0x11bc1
xorl %eax, %eax
movq %rax, 0x8(%r14)
cmpq $0x0, 0x10(%rbx)
je 0x11c3e
movl $0x10, %edi
callq 0x62ec
movq %rax, %r15
movabsq $0xa00000000, %rax      # imm = 0xA00000000
movq %rax, (%r15)
movl $0x50, %edi
callq 0x62ec
movq %rax, 0x8(%r15)
movq %r15, 0x10(%r14)
movq 0x10(%rbx), %rdi
callq 0x10b44
testl %eax, %eax
jle 0x11c46
xorl %r15d, %r15d
movq 0x10(%r14), %r12
movq 0x10(%rbx), %rdi
movl %r15d, %esi
callq 0x10dd7
movq %rax, %rdi
callq 0x11b8f
movq %r12, %rdi
movq %rax, %rsi
callq 0x10bf6
incl %r15d
movq 0x10(%rbx), %rdi
callq 0x10b44
cmpl %eax, %r15d
jl 0x11c08
jmp 0x11c46
movq $0x0, 0x10(%r14)
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/typecheck.c
// Function: TypeError_free
void TypeError_free(TypeError *error) {
    Type_free(error->found);
    Type_free(error->expected);
    free(error);
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x11333
movq 0x10(%rbx), %rdi
callq 0x11333
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x6030
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/typecheck.c
// Function: TypeError_eq
bool TypeError_eq(TypeError *error1, TypeError *error2) {
    // Null checks are essentially to supress the unused parameter warning
    if(!error1) { ERROR("Null TypeError"); }
    if(!error2) { ERROR("Null TypeError"); }
    ERROR("Equality not defined for TypeErrors");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
testq %rdi, %rdi
jne 0x12ac5
leaq 0x85cf(%rip), %rdi      # 0x1b004
leaq 0x97bc(%rip), %rsi      # 0x1c1f8
leaq 0x992e(%rip), %rcx      # 0x1c371
movl $0x60, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x85d6(%rip), %rdi      # 0x1b02c
leaq 0x9921(%rip), %rsi      # 0x1c37e
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x8787(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x12bec
movl %r14d, %r15d
leaq 0x8585(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x12aaa
jmp 0x12bec
leaq 0x8538(%rip), %rdi      # 0x1b004
testq %rsi, %rsi
jne 0x12b65
leaq 0x971c(%rip), %rsi      # 0x1c1f8
leaq 0x988e(%rip), %rcx      # 0x1c371
movl $0x61, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x8536(%rip), %rdi      # 0x1b02c
leaq 0x9881(%rip), %rsi      # 0x1c37e
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x86e7(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x12bec
movl %r14d, %r15d
leaq 0x84e5(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x12b4a
jmp 0x12bec
leaq 0x968c(%rip), %rsi      # 0x1c1f8
leaq 0x97fe(%rip), %rcx      # 0x1c371
movl $0x62, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x84a6(%rip), %rdi      # 0x1b02c
leaq 0x9800(%rip), %rsi      # 0x1c38d
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x8657(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x12bec
movl %r14d, %r15d
leaq 0x8459(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x12bd6
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/typecheck.c
// Function: TypeCheckResult_free
void TypeCheckResult_free(TypeCheckResult *result) {
    if(result->success) { Type_free(result->type); }
    else { TypeErrorVector_free(result->errors); }
    free(result);
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x0, (%rdi)
je 0x12e50
movq 0x8(%rbx), %rdi
callq 0x11333
jmp 0x12e59
movq 0x10(%rbx), %rdi
callq 0x1240e
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x6030
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/typecheck.c
// Function: check_Comm
TypeCheckResult *check_Comm(Comm *comm, TypeVector *symbol_table) {
    if(Comm_isWhile(comm)) {}
    else if(Comm_isAssign(comm)) {}
    else if(Comm_isReturn(comm)) {

    }
    else if(Comm_isComp(comm)) {
        TypeCheckResult *fst_res = check_Comm(Comp_fst(comm), symbol_table);
    }
    else { ERROR("Unrecognised Comm type"); }
    NOT_IMPLEMENTED;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
movl (%rdi), %eax
cmpl $0x2, %eax
jb 0x1325d
cmpl $0x3, %eax
je 0x1325d
cmpl $0x2, %eax
jne 0x132f4
movq 0x10(%rdi), %rdi
callq 0x1322d
leaq 0x7da0(%rip), %rdi      # 0x1b004
leaq 0x8f8d(%rip), %rsi      # 0x1c1f8
leaq 0x916a(%rip), %rcx      # 0x1c3dc
movl $0xa9, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x7da7(%rip), %rdi      # 0x1b02c
leaq 0x9130(%rip), %rsi      # 0x1c3bc
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x7f58(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x13382
movl %r14d, %r15d
leaq 0x7d56(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x132d9
jmp 0x13382
leaq 0x7d09(%rip), %rdi      # 0x1b004
leaq 0x8ef6(%rip), %rsi      # 0x1c1f8
leaq 0x90d3(%rip), %rcx      # 0x1c3dc
movl $0xa8, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x7d10(%rip), %rdi      # 0x1b02c
leaq 0x90c4(%rip), %rsi      # 0x1c3e7
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x7ec1(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x13382
movl %r14d, %r15d
leaq 0x7cc3(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x1336c
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/interpreter.c
// Function: interpret_Prog
InterpretResult *interpret_Prog(Prog *prog, IntRefVector *args) {

    // Create a Call Expr to call main
    ExprVector *arg_exprs = ExprVector_init();
    int idx;
    for(idx = 0; idx < IntRefVector_size(args); idx++) {
        ExprVector_append(arg_exprs,
                Int_init(IntRef_value(IntRefVector_get(args, idx))));
    }
    Expr *main_call = Call_init(0, arg_exprs);

    // Run the call
    InterpretResult *result = interpret_Expr(prog, main_call, NULL);

    // Free the call
    Expr_free(main_call);

    // Return the result
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x9ea5
movq %rax, %r12
movq %r14, %rdi
callq 0x75f4
testl %eax, %eax
jle 0x13792
movq %r14, %rdi
movl %r15d, %esi
callq 0x7887
movl (%rax), %edi
callq 0xae33
movq %r12, %rdi
movq %rax, %rsi
callq 0x9f8f
incl %r15d
movq %r14, %rdi
callq 0x75f4
cmpl %eax, %r15d
jl 0x13765
xorl %edi, %edi
movq %r12, %rsi
callq 0xaeee
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x137c3
movq %rax, %rbx
movq %r14, %rdi
callq 0x9e6d
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/interpreter.c
// Function: interpret_Func
InterpretResult *interpret_Func(Prog *prog, Func *func, int *store) {

    // The store is created for us in the interpret_Expr() Call case. Run the
    // command with the store, check for errors, and return.

    InterpretResult *res = interpret_Comm(prog, Func_body(func), store);

    if(res->type == iSuccess && res->returning == false) {
        free(res);
        return InterpretFailEndWithoutReturn_init(Func_src_line_no(func),
                Func_src_char_no(func));
    }
    else {
        return res;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x10(%rsi), %rsi
callq 0x13b09
cmpl $0x0, (%rax)
jne 0x13b02
cmpl $0x0, 0x8(%rax)
jne 0x13b02
movq %rax, %rdi
callq 0x6030
movq 0x18(%rbx), %rbx
movl $0x14, %edi
callq 0x62ec
movq $0x3, (%rax)
movl $0x0, 0x8(%rax)
movq %rbx, 0xc(%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/icode.c
// Function: ICodeOperation_eq
bool ICodeOperation_eq(ICodeOperation *op1, ICodeOperation *op2) {
    // Null checks are essentially to supress the unused parameter warning
    if(!op1) { ERROR("Null Operation"); }
    if(!op2) { ERROR("Null Operation"); }
    ERROR("Equality not defined for Operation");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
testq %rdi, %rdi
jne 0x13dc7
leaq 0x72cd(%rip), %rdi      # 0x1b004
leaq 0x876e(%rip), %rsi      # 0x1c4ac
leaq 0x8773(%rip), %rcx      # 0x1c4b8
movl $0x14, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x72d4(%rip), %rdi      # 0x1b02c
leaq 0x876b(%rip), %rsi      # 0x1c4ca
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x7485(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x13eee
movl %r14d, %r15d
leaq 0x7283(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x13dac
jmp 0x13eee
leaq 0x7236(%rip), %rdi      # 0x1b004
testq %rsi, %rsi
jne 0x13e67
leaq 0x86ce(%rip), %rsi      # 0x1c4ac
leaq 0x86d3(%rip), %rcx      # 0x1c4b8
movl $0x15, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x7234(%rip), %rdi      # 0x1b02c
leaq 0x86cb(%rip), %rsi      # 0x1c4ca
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x73e5(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x13eee
movl %r14d, %r15d
leaq 0x71e3(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x13e4c
jmp 0x13eee
leaq 0x863e(%rip), %rsi      # 0x1c4ac
leaq 0x8643(%rip), %rcx      # 0x1c4b8
movl $0x16, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x71a4(%rip), %rdi      # 0x1b02c
leaq 0x864a(%rip), %rsi      # 0x1c4d9
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x7355(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x13eee
movl %r14d, %r15d
leaq 0x7157(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x13ed8
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/icode.c
// Function: reg_print
void reg_print(int reg) {
    if(reg < 0) {
        printf("Reg %d invalid.\n", reg);
        ERROR("Invalid Register");
    }
    else if(reg == STACK_POINTER) {
        printf("STACK_POINTER");
    }
    else if(reg == FRAME_POINTER) {
        printf("FRAME_POINTER");
    }
    else if(reg == RETURN_ADDRESS) {
        printf("RETURN_ADDRESS");
    }
    else if(reg == PROGRAM_COUNTER) {
        printf("PROGRAM_COUNTER");
    }
    else if(reg == ACCUMULATOR) {
        printf("ACCUMULATOR");
    }
    else if(reg == TEMPORARY) {
        printf("TEMPORARY");
    }
    else {
        printf("R%d", reg - 6);
    }
}

// Assembly:
movl %edi, %esi
testl %edi, %edi
js 0x1411e
cmpl $0x5, %esi
ja 0x1410d
movl %esi, %eax
leaq 0x83cb(%rip), %rcx      # 0x1c494
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x84d9(%rip), %rdi      # 0x1c5b2
jmp 0x14106
leaq 0x850b(%rip), %rdi      # 0x1c5ed
jmp 0x14106
leaq 0x84e3(%rip), %rdi      # 0x1c5ce
jmp 0x14106
leaq 0x84e9(%rip), %rdi      # 0x1c5dd
jmp 0x14106
leaq 0x84c3(%rip), %rdi      # 0x1c5c0
jmp 0x14106
leaq 0x84f3(%rip), %rdi      # 0x1c5f9
xorl %eax, %eax
jmp 0x6100
addl $-0x6, %esi
leaq 0x84ec(%rip), %rdi      # 0x1c603
xorl %eax, %eax
jmp 0x6100
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
leaq 0x844f(%rip), %rdi      # 0x1c586
xorl %eax, %eax
callq 0x6100
leaq 0x6ebf(%rip), %rdi      # 0x1b004
leaq 0x8360(%rip), %rsi      # 0x1c4ac
leaq 0x8444(%rip), %rcx      # 0x1c597
movl $0x63, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x6ec6(%rip), %rdi      # 0x1b02c
leaq 0x8434(%rip), %rsi      # 0x1c5a1
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x7077(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x141cc
movl %r14d, %r15d
leaq 0x6e79(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x141b6
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/icodegen.c
// Function: icodegen_Prog
ICodeOperationVector *icodegen_Prog(Prog *prog, int *next_label) {

    // Allocate space for the map from function names to label names
    int *func_labels = challoc(sizeof(int) * Prog_num_funcs(prog));

    // Populate the map from function names to label names
    int idx;
    for(idx = 0; idx < Prog_num_funcs(prog); idx++) {
        func_labels[idx] = (*next_label)++;
    }

    BEGIN_CODE_GENERATION;

    // Make a call to main
    INSERT_OPERATION(JUMPLINK   , func_labels[0], 0                 );

    // Halt when the call returns
    INSERT_OPERATION(HALT       , 0             , 0                 );

    for(idx = 0; idx < Prog_num_funcs(prog); idx++) {
        INSERT_FUNC_CODE(Prog_func(prog, idx));
    }

    free(func_labels);

    RETURN_GENERATED_CODE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
callq 0x86c3
leal (,%rax,4), %edi
callq 0x62ec
movq %rax, %r15
movq (%r14), %rdi
callq 0x86c3
testl %eax, %eax
jle 0x15183
xorl %r12d, %r12d
movl (%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, (%rbx)
movl %eax, (%r15,%r12,4)
incq %r12
movq (%r14), %rdi
callq 0x86c3
cltq
cmpq %rax, %r12
jl 0x15166
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x141d6
movq %rax, %r12
movl (%r15), %esi
movl $0x8, %edi
xorl %edx, %edx
callq 0x13ce4
movq %r12, %rdi
movq %rax, %rsi
callq 0x142c0
movl $0xb, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x13ce4
movq %r12, -0x30(%rbp)
movq %r12, %rdi
movq %rax, %rsi
callq 0x142c0
movq (%r14), %rdi
callq 0x86c3
testl %eax, %eax
jle 0x15216
movq (%r14), %rdi
movl %r13d, %esi
callq 0x8853
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x15231
movq %rax, %r12
movq -0x30(%rbp), %rdi
movq %rax, %rsi
callq 0x143b1
movq %r12, %rdi
callq 0x14992
incl %r13d
movq (%r14), %rdi
callq 0x86c3
cmpl %eax, %r13d
jl 0x151d3
movq %r15, %rdi
callq 0x6030
movq -0x30(%rbp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/icodegen.c
// Function: icodegen_Func
ICodeOperationVector *icodegen_Func(Prog *prog, Func *func, int *next_label,
        int *func_labels) {

    // Determine the label to use as the entry label for this function
    int func_label = func_labels[Func_name(func)];

    BEGIN_CODE_GENERATION;

    // Since the caller does all the work of a function call, all we include is
    // an entry label and code for the function body.
    INSERT_OPERATION(LABEL      , func_label    , 0                 );
    INSERT_COMM_CODE(Func_body(func));

    RETURN_GENERATED_CODE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdx, -0x30(%rbp)
movq %rsi, %r12
movq %rdi, %r13
movslq (%rsi), %rax
movl (%rcx,%rax,4), %r15d
xorl %eax, %eax
callq 0x141d6
movq %rax, %rbx
movl $0xa, %edi
movl %r15d, %esi
xorl %edx, %edx
callq 0x13ce4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x142c0
movq 0x10(%r12), %rsi
movq %r13, %rdi
movq -0x30(%rbp), %rdx
movq %r14, %rcx
callq 0x152b3
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x143b1
movq %r14, %rdi
callq 0x14992
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/icode_interpreter.c
// Function: ICodeOperationVector_execute
int ICodeOperationVector_execute(ICodeOperationVector *code,
        IntRefVector *initial_stack) {

    ICodeInterpreterState *state = ICodeInterpreterState_init(code,
            initial_stack);

    ICodeInterpreterState_run(state);

    int result = ICodeInterpreterState_result(state);

    ICodeInterpreterState_free(state);

    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
callq 0x15bea
movq %rax, %rbx
movq %rax, %rdi
callq 0x15ee9
movq %rbx, %rdi
callq 0x15f1a
movl %eax, %r14d
movq %rbx, %rdi
callq 0x15ff2
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/icode_interpreter.c
// Function: ICodeInterpreterState_run
void ICodeInterpreterState_run(ICodeInterpreterState *state) {

    // Until we reach a halt instruction...
    while((ICodeOperationVector_get(state->code,
            (state->registers)[PROGRAM_COUNTER])->opc) != HALT) {

        // Step through the next instruction.
        ICodeInterpreterState_step(state);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x10(%rbx), %rax
movl 0xc(%rax), %esi
callq 0x144a1
cmpl $0xb, (%rax)
je 0x15f13
movq %rbx, %rdi
callq 0x1619c
movq (%rbx), %rdi
jmp 0x15ef5
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/icode_interpreter.c
// Function: ICodeInterpreterState_result
int ICodeInterpreterState_result(ICodeInterpreterState *state) {

    if((ICodeOperationVector_get(state->code,
            (state->registers)[PROGRAM_COUNTER])->opc) == HALT) {

        return (state->registers)[ACCUMULATOR];
    }
    else {
        ERROR("Tried to retreive the result of a non-halted execution");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x10(%rbx), %rax
movl 0xc(%rax), %esi
callq 0x144a1
cmpl $0xb, (%rax)
jne 0x15f5a
movq 0x10(%rbx), %rax
movl 0x10(%rax), %eax
addq $0x1f40, %rsp           # imm = 0x1F40
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x50a3(%rip), %rdi      # 0x1b004
leaq 0x684c(%rip), %rsi      # 0x1c7b4
leaq 0x6917(%rip), %rcx      # 0x1c886
movl $0xb3, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x50aa(%rip), %rdi      # 0x1b02c
leaq 0x691a(%rip), %rsi      # 0x1c8a3
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x525b(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x15fe8
movl %r14d, %r15d
leaq 0x505d(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x15fd2
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/icode_interpreter.c
// Function: ICodeInterpreterState_check_stack_bounds
void ICodeInterpreterState_check_stack_bounds(int stack_index) {
    if(stack_index >= ICodeInterpreterState_STACK_SIZE) {
        ERROR("Stack overflow");
    }
    else if(stack_index < 0) {
        ERROR("Stack underflow");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
cmpl $0x186a0, %edi          # imm = 0x186A0
jge 0x1606d
testl %edi, %edi
js 0x16104
addq $0x1f40, %rsp           # imm = 0x1F40
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4f90(%rip), %rdi      # 0x1b004
leaq 0x6739(%rip), %rsi      # 0x1c7b4
leaq 0x67bc(%rip), %rcx      # 0x1c83e
movl $0x95, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x4f97(%rip), %rdi      # 0x1b02c
leaq 0x67cb(%rip), %rsi      # 0x1c867
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x5148(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x16192
movl %r14d, %r15d
leaq 0x4f46(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x160e9
jmp 0x16192
leaq 0x4ef9(%rip), %rdi      # 0x1b004
leaq 0x66a2(%rip), %rsi      # 0x1c7b4
leaq 0x6725(%rip), %rcx      # 0x1c83e
movl $0x98, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x4f00(%rip), %rdi      # 0x1b02c
leaq 0x6743(%rip), %rsi      # 0x1c876
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x50b1(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x16192
movl %r14d, %r15d
leaq 0x4eb3(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x1617c
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/vmcodegen.c
// Function: VMCodeGen
int *VMCodeGen(ICodeOperationVector *code) {

    int *out = challoc(sizeof(int) * VMCode_instruction_size *
            ICodeOperationVector_size(code));

    int *out_ptr = out;

    int icode_idx;
    for(icode_idx = 0; icode_idx < ICodeOperationVector_size(code);
            icode_idx++) {

        ICodeOperation *op = ICodeOperationVector_get(code, icode_idx);

        memcpy(out_ptr, op, sizeof(ICodeOperation));

        out_ptr += sizeof(ICodeOperation);
    }

    return out;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
callq 0x1420e
shll $0x4, %eax
leal (%rax,%rax,2), %edi
callq 0x62ec
movq %rax, %r14
movq %rbx, %rdi
callq 0x1420e
testl %eax, %eax
jle 0x163b5
xorl %r15d, %r15d
movq %r14, %r12
movq %rbx, %rdi
movl %r15d, %esi
callq 0x144a1
movq (%rax), %rcx
movq %rcx, (%r12)
movl 0x8(%rax), %eax
movl %eax, 0x8(%r12)
addq $0x30, %r12
incl %r15d
movq %rbx, %rdi
callq 0x1420e
cmpl %eax, %r15d
jl 0x16387
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/vmcode_interpreter.c
// Function: VMCode_execute
int VMCode_execute(ICodeOperationVector *code, IntRefVector *initial_stack) {
    VMCodeInterpreterState* vmstate =
            VMCodeInterpreterState_init(code, initial_stack);
    VMCodeInterpreterState_run(vmstate);
    int result = (vmstate->registers)[ACCUMULATOR];
    VMCodeInterpreterState_free(vmstate);
    return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
callq 0x16417
movq %rax, %rbx
movq %rax, %rdi
callq 0x1647a
movq 0x10(%rbx), %rax
movl 0x10(%rax), %r14d
movq %rbx, %rdi
callq 0x1661b
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/vmcode_interpreter.c
// Function: VMCodeInterpreterState_init
VMCodeInterpreterState *VMCodeInterpreterState_init(
        ICodeOperationVector *code, IntRefVector *initial_stack) {

    ICodeInterpreterState  *icode_state  =
            ICodeInterpreterState_init(code, initial_stack);

    VMCodeInterpreterState *vmcode_state =
            challoc(sizeof(VMCodeInterpreterState));

    vmcode_state->code      = VMCodeGen(code);
    vmcode_state->stack     = icode_state->stack;
    vmcode_state->registers = icode_state->registers;
    vmcode_state->labels    = icode_state->labels;
    vmcode_state->min_label = icode_state->min_label;
    free(icode_state);
    return vmcode_state;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x15bea
movq %rax, %r14
movl $0x28, %edi
callq 0x62ec
movq %rax, %r15
movq %rbx, %rdi
callq 0x16354
movq %rax, (%r15)
movq 0x8(%r14), %rax
movq %rax, 0x8(%r15)
movq 0x10(%r14), %rax
movq %rax, 0x10(%r15)
movq 0x18(%r14), %rax
movq %rax, 0x18(%r15)
movl 0x20(%r14), %eax
movl %eax, 0x20(%r15)
movq %r14, %rdi
callq 0x6030
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/vmcode_interpreter.c
// Function: VMCodeInterpreterState_free
void VMCodeInterpreterState_free(VMCodeInterpreterState *state) {
    free(state->code);
    free(state->stack);
    free(state->registers);
    free(state->labels);
    free(state);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x6030
movq 0x8(%rbx), %rdi
callq 0x6030
movq 0x10(%rbx), %rdi
callq 0x6030
movq 0x18(%rbx), %rdi
callq 0x6030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x6030
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/ncodegen.c
// Function: LinkTargetVector_insert
DEFINE_VECTORABLE(LinkTarget)

LinkTarget *LinkTarget_init(int jump_address, int label_no) {
    LinkTarget *link   = challoc(sizeof(LinkTarget));
    link->jump_address = jump_address;
    link->label_no     = label_no;
    return link;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
testq %rdi, %rdi
je 0x179f7
movl %esi, %r15d
testl %esi, %esi
js 0x178ae
movq %rdx, %rbx
movq %rdi, %r14
movl %r15d, %r12d
movq %r14, %rdi
callq 0x173b5
cmpl %r12d, %eax
jl 0x1795f
movl (%r14), %eax
cmpq %rax, %r12
je 0x17945
movq 0x8(%r14), %rax
movq (%rax,%r12,8), %rcx
movq %rbx, (%rax,%r12,8)
incq %r12
movq %rcx, %rbx
testl %r15d, %r15d
jns 0x1787a
leaq 0x374f(%rip), %rdi      # 0x1b004
leaq 0x51b8(%rip), %rsi      # 0x1ca74
leaq 0x520a(%rip), %rcx      # 0x1cacd
movl $0x15, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x3756(%rip), %rdi      # 0x1b02c
leaq 0x3803(%rip), %rsi      # 0x1b0e0
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x3907(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x179ed
movl %r14d, %r15d
leaq 0x3705(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x1792a
jmp 0x179ed
movq %r14, %rdi
movq %rbx, %rsi
addq $0x1f40, %rsp           # imm = 0x1F40
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x17467
leaq 0x369e(%rip), %rdi      # 0x1b004
leaq 0x5107(%rip), %rsi      # 0x1ca74
leaq 0x5159(%rip), %rcx      # 0x1cacd
movl $0x15, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x36a5(%rip), %rdi      # 0x1b02c
leaq 0x3762(%rip), %rsi      # 0x1b0f0
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x3856(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x179ed
movl %r14d, %r15d
leaq 0x3658(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x179d7
movl $0x1, %edi
callq 0x61a0
leaq 0x3606(%rip), %rdi      # 0x1b004
leaq 0x506f(%rip), %rsi      # 0x1ca74
leaq 0x50c1(%rip), %rcx      # 0x1cacd
movl $0x15, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x360d(%rip), %rdi      # 0x1b02c
leaq 0x3674(%rip), %rsi      # 0x1b09a
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x37be(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x179ed
movl %r14d, %r15d
leaq 0x35c0(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x17a6f
jmp 0x179ed
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/testing_programs.c
// Function: tp1_main
int tp1_main(IntRefVector *args) {
    if(IntRefVector_size(args) != tp1_arity) {
        ERROR("Incorrect number of arguments given to a test program");
    }
    int a = IntRef_value(IntRefVector_get(args, 0));
    return a;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
movq %rdi, %rbx
callq 0x75f4
cmpl 0x98c9(%rip), %eax      # 0x231a0
jne 0x198f5
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7887
movl (%rax), %eax
addq $0x1f40, %rsp           # imm = 0x1F40
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1708(%rip), %rdi      # 0x1b004
leaq 0x326e(%rip), %rsi      # 0x1cb71
leaq 0x340a(%rip), %rcx      # 0x1cd14
movl $0x33, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x170f(%rip), %rdi      # 0x1b02c
leaq 0x33a5(%rip), %rsi      # 0x1ccc9
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x18c0(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x19983
movl %r14d, %r15d
leaq 0x16c2(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x1996d
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/testing_programs.c
// Function: tp2_main
int tp2_main(IntRefVector *args) {
    if(IntRefVector_size(args) != tp2_arity) {
        ERROR("Incorrect number of arguments given to a test program");
    }
    int a = IntRef_value(IntRefVector_get(args, 0));
    int b = IntRef_value(IntRefVector_get(args, 1));
    return a + b;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
movq %rdi, %rbx
callq 0x75f4
cmpl 0x9803(%rip), %eax      # 0x231b0
jne 0x199df
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7887
movl (%rax), %r14d
movq %rbx, %rdi
movl $0x1, %esi
callq 0x7887
addl (%rax), %r14d
movl %r14d, %eax
addq $0x1f40, %rsp           # imm = 0x1F40
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x161e(%rip), %rdi      # 0x1b004
leaq 0x3184(%rip), %rsi      # 0x1cb71
leaq 0x3345(%rip), %rcx      # 0x1cd39
movl $0x3e, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x1625(%rip), %rdi      # 0x1b02c
leaq 0x32bb(%rip), %rsi      # 0x1ccc9
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x17d6(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x19a6d
movl %r14d, %r15d
leaq 0x15d8(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x19a57
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/testing_programs.c
// Function: tp3_main
int tp3_main(IntRefVector *args) {
    if(IntRefVector_size(args) != tp3_arity) {
        ERROR("Incorrect number of arguments given to a test program");
    }
    int a = IntRef_value(IntRefVector_get(args, 0));
    int b = IntRef_value(IntRefVector_get(args, 1));
    return a - b;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
movq %rdi, %rbx
callq 0x75f4
cmpl 0x9729(%rip), %eax      # 0x231c0
jne 0x19ac9
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7887
movl (%rax), %r14d
movq %rbx, %rdi
movl $0x1, %esi
callq 0x7887
subl (%rax), %r14d
movl %r14d, %eax
addq $0x1f40, %rsp           # imm = 0x1F40
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1534(%rip), %rdi      # 0x1b004
leaq 0x309a(%rip), %rsi      # 0x1cb71
leaq 0x3280(%rip), %rcx      # 0x1cd5e
movl $0x4b, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x153b(%rip), %rdi      # 0x1b02c
leaq 0x31d1(%rip), %rsi      # 0x1ccc9
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x16ec(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x19b57
movl %r14d, %r15d
leaq 0x14ee(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x19b41
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/testing_programs.c
// Function: tp4_main
int tp4_main(IntRefVector *args) {
    if(IntRefVector_size(args) != tp4_arity) {
        ERROR("Incorrect number of arguments given to a test program");
    }
    int a = IntRef_value(IntRefVector_get(args, 0));
    a = a + 1;
    return a;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
movq %rdi, %rbx
callq 0x75f4
cmpl 0x964f(%rip), %eax      # 0x231d0
jne 0x19ba1
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7887
movl (%rax), %eax
incl %eax
addq $0x1f40, %rsp           # imm = 0x1F40
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x145c(%rip), %rdi      # 0x1b004
leaq 0x2fc2(%rip), %rsi      # 0x1cb71
leaq 0x31d2(%rip), %rcx      # 0x1cd88
movl $0x58, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x1463(%rip), %rdi      # 0x1b02c
leaq 0x30f9(%rip), %rsi      # 0x1ccc9
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x1614(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x19c2f
movl %r14d, %r15d
leaq 0x1416(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x19c19
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/testing_programs.c
// Function: tp5_main
int tp5_main(IntRefVector *args) {
    if(IntRefVector_size(args) != tp5_arity) {
        ERROR("Incorrect number of arguments given to a test program");
    }
    int a = IntRef_value(IntRefVector_get(args, 0));
    int b = IntRef_value(IntRefVector_get(args, 1));
    int c = a;
    while((b - 1) > 0) {
        b = b - 1;
        a = a + c;
    }
    return a;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
movq %rdi, %rbx
callq 0x75f4
cmpl 0x9587(%rip), %eax      # 0x231e0
jne 0x19c9b
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7887
movl (%rax), %r15d
movl $0x1, %r14d
movq %rbx, %rdi
movl $0x1, %esi
callq 0x7887
movl (%rax), %eax
cmpl $0x2, %eax
cmovgel %eax, %r14d
imull %r15d, %r14d
movl %r14d, %eax
addq $0x1f40, %rsp           # imm = 0x1F40
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1362(%rip), %rdi      # 0x1b004
leaq 0x2ec8(%rip), %rsi      # 0x1cb71
leaq 0x31b2(%rip), %rcx      # 0x1ce62
movl $0x6c, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x1369(%rip), %rdi      # 0x1b02c
leaq 0x2fff(%rip), %rsi      # 0x1ccc9
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x151a(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x19d29
movl %r14d, %r15d
leaq 0x131c(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x19d13
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/testing_programs.c
// Function: tp6_main
int tp6_main(IntRefVector *args) {
    if(IntRefVector_size(args) != tp6_arity) {
        ERROR("Incorrect number of arguments given to a test program");
    }
    int a = IntRef_value(IntRefVector_get(args, 0));
    return tp6_foo(a) + a;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
movq %rdi, %rbx
callq 0x75f4
cmpl 0x9494(%rip), %eax      # 0x231f0
jne 0x19d81
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7887
movl (%rax), %eax
leal 0xa(,%rax,2), %eax
addq $0x1f40, %rsp           # imm = 0x1F40
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x127c(%rip), %rdi      # 0x1b004
leaq 0x2de2(%rip), %rsi      # 0x1cb71
leaq 0x3172(%rip), %rcx      # 0x1cf08
movl $0x85, %edx
xorl %eax, %eax
callq 0x6100
leaq 0x1283(%rip), %rdi      # 0x1b02c
leaq 0x2f19(%rip), %rsi      # 0x1ccc9
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x1434(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x19e0f
movl %r14d, %r15d
leaq 0x1236(%rip), %r14      # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x19df9
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/alexj136[P]minijit/src/testing_programs.c
// Function: get_test_program
TestProgram *get_test_program(int number) {
    if(!test_program_vector) { ERROR("Testing programs not prepared"); }

    if(number >= TestProgramVector_size(test_program_vector)) {
        ERROR("test program at given index does not exist");
    }
    else { return TestProgramVector_get(test_program_vector, number); }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1f40, %rsp           # imm = 0x1F40
movl %edi, %esi
movq 0x91f9(%rip), %rdi      # 0x232c0
testq %rdi, %rdi
je 0x1a0e8
cmpl %esi, (%rdi)
jle 0x1a17f
addq $0x1f40, %rsp           # imm = 0x1F40
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1897f
leaq 0xf15(%rip), %rdi       # 0x1b004
leaq 0x2a7b(%rip), %rsi      # 0x1cb71
leaq 0x2e4f(%rip), %rcx      # 0x1cf4c
movl $0xa6, %edx
xorl %eax, %eax
callq 0x6100
leaq 0xf1c(%rip), %rdi       # 0x1b02c
leaq 0x2e46(%rip), %rsi      # 0x1cf5d
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x10cd(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x1a20d
movl %r14d, %r15d
leaq 0xecb(%rip), %r14       # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x1a164
jmp 0x1a20d
leaq 0xe7e(%rip), %rdi       # 0x1b004
leaq 0x29e4(%rip), %rsi      # 0x1cb71
leaq 0x2db8(%rip), %rcx      # 0x1cf4c
movl $0xa9, %edx
xorl %eax, %eax
callq 0x6100
leaq 0xe85(%rip), %rdi       # 0x1b02c
leaq 0x2dcd(%rip), %rsi      # 0x1cf7b
xorl %eax, %eax
callq 0x6100
leaq -0x1f60(%rbp), %rbx
movq %rbx, %rdi
movl $0x3e8, %esi            # imm = 0x3E8
callq 0x60e0
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rbx
leaq 0x1036(%rip), %rdi      # 0x1b216
callq 0x6070
testl %r14d, %r14d
jle 0x1a20d
movl %r14d, %r15d
leaq 0xe38(%rip), %r14       # 0x1b02c
xorl %r12d, %r12d
movq (%rbx,%r12,8), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x6100
incq %r12
cmpq %r12, %r15
jne 0x1a1f7
movl $0x1, %edi
callq 0x61a0
// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]libcperciva/tests/setuidgid/main.c
// Function: main
int
main(int argc, char * argv[])
{
	const char * opt_username_groupname;

	WARNP_INIT;

	/* Print usage, if necessary. */
	if (argc != 2) {
		fprintf(stderr, "usage: test_setuid "
		    "{USERNAME | :GROUPNAME | USERNAME:GROUPNAME}\n");
		goto err0;
	}
	opt_username_groupname = argv[1];

	/* Change username (and groupname). */
	if (setuidgid(opt_username_groupname, SETUIDGID_SGROUP_LEAVE_WARN)) {
		if (errno == EPERM) {
			warn0("Insufficient permissions to change your user"
			    " or group(s).");
			goto nopermission;
		}
		goto err0;
	}

	/* Success! */
	return (0);

nopermission:
	/* Failure! */
	exit(EX_NOPERM);

err0:
	/* Failure! */
	exit(1);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x1451
callq 0x1914
cmpl $0x2, %ebp
jne 0x1471
movq 0x8(%rbx), %rdi
movl $0x1, %esi
callq 0x14ac
testl %eax, %eax
jne 0x1480
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
callq 0x1210
movl $0x1, %edi
callq 0x11b0
callq 0x1060
cmpl $0x1, (%rax)
jne 0x1476
movq %rax, %rbx
leaq 0xbb1(%rip), %rdi       # 0x2045
xorl %eax, %eax
callq 0x1ab3
movl $0x0, (%rbx)
movl $0x4d, %edi
callq 0x11b0
nop
// File: /workspace/github_c_makefile_star2_O3/motet-a[P]libforks/examples/fizz_buzz_threads.c
// Function: fizzer_main
static void *fizzer_main() {
  char buf[99];
  for (int i = 1; i < MAX; i++) {
    if (i % 3 == 0) {
      snprintf(buf, sizeof buf, "%d fizz\n", i);
      echo_upper(buf);
    }
  }

  return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movl $0x1, %ebx
leaq 0x1c2c(%rip), %r14      # 0x326b
movq %rsp, %r15
movzbl %bl, %eax
imull $0xab, %eax, %ecx
shrl $0x9, %ecx
leal (%rcx,%rcx,2), %ecx
negl %ecx
addb %cl, %al
jne 0x1673
movl $0x63, %esi
movq %r15, %rdi
movq %r14, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x10d0
movq %r15, %rdi
callq 0x1686
incl %ebx
cmpl $0x63, %ebx
jne 0x1642
xorl %eax, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/motet-a[P]libforks/examples/fizz_buzz_threads.c
// Function: echo_upper_main
static void echo_upper_main(libforks_ServerConn conn, int socket_fd) {
  // not strictly required but recommended
  assert(libforks_free_conn(conn) == libforks_OK);

  int out, ready_fd;
  char c;
  assert(libforks_read_socket_fds(socket_fd, &c, 1, &out, 1) == 0);
  assert(c == 'a');
  assert(libforks_read_socket_fds(socket_fd, &c, 1, &ready_fd, 1) == 0);
  assert(c == 'b');

  assert(dup2(socket_fd, STDIN_FILENO) != -1);
  assert(dup2(out, STDOUT_FILENO) != -1);
  close(socket_fd);
  close(out);

  // Inform the parent process that we’re ready to receive input
  assert(write(ready_fd, "c", 1) == 1);
  close(ready_fd);

  execlp("tr", "tr", "[:lower:]", "[:upper:]", NULL); // uppercase!
  perror("execlp");
  abort();
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
callq 0x2a1c
testl %eax, %eax
jne 0x1988
leaq 0x7(%rsp), %rsi
leaq 0xc(%rsp), %rcx
movl $0x1, %edx
movl $0x1, %r8d
movl %ebx, %edi
callq 0x1b38
testl %eax, %eax
jne 0x19a7
cmpb $0x61, 0x7(%rsp)
jne 0x19c6
leaq 0x7(%rsp), %rsi
leaq 0x8(%rsp), %rcx
movl $0x1, %edx
movl $0x1, %r8d
movl %ebx, %edi
callq 0x1b38
testl %eax, %eax
jne 0x19e5
cmpb $0x62, 0x7(%rsp)
jne 0x1a04
movl %ebx, %edi
xorl %esi, %esi
callq 0x10c0
cmpl $-0x1, %eax
jne 0x1a23
leaq 0x18c8(%rip), %rdi      # 0x3238
leaq 0x16b2(%rip), %rsi      # 0x3029
leaq 0x1a89(%rip), %rcx      # 0x3407
movl $0x28, %edx
callq 0x10e0
leaq 0x1858(%rip), %rdi      # 0x31e7
leaq 0x1693(%rip), %rsi      # 0x3029
leaq 0x1a6a(%rip), %rcx      # 0x3407
movl $0x1f, %edx
callq 0x10e0
leaq 0x1a88(%rip), %rdi      # 0x3436
leaq 0x1674(%rip), %rsi      # 0x3029
leaq 0x1a4b(%rip), %rcx      # 0x3407
movl $0x23, %edx
callq 0x10e0
leaq 0x1aa2(%rip), %rdi      # 0x346f
leaq 0x1655(%rip), %rsi      # 0x3029
leaq 0x1a2c(%rip), %rcx      # 0x3407
movl $0x24, %edx
callq 0x10e0
leaq 0x1a8c(%rip), %rdi      # 0x3478
leaq 0x1636(%rip), %rsi      # 0x3029
leaq 0x1a0d(%rip), %rcx      # 0x3407
movl $0x25, %edx
callq 0x10e0
leaq 0x1aab(%rip), %rdi      # 0x34b6
leaq 0x1617(%rip), %rsi      # 0x3029
leaq 0x19ee(%rip), %rcx      # 0x3407
movl $0x26, %edx
callq 0x10e0
movl 0xc(%rsp), %edi
movl $0x1, %esi
callq 0x10c0
cmpl $-0x1, %eax
jne 0x1a55
leaq 0x1a82(%rip), %rdi      # 0x34bf
leaq 0x15e5(%rip), %rsi      # 0x3029
leaq 0x19bc(%rip), %rcx      # 0x3407
movl $0x29, %edx
callq 0x10e0
movl %ebx, %edi
callq 0x10f0
movl 0xc(%rsp), %edi
callq 0x10f0
movl 0x8(%rsp), %edi
leaq 0x15d4(%rip), %rsi      # 0x3044
movl $0x1, %edx
callq 0x1080
cmpq $0x1, %rax
jne 0x1abc
movl 0x8(%rsp), %edi
callq 0x10f0
leaq 0x1a6b(%rip), %rdi      # 0x34fb
leaq 0x1a67(%rip), %rdx      # 0x34fe
leaq 0x1a6a(%rip), %rcx      # 0x3508
movq %rdi, %rsi
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x1220
leaq 0x17b2(%rip), %rdi      # 0x3264
callq 0x11e0
callq 0x1040
leaq 0x1a1b(%rip), %rdi      # 0x34de
leaq 0x155f(%rip), %rsi      # 0x3029
leaq 0x1936(%rip), %rcx      # 0x3407
movl $0x2e, %edx
callq 0x10e0
// File: /workspace/github_c_makefile_star2_O3/motet-a[P]libforks/examples/fizz_buzz_threads.c
// Function: buzzer_main
static void *buzzer_main() {
  char buf[99];
  for (int i = 1; i < MAX; i++) {
    if (i % 5 == 0) {
      snprintf(buf, sizeof buf, "%d buzz\n", i);
      echo_upper(buf);
    }
  }

  return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movl $0x1, %ebx
leaq 0x1a22(%rip), %r14      # 0x3512
movq %rsp, %r15
movzbl %bl, %eax
imull $0xcd, %eax, %ecx
shrl $0xa, %ecx
leal (%rcx,%rcx,4), %ecx
negl %ecx
addb %cl, %al
jne 0x1b24
movl $0x63, %esi
movq %r15, %rdi
movq %r14, %rdx
movl %ebx, %ecx
xorl %eax, %eax
callq 0x10d0
movq %r15, %rdi
callq 0x1686
incl %ebx
cmpl $0x63, %ebx
jne 0x1af3
xorl %eax, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop