// File: /workspace/github_cpp_makefile_star2_O3/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 0x16c68
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x183ea
movq %rax, 0x68(%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xad53
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x6300
movq 0x68(%rbx), %rax
testq %rax, %rax
je 0xaf14
movq %rax, %rdi
callq 0x18016
testb %al, %al
je 0xaf14
movq 0x68(%rbx), %rdi
callq 0x1801a
cltq
leaq 0x34692(%rip), %r14     # 0x3f410
movq (%r14), %rcx
movq (%rcx,%rax,8), %rax
testq %rax, %rax
je 0xaf20
movq (%rax), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x2443a(%rip), %rax     # 0x2f1da
cmpq %rax, %rdi
je 0xae52
cmpb $0x2a, (%rdi)
je 0xadc2
leaq 0x24425(%rip), %rsi     # 0x2f1da
callq 0x6410
testl %eax, %eax
je 0xae52
movq 0x68(%rbx), %rdi
callq 0x1801a
cltq
movq (%r14), %rcx
movq (%rcx,%rax,8), %rax
testq %rax, %rax
je 0xaf20
movq (%rax), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x33e11(%rip), %rax     # 0x3ec00
movq 0x8(%rax), %rsi
cmpq %rsi, %rdi
je 0xae52
cmpb $0x2a, (%rdi)
je 0xae06
callq 0x6410
testl %eax, %eax
je 0xae52
movq 0x68(%rbx), %rdi
callq 0x1801a
cltq
movq (%r14), %rcx
movq (%rcx,%rax,8), %rax
testq %rax, %rax
je 0xaf20
movq (%rax), %rax
movq -0x8(%rax), %rax
movq 0x8(%rax), %rdi
leaq 0x33de5(%rip), %rax     # 0x3ec18
movq 0x8(%rax), %rsi
cmpq %rsi, %rdi
je 0xae52
cmpb $0x2a, (%rdi)
je 0xaf14
callq 0x6410
testl %eax, %eax
jne 0xaf14
leaq 0x345af(%rip), %r12     # 0x3f408
movq (%r12), %r14
addq $0x48, %r14
leaq 0x22ab4(%rip), %rsi     # 0x2d91c
movl $0x24, %edx
movq %r14, %rdi
callq 0x6370
movq 0x68(%rbx), %rsi
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x17ff4
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x6370
movq %rax, %r14
leaq 0x22a53(%rip), %rsi     # 0x2d8f2
movl $0xe, %edx
movq %rax, %rdi
callq 0x6370
movq 0x68(%rbx), %rdi
callq 0x1801e
movq %r14, %rdi
movl %eax, %esi
callq 0x6540
leaq 0x7(%rsp), %rsi
movb $0x3a, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x6370
movq %rax, %r14
movq 0x68(%rbx), %rdi
callq 0x18022
movq %r14, %rdi
movl %eax, %esi
callq 0x6540
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaf05
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6300
movq (%r12), %rdi
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
callq 0x1aa40
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x6350
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xaf57
movq 0x18(%rsp), %rsi
jmp 0xaf4f
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaf57
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x6300
movq %rbx, %rdi
callq 0x6560
nop