// File: 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
movq %rsp, %rbp
subq $0x400, %rsp            # imm = 0x400
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x3a0(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x3310
movq -0x3a0(%rbp), %rdi
addq $0x88, %rdi
callq 0x30d0
movq %rax, %rsi
leaq -0x240(%rbp), %rdi
movl $0x8, %edx
callq 0x33c0
jmp 0x9844
jmp 0x9846
leaq -0x240(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3070
movq %rax, -0x3a8(%rbp)
jmp 0x985f
movq -0x3a8(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x32d0
movb %al, -0x3a9(%rbp)
jmp 0x987d
movb -0x3a9(%rbp), %al
testb $0x1, %al
jne 0x988c
jmp 0x9d0d
movq -0x3a0(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x9d90
testb $0x1, %al
jne 0x98d0
jmp 0x9846
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x9d37
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x9d2b
leaq -0x270(%rbp), %rdi
callq 0x3310
leaq -0x290(%rbp), %rdi
callq 0x3310
leaq -0x2f0(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x30e0
jmp 0x98fa
movq -0x3a0(%rbp), %rsi
leaq -0x2d0(%rbp), %rdi
leaq -0x2f0(%rbp), %rdx
callq 0x9dd0
jmp 0x9916
leaq -0x2f0(%rbp), %rdi
callq 0x3408
movq -0x3a0(%rbp), %rsi
leaq -0x310(%rbp), %rdi
leaq -0x38(%rbp), %rdx
callq 0xbcc0
jmp 0x993b
leaq -0x330(%rbp), %rdi
leaq -0x310(%rbp), %rsi
callq 0x30e0
jmp 0x9950
movq -0x3a0(%rbp), %rdi
leaq -0x330(%rbp), %rsi
callq 0xc5c0
movb %al, -0x3aa(%rbp)
jmp 0x996b
leaq -0x330(%rbp), %rdi
callq 0x3408
movb -0x3aa(%rbp), %al
testb $0x1, %al
jne 0x9986
jmp 0x9a40
leaq -0x270(%rbp), %rdi
leaq -0x2d0(%rbp), %rsi
callq 0x3030
jmp 0x999b
leaq -0x2b0(%rbp), %rsi
leaq -0x290(%rbp), %rdi
callq 0x3030
jmp 0x99b0
jmp 0x9a6c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x9cf3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
leaq -0x2f0(%rbp), %rdi
callq 0x3408
jmp 0x9cf3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x9ce7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
jmp 0x9cdb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
leaq -0x330(%rbp), %rdi
callq 0x3408
jmp 0x9cdb
leaq -0x2b0(%rbp), %rsi
leaq -0x270(%rbp), %rdi
callq 0x3030
jmp 0x9a55
leaq -0x290(%rbp), %rdi
leaq -0x2d0(%rbp), %rsi
callq 0x3030
jmp 0x9a6a
jmp 0x9a6c
leaq -0x350(%rbp), %rdi
leaq -0x310(%rbp), %rsi
movl $0x1, %edx
movq $-0x1, %rcx
callq 0x3230
jmp 0x9a8d
leaq -0x310(%rbp), %rdi
leaq -0x350(%rbp), %rsi
movq %rsi, -0x3c0(%rbp)
callq 0x32b0
movq -0x3c0(%rbp), %rdi
callq 0x3408
movq -0x10(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0xa0a0
movq %rax, -0x3b8(%rbp)
jmp 0x9acc
movq -0x3b8(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x354(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x290(%rbp), %rsi
callq 0xa0a0
movq %rax, -0x3c8(%rbp)
jmp 0x9af4
movq -0x3c8(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x358(%rbp)
leaq -0x378(%rbp), %rdi
leaq -0x310(%rbp), %rsi
callq 0x30e0
jmp 0x9b18
movq -0x3a0(%rbp), %rdi
leaq -0x378(%rbp), %rsi
callq 0xc600
movb %al, -0x3c9(%rbp)
jmp 0x9b33
leaq -0x378(%rbp), %rdi
callq 0x3408
movb -0x3c9(%rbp), %al
testb $0x1, %al
jne 0x9b4b
jmp 0x9bc7
movl -0x354(%rbp), %eax
movl %eax, -0x3e0(%rbp)
movl -0x358(%rbp), %eax
movl %eax, -0x3dc(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x310(%rbp), %rsi
callq 0xa0a0
movq %rax, -0x3d8(%rbp)
jmp 0x9b7c
movl -0x3dc(%rbp), %edx
movl -0x3e0(%rbp), %esi
movq -0x3a0(%rbp), %rdi
movq -0x3d8(%rbp), %rax
movl (%rax), %ecx
callq 0xc640
jmp 0x9b9f
jmp 0x9ca6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
leaq -0x378(%rbp), %rdi
callq 0x3408
jmp 0x9cdb
leaq -0x398(%rbp), %rdi
leaq -0x310(%rbp), %rsi
callq 0x30e0
jmp 0x9bdc
movq -0x3a0(%rbp), %rdi
leaq -0x398(%rbp), %rsi
callq 0xc6d0
movb %al, -0x3e1(%rbp)
jmp 0x9bf7
leaq -0x398(%rbp), %rdi
callq 0x3408
movb -0x3e1(%rbp), %al
testb $0x1, %al
jne 0x9c0f
jmp 0x9c85
movl -0x354(%rbp), %eax
movl %eax, -0x3f8(%rbp)
movl -0x358(%rbp), %eax
movl %eax, -0x3f4(%rbp)
movq -0x18(%rbp), %rdi
leaq -0x310(%rbp), %rsi
callq 0xa0a0
movq %rax, -0x3f0(%rbp)
jmp 0x9c40
movl -0x3f4(%rbp), %edx
movl -0x3f8(%rbp), %esi
movq -0x3a0(%rbp), %rdi
movq -0x3f0(%rbp), %rax
movl (%rax), %ecx
callq 0xc710
jmp 0x9c63
jmp 0x9ca4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x248(%rbp)
movl %eax, -0x24c(%rbp)
leaq -0x398(%rbp), %rdi
callq 0x3408
jmp 0x9cdb
movq 0x1434c(%rip), %rdi     # 0x1dfd8
leaq 0x9430(%rip), %rsi      # 0x130c3
callq 0x3200
jmp 0x9c9a
movl $0x1, %edi
callq 0x32a0
jmp 0x9ca6
leaq -0x310(%rbp), %rdi
callq 0x3408
leaq -0x2d0(%rbp), %rdi
callq 0xa0f0
leaq -0x290(%rbp), %rdi
callq 0x3408
leaq -0x270(%rbp), %rdi
callq 0x3408
jmp 0x9846
leaq -0x310(%rbp), %rdi
callq 0x3408
leaq -0x2d0(%rbp), %rdi
callq 0xa0f0
leaq -0x290(%rbp), %rdi
callq 0x3408
leaq -0x270(%rbp), %rdi
callq 0x3408
jmp 0x9d2b
leaq -0x240(%rbp), %rdi
callq 0x3090
leaq -0x38(%rbp), %rdi
callq 0x3408
addq $0x400, %rsp            # imm = 0x400
popq %rbp
retq
leaq -0x240(%rbp), %rdi
callq 0x3090
leaq -0x38(%rbp), %rdi
callq 0x3408
movq -0x248(%rbp), %rdi
callq 0x3390
nopl (%rax)