// File: /workspace/github_cpp_makefile_star2_O2/yanlinlin82[P]icpp/icpp.cpp
// Function: parse_init_value(std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&, std::vector<int, std::allocator<int>>&, std::vector<std::pair<std::vector<int, std::allocator<int>>, int>, std::allocator<std::pair<std::vector<int, std::allocator<int>>, int>>>&)
void parse_init_value(vector<int>& dim, vector<int>& dim2, vector<int>& cursor,
		vector<pair<vector<int>, int>>& init)
{
	if (token == "{") {
		if (cursor.size() >= dim.size()) err("too many level in init val!\n");
		next();
		size_t i = cursor.size();
		for (cursor.push_back(0); ; ++cursor[i]) {
			if (dim[i] == 0) {
				if (cursor[i] >= dim2[i]) dim2[i] = cursor[i] + 1;
			} else {
				if (cursor[i] >= dim[i]) err("array init overflow!\n");
			}
			parse_init_value(dim, dim2, cursor, init);
			if (token == "}") break;
			expect_token(",", "init-value");
			next();
		}
		cursor.pop_back();
		expect_token("}", "init-value");
		next();
	} else {
		//parse_expression(",");
		int v = eval_number(token);
		next();
		init.push_back(make_pair(cursor, v));
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rcx, -0x38(%rbp)
movq %rdx, %r14
movq %rsi, -0x40(%rbp)
movq %rdi, %r12
leaq 0x172df(%rip), %rdi     # 0x21290
leaq 0xc4ba(%rip), %rsi      # 0x16472
callq 0xf4c8
testb %al, %al
je 0xa0cb
movq 0x8(%r14), %rax
subq (%r14), %rax
movq 0x8(%r12), %rcx
subq (%r12), %rcx
cmpq %rcx, %rax
jb 0x9fe8
leaq 0xca23(%rip), %rdi      # 0x16a04
xorl %eax, %eax
callq 0xf410
callq 0x4fdf
movq 0x8(%r14), %r15
subq (%r14), %r15
leaq -0x60(%rbp), %rsi
andl $0x0, (%rsi)
movq %r14, %rdi
callq 0x130be
leaq -0x100(%rbp), %r13
leaq -0xe0(%rbp), %rbx
movq (%r12), %rax
movl (%rax,%r15), %ecx
movq (%r14), %rax
movl (%rax,%r15), %eax
testl %ecx, %ecx
je 0xa038
cmpl %ecx, %eax
jl 0xa04b
leaq 0xc9f2(%rip), %rdi      # 0x16a21
xorl %eax, %eax
callq 0xf410
jmp 0xa04b
movq -0x40(%rbp), %rcx
movq (%rcx), %rcx
cmpl (%rcx,%r15), %eax
jl 0xa04b
incl %eax
movl %eax, (%rcx,%r15)
movq %r12, %rdi
movq -0x40(%rbp), %rsi
movq %r14, %rdx
movq -0x38(%rbp), %rcx
callq 0x9f88
leaq 0x1722b(%rip), %rdi     # 0x21290
leaq 0xc1a4(%rip), %rsi      # 0x16210
callq 0xf4c8
testb %al, %al
jne 0xa126
movq %r13, %rdi
leaq 0xc189(%rip), %rsi      # 0x1620c
leaq -0x60(%rbp), %rdx
callq 0xf1f8
movq %rbx, %rdi
leaq 0xc9a1(%rip), %rsi      # 0x16a37
leaq -0x29(%rbp), %rdx
callq 0xf1f8
movq %r13, %rdi
movq %rbx, %rsi
callq 0x540c
movq %rbx, %rdi
callq 0x3368
movq %r13, %rdi
callq 0x3368
callq 0x4fdf
movq (%r14), %rax
incl (%rax,%r15)
jmp 0xa011
leaq 0x171be(%rip), %rsi     # 0x21290
leaq -0xc0(%rbp), %rbx
movq %rbx, %rdi
callq 0x3270
movq %rbx, %rdi
callq 0x5650
movl %eax, %ebx
leaq -0xc0(%rbp), %rdi
callq 0x3368
callq 0x4fdf
leaq -0x60(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xf728
movl %ebx, 0x18(%r15)
movq -0x38(%rbp), %rdi
movq %r15, %rsi
callq 0x13af6
leaq -0x60(%rbp), %rdi
callq 0x111bc
jmp 0xa180
addq $-0x4, 0x8(%r14)
leaq 0xc0de(%rip), %rsi      # 0x16210
leaq -0xa0(%rbp), %rdi
leaq -0x60(%rbp), %rdx
callq 0xf1f8
leaq 0xc8ee(%rip), %rsi      # 0x16a37
leaq -0x80(%rbp), %rdi
leaq -0x29(%rbp), %rdx
callq 0xf1f8
leaq -0xa0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x540c
leaq -0x80(%rbp), %rdi
callq 0x3368
leaq -0xa0(%rbp), %rdi
callq 0x3368
callq 0x4fdf
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x3368
jmp 0xa1a3
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
jmp 0xa1e8
jmp 0xa1c8
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x111bc
jmp 0xa1ed
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
jmp 0xa1e8
movq %rax, %rbx
jmp 0xa1ed
movq %rax, %rbx
jmp 0xa1e1
movq %rax, %rbx
leaq -0xe0(%rbp), %rdi
callq 0x3368
leaq -0x100(%rbp), %rdi
callq 0x3368
movq %rbx, %rdi
callq 0x3310