// File: /workspace/github_cpp_makefile_star2_O1/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 0x4d4b
movl $0x2, %ecx
leaq 0x8(%rsp), %rdi
leaq 0x26c1(%rip), %rsi      # 0x7067
xorl %edx, %edx
callq 0x2290
cmpq $-0x1, %rax
je 0x4952
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 0x3ed2
leaq 0x110(%rsp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x4e9c
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x4a46
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rbp, %rdi
movq %r15, %rsi
leaq 0x8(%rsp), %rdx
callq 0x56a2
leaq 0x100(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0xf0(%rsp), %rdi
callq 0x3ed2
movl $0x1, %ecx
leaq 0xf0(%rsp), %rdi
leaq 0x25de(%rip), %rsi      # 0x7072
xorl %edx, %edx
callq 0x2290
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x4ac3
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x21a0
cmpq $-0x1, %rbx
je 0x4ae5
leaq 0x48(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0x20c0
leaq 0x130(%rsp), %rsi
jmp 0x4aff
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 0x4b58
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %r13, %rdi
leaq 0x48(%rsp), %rsi
callq 0x531c
movl (%rax), %ebx
movq %r13, %rdi
leaq 0x70(%rsp), %rsi
callq 0x531c
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 0x3ed2
movl $0x1, %ecx
leaq 0xd0(%rsp), %rdi
leaq 0x2585(%rip), %rsi      # 0x713a
xorl %edx, %edx
callq 0x2290
movq %rax, %r14
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x4be4
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x21a0
cmpq $-0x1, %r14
je 0x4c0b
movq 0x68(%rsp), %rdi
movq %rbp, %rsi
callq 0x531c
movl (%rax), %ecx
movq %r15, %rdi
movl %ebx, %esi
movl %r12d, %edx
callq 0x585c
jmp 0x4c9e
leaq 0xc0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0x3ed2
movl $0x1, %ecx
leaq 0xb0(%rsp), %rdi
leaq 0x24f3(%rip), %rsi      # 0x713c
xorl %edx, %edx
callq 0x2290
movq %rax, %r14
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x4c78
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x21a0
cmpq $-0x1, %r14
je 0x4d86
movq 0x68(%rsp), %rdi
movq %rbp, %rsi
callq 0x531c
movl (%rax), %ecx
movq %r15, %rdi
movl %ebx, %esi
movl %r12d, %edx
callq 0x58e0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4cba
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x4cdf
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x4d04
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x4d26
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4952
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21a0
jmp 0x4952
leaq 0x170(%rsp), %rdi
callq 0x2060
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4d74
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 0x524b(%rip), %rdi      # 0x9fd8
leaq 0x2371(%rip), %rsi      # 0x7105
callq 0x2180
movl $0x1, %edi
callq 0x21f0
movq %rax, %rbx
leaq 0x18(%rsp), %r14
jmp 0x4e7c
jmp 0x4e00
movq %rax, %rbx
leaq 0x18(%rsp), %r14
jmp 0x4e24
jmp 0x4e00
jmp 0x4e00
movq %rax, %rbx
jmp 0x4ded
movq %rax, %rbx
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x4ded
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x18(%rsp), %r14
jmp 0x4e31
jmp 0x4e00
movq %rax, %rbx
leaq 0x18(%rsp), %r14
jmp 0x4e6f
movq %rax, %rbx
leaq 0x18(%rsp), %r14
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x4e24
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x110(%rsp), %rdi
callq 0x50da
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x4e53
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x21a0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4e6f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21a0
leaq 0x170(%rsp), %rdi
callq 0x2060
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4e93
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x22b0
nop