// File: /workspace/github_cpp_makefile_star2_O1/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 0x204da
movq %rax, %r15
leaq -0x80(%rbp), %rdi
callq 0x2beca
movq %rbx, %rdi
movl $0x10, %esi
callq 0x21174
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 0x21174
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 0x24f0a
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x1e217
callq 0x42b0
leaq -0x80(%rbp), %rdi
callq 0x2c47e
movl 0x18(%rbx), %eax
cmpl $0x6, %eax
je 0x1e2cc
cmpl $0xb, %eax
jne 0x1e34a
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 0x1e2e8
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 0x1e295
cmpl $0x6, %eax
jne 0x1e2c1
movl $0x80, %esi
callq 0x22aa8
leaq -0x118(%rbp), %rdi
movq %rax, %rsi
callq 0x24d8c
jmp 0x1e2c1
movl $0x40, %esi
callq 0x243da
movq %r13, %rdi
movq %rax, %rsi
callq 0x2bf7c
leaq -0xf8(%rbp), %rdi
movq %r13, %rsi
callq 0x2c598
movq %r13, %rdi
callq 0x2c47e
addq $0x8, %r15
cmpq %r12, %r15
jne 0x1e25a
jmp 0x1e2e8
movq %rbx, %rdi
movl $0x80, %esi
callq 0x22aa8
leaq -0x118(%rbp), %rdi
movq %rax, %rsi
callq 0x24d8c
orb $0x20, 0xa(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x24e64
leaq -0x120(%rbp), %rsi
movq %rax, %rdi
callq 0x274c6
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e31b
callq 0x42b0
leaq -0xf8(%rbp), %rdi
callq 0x2c47e
movq -0x118(%rbp), %rdi
testq %rdi, %rdi
je 0x1e338
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 0x28982(%rip), %rsi     # 0x46cdb
leaq 0x289ab(%rip), %rdx     # 0x46d0b
leaq -0x80(%rbp), %rdi
callq 0xf65c
movl 0x18(%rbx), %esi
leaq -0x50(%rbp), %r14
movq %r14, %rdi
callq 0x1a7b2
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 0x1e39a
callq 0x42b0
movq (%rbx), %rsi
leaq -0xa0(%rbp), %rdi
callq 0xe329
leaq 0x28335(%rip), %rsi     # 0x466e5
leaq -0x50(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
callq 0xe2af
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
leaq -0x80(%rbp), %rdi
callq 0x4110
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e3df
callq 0x42b0
leaq -0x90(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e3f4
callq 0x42b0
movl $0x28, %edi
callq 0x4190
movq %rax, %r14
leaq -0x80(%rbp), %rdx
movq %rax, %rdi
movl $0x4, %esi
callq 0x33d12
leaq 0x3d957(%rip), %rsi     # 0x5bd70
leaq -0x10066(%rip), %rdx    # 0xe3ba
movq %r14, %rdi
callq 0x4540
jmp 0x1e456
movq %rax, %rbx
movq %r14, %rdi
callq 0x4250
jmp 0x1e470
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r14, %rdi
je 0x1e44d
callq 0x42b0
jmp 0x1e44d
movq %rax, %rbx
leaq -0x90(%rbp), %rax
jmp 0x1e462
movq %rax, %rbx
jmp 0x1e470
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e470
callq 0x42b0
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x1e4b8
callq 0x42b0
jmp 0x1e4b8
jmp 0x1e4b5
movq %rax, %rbx
jmp 0x1e498
movq %rax, %rbx
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x1e498
callq 0x42b0
leaq -0x80(%rbp), %rdi
callq 0x2c47e
jmp 0x1e4c4
jmp 0x1e4b5
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x2c47e
jmp 0x1e4b8
jmp 0x1e4b5
movq %rax, %rbx
leaq -0x120(%rbp), %rdi
callq 0x24ece
movq %rbx, %rdi
callq 0x4560