// File: /workspace/github_cpp_makefile_star2_O3/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 $0x58, %rsp
movq %rdi, %rbx
callq 0xc33c
movq %rax, 0x30(%rsp)
movq 0x68(%rbx), %rax
movq (%rax), %r15
cmpq %rax, %r15
je 0x18381
leaq 0x48(%rsp), %r14
leaq 0x70(%rbx), %rax
movq %rax, 0x28(%rsp)
movq $0x1, (%rsp)
movq 0x10(%r15), %rax
movq %r14, 0x38(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x99a6
movq 0x30(%rsp), %rdi
movq %r12, %rsi
movq %rsp, %rdx
callq 0xc4ca
movq %rax, %rbp
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x182c1
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x6270
testq %rbp, %rbp
leaq 0x8(%rsp), %r12
je 0x1838b
movl $0x40, %edi
callq 0x6260
movq %rax, %r13
movq 0x10(%r15), %rax
leaq 0x18(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x99a6
movq %r13, %rdi
movq %r12, %rsi
callq 0x1884e
movq %r14, %r12
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x18326
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6270
movq %rbp, %rdi
callq 0x18968
movq %r13, %rdi
movl %eax, %esi
callq 0x18964
movq %rbx, %rdi
movq %r13, %rsi
callq 0xc34c
movq (%rsp), %r14
movl $0x28, %edi
callq 0x6260
movq %rbp, 0x10(%rax)
movq %r13, 0x18(%rax)
movq %r14, 0x20(%rax)
movq %rax, %rdi
movq 0x28(%rsp), %rsi
callq 0x6070
incq 0x80(%rbx)
movq (%r15), %r15
cmpq 0x68(%rbx), %r15
movq %r12, %r14
jne 0x1826f
movq %rbx, %rdi
callq 0x9f58
jmp 0x183f9
movq 0x2ec5e(%rip), %rbx     # 0x46ff0
leaq 0x1ce5a(%rip), %rsi     # 0x351f3
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x62f0
movq 0x10(%r15), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0x62f0
movq %rax, %rbx
leaq 0x1ce50(%rip), %rsi     # 0x35213
movl $0x15, %edx
movq %rax, %rdi
callq 0x62f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x6220
movsbl %al, %esi
movq %rbx, %rdi
callq 0x6040
movq %rax, %rdi
callq 0x61b0
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1842c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6270
jmp 0x1842c
movq %rax, %rbx
movl $0x40, %esi
movq %r13, %rdi
jmp 0x1844b
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x18450
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x6270
movq %rbx, %rdi
callq 0x6460