// File: /workspace/github_cpp_makefile_star2_O2/sighingnow[P]compile-pascal/pl0_ast.cpp
// Function: TAC::str[abi:cxx11]() const
std::string TAC::str() const {
    if (op == "call") {
        std::string s = "call " + rd->sv + " (";
        for (auto && a: args) {
            s = s + a.first->str() + (a.second ? " ref, ": ", ");
        }
        s = s + ") " + (rt ? (" -> " + rt->sv) : "");
        return s;
    }
    else{
        return op + " " + (rd ? rd->str() : "") + " " + (rs ? rs->str() : "") + " " + (rt ? rt->str() : "");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rsi, %r13
movq %rdi, %r15
leaq 0x1e309(%rip), %rsi     # 0x59a93
movq %r13, %rdi
callq 0x15c52
testb %al, %al
je 0x3b85c
movq 0x20(%r13), %rdx
addq $0x8, %rdx
leaq 0x1f9fd(%rip), %rsi     # 0x5b1a6
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0xfbb3
leaq 0x1e2db(%rip), %rdx     # 0x59a98
movq %r15, %rbx
movq %r15, %rdi
movq %r14, %rsi
callq 0xfd14
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x5120
movq 0x38(%r13), %rbp
movq %r13, 0x70(%rsp)
movq 0x40(%r13), %r15
leaq 0x10(%rsp), %r12
leaq 0x30(%rsp), %r13
cmpq %r15, %rbp
je 0x3b88e
movq (%rbp), %rsi
movq %r12, %rdi
callq 0x3b720
movq %r13, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x3cc5a
cmpb $0x0, 0x8(%rbp)
leaq 0x1f5b0(%rip), %rdx     # 0x5adcd
leaq 0x1e277(%rip), %rax     # 0x59a9b
cmovneq %rax, %rdx
movq %r14, %rdi
movq %r13, %rsi
callq 0xfd14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x52f0
movq %r14, %rdi
callq 0x5120
movq %r13, %rdi
callq 0x5120
movq %r12, %rdi
callq 0x5120
addq $0x10, %rbp
jmp 0x3b7ef
leaq 0x1fad3(%rip), %rdx     # 0x5b336
leaq 0xf8(%rsp), %rdi
movq %r13, %rsi
callq 0x1def2
movq 0x20(%r13), %r14
testq %r14, %r14
je 0x3b8d2
leaq 0xb8(%rsp), %rdi
movq %r14, %rsi
callq 0x3b720
jmp 0x3b8eb
leaq 0x1e20d(%rip), %rdx     # 0x59aa2
leaq 0x30(%rsp), %rdi
movq %rbx, %r15
movq %rbx, %rsi
callq 0x1def2
movq 0x70(%rsp), %rax
movq 0x30(%rax), %r12
testq %r12, %r12
je 0x3ba24
leaq 0x8(%r12), %rdx
leaq 0x1e1e2(%rip), %rsi     # 0x59aa5
leaq 0x10(%rsp), %rdi
callq 0xfbb3
jmp 0x3ba3d
leaq 0x1fc66(%rip), %rsi     # 0x5b53f
leaq 0xb8(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xfa26
leaq 0xd8(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
callq 0xfda4
leaq 0x1fa27(%rip), %rdx     # 0x5b336
leaq 0x10(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0xfd14
movq 0x28(%r13), %r12
testq %r12, %r12
je 0x3b93c
leaq 0x98(%rsp), %rdi
movq %r12, %rsi
callq 0x3b720
jmp 0x3b955
leaq 0x1fbfc(%rip), %rsi     # 0x5b53f
leaq 0x98(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0xfa26
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0xfda4
leaq 0x1f9c3(%rip), %rdx     # 0x5b336
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xfd14
movq 0x30(%r13), %r13
testq %r13, %r13
je 0x3b99a
leaq 0x78(%rsp), %rdi
movq %r13, %rsi
callq 0x3b720
jmp 0x3b9b0
leaq 0x1fb9e(%rip), %rsi     # 0x5b53f
leaq 0x78(%rsp), %rdi
leaq 0xd(%rsp), %rdx
callq 0xfa26
leaq 0x50(%rsp), %rsi
leaq 0x78(%rsp), %rdx
movq %r15, %rdi
callq 0xfda4
leaq 0x78(%rsp), %rdi
callq 0x5120
testq %r13, %r13
leaq 0x50(%rsp), %rdi
callq 0x5120
leaq 0x30(%rsp), %rdi
callq 0x5120
leaq 0x98(%rsp), %rdi
callq 0x5120
testq %r12, %r12
leaq 0x10(%rsp), %rdi
callq 0x5120
leaq 0xd8(%rsp), %rdi
callq 0x5120
leaq 0xb8(%rsp), %rdi
callq 0x5120
testq %r14, %r14
leaq 0xf8(%rsp), %rdi
jmp 0x3ba7b
leaq 0x1fb14(%rip), %rsi     # 0x5b53f
leaq 0x10(%rsp), %rdi
leaq 0xd8(%rsp), %rdx
callq 0xfa26
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0xfd33
leaq 0x50(%rsp), %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x52f0
movq %r14, %rdi
callq 0x5120
leaq 0x10(%rsp), %rdi
callq 0x5120
testq %r12, %r12
leaq 0x30(%rsp), %rdi
callq 0x5120
movq %r15, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3ba9d
jmp 0x3baa2
jmp 0x3baa7
jmp 0x3baac
movq %rax, %r15
jmp 0x3bac4
movq %rax, %r15
jmp 0x3bae3
movq %rax, %r15
jmp 0x3bb11
movq %rax, %r15
jmp 0x3bb38
movq %rax, %r15
leaq 0x10(%rsp), %rdi
callq 0x5120
testq %r12, %r12
leaq 0x30(%rsp), %rdi
jmp 0x3bb72
jmp 0x3bb56
movq %rax, %r15
leaq 0x78(%rsp), %rdi
callq 0x5120
testq %r13, %r13
leaq 0x50(%rsp), %rdi
callq 0x5120
jmp 0x3baf2
movq %rax, %r15
leaq 0x30(%rsp), %rdi
callq 0x5120
jmp 0x3bb01
movq %rax, %r15
leaq 0x98(%rsp), %rdi
callq 0x5120
testq %r12, %r12
leaq 0x10(%rsp), %rdi
callq 0x5120
leaq 0xd8(%rsp), %rdi
callq 0x5120
leaq 0xb8(%rsp), %rdi
callq 0x5120
testq %r14, %r14
leaq 0xf8(%rsp), %rdi
jmp 0x3bb7a
movq %rax, %r15
jmp 0x3bb1b
movq %rax, %r15
jmp 0x3bb28
movq %rax, %r15
leaq 0x50(%rsp), %rdi
jmp 0x3bb7a
movq %rax, %r15
jmp 0x3bb77
movq %rax, %r15
jmp 0x3bb6d
movq %rax, %r15
leaq 0x30(%rsp), %rdi
callq 0x5120
leaq 0x10(%rsp), %rdi
callq 0x5120
movq %rbx, %rdi
callq 0x5120
movq %r15, %rdi
callq 0x53f0
nop