// File: /workspace/github_cpp_makefile_star2_O1/kelwinfc[P]ci4721-Fernandez-Gyomrey/src/AST/check.cpp
// Function: AST_ident::check_call(symbol_table*)
void AST_ident::check_call(symbol_table* st){ 
    fill_and_check(st);
    
    sym = st->lookup(value);
    
    /* El simbolo existe en la tabla */
    if ( sym && sym->isConst() ){
        if (    typeid(*types.types[sym->getType()]) == typeid(array_descriptor)
             || typeid(*types.types[sym->getType()]) == typeid(struct_type)
             || typeid(*types.types[sym->getType()]) == typeid(union_type)
        )
        {
            logger->buf << "Pasaje por referencia de constante '"
                        << sym->getName() << "' definida en "
                        << sym->getLine() << ':' << sym->getColumn();
            logger->error(line, column);
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rax
xorl %edx, %edx
callq *0x10(%rax)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x48(%rbx), %rsi
movq 0x50(%rbx), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x16c42
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x183ae
movq %rax, 0x68(%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xad8b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x62f0
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0xaf4d
callq 0x17fda
testb %al, %al
je 0xaf4d
movq 0x68(%rbx), %rdi
callq 0x17fde
cltq
leaq 0x33651(%rip), %r14     # 0x3e408
movq (%r14), %rcx
movq (%rcx,%rax,8), %rax
testq %rax, %rax
je 0xaf59
movq (%rax), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x23401(%rip), %rax     # 0x2e1da
cmpq %rax, %rdi
je 0xae8b
cmpb $0x2a, (%rdi)
je 0xadfb
leaq 0x233ec(%rip), %rsi     # 0x2e1da
callq 0x6400
testl %eax, %eax
je 0xae8b
movq 0x68(%rbx), %rdi
callq 0x17fde
cltq
movq (%r14), %rcx
movq (%rcx,%rax,8), %rax
testq %rax, %rax
je 0xaf59
movq (%rax), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x32dd8(%rip), %rax     # 0x3dc00
movq 0x8(%rax), %rsi
cmpq %rsi, %rdi
je 0xae8b
cmpb $0x2a, (%rdi)
je 0xae3f
callq 0x6400
testl %eax, %eax
je 0xae8b
movq 0x68(%rbx), %rdi
callq 0x17fde
cltq
movq (%r14), %rcx
movq (%rcx,%rax,8), %rax
testq %rax, %rax
je 0xaf59
movq (%rax), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x32dac(%rip), %rax     # 0x3dc18
movq 0x8(%rax), %rsi
cmpq %rsi, %rdi
je 0xae8b
cmpb $0x2a, (%rdi)
je 0xaf4d
callq 0x6400
testl %eax, %eax
jne 0xaf4d
leaq 0x3356e(%rip), %r12     # 0x3e400
movq (%r12), %r14
addq $0x48, %r14
leaq 0x21a7b(%rip), %rsi     # 0x2c91c
movl $0x24, %edx
movq %r14, %rdi
callq 0x6360
movq 0x68(%rbx), %rsi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x17fb8
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x6360
movq %rax, %r14
leaq 0x21a1a(%rip), %rsi     # 0x2c8f2
movl $0xe, %edx
movq %rax, %rdi
callq 0x6360
movq 0x68(%rbx), %rdi
callq 0x17fe2
movq %r14, %rdi
movl %eax, %esi
callq 0x6530
leaq 0x7(%rsp), %rsi
movb $0x3a, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x6360
movq %rax, %r14
movq 0x68(%rbx), %rdi
callq 0x17fe6
movq %r14, %rdi
movl %eax, %esi
callq 0x6530
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaf3e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x62f0
movq (%r12), %rdi
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
callq 0x1a9e6
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x6340
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xaf90
movq 0x18(%rsp), %rsi
jmp 0xaf88
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaf90
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x62f0
movq %rbx, %rdi
callq 0x6550