// File: /workspace/github_cpp_makefile_star2_O3/eniac[P]Mantis/src/ast/ast_nodes_p4.cpp
// Function: TableNode::transformPragma()
void TableNode::transformPragma() {
    if(pragma_.compare("")!=0 && !pragmaTransformed_) {
        std::vector<string> tmp_v;
        boost::algorithm::split(tmp_v, pragma_, boost::algorithm::is_space());
        pragma_ = "";
        for(int i=0; i<tmp_v.size()-1; i++) {
            pragma_ += tmp_v[i];
            pragma_ += " ";            
        }
        int stage_num = stoi(tmp_v[tmp_v.size()-1]);
        stage_num ++;
        pragma_ += std::to_string(stage_num);

        pragmaTransformed_=true;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq 0x70(%rdi), %r14
leaq 0x4039e(%rip), %rsi     # 0x778db
movq %r14, %rdi
callq 0x2e0f0
testl %eax, %eax
je 0x3774f
cmpb $0x0, 0x90(%rbx)
jne 0x3774f
xorps %xmm0, %xmm0
leaq -0x70(%rbp), %r12
movaps %xmm0, (%r12)
movq $0x0, 0x10(%r12)
leaq -0x50(%rbp), %r13
movq %r13, %rdi
callq 0x2e800
leaq -0x78(%rbp), %r15
movw $0x2000, -0x8(%r15)     # imm = 0x2000
movq %r15, %rdi
movq %r13, %rsi
callq 0x2e270
leaq -0x80(%rbp), %rdx
movq %r12, %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0x3954a
movq %r15, %rdi
callq 0x2e580
leaq -0x50(%rbp), %rdi
callq 0x2e580
movq 0x78(%rbx), %rdx
leaq 0x4031a(%rip), %rcx     # 0x778db
movq %r14, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x2e640
movq -0x70(%rbp), %rax
movq -0x68(%rbp), %rcx
subq %rax, %rcx
cmpq $0x20, %rcx
jne 0x375e3
xorl %ecx, %ecx
jmp 0x3762d
movl $0x8, %r12d
xorl %r13d, %r13d
leaq 0x40a7e(%rip), %r15     # 0x78071
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rdx
movq %r14, %rdi
callq 0x2e130
movq %r14, %rdi
movq %r15, %rsi
callq 0x2e7e0
incq %r13
movq -0x70(%rbp), %rax
movq -0x68(%rbp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
decq %rcx
addq $0x20, %r12
cmpq %r13, %rcx
ja 0x375f3
shlq $0x5, %rcx
movq (%rax,%rcx), %r12
callq 0x2e060
movq %rax, %r15
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movl $0x0, (%r15)
leaq -0x50(%rbp), %r13
movq %r12, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x2e570
cmpq %r12, (%r13)
je 0x3775e
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x3776a
movl (%r15), %ecx
cmpl $0x22, %ecx
je 0x3776a
testl %ecx, %ecx
jne 0x37689
movl -0x2c(%rbp), %ecx
movl %ecx, (%r15)
leal 0x1(%rax), %r13d
movl %r13d, %r15d
negl %r15d
cmovsl %r13d, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0x376ed
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x376e4
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x376ea
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x376ed
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x376b1
addl $-0x3, %r12d
jmp 0x376ed
addl $-0x2, %r12d
jmp 0x376ed
decl %r12d
shrl $0x1f, %r13d
leal (%r12,%r13), %esi
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x50(%rbp), %rdi
movl $0x2d, %edx
callq 0x2e460
movl %r13d, %edi
addq -0x50(%rbp), %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x39847
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r14, %rdi
callq 0x2e130
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3773f
callq 0x2e360
movb $0x1, 0x90(%rbx)
leaq -0x70(%rbp), %rdi
callq 0x394f2
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3e6d3(%rip), %rdi     # 0x75e38
callq 0x2e260
leaq 0x3e6c7(%rip), %rdi     # 0x75e38
callq 0x2e5c0
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x377bb
callq 0x2e360
jmp 0x377bb
jmp 0x377b8
jmp 0x377b8
movq %rax, %rbx
movq %r15, %rdi
callq 0x2e580
leaq -0x50(%rbp), %rdi
callq 0x2e580
jmp 0x377bb
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x377bb
movl -0x2c(%rbp), %eax
movl %eax, (%r15)
jmp 0x377bb
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x394f2
movq %rbx, %rdi
callq 0x2e730