// File: /workspace/github_cpp_makefile_star2_O2/eniac[P]Mantis/src/ast/ast_nodes_p4.cpp
// Function: P4ExprNode::toString[abi:cxx11]()
string P4ExprNode::toString() {
    ostringstream oss;
    oss << keyword_->toString() << " "
        << name1_->toString() << " ";

    // Append name2 if its present
    if (name2_) {
        if (keyword_->toString().compare("calculated_field")==0) {
            oss << ". "
                << name2_->toString();
        } else {
            oss << name2_->toString();
        }
    }

    // Append opts if they're present
    if (opts_) {
        oss << "(" << opts_->toString() << ") ";
    }

    // Append body if its present.
    if (body_) {
        string res = body_->toString();
        oss << "{\n" << res << "}\n";
    } else {
        // If there's no body, its a statement that 
        // ends with a semicolon
        oss << ";";
    }
    return oss.str();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1c0, %rsp            # imm = 0x1C0
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x1d8(%rbp), %rdi
callq 0x415a0
movq 0x40(%r14), %rsi
movq (%rsi), %rax
leaq -0x40(%rbp), %rdi
callq *(%rax)
leaq -0x1d8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x41380
leaq 0x336c5(%rip), %rsi     # 0x7b051
movq %rax, %rdi
callq 0x413d0
movq %rax, %r15
movq 0x48(%r14), %rsi
movq (%rsi), %rax
leaq -0x60(%rbp), %rdi
callq *(%rax)
leaq -0x60(%rbp), %rsi
movq %r15, %rdi
callq 0x41380
leaq 0x3369a(%rip), %rsi     # 0x7b051
movq %rax, %rdi
callq 0x413d0
leaq -0x60(%rbp), %rdi
callq 0x418c8
leaq -0x40(%rbp), %rdi
callq 0x418c8
cmpq $0x0, 0x50(%r14)
je 0x47a63
movq 0x40(%r14), %rsi
movq (%rsi), %rax
leaq -0x40(%rbp), %rdi
callq *(%rax)
leaq 0x3138a(%rip), %rsi     # 0x78d7a
leaq -0x40(%rbp), %r15
movq %r15, %rdi
callq 0x41130
movl %eax, %r12d
movq %r15, %rdi
callq 0x418c8
testl %r12d, %r12d
je 0x47a2b
movq 0x50(%r14), %rsi
movq (%rsi), %rax
leaq -0x40(%rbp), %rdi
callq *(%rax)
leaq -0x1d8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x41380
jmp 0x47a5a
leaq 0x313ca(%rip), %rsi     # 0x78dfc
leaq -0x1d8(%rbp), %rdi
callq 0x413d0
movq %rax, %r15
movq 0x50(%r14), %rsi
movq (%rsi), %rax
leaq -0x40(%rbp), %rdi
callq *(%rax)
leaq -0x40(%rbp), %rsi
movq %r15, %rdi
callq 0x41380
leaq -0x40(%rbp), %rdi
callq 0x418c8
cmpq $0x0, 0x58(%r14)
je 0x47ab1
leaq 0x351e0(%rip), %rsi     # 0x7cc51
leaq -0x1d8(%rbp), %rdi
callq 0x413d0
movq %rax, %r15
movq 0x58(%r14), %rsi
movq (%rsi), %rax
leaq -0x40(%rbp), %rdi
callq *(%rax)
leaq -0x40(%rbp), %rsi
movq %r15, %rdi
callq 0x41380
leaq 0x312eb(%rip), %rsi     # 0x78d8b
movq %rax, %rdi
callq 0x413d0
leaq -0x40(%rbp), %rdi
callq 0x418c8
movq 0x60(%r14), %rsi
testq %rsi, %rsi
je 0x47afc
movq (%rsi), %rax
leaq -0x40(%rbp), %rdi
callq *(%rax)
leaq 0x35196(%rip), %rsi     # 0x7cc60
leaq -0x1d8(%rbp), %rdi
callq 0x413d0
leaq -0x40(%rbp), %rsi
movq %rax, %rdi
callq 0x41380
leaq 0x31bd8(%rip), %rsi     # 0x796c1
movq %rax, %rdi
callq 0x413d0
leaq -0x40(%rbp), %rdi
callq 0x418c8
jmp 0x47b0f
leaq 0x31c0a(%rip), %rsi     # 0x7970d
leaq -0x1d8(%rbp), %rdi
callq 0x413d0
leaq -0x1d0(%rbp), %rsi
movq %rbx, %rdi
callq 0x416b0
leaq -0x1d8(%rbp), %rdi
callq 0x410e0
movq %rbx, %rax
addq $0x1c0, %rsp            # imm = 0x1C0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x47b61
jmp 0x47b6f
jmp 0x47b61
jmp 0x47b6f
jmp 0x47b6f
jmp 0x47b6f
jmp 0x47b6f
jmp 0x47b61
jmp 0x47b6f
jmp 0x47b61
jmp 0x47b61
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x418c8
jmp 0x47b64
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x418c8
jmp 0x47b72
movq %rax, %rbx
leaq -0x1d8(%rbp), %rdi
callq 0x410e0
movq %rbx, %rdi
callq 0x41790