// File: /workspace/github_cpp_makefile_star2_O3/yuanboli233[P]interdyck_graph_reduce/./SummaryEdge.h
// Function: SummaryGraph::readEdges(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned int, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, unsigned int>>>&, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned int, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, unsigned int>>>&)
void readEdges(unordered_map<string, unsigned>& str2nid, unordered_map<string, unsigned>& str2eid){
        string line;
        ifstream in(filename.c_str(), ifstream::in);
        while(getline(in, line)){
            if(!isEdge(line)){
                continue;
            }
            string from, to;
            pair<string, string> nodes = getNodePair(line);
            string edgeLabel = getEdgeLabel(line);

            if(isOpen(edgeLabel)){
                from = nodes.first;
                to = nodes.second;
            }else{
                from = nodes.second;
                to = nodes.first;
            }
            edgeLabel = edgeLabel.substr(1);

            unsigned fromid = str2nid[from];
            unsigned toid = str2nid[to];

            if(isBracket(edgeLabel)){
                insertBracketEdge(fromid, toid, str2eid[edgeLabel]);
            }else if(isParenthesis(edgeLabel)){
                insertParenthesisEdge(fromid, toid, str2eid[edgeLabel]);
            }else{
                cout << "Error, the edge is neither bracket nor parenthesis.\n";
                exit(1);
            }

        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x378, %rsp            # imm = 0x378
movq %rdx, 0x68(%rsp)
movq %rsi, %r13
movq %rdi, %r15
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x88(%rdi), %rsi
leaq 0x170(%rsp), %rdi
movl $0x8, %edx
callq 0x22d0
leaq 0x28(%rsp), %rbp
movq 0x170(%rsp), %rax
movq -0x18(%rax), %rdi
leaq 0x170(%rsp), %rbx
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2170
movsbl %al, %edx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x22e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4c51
movl $0x2, %ecx
leaq 0x8(%rsp), %rdi
leaq 0x279f(%rip), %rsi      # 0x704b
xorl %edx, %edx
callq 0x2290
cmpq $-0x1, %rax
je 0x4858
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x50(%rsp)
movb %cl, 0x58(%rsp)
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq %rcx, 0x78(%rsp)
movb %cl, 0x80(%rsp)
leaq 0xa0(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rbx
movq %rbx, %rdi
callq 0x3dde
leaq 0x110(%rsp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x4da2
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x494c
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rbp, %rdi
movq %r15, %rsi
leaq 0x8(%rsp), %rdx
callq 0x55a4
leaq 0x100(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf0(%rsp), %rdi
callq 0x3dde
movl $0x1, %ecx
leaq 0xf0(%rsp), %rdi
leaq 0x26bc(%rip), %rsi      # 0x7056
xorl %edx, %edx
callq 0x2290
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x49c9
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x21a0
cmpq $-0x1, %rbx
je 0x49eb
leaq 0x48(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0x20c0
leaq 0x130(%rsp), %rsi
jmp 0x4a05
leaq 0x48(%rsp), %rdi
leaq 0x130(%rsp), %rsi
callq 0x20c0
leaq 0x110(%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x20c0
movl $0x1, %edx
leaq 0x150(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
movq $-0x1, %rcx
callq 0x21c0
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x2200
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x4a5e
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %r13, %rdi
leaq 0x48(%rsp), %rsi
callq 0x5228
movl (%rax), %ebx
movq %r13, %rdi
leaq 0x70(%rsp), %rsi
callq 0x5228
movl (%rax), %r12d
leaq 0xe0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0x3dde
movl $0x1, %ecx
leaq 0xd0(%rsp), %rdi
leaq 0x2663(%rip), %rsi      # 0x711e
xorl %edx, %edx
callq 0x2290
movq %rax, %r14
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x4aea
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x21a0
cmpq $-0x1, %r14
je 0x4b11
movq 0x68(%rsp), %rdi
movq %rbp, %rsi
callq 0x5228
movl (%rax), %ecx
movq %r15, %rdi
movl %ebx, %esi
movl %r12d, %edx
callq 0x5766
jmp 0x4ba4
leaq 0xc0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0x3dde
movl $0x1, %ecx
leaq 0xb0(%rsp), %rdi
leaq 0x25d1(%rip), %rsi      # 0x7120
xorl %edx, %edx
callq 0x2290
movq %rax, %r14
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x4b7e
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x21a0
cmpq $-0x1, %r14
je 0x4c8c
movq 0x68(%rsp), %rdi
movq %rbp, %rsi
callq 0x5228
movl (%rax), %ecx
movq %r15, %rdi
movl %ebx, %esi
movl %r12d, %edx
callq 0x57ea
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4bc0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x4be5
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x4c0a
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x4c2c
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4858
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x4858
leaq 0x170(%rsp), %rdi
callq 0x2060
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4c7a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
addq $0x378, %rsp            # imm = 0x378
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5345(%rip), %rdi      # 0x9fd8
leaq 0x244f(%rip), %rsi      # 0x70e9
callq 0x2180
movl $0x1, %edi
callq 0x21f0
movq %rax, %rbx
leaq 0x18(%rsp), %r14
jmp 0x4d82
jmp 0x4d06
movq %rax, %rbx
leaq 0x18(%rsp), %r14
jmp 0x4d2a
jmp 0x4d06
jmp 0x4d06
movq %rax, %rbx
jmp 0x4cf3
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x4cf3
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x18(%rsp), %r14
jmp 0x4d37
jmp 0x4d06
movq %rax, %rbx
leaq 0x18(%rsp), %r14
jmp 0x4d75
movq %rax, %rbx
leaq 0x18(%rsp), %r14
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4d2a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x110(%rsp), %rdi
callq 0x4fe0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x4d59
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4d75
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x170(%rsp), %rdi
callq 0x2060
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4d99
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x22b0
nop