// File: /workspace/github_cpp_makefile_star2_O3/acliusBackHome[P]kamaya/dist/ParseNode.cpp
// Function: ParseNode::collect_init_declarator() const
void ParseNode::collect_init_declarator() const {
    auto &the_map = tree.node_init_dec;
    InitDeclarator res(get_symbol(), ParseExpression(), get_ptr_lv(), vector<size_t>(), get_param_list_node());
    // 获取元祖引用以便修改其值
    // 初始化表达式可能会有变动
    ParseExpression &init_expression = get<1>(res);
    // 数组大小声明可能会有变动
    vector<size_t> &arr_size = get<3>(res);
    switch (type) {
        case N_DECLARATOR: {
            arr_size = get_array_size();
            break;
        }
        case N_INIT_DECLARATOR: {
            // 因为有两个表达式, 一个是初始化表达式, 一个是数组大小声明表达式
            // 所以get_expression在该节点有歧义, 必须分开
            for (const auto &each : tree.node_children[node_id]) {
                const ParseNode &child = tree.nodes[each];
                switch (child.type) {
                    case N_DECLARATOR: {
                        arr_size = child.get_array_size();
                        break;
                    }
                    case N_INITIALIZER : {
                        // TODO:其实可以只记录指针
                        init_expression = ParseExpression(child.get_expression());
                        break;
                    }
                    default:
                        break;
                }
            }
            break;
        }
        default: {
            string info = "ParseNode::collect_init_declarator(): node_type=";
            info += get_node_type_name(type);
            info += "node_id=" + to_string(node_id);
            throw ParseException(EX_NODE_NOT_ALLOW_OP, info);
        }
    }
    // 到此res就是抽取出的InitDeclarator
    // 这里强制转换成非常量指针来改变keys表示该节点拥有这个键值
    ((ParseNode *) this)->keys |= K_INIT_DEC;
    the_map[node_id] = res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdi, %rbx
movl $0x4c8, %r14d           # imm = 0x4C8
addq 0x10(%rdi), %r14
movl $0x1, %esi
callq 0x203fa
movq %rax, %r15
leaq -0x80(%rbp), %rdi
callq 0x2b638
movq %rbx, %rdi
movl $0x10, %esi
callq 0x20f92
movq (%rax), %rax
movq %rax, -0xa0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
movq %rbx, %rdi
movl $0x400, %esi            # imm = 0x400
callq 0x20f92
movq (%rax), %rax
leaq -0xa8(%rbp), %r9
movq %rax, (%r9)
leaq -0x120(%rbp), %rdi
leaq -0x80(%rbp), %rdx
leaq -0xa0(%rbp), %rcx
leaq -0x50(%rbp), %r8
movq %r15, %rsi
callq 0x248b8
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x1e27b
callq 0x42b0
leaq -0x80(%rbp), %rdi
callq 0x2bba0
movl 0x18(%rbx), %eax
cmpl $0x6, %eax
je 0x1e330
cmpl $0xb, %eax
jne 0x1e3ae
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movq 0x60(%rcx), %rcx
leaq (%rax,%rax,2), %rax
movq (%rcx,%rax,8), %r15
movq 0x8(%rcx,%rax,8), %r12
cmpq %r12, %r15
je 0x1e34c
leaq -0x80(%rbp), %r13
movq 0x10(%rbx), %rax
movq (%r15), %rcx
movq (%rax), %rax
shlq $0x5, %rcx
leaq (%rax,%rcx), %rdi
movl 0x18(%rax,%rcx), %eax
cmpl $0xd, %eax
je 0x1e2f9
cmpl $0x6, %eax
jne 0x1e325
movl $0x80, %esi
callq 0x226c2
leaq -0x118(%rbp), %rdi
movq %rax, %rsi
callq 0x2472e
jmp 0x1e325
movl $0x40, %esi
callq 0x23df2
movq %r13, %rdi
movq %rax, %rsi
callq 0x2b6ea
leaq -0xf8(%rbp), %rdi
movq %r13, %rsi
callq 0x2bcbc
movq %r13, %rdi
callq 0x2bba0
addq $0x8, %r15
cmpq %r12, %r15
jne 0x1e2be
jmp 0x1e34c
movq %rbx, %rdi
movl $0x80, %esi
callq 0x226c2
leaq -0x118(%rbp), %rdi
movq %rax, %rsi
callq 0x2472e
orb $0x20, 0xa(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x24814
leaq -0x120(%rbp), %rsi
movq %rax, %rdi
callq 0x26e38
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e37f
callq 0x42b0
leaq -0xf8(%rbp), %rdi
callq 0x2bba0
movq -0x118(%rbp), %rdi
testq %rdi, %rdi
je 0x1e39c
callq 0x42b0
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x2791e(%rip), %rsi     # 0x45cdb
leaq 0x27947(%rip), %rdx     # 0x45d0b
leaq -0x80(%rbp), %rdi
callq 0xf868
movl 0x18(%rbx), %esi
leaq -0x50(%rbp), %r14
movq %r14, %rdi
callq 0x1a836
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq -0x80(%rbp), %rdi
callq 0x4110
leaq -0x40(%rbp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x1e3fe
callq 0x42b0
movq (%rbx), %rsi
leaq -0xa0(%rbp), %rdi
callq 0xe50f
leaq 0x272d1(%rip), %rsi     # 0x456e5
leaq -0x50(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
callq 0xe495
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq -0x80(%rbp), %rdi
callq 0x4110
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e443
callq 0x42b0
leaq -0x90(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e458
callq 0x42b0
movl $0x28, %edi
callq 0x4190
movq %rax, %r14
leaq -0x80(%rbp), %rdx
movq %rax, %rdi
movl $0x4, %esi
callq 0x333ee
leaq 0x3c8f3(%rip), %rsi     # 0x5ad70
leaq -0xfee4(%rip), %rdx     # 0xe5a0
movq %r14, %rdi
callq 0x4540
jmp 0x1e4ba
movq %rax, %rbx
movq %r14, %rdi
callq 0x4250
jmp 0x1e4d4
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e4b1
callq 0x42b0
jmp 0x1e4b1
movq %rax, %rbx
leaq -0x90(%rbp), %rax
jmp 0x1e4c6
movq %rax, %rbx
jmp 0x1e4d4
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e4d4
callq 0x42b0
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x1e51c
callq 0x42b0
jmp 0x1e51c
jmp 0x1e519
movq %rax, %rbx
jmp 0x1e4fc
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x1e4fc
callq 0x42b0
leaq -0x80(%rbp), %rdi
callq 0x2bba0
jmp 0x1e528
jmp 0x1e519
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x2bba0
jmp 0x1e51c
jmp 0x1e519
movq %rax, %rbx
leaq -0x120(%rbp), %rdi
callq 0x2487c
movq %rbx, %rdi
callq 0x4560