// File: /workspace/github_cpp_makefile_star2_O1/marxn[P]pupp/src/parser/transaction.cpp
// Function: TransNode::Check()
bool TransNode::Check()
{
        Node * parent = this->GetParentNode();
        
        list<string*>::iterator i;
        for(i = this->IdList->begin(); i!= this->IdList->end(); i++)
        {
                unsigned long layer = 1;
                
                VariableDef * vardef = parent->FindVariable(**i, &layer);
                if(vardef==NULL)
                {
                        cerr<<"pupp provision error: Variable "<<**i<<" has not been defined"<<endl;
                        return false;
                }

                VariableDef * newvardef = new VariableDef(**i);
                newvardef->SetVarType(vardef->GetVarType());
                this->AddVariable(newvardef);
                
                TransIdentDesc desc = {vardef, newvardef, layer};

                this->VarDefList.push_back(desc);
        }
        
        return ContainerNode::Check();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
callq 0xc3e8
movq %rax, 0x40(%rsp)
movq 0x68(%rbx), %rbp
leaq 0x58(%rsp), %r12
movq %rbx, 0x8(%rsp)
leaq 0x70(%rbx), %rax
movq %rax, 0x38(%rsp)
leaq 0x18(%rsp), %rbx
movq (%rbp), %rbp
movq 0x8(%rsp), %rax
cmpq 0x68(%rax), %rbp
je 0x18744
movq $0x1, 0x10(%rsp)
movq 0x10(%rbp), %rax
movq %r12, 0x48(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x99e8
movq 0x40(%rsp), %rdi
movq %r14, %rsi
leaq 0x10(%rsp), %rdx
callq 0xc57c
movq %rax, %r13
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
movq %rbx, %r14
je 0x18616
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6270
testq %r13, %r13
je 0x186cb
movl $0x40, %edi
callq 0x6260
movq %rax, %r15
movq 0x10(%rbp), %rax
leaq 0x28(%rsp), %rcx
movq %rcx, 0x18(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x99e8
movq %r15, %rdi
movq %r14, %rsi
callq 0x18ba2
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x18673
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x6270
movq %r13, %rdi
callq 0x18cbc
movq %r15, %rdi
movl %eax, %esi
callq 0x18cb8
movq 0x8(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0xc3f8
movq 0x10(%rsp), %r12
movl $0x28, %edi
callq 0x6260
movq %r13, 0x10(%rax)
movq %r15, 0x18(%rax)
movq %r12, 0x20(%rax)
movq %rax, %rdi
movq 0x38(%rsp), %rsi
callq 0x6070
incq 0x80(%r14)
leaq 0x58(%rsp), %r12
jmp 0x18737
movl $0x1f, %edx
movq 0x2f919(%rip), %r14     # 0x47ff0
movq %r14, %rdi
leaq 0x1db12(%rip), %rsi     # 0x361f3
callq 0x62f0
movq 0x10(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r14, %rdi
callq 0x62f0
movq %rax, %r15
movl $0x15, %edx
movq %rax, %rdi
leaq 0x1db08(%rip), %rsi     # 0x36213
callq 0x62f0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x6220
movsbl %al, %esi
movq %r15, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61b0
testq %r13, %r13
jne 0x185ab
xorl %eax, %eax
jmp 0x1874e
movq 0x8(%rsp), %rdi
callq 0x9f88
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rax
cmpq %rax, %rdi
je 0x18781
movq 0x28(%rsp), %rsi
incq %rsi
callq 0x6270
jmp 0x18781
movq %rax, %rbx
movl $0x40, %esi
movq %r15, %rdi
jmp 0x187a0
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x187a5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x6270
movq %rbx, %rdi
callq 0x6470
nop