// File: /workspace/github_cpp_makefile_star2_O3/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, %rbx
movq %rdi, %r12
leaq 0x15d19(%rip), %rdi     # 0x232a0
leaq 0xdee1(%rip), %rsi      # 0x1b46f
callq 0x30b0
testl %eax, %eax
je 0xd636
leaq -0xe8(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x15cf3(%rip), %rsi     # 0x232a0
movq 0x15cf4(%rip), %rdx     # 0x232a8
addq %rsi, %rdx
leaq -0xf8(%rbp), %rbx
movq %rbx, %rdi
callq 0x16942
movq %rbx, %rdi
callq 0x5fc6
movl %eax, %ebx
movq -0xf8(%rbp), %rdi
cmpq %r15, %rdi
je 0xd5eb
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x31d0
callq 0x572d
leaq -0x98(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x1576c
movl %ebx, 0x18(%r15)
movq -0x38(%rbp), %rdi
movq %r15, %rsi
callq 0x19652
movq -0x98(%rbp), %rdi
testq %rdi, %rdi
je 0xd832
movq -0x88(%rbp), %rsi
subq %rdi, %rsi
callq 0x31d0
jmp 0xd832
movq %rbx, -0x30(%rbp)
movq 0x8(%r14), %rax
subq (%r14), %rax
movq 0x8(%r12), %rcx
subq (%r12), %rcx
cmpq %rcx, %rax
jb 0xd65d
leaq 0xe3ab(%rip), %rdi      # 0x1ba01
xorl %eax, %eax
callq 0x1546f
callq 0x572d
movq 0x8(%r14), %rsi
movq %rsi, %r13
subq (%r14), %r13
movl $0x0, -0x98(%rbp)
cmpq 0x10(%r14), %rsi
je 0xd68c
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r14)
jmp 0xd69b
leaq -0x98(%rbp), %rdx
movq %r14, %rdi
callq 0x18b46
leaq -0x58(%rbp), %rbx
movq -0x30(%rbp), %rsi
movq (%r12), %rax
movl (%rax,%r13), %ecx
movq (%r14), %rax
movl (%rax,%r13), %eax
testl %ecx, %ecx
je 0xd6ce
cmpl %ecx, %eax
jl 0xd6dd
leaq 0xe35d(%rip), %rdi      # 0x1ba1e
xorl %eax, %eax
callq 0x1546f
movq -0x30(%rbp), %rsi
jmp 0xd6dd
movq (%rsi), %rcx
cmpl (%rcx,%r13), %eax
jl 0xd6dd
incl %eax
movl %eax, (%rcx,%r13)
movq %r12, %rdi
movq %r14, %rdx
movq -0x38(%rbp), %rcx
callq 0xd55f
leaq 0x15bad(%rip), %rdi     # 0x232a0
leaq 0xdb13(%rip), %rsi      # 0x1b20d
callq 0x30b0
testl %eax, %eax
je 0xd795
leaq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x78(%rbp), %r15
movq %r15, %rdi
leaq 0xdaec(%rip), %rsi      # 0x1b209
leaq 0xdae6(%rip), %rdx      # 0x1b20a
callq 0x169e0
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq %rbx, %rdi
leaq 0xe2f9(%rip), %rsi      # 0x1ba34
leaq 0xe2fc(%rip), %rdx      # 0x1ba3e
callq 0x169e0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5c40
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0xd76b
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0xd784
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x31d0
callq 0x572d
movq (%r14), %rax
incl (%rax,%r13)
jmp 0xd69f
addq $-0x4, 0x8(%r14)
leaq -0xc8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xda61(%rip), %rsi      # 0x1b20d
leaq 0xda5b(%rip), %rdx      # 0x1b20e
leaq -0xd8(%rbp), %rdi
callq 0x169e0
leaq -0xa8(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xe263(%rip), %rsi      # 0x1ba34
leaq 0xe266(%rip), %rdx      # 0x1ba3e
leaq -0xb8(%rbp), %rdi
callq 0x169e0
leaq -0xd8(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x5c40
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0xd812
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0xd8(%rbp), %rdi
cmpq %r14, %rdi
je 0xd82d
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x31d0
callq 0x572d
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0xd867
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x31d0
jmp 0xd867
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
cmpq %r14, %rdi
je 0xd8e9
movq -0xc8(%rbp), %rsi
jmp 0xd8e1
movq %rax, %rbx
movq -0x98(%rbp), %rdi
testq %rdi, %rdi
je 0xd8e9
movq -0x88(%rbp), %rsi
subq %rdi, %rsi
jmp 0xd8e4
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
cmpq %r15, %rdi
je 0xd8e9
movq -0xe8(%rbp), %rsi
jmp 0xd8e1
movq %rax, %rbx
jmp 0xd8d0
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0xd8d0
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0xd8e9
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320