// File: /workspace/github_cpp_makefile_star2_O2/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, 0x8(%rsp)
leaq 0x60(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movq %rsi, %r14
movq %rdi, %r15
movb $0x0, (%rax)
movq 0x88(%rdi), %rsi
leaq 0x170(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x22d0
leaq 0x50(%rsp), %rsi
leaq 0x110(%rsp), %rbp
leaq 0xf0(%rsp), %r12
movq %r14, (%rsp)
leaq 0x170(%rsp), %rdi
callq 0x2040
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x42d7
movq %r15, %rdi
leaq 0x50(%rsp), %rbx
movq %rbx, %rsi
callq 0x4396
movq %rbx, %rsi
testb %al, %al
je 0x40af
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
andq $0x0, 0x18(%rsp)
xorl %ecx, %ecx
movb %cl, 0x20(%rsp)
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
andq $0x0, 0x38(%rsp)
movb %cl, 0x40(%rsp)
leaq 0x130(%rsp), %rbx
movq %rbx, %rdi
callq 0x2230
leaq 0x70(%rsp), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x43b2
movq %rbx, %rdi
callq 0x2308
movq %rbp, %rdi
movq %r15, %rsi
leaq 0x50(%rsp), %rdx
callq 0x4b24
movq %r12, %rdi
movq %rbp, %rsi
callq 0x2230
movq %r15, %rdi
movq %r12, %rsi
callq 0x4d56
movl %eax, %ebx
movq %r12, %rdi
callq 0x2308
testb %bl, %bl
je 0x4184
leaq 0x10(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x20f0
leaq 0x90(%rsp), %rsi
jmp 0x419b
leaq 0x10(%rsp), %rdi
leaq 0x90(%rsp), %rsi
callq 0x20f0
leaq 0x70(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x20f0
leaq 0x150(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
pushq $0x1
popq %rdx
pushq $-0x1
popq %rcx
callq 0x21e0
movq %rbp, %r12
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x2210
movq %rbx, %rdi
callq 0x2308
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
callq 0x4734
movl (%rax), %ebx
movq %r14, %rdi
leaq 0x30(%rsp), %rsi
callq 0x4734
movl (%rax), %ebp
leaq 0xd0(%rsp), %rdi
movq %r12, %rsi
callq 0x2230
movq %r15, %rdi
leaq 0xd0(%rsp), %r13
movq %r13, %rsi
callq 0x4d72
movl %eax, %r14d
movq %r13, %rdi
callq 0x2308
testb %r14b, %r14b
je 0x4246
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x4734
movq (%rsp), %r14
movl (%rax), %ecx
movq %r15, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x4d8e
jmp 0x429c
leaq 0xb0(%rsp), %rdi
movq %r12, %rsi
callq 0x2230
movq %r15, %rdi
leaq 0xb0(%rsp), %r13
movq %r13, %rsi
callq 0x4de6
movl %eax, %r14d
movq %r13, %rdi
callq 0x2308
testb %r14b, %r14b
je 0x4300
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x4734
movq (%rsp), %r14
movl (%rax), %ecx
movq %r15, %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x4e02
movq %r12, %rbp
movq %r12, %rdi
callq 0x2308
leaq 0x70(%rsp), %rdi
callq 0x4530
leaq 0x30(%rsp), %rdi
callq 0x2308
leaq 0x10(%rsp), %rdi
callq 0x2308
leaq 0x50(%rsp), %rsi
leaq 0xf0(%rsp), %r12
jmp 0x40af
leaq 0x170(%rsp), %rdi
callq 0x2060
leaq 0x50(%rsp), %rdi
callq 0x2308
addq $0x378, %rsp            # imm = 0x378
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x6cd1(%rip), %rdi      # 0xafd8
leaq 0x2ddb(%rip), %rsi      # 0x70e9
callq 0x21b0
pushq $0x1
popq %rdi
callq 0x2200
movq %rax, %rbx
jmp 0x4384
jmp 0x4349
movq %rax, %rbx
jmp 0x4363
movq %rax, %rbx
jmp 0x4359
movq %rax, %rbx
leaq 0x130(%rsp), %rdi
callq 0x2308
jmp 0x4363
jmp 0x4349
jmp 0x4349
movq %rax, %rbx
jmp 0x4377
jmp 0x4349
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x2308
leaq 0x70(%rsp), %rdi
callq 0x4530
leaq 0x30(%rsp), %rdi
callq 0x2308
leaq 0x10(%rsp), %rdi
callq 0x2308
leaq 0x170(%rsp), %rdi
callq 0x2060
leaq 0x50(%rsp), %rdi
callq 0x2308
movq %rbx, %rdi
callq 0x22b0