// File: /workspace/github_cpp_makefile_star2_O3/sighingnow[P]compile-pascal/pl0_opt.cpp
// Function: BasicBlock::buildDAG()
void BasicBlock::buildDAG() {
    size_t p = this->s;
    int rd, rs, rt, t;
    for (p = 1; code[p].op != "cmp" && code[p].op != "goto" && code[p].op != "call"
            && code[p].op != "loadret" && code[p].op != "exit" && code[p].op != "endproc"; ++p)
    {
        if (code[p].op == "*" || code[p].op == "/" || code[p].op == "%"
                || code[p].op == "+" || code[p].op == "-"
                || code[p].op == "cmp"
                || code[p].op == "=[]" || code[p].op == "[]=") {
            rs = findNode(code[p].rs);
            setMap(code[p].rs, rs);
            rt = findNode(code[p].rt);
            setMap(code[p].rt, rt);
            rd = findNode(code[p].op, code[p].rd, rs, rt);
            setMap(code[p].rd, rd);
        }
        else if (code[p].op == "=") {
            // rs = findNode(code[p].rs);
            // setMap(code[p].rs, rs);
            // setMap(code[p].rd, rs);
            code[p].rt = new Value(0, "integer");
            rs = findNode(code[p].rs);
            setMap(code[p].rs, rs);
            rt = findNode(code[p].rt);
            setMap(code[p].rt, rt);
            rd = findNode(code[p].op, code[p].rd, rs, rt);
            setMap(code[p].rd, rd);
        }
        else if (code[p].op == "write_s") {
            IOBuf.emplace_back(make_pair(p, code[p]));
        }
        else if (code[p].op == "write_e") {
            rd = findNode(code[p].rd);
            t = G.size();
            G.emplace_back(DAGNode(t, "write_e", new Value("~write_e", "cmd"), rd, p));
            G[rd].moreFa();
        }
        else if (code[p].op == "read") {
            rd = findNode(code[p].rd);
            t = G.size();
            G.emplace_back(DAGNode(t, "read", code[p].rd, rd, p));
            G[rd].moreFa();
            setMap(code[p].rd, t);
        }
    }
    this->t = p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdi, %rbx
movq $0x1, 0x8(%rsp)
movq 0x18(%rdi), %rdi
addq $0x50, %rdi
leaq 0x18c02(%rip), %rsi     # 0x92a9e
callq 0x50c0
testl %eax, %eax
je 0x7a717
leaq 0x60(%rbx), %rax
movq %rax, 0x20(%rsp)
leaq 0xa8(%rbx), %rax
movq %rax, 0xe8(%rsp)
leaq 0xb8(%rsp), %r15
leaq 0x100(%rsp), %r13
leaq 0x18bca(%rip), %r12     # 0x92aa2
leaq 0xf0(%rsp), %r14
leaq 0x48(%rsp), %rbp
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0x50c0
testl %eax, %eax
je 0x7a711
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x17b48(%rip), %rsi     # 0x91a66
callq 0x50c0
testl %eax, %eax
je 0x7a711
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x18a65(%rip), %rsi     # 0x929a8
callq 0x50c0
testl %eax, %eax
je 0x7a711
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x189ce(%rip), %rsi     # 0x92936
callq 0x50c0
testl %eax, %eax
je 0x7a711
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x189ae(%rip), %rsi     # 0x9293b
callq 0x50c0
testl %eax, %eax
je 0x7a711
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x19154(%rip), %rsi     # 0x93106
callq 0x50c0
testl %eax, %eax
je 0x7a250
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x18d0f(%rip), %rsi     # 0x92ce6
callq 0x50c0
testl %eax, %eax
je 0x7a250
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x18cec(%rip), %rsi     # 0x92ce8
callq 0x50c0
testl %eax, %eax
je 0x7a250
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x18b77(%rip), %rsi     # 0x92b98
callq 0x50c0
testl %eax, %eax
je 0x7a250
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x19059(%rip), %rsi     # 0x9309f
callq 0x50c0
testl %eax, %eax
je 0x7a250
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x18a33(%rip), %rsi     # 0x92a9e
callq 0x50c0
testl %eax, %eax
je 0x7a250
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x18b96(%rip), %rsi     # 0x92c26
callq 0x50c0
testl %eax, %eax
je 0x7a250
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x189c3(%rip), %rsi     # 0x92a78
callq 0x50c0
testl %eax, %eax
je 0x7a250
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x1703e(%rip), %rsi     # 0x91118
callq 0x50c0
testl %eax, %eax
je 0x7a3a3
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x18ab7(%rip), %rsi     # 0x92bb6
callq 0x50c0
testl %eax, %eax
je 0x7a539
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x18bc7(%rip), %rsi     # 0x92ceb
callq 0x50c0
movq 0x8(%rsp), %rcx
movq 0x18(%rbx), %rdi
leaq (%rcx,%rcx,4), %rcx
shlq $0x4, %rcx
testl %eax, %eax
je 0x7a583
addq %rcx, %rdi
leaq 0x16fe0(%rip), %rsi     # 0x9112c
callq 0x50c0
testl %eax, %eax
jne 0x7a371
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x20(%rcx,%rax), %rsi
movq %rbx, %rdi
callq 0x7a8a8
movl %eax, %ebp
movq 0x68(%rbx), %r15
subq 0x60(%rbx), %r15
leaq 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
leaq 0x68(%rsp), %rdi
leaq 0x16f95(%rip), %rsi     # 0x9112c
leaq 0x16f92(%rip), %rdx     # 0x91130
callq 0x253d0
shrq $0x3, %r15
imull $0xba2e8ba3, %r15d, %esi # imm = 0xBA2E8BA3
movq 0x8(%rsp), %r9
movq 0x18(%rbx), %rax
leaq (%r9,%r9,4), %rcx
shlq $0x4, %rcx
movq 0x20(%rax,%rcx), %rcx
leaq 0x110(%rsp), %r15
movq %r15, %rdi
movl %esi, 0x14(%rsp)
leaq 0x68(%rsp), %rdx
movl %ebp, 0x18(%rsp)
movl %ebp, %r8d
callq 0x7c47c
movq 0x20(%rsp), %rdi
movq %r15, %rsi
callq 0x7c442
movq %r15, %rdi
leaq 0xb8(%rsp), %r15
callq 0x7c4fc
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x7a21d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5260
movslq 0x18(%rsp), %rax
movq 0x60(%rbx), %rcx
imulq $0x58, %rax, %rax
incl 0x4(%rcx,%rax)
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x20(%rcx,%rax), %rsi
movq %rbx, %rdi
movl 0x14(%rsp), %edx
jmp 0x7a52f
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x28(%rcx,%rax), %rsi
movq %rbx, %rdi
callq 0x7a8a8
movl %eax, %ebp
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x28(%rcx,%rax), %rsi
movq %rbx, %rdi
movl %ebp, %edx
callq 0x7a964
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x30(%rcx,%rax), %rsi
movq %rbx, %rdi
callq 0x7a8a8
movl %eax, %r15d
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x30(%rcx,%rax), %rsi
movq %rbx, %rdi
movl %r15d, %edx
callq 0x7a964
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq %r13, 0xf0(%rsp)
movq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x351dc
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x20(%rcx,%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %ecx
movl %r15d, %r8d
callq 0x7aa72
movl %eax, %ebp
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x7a344
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x20(%rcx,%rax), %rsi
movq %rbx, %rdi
movl %ebp, %edx
callq 0x7a964
leaq 0xb8(%rsp), %r15
leaq 0x48(%rsp), %rbp
movq 0x8(%rsp), %rax
incq %rax
movq %rax, 0x8(%rsp)
leaq (%rax,%rax,4), %rdi
shlq $0x4, %rdi
addq 0x18(%rbx), %rdi
leaq 0x1870d(%rip), %rsi     # 0x92a9e
callq 0x50c0
testl %eax, %eax
jne 0x79ee5
jmp 0x7a711
movl $0x48, %edi
callq 0x5250
movq %rax, %r12
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq %rbp, %rdi
leaq 0x16d4b(%rip), %rsi     # 0x9110f
leaq 0x16d4b(%rip), %rdx     # 0x91116
callq 0x253d0
movq %r12, %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x75d42
movq 0x8(%rsp), %rcx
movq 0x18(%rbx), %rax
leaq (%rcx,%rcx,4), %rdx
shlq $0x4, %rdx
movq %r12, 0x30(%rax,%rdx)
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rdx
cmpq %rdx, %rdi
je 0x7a418
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x8(%rsp), %rcx
movq 0x18(%rbx), %rax
leaq (%rcx,%rcx,4), %rcx
shlq $0x4, %rcx
movq 0x28(%rax,%rcx), %rsi
movq %rbx, %rdi
callq 0x7a8a8
movl %eax, %edx
movl %eax, 0x18(%rsp)
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x28(%rcx,%rax), %rsi
movq %rbx, %rdi
callq 0x7a964
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x30(%rcx,%rax), %rsi
movq %rbx, %rdi
callq 0x7a8a8
movl %eax, %ebp
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x30(%rcx,%rax), %rsi
movq %rbx, %rdi
movl %ebp, %edx
callq 0x7a964
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq %r15, 0xa8(%rsp)
movq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %r12
movq %r12, %rdi
callq 0x351dc
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x20(%rcx,%rax), %rdx
movq %rbx, %rdi
movq %r12, %rsi
movl 0x18(%rsp), %ecx
movl %ebp, %r8d
callq 0x7aa72
leaq 0x185ad(%rip), %r12     # 0x92aa2
movl %eax, %ebp
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7a514
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x8(%rsp), %rax
movq 0x18(%rbx), %rcx
leaq (%rax,%rax,4), %rax
shlq $0x4, %rax
movq 0x20(%rcx,%rax), %rsi
movq %rbx, %rdi
movl %ebp, %edx
callq 0x7a964
jmp 0x7a36c
movq 0x8(%rsp), %rax
leaq (%rax,%rax,4), %rdx
shlq $0x4, %rdx
addq 0x18(%rbx), %rdx
leaq 0x110(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x7c7aa
movq 0xe8(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0x7c3d2
leaq 0x110(%rsp), %rdi
callq 0x7c40e
jmp 0x7a371
movq 0x20(%rdi,%rcx), %rsi
movq %rbx, %rdi
callq 0x7a8a8
movl %eax, 0x14(%rsp)
movq 0x68(%rbx), %r15
subq 0x60(%rbx), %r15
leaq 0x98(%rsp), %rax
movq %rax, 0x88(%rsp)
leaq 0x88(%rsp), %rdi
leaq 0x18730(%rip), %rsi     # 0x92ceb
leaq 0x18730(%rip), %rdx     # 0x92cf2
callq 0x253d0
movl $0x48, %edi
callq 0x5250
movq %rax, 0x18(%rsp)
leaq 0xc8(%rsp), %rbp
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x186f6(%rip), %rsi     # 0x92cea
leaq 0x186f7(%rip), %rdx     # 0x92cf2
callq 0x253d0
leaq 0xd8(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq %rbp, %rdi
leaq 0x186d9(%rip), %rsi     # 0x92cf3
leaq 0x186d5(%rip), %rdx     # 0x92cf6
callq 0x253d0
movq %rbp, %rdx
movb $0x1, %bpl
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x7653e
leaq 0x110(%rsp), %rdi
shrq $0x3, %r15
imull $0xba2e8ba3, %r15d, %esi # imm = 0xBA2E8BA3
movl 0x8(%rsp), %r9d
xorl %ebp, %ebp
leaq 0x88(%rsp), %rdx
movq 0x18(%rsp), %rcx
movl 0x14(%rsp), %r8d
movq %rdi, %r15
callq 0x7c47c
movq %r15, %rsi
movq 0x20(%rsp), %rdi
callq 0x7c442
movq %r15, %rdi
callq 0x7c4fc
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
leaq 0xb8(%rsp), %r15
leaq 0x48(%rsp), %rbp
je 0x7a6b6
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x7a6d2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x7a6f7
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5260
movslq 0x14(%rsp), %rax
movq 0x20(%rsp), %rcx
movq (%rcx), %rcx
imulq $0x58, %rax, %rax
incl 0x4(%rcx,%rax)
jmp 0x7a371
movl 0x8(%rsp), %eax
jmp 0x7a71c
movl $0x1, %eax
movl %eax, 0x14(%rbx)
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x7c4fc
jmp 0x7a746
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x7a8a0
movq 0x78(%rsp), %rsi
jmp 0x7a898
jmp 0x7a7a4
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x7c4fc
xorl %ebp, %ebp
jmp 0x7a7c4
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x7a80a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x7a80a
movq %rax, %rbx
jmp 0x7a80a
movq %rax, %rbx
jmp 0x7a819
movq %rax, %rbx
jmp 0x7a8a0
movq %rax, %rbx
leaq 0x110(%rsp), %rdi
callq 0x7c40e
jmp 0x7a8a0
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x7a7e9
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x7a805
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5260
testb %bpl, %bpl
je 0x7a819
movl $0x48, %esi
movq 0x18(%rsp), %rdi
callq 0x5260
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x7a8a0
movq 0x98(%rsp), %rsi
jmp 0x7a898
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r15, %rdi
je 0x7a8a0
movq 0xb8(%rsp), %rsi
jmp 0x7a898
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x7a876
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x7a876
movq %rax, %rbx
movl $0x48, %esi
movq %r12, %rdi
jmp 0x7a89b
movq %rax, %rbx
movq 0xf0(%rsp), %rdi
cmpq %r13, %rdi
je 0x7a8a0
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x5260
movq %rbx, %rdi
callq 0x53d0