// File: /workspace/github_cpp_makefile_star2_O1/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 0x16bc8(%rip), %rdi     # 0x242a0
leaq 0xed90(%rip), %rsi      # 0x1c46f
callq 0x30b0
testl %eax, %eax
je 0xd787
leaq -0xe8(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x16ba2(%rip), %rsi     # 0x242a0
movq 0x16ba3(%rip), %rdx     # 0x242a8
addq %rsi, %rdx
leaq -0xf8(%rbp), %rbx
movq %rbx, %rdi
callq 0x16d2e
movq %rbx, %rdi
callq 0x6087
movl %eax, %ebx
movq -0xf8(%rbp), %rdi
cmpq %r15, %rdi
je 0xd73c
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x31d0
callq 0x5790
leaq -0x98(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x15b5a
movl %ebx, 0x18(%r15)
movq -0x38(%rbp), %rdi
movq %r15, %rsi
callq 0x19a74
movq -0x98(%rbp), %rdi
testq %rdi, %rdi
je 0xd983
movq -0x88(%rbp), %rsi
subq %rdi, %rsi
callq 0x31d0
jmp 0xd983
movq %rbx, -0x30(%rbp)
movq 0x8(%r14), %rax
subq (%r14), %rax
movq 0x8(%r12), %rcx
subq (%r12), %rcx
cmpq %rcx, %rax
jb 0xd7ae
leaq 0xf25a(%rip), %rdi      # 0x1ca01
xorl %eax, %eax
callq 0x1585f
callq 0x5790
movq 0x8(%r14), %rsi
movq %rsi, %r13
subq (%r14), %r13
movl $0x0, -0x98(%rbp)
cmpq 0x10(%r14), %rsi
je 0xd7dd
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%r14)
jmp 0xd7ec
leaq -0x98(%rbp), %rdx
movq %r14, %rdi
callq 0x18f44
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 0xd81f
cmpl %ecx, %eax
jl 0xd82e
leaq 0xf20c(%rip), %rdi      # 0x1ca1e
xorl %eax, %eax
callq 0x1585f
movq -0x30(%rbp), %rsi
jmp 0xd82e
movq (%rsi), %rcx
cmpl (%rcx,%r13), %eax
jl 0xd82e
incl %eax
movl %eax, (%rcx,%r13)
movq %r12, %rdi
movq %r14, %rdx
movq -0x38(%rbp), %rcx
callq 0xd6b0
leaq 0x16a5c(%rip), %rdi     # 0x242a0
leaq 0xe9c2(%rip), %rsi      # 0x1c20d
callq 0x30b0
testl %eax, %eax
je 0xd8e6
leaq -0x68(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq -0x78(%rbp), %r15
movq %r15, %rdi
leaq 0xe99b(%rip), %rsi      # 0x1c209
leaq 0xe995(%rip), %rdx      # 0x1c20a
callq 0x16dc8
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq %rbx, %rdi
leaq 0xf1a8(%rip), %rsi      # 0x1ca34
leaq 0xf1ab(%rip), %rdx      # 0x1ca3e
callq 0x16dc8
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5d07
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0xd8bc
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0xd8d5
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x31d0
callq 0x5790
movq (%r14), %rax
incl (%rax,%r13)
jmp 0xd7f0
addq $-0x4, 0x8(%r14)
leaq -0xc8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0xe910(%rip), %rsi      # 0x1c20d
leaq 0xe90a(%rip), %rdx      # 0x1c20e
leaq -0xd8(%rbp), %rdi
callq 0x16dc8
leaq -0xa8(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0xf112(%rip), %rsi      # 0x1ca34
leaq 0xf115(%rip), %rdx      # 0x1ca3e
leaq -0xb8(%rbp), %rdi
callq 0x16dc8
leaq -0xd8(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
callq 0x5d07
movq -0xb8(%rbp), %rdi
cmpq %r15, %rdi
je 0xd963
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0xd8(%rbp), %rdi
cmpq %r14, %rdi
je 0xd97e
movq -0xc8(%rbp), %rsi
incq %rsi
callq 0x31d0
callq 0x5790
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 0xd9b8
movq -0xa8(%rbp), %rsi
incq %rsi
callq 0x31d0
jmp 0xd9b8
movq %rax, %rbx
movq -0xd8(%rbp), %rdi
cmpq %r14, %rdi
je 0xda3a
movq -0xc8(%rbp), %rsi
jmp 0xda32
movq %rax, %rbx
movq -0x98(%rbp), %rdi
testq %rdi, %rdi
je 0xda3a
movq -0x88(%rbp), %rsi
subq %rdi, %rsi
jmp 0xda35
movq %rax, %rbx
movq -0xf8(%rbp), %rdi
cmpq %r15, %rdi
je 0xda3a
movq -0xe8(%rbp), %rsi
jmp 0xda32
movq %rax, %rbx
jmp 0xda21
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0xda21
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x31d0
movq -0x78(%rbp), %rdi
leaq -0x68(%rbp), %rax
cmpq %rax, %rdi
je 0xda3a
movq -0x68(%rbp), %rsi
incq %rsi
callq 0x31d0
movq %rbx, %rdi
callq 0x3320