LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/debug.c
// Function: dump_direct_declarator_node
static void dump_direct_declarator_node(const DirectDeclaratorNode* node, int indent) {
    printf_indent(
        indent, 
        "DirectDeclaratorNode,Identifier=\"%s\"\n",
        node->identifier
    );

    if (node->declarator_node != NULL) {
        dump_declarator_node(node->declarator_node, indent + 2);
    }

    if (node->direct_declarator_node != NULL) {
        dump_direct_declarator_node(node->direct_declarator_node, indent + 2);
    }

    if (node->conditional_expr_node != NULL) {
        dump_conditional_expr_node(node->conditional_expr_node, indent + 2);
    }

    if (node->param_type_list_node != NULL) {
        dump_param_type_list_node(node->param_type_list_node, indent + 2);
    }

    for (int i = 0; i < node->identifier_list->size; ++i) {
        printf_indent(indent, "identifier[%d]=%s\n", i, node->identifier_list->elements[i]);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebx
movq %rdi, %r14
movq (%rdi), %rdx
leaq 0x7797(%rip), %rsi      # 0x90e0
movl %ebx, %edi
xorl %eax, %eax
callq 0x1566
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x1963
leal 0x2(%rbx), %esi
callq 0x1741
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x1974
leal 0x2(%rbx), %esi
callq 0x192c
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x1985
leal 0x2(%rbx), %esi
callq 0x1a95
movq %rbx, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq 0x20(%r14), %rbx
testq %rbx, %rbx
je 0x1a42
movq 0x8(%rsp), %rax
leal 0x2(%rax), %edi
leaq 0x7979(%rip), %rsi      # 0x9324
xorl %eax, %eax
callq 0x1566
movq 0x8(%rbx), %r15
testq %r15, %r15
je 0x1a42
movq 0x8(%rsp), %rax
leal 0x4(%rax), %ebp
movl %ebp, %r13d
movl %ebp, %edi
leaq 0x7964(%rip), %rsi      # 0x9337
xorl %eax, %eax
callq 0x1566
movq (%r15), %rbx
leal 0x2(%r13), %ebp
testq %rbx, %rbx
je 0x1a39
movl %ebp, %edi
leaq 0x7957(%rip), %rsi      # 0x9346
xorl %eax, %eax
callq 0x1566
movq (%rbx), %rax
cmpl $0x0, 0x8(%rax)
jle 0x1a24
leal 0x4(%r13), %r12d
xorl %r14d, %r14d
movq (%rax), %rax
movq (%rax,%r14,8), %rdi
movl %r12d, %esi
callq 0x1707
incq %r14
movq (%rbx), %rax
movslq 0x8(%rax), %rcx
cmpq %rcx, %r14
jl 0x1a06
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x1a39
addl $0x4, %r13d
movl %r13d, %esi
callq 0x1741
movq 0x8(%r15), %r15
testq %r15, %r15
jne 0x19c7
movq 0x10(%rsp), %r14
movq 0x28(%r14), %rax
cmpl $0x0, 0x8(%rax)
movq 0x8(%rsp), %rbx
jle 0x1a86
leaq 0x76a9(%rip), %r15      # 0x9106
xorl %r12d, %r12d
movq (%rax), %rax
movq (%rax,%r12,8), %rcx
movl %ebx, %edi
movq %r15, %rsi
movl %r12d, %edx
xorl %eax, %eax
callq 0x1566
incq %r12
movq 0x28(%r14), %rax
movslq 0x8(%rax), %rcx
cmpq %rcx, %r12
jl 0x1a60
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/debug.c
// Function: dump_expr_node
static void dump_expr_node(const ExprNode* node, int indent) {
    printf_indent(indent, "ExprNode\n");

    if (node->assign_expr_node != NULL) {
        dump_assign_expr_node(node->assign_expr_node, indent + 2);
    }

    if (node->expr_node != NULL) {
        dump_expr_node(node->expr_node, indent + 2);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
leaq 0x72e5(%rip), %r15      # 0x914b
movl %ebx, %edi
movq %r15, %rsi
xorl %eax, %eax
callq 0x1566
movq (%r14), %rdi
addl $0x2, %ebx
testq %rdi, %rdi
je 0x1e84
movl %ebx, %esi
callq 0x2088
movq 0x8(%r14), %r14
testq %r14, %r14
jne 0x1e66
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/debug.c
// Function: dump_cast_expr_node
static void dump_cast_expr_node(const CastExprNode* node, int indent) {
    printf_indent(indent, "CastExprNode\n");

    if (node->unary_expr_node != NULL) {
        dump_unary_expr_node(node->unary_expr_node, indent + 2);
    }

    if (node->cast_expr_node != NULL) {
        dump_cast_expr_node(node->cast_expr_node, indent + 2);
    }

    if (node->type_name_node != NULL) {
        dump_type_name_node(node->type_name_node, indent + 2);
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0x7379(%rip), %rsi      # 0x921c
movl %ebx, %edi
xorl %eax, %eax
callq 0x1566
movq (%r14), %rdi
testq %rdi, %rdi
je 0x1ebc
leal 0x2(%rbx), %esi
callq 0x1ef6
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x1ecd
leal 0x2(%rbx), %esi
callq 0x1e93
cmpq $0x0, 0x10(%r14)
je 0x1eee
addl $0x2, %ebx
leaq 0x7439(%rip), %rsi      # 0x9317
movl %ebx, %edi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1566
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/debug.c
// Function: dump_unary_expr_node
static void dump_unary_expr_node(const UnaryExprNode* node, int indent) {
    printf_indent(
        indent, 
        "UnaryExprNode,UnaryType=\"%s\",OperatorType=\"%s\"\n", 
        decode_unary_type(node->type),
        decode_operator_type(node->op_type)
    );

    if (node->postfix_expr_node != NULL) {
        dump_postfix_expr_node(node->postfix_expr_node, indent + 2);
    }

    if (node->unary_expr_node != NULL) {
        dump_unary_expr_node(node->unary_expr_node, indent + 2);
    }

    if (node->cast_expr_node != NULL) {
        dump_cast_expr_node(node->cast_expr_node, indent + 2);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
movl 0x20(%rdi), %edi
callq 0x5295
movq %rax, %r15
movl 0x24(%r14), %edi
callq 0x521d
leaq 0x730f(%rip), %rsi      # 0x922a
movl %ebx, %edi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1566
movq (%r14), %rdi
testq %rdi, %rdi
je 0x1f3a
leal 0x2(%rbx), %esi
callq 0x1f69
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x1f4b
leal 0x2(%rbx), %esi
callq 0x1ef6
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x1f63
addl $0x2, %ebx
movl %ebx, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x1e93
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/debug.c
// Function: dump_postfix_expr_node
static void dump_postfix_expr_node(const PostfixExprNode* node, int indent) {
    printf_indent(
        indent, 
        "PostfixExprNode,PostfixExprType=\"%s\",Identifier=\"%s\"\n",
        decode_postfix_type(node->postfix_expr_type),
        node->identifier
    );

    if (node->primary_expr_node != NULL) {
        dump_primary_expr_node(node->primary_expr_node, indent + 2);
    }

    if (node->postfix_expr_node != NULL) {
        dump_postfix_expr_node(node->postfix_expr_node, indent + 2);
    }

    if (node->expr_node != NULL) {
        dump_expr_node(node->expr_node, indent + 2);
    }

    for (int i = 0; i < node->assign_expr_nodes->size; ++i) {
        dump_assign_expr_node(node->assign_expr_nodes->elements[i], indent + 2);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
movl 0x28(%rdi), %edi
callq 0x52b3
movq 0x20(%r14), %rcx
leaq 0x72d1(%rip), %rsi      # 0x925a
movl %ebx, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1566
movq (%r14), %r15
testq %r15, %r15
je 0x202f
leal 0x2(%rbx), %edi
movq 0x18(%r15), %rdx
leaq 0x72e1(%rip), %rsi      # 0x9290
xorl %eax, %eax
callq 0x1566
movq (%r15), %r12
testq %r12, %r12
je 0x201e
leal 0x4(%rbx), %ebp
movl (%r12), %edi
callq 0x5259
leaq 0x72e0(%rip), %rsi      # 0x92b1
movl %ebp, %edi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1566
movl (%r12), %eax
cmpl $0x2, %eax
je 0x1fff
testl %eax, %eax
jne 0x2014
movl 0x4(%r12), %esi
leaq 0x72d7(%rip), %rdi      # 0x92cd
xorl %eax, %eax
callq 0x10a0
jmp 0x201e
movq 0x10(%r12), %rsi
leaq 0x72d6(%rip), %rdi      # 0x92e1
xorl %eax, %eax
callq 0x10a0
jmp 0x201e
movl $0xa, %edi
callq 0x1040
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x202f
leal 0x4(%rbx), %esi
callq 0x1e55
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x2040
leal 0x2(%rbx), %esi
callq 0x1f69
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0x2051
leal 0x2(%rbx), %esi
callq 0x1e55
movq 0x18(%r14), %rax
cmpl $0x0, 0x8(%rax)
jle 0x207f
addl $0x2, %ebx
xorl %r15d, %r15d
movq (%rax), %rax
movq (%rax,%r15,8), %rdi
movl %ebx, %esi
callq 0x2088
incq %r15
movq 0x18(%r14), %rax
movslq 0x8(%rax), %rcx
cmpq %rcx, %r15
jl 0x2061
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/debug.c
// Function: dump_assign_expr_node
static void dump_assign_expr_node(const AssignExprNode* node, int indent) {
    printf_indent(
        indent, 
        "AssignExprNode,Operator=\"%s\"\n",
        decode_operator_type(node->assign_operator)
    );

    if (node->conditional_expr_node != NULL) {
        dump_conditional_expr_node(node->conditional_expr_node, indent + 2);
    }

    if (node->unary_expr_node != NULL) {
        dump_unary_expr_node(node->unary_expr_node, indent + 2);
        dump_assign_expr_node(node->assign_expr_node, indent + 2);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
leaq 0x7260(%rip), %r15      # 0x92f9
movl 0x18(%r14), %edi
callq 0x521d
movl %ebx, %edi
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x1566
movq (%r14), %rdi
testq %rdi, %rdi
je 0x20c1
leal 0x2(%rbx), %esi
callq 0x1a95
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x20da
addl $0x2, %ebx
movl %ebx, %esi
callq 0x1ef6
movq 0x10(%r14), %r14
jmp 0x2099
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: calc_localvar_size_in_compound_stmt
static int calc_localvar_size_in_compound_stmt(const CompoundStmtNode* node) {
    if (node == NULL) {
        return 0;
    }

    int size = 0;
    for (int i = 0; i < node->block_item_nodes->size; ++i) {
        const BlockItemNode* block_item_node = node->block_item_nodes->elements[i];
        if (block_item_node->declaration_node != NULL) {
            size += calc_localvar_size_in_declaration(block_item_node->declaration_node);
        } else {
            size += calc_localvar_size_in_stmt(block_item_node->stmt_node);
        }
    }

    return size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
xorl %ebp, %ebp
testq %rdi, %rdi
je 0x2e99
movq %rdi, %rbx
movq (%rdi), %rax
cmpl $0x0, 0x8(%rax)
jle 0x2e99
xorl %r15d, %r15d
xorl %ebp, %ebp
movq (%rax), %rax
movq (%rax,%r15,8), %rax
movq (%rax), %r12
testq %r12, %r12
je 0x2dbb
movq (%r12), %rdx
movslq 0x8(%rdx), %rcx
xorl %r14d, %r14d
movl $0x0, %eax
testq %rcx, %rcx
jle 0x2e06
movq (%rdx), %rax
xorl %esi, %esi
movq (%rax,%rsi,8), %rdx
movq (%rdx), %rdx
testq %rdx, %rdx
jne 0x2dcc
incq %rsi
cmpq %rsi, %rcx
jne 0x2da3
xorl %eax, %eax
jmp 0x2e06
movq 0x8(%rax), %rdi
callq 0x2eed
movl %eax, %r14d
jmp 0x2e83
movl (%rdx), %ecx
cmpl $0x7, %ecx
je 0x2ded
movl $0x8, %eax
cmpl $0x5, %ecx
jne 0x2e06
movq 0x8(%rdx), %rax
movq (%rax), %rsi
movq 0xb33d(%rip), %rdi      # 0xe128
jmp 0x2df8
movq 0xb334(%rip), %rdi      # 0xe128
movq 0x10(%rdx), %rsi
callq 0x8a1e
movq (%rax), %rax
movl 0x8(%rax), %eax
shll $0x3, %eax
movq 0x8(%r12), %rdx
movslq 0x8(%rdx), %rcx
testq %rcx, %rcx
jle 0x2e83
movq (%rdx), %rdx
xorl %esi, %esi
xorl %r14d, %r14d
movq (%rdx,%rsi,8), %rdi
movq (%rdi), %rdi
cmpq $0x0, (%rdi)
je 0x2e2f
addl $0x8, %r14d
jmp 0x2e7b
movq 0x8(%rdi), %rdi
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x2e78
movq (%rdi), %rdi
movq (%rdi), %rdi
movq (%rdi), %rdi
movq (%rdi), %rdi
movq (%rdi), %rdi
movq (%rdi), %rdi
movq 0x8(%rdi), %rdi
movq 0x8(%rdi), %rdi
movq (%rdi), %rdi
movq 0x8(%rdi), %rdi
movq 0x8(%rdi), %rdi
movq (%rdi), %rdi
movq (%rdi), %rdi
movq (%rdi), %rdi
movq (%rdi), %rdi
movl 0x4(%rdi), %edi
imull %eax, %edi
addl %edi, %r14d
jmp 0x2e7b
addl %eax, %r14d
incq %rsi
cmpq %rsi, %rcx
jne 0x2e1c
addl %r14d, %ebp
incq %r15
movq (%rbx), %rax
movslq 0x8(%rax), %rcx
cmpq %rcx, %r15
jl 0x2d7a
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: calc_localvar_size_in_stmt
static int calc_localvar_size_in_stmt(const StmtNode* node) {
    if (node->labeled_stmt_node != NULL) {
        return calc_localvar_size_in_labeled_stmt(node->labeled_stmt_node);
    }
    else if (node->compound_stmt_node != NULL) {
        return calc_localvar_size_in_compound_stmt(node->compound_stmt_node);
    }
    else if (node->selection_stmt_node != NULL) {
        return calc_localvar_size_in_selection_stmt(node->selection_stmt_node);
    }
    else if (node->itr_stmt_node != NULL) {
        return calc_localvar_size_in_itr_stmt(node->itr_stmt_node);
    }

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
xorl %r14d, %r14d
xorl %ebx, %ebx
movq (%rdi), %rax
testq %rax, %rax
je 0x2f05
movq 0x10(%rax), %rdi
jmp 0x2ef7
movq 0x10(%rdi), %rax
testq %rax, %rax
jne 0x2fe8
movq 0x18(%rdi), %r15
testq %r15, %r15
je 0x2f35
movq 0x10(%r15), %rdi
callq 0x2eed
movq 0x18(%r15), %rdi
testq %rdi, %rdi
je 0x2ff0
addl %eax, %ebx
jmp 0x2ef7
movq 0x20(%rdi), %rax
testq %rax, %rax
je 0x2ffd
movq 0x28(%rax), %rcx
movslq 0x8(%rcx), %rdx
testq %rdx, %rdx
jle 0x2fd5
movq (%rcx), %rsi
xorl %edi, %edi
xorl %ecx, %ecx
movq (%rsi,%rdi,8), %r8
movq 0x8(%r8), %r9
movslq 0x8(%r9), %r8
testq %r8, %r8
jle 0x2fcb
movq (%r9), %r9
xorl %r10d, %r10d
movq (%r9,%r10,8), %r11
movq (%r11), %r11
movq 0x8(%r11), %r11
movq 0x18(%r11), %r11
testq %r11, %r11
je 0x2fc0
movq (%r11), %r11
movq (%r11), %r11
movq (%r11), %r11
movq (%r11), %r11
movq (%r11), %r11
movq (%r11), %r11
movq 0x8(%r11), %r11
movq 0x8(%r11), %r11
movq (%r11), %r11
movq 0x8(%r11), %r11
movq 0x8(%r11), %r11
movq (%r11), %r11
movq (%r11), %r11
movq (%r11), %r11
movq (%r11), %r11
movl 0x4(%r11), %r11d
leal (%rcx,%r11,8), %ecx
jmp 0x2fc3
addl $0x8, %ecx
incq %r10
cmpq %r10, %r8
jne 0x2f71
incq %rdi
cmpq %rdx, %rdi
jne 0x2f5a
jmp 0x2fd7
xorl %ecx, %ecx
movq 0x8(%rax), %rdi
addl %ebx, %ecx
addl %r14d, %ecx
movl %ecx, %r14d
jmp 0x2ef5
movq %rax, %rdi
callq 0x2d52
addl %r14d, %ebx
addl %eax, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
xorl %eax, %eax
jmp 0x2ff0
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_type_specifier_in_local
static Type* process_type_specifier_in_local(const TypeSpecifierNode* node) {
    Type* type = calloc(1, sizeof(Type));

    switch (node->type_specifier) {
    case TYPE_VOID: { 
        type->base_type = VAR_VOID;
        type->type_size = 8;
        return type;
    }
    case TYPE_CHAR: { 
        type->base_type = VAR_CHAR;
        type->type_size = 1;
        return type;
    }
    case TYPE_INT: {
        type->base_type = VAR_INT;
        type->type_size = 8;
        return type;
    }
    case TYPE_DOUBLE: { 
        type->base_type = VAR_DOUBLE;
        type->type_size = 8;
        return type;
    }
    case TYPE_STRUCT: { 
        type->base_type = VAR_STRUCT;   

        type->struct_info = strptrmap_get(struct_map, node->struct_specifier_node->identifier); 
        if (type->struct_info == NULL) {
            error("Invalid sturct name=\"%s\"\n", node->struct_specifier_node->identifier);
            return NULL;
        }

        type->type_size = type->struct_info->size;
        return type;
    } 
    case TYPE_TYPEDEFNAME: { 
        type->base_type = VAR_STRUCT;   

        type->struct_info = strptrmap_get(struct_map, node->struct_name);
        if (type->struct_info == NULL) {
            error("Invalid sturct name=\"%s\"\n", node->struct_name);
            return NULL;
        }

        type->type_size = type->struct_info->size;
        return type;
    } 
    default: { 
        return NULL;
    }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x1, %edi
movl $0x20, %esi
callq 0x10c0
movq %rax, %rbx
movl (%r14), %eax
xorl %r15d, %r15d
decl %eax
cmpl $0x6, %eax
ja 0x30bc
leaq 0x6475(%rip), %rcx      # 0x94a8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x8, 0x4(%rbx)
jmp 0x30b9
movabsq $0x800000002, %rax      # imm = 0x800000002
jmp 0x308c
movl $0x5, (%rbx)
movq 0xb0ca(%rip), %rdi      # 0xe128
movq 0x10(%r14), %rsi
callq 0x8a1e
movq %rax, 0x18(%rbx)
testq %rax, %rax
jne 0x30b3
movq 0x10(%r14), %rsi
jmp 0x30cc
movabsq $0x100000001, %rax      # imm = 0x100000001
jmp 0x308c
movabsq $0x800000003, %rax      # imm = 0x800000003
movq %rax, (%rbx)
jmp 0x30b9
movl $0x5, (%rbx)
movq 0xb08a(%rip), %rdi      # 0xe128
movq 0x8(%r14), %rax
movq (%rax), %rsi
callq 0x8a1e
movq %rax, 0x18(%rbx)
testq %rax, %rax
je 0x30c5
movl 0x8(%rax), %eax
movl %eax, 0x4(%rbx)
movq %rbx, %r15
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0x8(%r14), %rax
movq (%rax), %rsi
leaq 0x652d(%rip), %rdi      # 0x9600
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x86ac
jmp 0x30bc
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_conditional_expr
static void process_conditional_expr(const ConditionalExprNode* node) {
    // <logical-or-expression>
    if (node->conditional_expr_node == NULL) {
        process_logical_or_expr(node->logical_or_expr_node);
    }
    // <logical-or-expression> ? <expression> : <conditional-expression>
    else {
        const char* label1 = get_label();
        const char* label2 = get_label();
 
        process_logical_or_expr(node->logical_or_expr_node);
        printf("  pop rax\n");
        printf("  cmp rax, 0\n");
        printf("  je %s\n", label1);
        process_expr(node->expr_node);
        printf("  jmp %s\n", label2);
        printf("%s:\n", label1);
        process_conditional_expr(node->conditional_expr_node);
        printf("%s:\n", label2);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x10(%rdi)
je 0x38d3
callq 0x49c5
movq %rax, %r15
callq 0x49c5
movq %rax, %r14
movq (%rbx), %rdi
callq 0x390e
leaq 0x60ed(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x60eb(%rip), %rdi      # 0x9959
callq 0x1070
leaq 0x5dd0(%rip), %rdi      # 0x964a
movq %r15, %rsi
xorl %eax, %eax
callq 0x10a0
movq 0x8(%rbx), %rdi
callq 0x395f
leaq 0x5dbf(%rip), %rdi      # 0x9653
movq %r14, %rsi
xorl %eax, %eax
callq 0x10a0
leaq 0x5d05(%rip), %r12      # 0x95aa
movq %r12, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x10a0
movq 0x10(%rbx), %rdi
callq 0x382d
movq %r12, %rdi
movq %r14, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x10a0
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x390e
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_logical_or_expr
static void process_logical_or_expr(const LogicalOrExprNode* node) {
    // <logical-and-expression>
    if (node->logical_or_expr_node == NULL) {
        process_logical_and_expr(node->logical_and_expr_node);
    }
    // <logical-or-expression> || <logical-and-expression>
    else {
        process_logical_or_expr(node->logical_or_expr_node);
        process_logical_and_expr(node->logical_and_expr_node);

        printf("  pop rdi\n");
        printf("  pop rax\n");
        printf("  or rax, rdi\n");
        printf("  push rax\n");
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x3959
callq 0x390e
movq (%rbx), %rdi
callq 0x3988
leaq 0x5ffc(%rip), %rdi      # 0x992b
callq 0x1070
leaq 0x6014(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x5e61(%rip), %rdi      # 0x97a8
callq 0x1070
leaq 0x5fe2(%rip), %rdi      # 0x9935
popq %rbx
jmp 0x1070
movq (%rbx), %rdi
popq %rbx
jmp 0x3988
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_expr
static void process_expr(const ExprNode* node) {
    // <assignment-expression>
    if (node->expr_node == NULL) {
        process_assign_expr(node->assign_expr_node);
    }
    // <expression> , <assignment-expression>
    else {
        const ExprNode* current = node;
        while (current->expr_node != NULL) {
            process_assign_expr(current->assign_expr_node);
            current = current->expr_node;
        }
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
je 0x397f
movq (%rbx), %rdi
callq 0x3647
movq 0x8(%rbx), %rbx
cmpq $0x0, 0x8(%rbx)
jne 0x396a
popq %rbx
retq
movq (%rbx), %rdi
popq %rbx
jmp 0x3647
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_logical_and_expr
static void process_logical_and_expr(const LogicalAndExprNode* node) {
    // <inclusive-or-expression>
    if (node->logical_and_expr_node == NULL) {
        process_inclusive_or_expr(node->inclusive_or_expr_node);
    }
    // <logical-and-expression> && <inclusive-or-expression>
    else {
        char* label1 = get_label();
        char* label2 = get_label();
        process_logical_and_expr(node->logical_and_expr_node);
        printf("  pop rax\n");
        printf("  cmp rax, 0\n");
        printf("  je %s\n", label1);
        process_inclusive_or_expr(node->inclusive_or_expr_node);
        printf("  pop rax\n");
        printf("  cmp rax, 0\n");
        printf("  je %s\n", label1);
        printf("  push 1\n");
        printf("  jmp %s\n", label2);
        printf("%s:\n", label1);
        printf("  push 0\n");
        printf("%s:\n", label2);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r15
cmpq $0x0, 0x8(%rdi)
je 0x3a7b
callq 0x49c5
movq %rax, %r14
callq 0x49c5
movq %rax, %rbx
movq 0x8(%r15), %rdi
callq 0x3988
leaq 0x5f94(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x5f92(%rip), %rdi      # 0x9959
callq 0x1070
leaq 0x5c77(%rip), %rdi      # 0x964a
movq %r14, %rsi
xorl %eax, %eax
callq 0x10a0
movq (%r15), %rax
cmpq $0x0, 0x8(%rax)
jne 0x3a03
movq (%rax), %rax
cmpq $0x0, 0x8(%rax)
jne 0x3a03
movq (%rax), %rax
cmpq $0x0, 0x8(%rax)
jne 0x3a03
movq (%rax), %rdi
callq 0x3aa9
leaq 0x5f45(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x5f43(%rip), %rdi      # 0x9959
callq 0x1070
leaq 0x5c28(%rip), %rdi      # 0x964a
movq %r14, %rsi
xorl %eax, %eax
callq 0x10a0
leaq 0x5e88(%rip), %rdi      # 0x98bb
callq 0x1070
leaq 0x5c14(%rip), %rdi      # 0x9653
movq %rbx, %rsi
xorl %eax, %eax
callq 0x10a0
leaq 0x5b5a(%rip), %r15      # 0x95aa
movq %r15, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x10a0
leaq 0x5d52(%rip), %rdi      # 0x97b6
callq 0x1070
movq %r15, %rdi
movq %rbx, %rsi
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x10a0
movq (%r15), %rax
cmpq $0x0, 0x8(%rax)
jne 0x3a99
movq (%rax), %rax
cmpq $0x0, 0x8(%rax)
jne 0x3a99
movq (%rax), %rax
cmpq $0x0, 0x8(%rax)
je 0x3a9f
popq %rbx
popq %r14
popq %r15
retq
movq (%rax), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x3aa9
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_equality_expr
static void process_equality_expr(const EqualityExprNode* node) {
    switch (node->cmp_type) {
    // <relational-expression>
    case CMP_NONE: {
        process_relational_expr(node->relational_expr_node);
        break;
    }
    // <equality-expression> == <relational-expression>
    case CMP_EQ: {
        process_equality_expr(node->equality_expr_node);
        process_relational_expr(node->relational_expr_node);

        printf("  pop rdi\n");
        printf("  pop rax\n");
        printf("  cmp rax, rdi\n");
        printf("  sete al\n");
        printf("  movzb rax, al\n");
        printf("  push rax\n");

        break;
    }
    // <equality-expression> != <relational-expression>
    case CMP_NE: {
        process_equality_expr(node->equality_expr_node);
        process_relational_expr(node->relational_expr_node);

        printf("  pop rdi\n");
        printf("  pop rax\n");
        printf("  cmp rax, rdi\n");
        printf("  setne al\n");
        printf("  movzb rax, al\n");
        printf("  push rax\n");

        break;
    }
    default:{
        break;
    }
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %eax
cmpl $0x4, %eax
je 0x3b0a
cmpl $0x3, %eax
je 0x3acb
testl %eax, %eax
jne 0x3b65
movq 0x8(%rbx), %rdi
popq %rbx
jmp 0x3b67
movq 0x10(%rbx), %rdi
callq 0x3aa9
movq 0x8(%rbx), %rdi
callq 0x3b67
leaq 0x5e47(%rip), %rdi      # 0x992b
callq 0x1070
leaq 0x5e5f(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x5e44(%rip), %rdi      # 0x9940
callq 0x1070
leaq 0x5d27(%rip), %rdi      # 0x982f
jmp 0x3b47
movq 0x10(%rbx), %rdi
callq 0x3aa9
movq 0x8(%rbx), %rdi
callq 0x3b67
leaq 0x5e08(%rip), %rdi      # 0x992b
callq 0x1070
leaq 0x5e20(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x5e05(%rip), %rdi      # 0x9940
callq 0x1070
leaq 0x5c78(%rip), %rdi      # 0x97bf
callq 0x1070
leaq 0x5ce6(%rip), %rdi      # 0x9839
callq 0x1070
leaq 0x5dd6(%rip), %rdi      # 0x9935
popq %rbx
jmp 0x1070
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_additive_expr
static void process_additive_expr(const AdditiveExprNode* node) {
    // <multiplicative-expression>
    if (node->additive_expr_node == NULL) {
        process_multiplicative_expr(node->multiplicative_expr_node);
    }
    //  <additive-expression> + <multiplicative-expression>
    else if (node->operator_type == OP_ADD) {
        process_additive_expr(node->additive_expr_node);
        process_multiplicative_expr(node->multiplicative_expr_node);

        printf("  pop rdi\n");
        printf("  pop rax\n");
        printf("  add rax, rdi\n");
        printf("  push rax\n");
    }
    // <additive-expression> - <multiplicative-expression>
    else if (node->operator_type == OP_SUB) {
        process_additive_expr(node->additive_expr_node);
        process_multiplicative_expr(node->multiplicative_expr_node);

        printf("  pop rdi\n");
        printf("  pop rax\n");
        printf("  sub rax, rdi\n");
        printf("  push rax\n");
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x3d28
movl (%rbx), %eax
cmpl $0xb, %eax
je 0x3d2f
cmpl $0xc, %eax
jne 0x3d6e
callq 0x3ce0
movq 0x8(%rbx), %rdi
callq 0x3d70
leaq 0x5c1d(%rip), %rdi      # 0x992b
callq 0x1070
leaq 0x5c35(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x5afa(%rip), %rdi      # 0x9820
jmp 0x3d5c
movq 0x8(%rbx), %rdi
popq %rbx
jmp 0x3d70
callq 0x3ce0
movq 0x8(%rbx), %rdi
callq 0x3d70
leaq 0x5be7(%rip), %rdi      # 0x992b
callq 0x1070
leaq 0x5bff(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x5b87(%rip), %rdi      # 0x98e3
callq 0x1070
leaq 0x5bcd(%rip), %rdi      # 0x9935
popq %rbx
jmp 0x1070
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_multiplicative_expr
static void process_multiplicative_expr(const MultiPlicativeExprNode* node) {
    // <cast-expression>
    if (node->multiplicative_expr_node == NULL) {
        process_cast_expr(node->cast_expr_node);
    }
    //   <multiplicative-expression> * <cast-expression>
    // | <multiplicative-expression> / <cast-expression>
    // | <multiplicative-expression> % <cast-expression>
    else if (node->operator_type == OP_MUL) {
        process_multiplicative_expr(node->multiplicative_expr_node);
        process_cast_expr(node->cast_expr_node);

        printf("  pop rdi\n");
        printf("  pop rax\n");
        printf("  imul rax, rdi\n");
        printf("  push rax\n");
    }
    else if (node->operator_type == OP_DIV) {
        process_multiplicative_expr(node->multiplicative_expr_node);
        process_cast_expr(node->cast_expr_node);

        printf("  pop rdi\n");
        printf("  pop rax\n");
        printf("  cqo\n");
        printf("  idiv rdi\n");
        printf("  push rax\n");
    }
    else if (node->operator_type == OP_MOD) {
        process_multiplicative_expr(node->multiplicative_expr_node);
        process_cast_expr(node->cast_expr_node);

        printf("  pop rdi\n");
        printf("  pop rax\n");
        printf("  cqo\n");
        printf("  idiv rdi\n");
        printf("  push rdx\n");
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x3dc9
movl (%rbx), %eax
cmpl $0xf, %eax
je 0x3e2c
cmpl $0xe, %eax
je 0x3ddd
cmpl $0xd, %eax
jne 0x3ddb
callq 0x3d70
movq 0x8(%rbx), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3da8
callq 0x3e7f
leaq 0x5b7c(%rip), %rdi      # 0x992b
callq 0x1070
leaq 0x5b94(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x5a49(%rip), %rdi      # 0x9810
jmp 0x3e1e
movq 0x8(%rbx), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3ddb
popq %rbx
jmp 0x3e7f
popq %rbx
retq
callq 0x3d70
movq 0x8(%rbx), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3df3
callq 0x3e7f
leaq 0x5b31(%rip), %rdi      # 0x992b
callq 0x1070
leaq 0x5b49(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x59ed(%rip), %rdi      # 0x97ff
callq 0x1070
leaq 0x59e7(%rip), %rdi      # 0x9805
callq 0x1070
leaq 0x5b0b(%rip), %rdi      # 0x9935
jmp 0x3e79
callq 0x3d70
movq 0x8(%rbx), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x3e42
callq 0x3e7f
leaq 0x5ae2(%rip), %rdi      # 0x992b
callq 0x1070
leaq 0x5afa(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x599e(%rip), %rdi      # 0x97ff
callq 0x1070
leaq 0x5998(%rip), %rdi      # 0x9805
callq 0x1070
leaq 0x597b(%rip), %rdi      # 0x97f4
popq %rbx
jmp 0x1070
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: get_localvar
static LocalVar* get_localvar(const char* str) {
    for (int i = 0; i < localvar_list->size; ++i) {
        LocalVar* localvar = localvar_list->elements[i];
        if (strcmp(localvar->name, str) == 0) {
            return localvar;
        }
    }

    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x9d23(%rip), %rax      # 0xe140
movslq 0x8(%rax), %r15
testq %r15, %r15
jle 0x444b
movq %rdi, %rbx
movq (%rax), %r12
xorl %r13d, %r13d
movq (%r12,%r13,8), %r14
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x10d0
testl %eax, %eax
je 0x444e
incq %r13
cmpq %r13, %r15
jne 0x442f
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: get_globalvar
static GlobalVar* get_globalvar(const char* str) {
    for (int i = 0; i < globalvar_list->size; ++i) {
        GlobalVar* gv = globalvar_list->elements[i];
        if (strcmp(gv->name, str) == 0) {
            return gv;
        }
    }

    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x9cb5(%rip), %rax      # 0xe120
movslq 0x8(%rax), %r15
testq %r15, %r15
jle 0x4499
movq %rdi, %rbx
movq (%rax), %r12
xorl %r13d, %r13d
movq (%r12,%r13,8), %r14
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x10d0
testl %eax, %eax
je 0x449c
incq %r13
cmpq %r13, %r15
jne 0x447d
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_constant_node
static void process_constant_node(const ConstantNode* node) {
    switch (node->const_type) {
    case CONST_BYTE: {
        printf("  push %d\n", node->integer_constant);
        intstack_push(size_stack, 1);
        break;
    }
    case CONST_INT: {
        printf("  push %d\n", node->integer_constant);
        intstack_push(size_stack, 8);
        break;
    }
    case CONST_STR: {
        const char* label = get_string_label();
        printf(".data\n");
        printf("%s:\n", label);
        printf("  .string \"%s\"\n", node->character_constant);
        printf(".text\n");
        printf("  lea rax, %s[rip]\n", label);
        printf("  push rax\n");
        break;
    }
    case CONST_FLOAT: {
        break;
    }
    default: {
        error("Invalid ConstType.\n");
        break;
    }
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl (%rdi), %eax
cmpq $0x3, %rax
ja 0x485b
movq %rdi, %rbx
leaq 0x4de8(%rip), %rcx      # 0x9580
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x4(%rbx), %esi
leaq 0x4eb2(%rip), %rdi      # 0x965d
xorl %eax, %eax
callq 0x10a0
movq 0x995f(%rip), %rdi      # 0xe118
movl $0x8, %esi
jmp 0x484f
callq 0x2d15
movq %rax, %r14
leaq 0x5120(%rip), %rdi      # 0x98f2
callq 0x1070
leaq 0x4dcc(%rip), %rdi      # 0x95aa
movq %r14, %rsi
xorl %eax, %eax
callq 0x10a0
movq 0x10(%rbx), %rsi
leaq 0x4dc8(%rip), %rdi      # 0x95bb
xorl %eax, %eax
callq 0x10a0
leaq 0x50f7(%rip), %rdi      # 0x98f8
callq 0x1070
leaq 0x4e94(%rip), %rdi      # 0x96a1
movq %r14, %rsi
xorl %eax, %eax
callq 0x10a0
leaq 0x5117(%rip), %rdi      # 0x9935
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1070
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl 0x4(%rbx), %esi
leaq 0x4e21(%rip), %rdi      # 0x965d
xorl %eax, %eax
callq 0x10a0
movq 0x98ce(%rip), %rdi      # 0xe118
movl $0x1, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x886b
leaq 0x4e53(%rip), %rdi      # 0x96b5
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x86ac
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_identifier_right
static void process_identifier_right(const char* identifier) {
    // enum 
    if (strintmap_contains(enum_map, identifier)) {
        printf("  push %d\n", strintmap_get(enum_map, identifier));
        return;
    } 

    // local variable
    const LocalVar* lv = get_localvar(identifier);
    if (lv != NULL) {
        printf("  lea rax, [rbp-%d]\n", lv->offset);
        if (lv->type->array_size == 0) { 
            if (lv->type->type_size == 1 && lv->type->ptr_count == 0) {
                printf("  movzx eax, BYTE PTR [rax]\n");
            } else { 
                printf("  mov rax, [rax]\n");
            }
        } 
        printf("  push rax\n");
        intstack_push(size_stack, lv->type->size);
        stack_push(type_stack, lv->type);

        return;
    } 

    // global variable
    const GlobalVar* gv = get_globalvar(identifier);
    printf("  lea rax, %s[rip]\n", gv->name);
    if (gv->type->array_size == 0) {
        if (gv->type->type_size == 1 && gv->type->ptr_count == 0) {
            printf("  movzx eax, BYTE PTR [rax]\n");
        } else { 
            printf("  mov rax, [rax]\n");
        }
    }
    printf("  push rax\n");
    intstack_push(size_stack, gv->type->size);
    stack_push(type_stack, gv->type);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x98b2(%rip), %rdi      # 0xe130
movq %r14, %rsi
callq 0x8b69
testb %al, %al
je 0x48b0
movq 0x989f(%rip), %rdi      # 0xe130
movq %r14, %rsi
callq 0x8bc8
leaq 0x4dbd(%rip), %rdi      # 0x965d
movl %eax, %esi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x10a0
movq %r14, %rdi
callq 0x440d
testq %rax, %rax
je 0x48d3
movq %rax, %rbx
movl 0x14(%rax), %esi
leaq 0x4d5a(%rip), %rdi      # 0x9624
xorl %eax, %eax
callq 0x10a0
jmp 0x48f0
movq %r14, %rdi
callq 0x445b
movq %rax, %rbx
movq 0x8(%rax), %rsi
leaq 0x4db8(%rip), %rdi      # 0x96a1
xorl %eax, %eax
callq 0x10a0
movq (%rbx), %rax
cmpl $0x0, 0xc(%rax)
jne 0x4911
cmpl $0x1, 0x4(%rax)
jne 0x4905
cmpl $0x0, 0x10(%rax)
je 0x4945
leaq 0x4ff2(%rip), %rdi      # 0x98fe
callq 0x1070
leaq 0x501d(%rip), %rdi      # 0x9935
callq 0x1070
movq 0x97f4(%rip), %rdi      # 0xe118
movq (%rbx), %rax
movl 0x8(%rax), %esi
callq 0x886b
movq 0x97d2(%rip), %rdi      # 0xe108
movq (%rbx), %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x87e1
leaq 0x4fc3(%rip), %rdi      # 0x990f
jmp 0x490c
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_identifier_left
static void process_identifier_left(const char* identifier) {
    const LocalVar* lv = get_localvar(identifier);
    if (lv != NULL) {
        printf("  lea rax, [rbp-%d]\n", lv->offset);
        printf("  push rax\n");
        stack_push(type_stack, lv->type);
    } 
    else {
        const GlobalVar* gv = get_globalvar(identifier);    
        printf("  lea rax, %s[rip]\n", gv->name);
        printf("  push rax\n");
        stack_push(type_stack, gv->type);
    }
    intstack_push(size_stack, 8);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x440d
testq %rax, %rax
je 0x4975
movq %rax, %rbx
movl 0x14(%rax), %esi
leaq 0x4cb8(%rip), %rdi      # 0x9624
xorl %eax, %eax
callq 0x10a0
jmp 0x4992
movq %r14, %rdi
callq 0x445b
movq %rax, %rbx
movq 0x8(%rax), %rsi
leaq 0x4d16(%rip), %rdi      # 0x96a1
xorl %eax, %eax
callq 0x10a0
leaq 0x4f9c(%rip), %rdi      # 0x9935
callq 0x1070
movq 0x9763(%rip), %rdi      # 0xe108
movq (%rbx), %rsi
callq 0x87e1
movq 0x9764(%rip), %rdi      # 0xe118
movl $0x8, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x886b
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_jump_stmt
static void process_jump_stmt(const JumpStmtNode* node) {
    switch (node->jump_type) {
    case JMP_CONTINUE: {
        const char* label1 = stack_top(continue_label_stack);
        printf("  jmp %s\n", label1);
        break;
    }
    case JMP_BREAK: {
        const char* label2 = stack_top(break_label_stack);
        printf("  jmp %s\n", label2);
        break;
    }
    case JMP_RETURN: {
        if (node->expr_node != NULL) {
            process_expr(node->expr_node);
        }
        printf("  pop rax\n");
        if (ret_label == NULL) {
            ret_label = get_label();
        }
        printf("  jmp %s\n", ret_label);
        break;
    }
    default: {
        break;
    }
    }
}

// Assembly:
pushq %rax
movl (%rdi), %eax
cmpl $0x2, %eax
je 0x4a2d
cmpl $0x1, %eax
je 0x4a1c
testl %eax, %eax
jne 0x4a71
movq 0x96e6(%rip), %rdi      # 0xe100
jmp 0x4a23
movq 0x96d5(%rip), %rdi      # 0xe0f8
callq 0x8825
movq %rax, %rsi
jmp 0x4a62
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x4a3b
callq 0x395f
leaq 0x4f0d(%rip), %rdi      # 0x994f
callq 0x1070
movq 0x9702(%rip), %rsi      # 0xe150
testq %rsi, %rsi
jne 0x4a62
callq 0x49c5
movq %rax, %rsi
movq %rax, 0x96ee(%rip)      # 0xe150
leaq 0x4bea(%rip), %rdi      # 0x9653
xorl %eax, %eax
popq %rcx
jmp 0x10a0
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/generator.c
// Function: process_selection_stmt
static void process_selection_stmt(const SelectionStmtNode* node) {
    switch (node->selection_type) {
    case SELECT_IF: {
        const char* label1 = get_label();

        process_expr(node->expr_node);
        printf("  pop rax\n");
        printf("  cmp rax, 0\n");
        printf("  je %s\n", label1);
        process_stmt(node->stmt_node_0);
        printf("%s:\n", label1);

        break;
    }
    case SELECT_IF_ELSE: {
        const char* label2 = get_label();
        const char* label3 = get_label();

        process_expr(node->expr_node);
        printf("  pop rax\n");
        printf("  cmp rax, 0\n");
        printf("  je %s\n", label2);
        process_stmt(node->stmt_node_0);
        printf("  jmp %s\n", label3);
        printf("%s:\n", label2);
        process_stmt(node->stmt_node_1);
        printf("%s:\n", label3);

        break;
    }
    case SELECT_SWITCH: {
        char* label4 = get_label();
        stack_push(break_label_stack, label4);
        stack_push(current_stmt_label_stack, get_label()); 

        process_expr(node->expr_node);
        process_stmt(node->stmt_node_0);

        printf("%s:\n", label4);
        stack_pop(break_label_stack);
        stack_pop(current_stmt_label_stack); 
        break;
    }
    default: {
        break;
    }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %eax
cmpl $0x2, %eax
je 0x4b73
cmpl $0x1, %eax
je 0x4ae2
testl %eax, %eax
jne 0x4be7
callq 0x49c5
movq %rax, %r14
movq 0x8(%rbx), %rdi
callq 0x395f
leaq 0x4ea1(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x4e9f(%rip), %rdi      # 0x9959
callq 0x1070
leaq 0x4b84(%rip), %rdi      # 0x964a
movq %r14, %rsi
xorl %eax, %eax
callq 0x10a0
movq 0x10(%rbx), %rdi
callq 0x32a4
leaq 0x4aca(%rip), %rdi      # 0x95aa
jmp 0x4b5e
callq 0x49c5
movq %rax, %r15
callq 0x49c5
movq %rax, %r14
movq 0x8(%rbx), %rdi
callq 0x395f
leaq 0x4e4d(%rip), %rdi      # 0x994f
callq 0x1070
leaq 0x4e4b(%rip), %rdi      # 0x9959
callq 0x1070
leaq 0x4b30(%rip), %rdi      # 0x964a
movq %r15, %rsi
xorl %eax, %eax
callq 0x10a0
movq 0x10(%rbx), %rdi
callq 0x32a4
leaq 0x4b1f(%rip), %rdi      # 0x9653
movq %r14, %rsi
xorl %eax, %eax
callq 0x10a0
leaq 0x4a65(%rip), %r12      # 0x95aa
movq %r12, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x10a0
movq 0x18(%rbx), %rdi
callq 0x32a4
movq %r12, %rdi
movq %r14, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x10a0
callq 0x49c5
movq %rax, %r14
movq 0x9576(%rip), %rdi      # 0xe0f8
movq %rax, %rsi
callq 0x87e1
movq 0x957f(%rip), %r15      # 0xe110
callq 0x49c5
movq %r15, %rdi
movq %rax, %rsi
callq 0x87e1
movq 0x8(%rbx), %rdi
callq 0x395f
movq 0x10(%rbx), %rdi
callq 0x32a4
leaq 0x49f0(%rip), %rdi      # 0x95aa
movq %r14, %rsi
xorl %eax, %eax
callq 0x10a0
movq 0x952d(%rip), %rdi      # 0xe0f8
callq 0x8839
movq 0x9539(%rip), %rdi      # 0xe110
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x8839
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/minic.c
// Function: main
int main(int argc, char** argv) {
    if (argc < 2) {
        usage();
        return -1;
    }

    int arg_index = 1;
    if (strncmp("-d", argv[1], 2) == 0 || strncmp("--debug", argv[1], 7) == 0) {
        debug_flag = true;
        arg_index = 2;
    } 

    char* addr = read_file(argv[arg_index]);
    if (addr == NULL) {
        error("Failed to load file.\n"); 
        return -1;
    }

    const Vector* vec = tokenize(addr);
    if (vec == NULL) {
        error("Failed to tokenize.\n");
        return -1;
    }

#ifdef MINIC_DEV
    if (debug_flag) {
        dump_tokens(vec);
    }
#endif

    const Vector* processed_vec = preprocess(vec); 
    if (processed_vec == NULL) {
        error("Failed to preprocess.\n");
        return -1;
    }

#ifdef MINIC_DEV
    if (debug_flag) {
        dump_tokens(processed_vec);
    }
#endif

    const TransUnitNode* node = parse(processed_vec);
    if (node == NULL) {
        error("Failed to parse.\n");
        return -1;
    }

#ifdef MINIC_DEV
    if (debug_flag) {
        dump_nodes(node);
    }
#endif

    gen(node);

    return 0;
}

// Assembly:
pushq %rbx
cmpl $0x1, %edi
jg 0x4c0b
leaq 0x4dc1(%rip), %rdi      # 0x99c2
callq 0x1070
jmp 0x4cbd
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
movzbl (%rsi), %eax
subl $0x2d, %eax
jne 0x4c27
movzbl 0x1(%rsi), %ecx
movl $0x64, %eax
subl %ecx, %eax
jmp 0x4c29
negl %eax
testl %eax, %eax
je 0x4c47
leaq 0x4d32(%rip), %rdi      # 0x9966
movl $0x7, %edx
callq 0x1060
movl $0x1, %ecx
testl %eax, %eax
jne 0x4c53
movb $0x1, 0x950a(%rip)      # 0xe158
movl $0x2, %ecx
movq (%rbx,%rcx,8), %rdi
callq 0x86bd
testq %rax, %rax
je 0x4c94
movq %rax, %rdi
callq 0x7a20
testq %rax, %rax
je 0x4c9d
movq %rax, %rdi
callq 0x7660
testq %rax, %rax
je 0x4ca6
movq %rax, %rdi
callq 0x4cc4
testq %rax, %rax
je 0x4caf
movq %rax, %rdi
callq 0x22c8
xorl %eax, %eax
jmp 0x4cc2
leaq 0x4cd3(%rip), %rdi      # 0x996e
jmp 0x4cb6
leaq 0x4ce0(%rip), %rdi      # 0x9984
jmp 0x4cb6
leaq 0x4cec(%rip), %rdi      # 0x9999
jmp 0x4cb6
leaq 0x4cfa(%rip), %rdi      # 0x99b0
xorl %eax, %eax
callq 0x86ac
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/parser.c
// Function: create_decl_specifier_node
static DeclSpecifierNode* create_decl_specifier_node(const Vector* vec, int* index) {
    DeclSpecifierNode* decl_specifier_node = calloc(1, sizeof(DeclSpecifierNode));

    const Token* token = vec->elements[*index];
    if (token->type == TK_STATIC) {
        decl_specifier_node->is_static = true;
        ++(*index);
    }
    else if (token->type == TK_CONST) {
        decl_specifier_node->is_const = true;
        ++(*index);
    }
    else if (is_type_specifier(vec, *index)) {
        decl_specifier_node->type_specifier_node = create_type_specifier_node(vec, index);
        if (decl_specifier_node->type_specifier_node == NULL) {
            error("Failed to create type-specifier node.\n");
            return NULL;
        }
    }

    return decl_specifier_node;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movl $0x1, %edi
movl $0x10, %esi
callq 0x10c0
movq %rax, %rbx
movq (%r15), %rdi
movslq (%r14), %rsi
movq (%rdi,%rsi,8), %rax
movl (%rax), %eax
cmpl $0xc, %eax
je 0x54e2
cmpl $0x4, %eax
jne 0x54f5
movb $0x1, 0x9(%rbx)
jmp 0x54e6
movb $0x1, 0x8(%rbx)
leal 0x1(%rsi), %eax
movl %eax, (%r14)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x59c5
testb %al, %al
je 0x54ec
movq %r15, %rdi
movq %r14, %rsi
callq 0x59f0
movq %rax, (%rbx)
testq %rax, %rax
jne 0x54ec
leaq 0x4a16(%rip), %rdi      # 0x9f2e
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x86ac
jmp 0x54ec
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/parser.c
// Function: create_compound_stmt_node
static CompoundStmtNode* create_compound_stmt_node(const Vector* vec, int* index) {
    CompoundStmtNode* compound_stmt_node = malloc(sizeof(CompoundStmtNode));

    compound_stmt_node->block_item_nodes = create_vector();

    const Token* token = vec->elements[*index];
    if (token->type != TK_LBRCKT) {
        error("Invalid token[%d]=\"%s\".\n", *index, decode_token_type(token->type));
        return NULL;
    }
    ++(*index);

    while (true) {
        token = vec->elements[*index];
        if (token->type == TK_RBRCKT) {
            ++(*index);
            break;
        }

        BlockItemNode* block_item_node = create_block_item_node(vec, index);
        if (block_item_node == NULL) {
            error("Failed to create block-item node.\n");
            return NULL; 
        }

        vector_push_back(compound_stmt_node->block_item_nodes, block_item_node);
    }

    return compound_stmt_node;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %r15
movl $0x8, %edi
callq 0x1100
movq %rax, %r12
xorl %eax, %eax
callq 0x8738
movq %rax, 0x10(%rsp)
movq %rax, (%r12)
movq (%r15), %r13
movslq (%r14), %rbx
movq (%r13,%rbx,8), %rax
movl (%rax), %edi
cmpl $0x23, %edi
jne 0x5962
movq %r12, 0x8(%rsp)
leaq 0x1(%rbx), %rbp
movl %ebp, (%r14)
movq 0x8(%r13,%rbx,8), %rax
movl (%rax), %r12d
cmpl $0x24, %r12d
je 0x597f
movl $0x1, %edi
movl $0x10, %esi
callq 0x10c0
movq %rax, %rbx
movq %r13, %rdi
movl %ebp, %esi
callq 0x59c5
andl $-0x9, %r12d
cmpl $0x4, %r12d
je 0x5935
testb %al, %al
jne 0x5935
movq %r15, %rdi
movq %r14, %rsi
callq 0x6d86
movq %rax, 0x8(%rbx)
testq %rax, %rax
jne 0x5948
jmp 0x598b
movq %r15, %rdi
movq %r14, %rsi
callq 0x5335
movq %rax, (%rbx)
testq %rax, %rax
je 0x5994
movq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x876b
movq (%r15), %r13
movslq (%r14), %rbp
movq (%r13,%rbp,8), %rax
jmp 0x58e8
callq 0x8681
leaq 0x4482(%rip), %rdi      # 0x9df0
xorl %r14d, %r14d
movl %ebx, %esi
movq %rax, %rdx
xorl %eax, %eax
callq 0x86ac
jmp 0x59b3
incl %ebp
movl %ebp, (%r14)
movq 0x8(%rsp), %r14
jmp 0x59b3
leaq 0x4b37(%rip), %rdi      # 0xa4c9
jmp 0x599b
leaq 0x4b09(%rip), %rdi      # 0xa4a4
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x86ac
leaq 0x4ad5(%rip), %rdi      # 0xa481
xorl %eax, %eax
callq 0x86ac
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/chgzm[P]minic/parser.c
// Function: is_type_specifier
static bool is_type_specifier(const Vector* vec, int index) {
    const Token* token = vec->elements[index];
    const int type = token->type;
    return (type == TK_VOID   || type == TK_CHAR || type == TK_INT
         || type == TK_DOUBLE || type == TK_STRUCT
         || (token->str != NULL && strptrmap_contains(typedef_map, token->str))
    );
}

// Assembly:
movslq %esi, %rax
movq (%rdi,%rax,8), %rcx
movl (%rcx), %edx
addl $-0x6, %edx
movb $0x1, %al
cmpl $0x5, %edx
jb 0x59ef
movq 0x8(%rcx), %rsi
testq %rsi, %rsi
je 0x59ed
movq 0x8778(%rip), %rdi      # 0xe160
jmp 0x89bf
xorl %eax, %eax
retq