// File: 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:
subq $0xe8, %rsp
movq %rdi, 0xe0(%rsp)
movq %rsi, 0xd8(%rsp)
movq 0xe0(%rsp), %rdi
movq %rdi, 0x60(%rsp)
movq 0xd8(%rsp), %rsi
movq (%rdi), %rax
movq 0x10(%rax), %rax
xorl %edx, %edx
movl %edx, 0x6c(%rsp)
callq *%rax
movq 0x60(%rsp), %rsi
movq 0xd8(%rsp), %rax
movq %rax, 0x70(%rsp)
addq $0x48, %rsi
leaq 0xb8(%rsp), %rdi
movq %rdi, 0x78(%rsp)
callq 0x6170
movl 0x6c(%rsp), %eax
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rsi
movl %eax, %edx
callq 0x2a040
movq %rax, 0x80(%rsp)
jmp 0xc6e2
movq 0x60(%rsp), %rax
movq 0x80(%rsp), %rcx
movq %rcx, 0x68(%rax)
leaq 0xb8(%rsp), %rdi
callq 0x6778
movq 0x60(%rsp), %rax
cmpq $0x0, 0x68(%rax)
je 0xc953
movq 0x60(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x295e0
testb $0x1, %al
jne 0xc727
jmp 0xc953
movq 0x60(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x295f0
movslq %eax, %rsi
leaq 0x61da1(%rip), %rdi     # 0x6e4e0
callq 0x1fc90
movq (%rax), %rax
movq %rax, 0x58(%rsp)
cmpq $0x0, %rax
jne 0xc757
callq 0x6420
movq 0x58(%rsp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rdi
leaq 0x60756(%rip), %rsi     # 0x6cec0
callq 0x20340
testb $0x1, %al
jne 0xc814
movq 0x60(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x295f0
movslq %eax, %rsi
leaq 0x61d51(%rip), %rdi     # 0x6e4e0
callq 0x1fc90
movq (%rax), %rax
movq %rax, 0x50(%rsp)
cmpq $0x0, %rax
jne 0xc7a7
callq 0x6420
movq 0x50(%rsp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rdi
leaq 0x6147e(%rip), %rsi     # 0x6dc38
callq 0x20340
testb $0x1, %al
jne 0xc814
movq 0x60(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x295f0
movslq %eax, %rsi
leaq 0x61d05(%rip), %rdi     # 0x6e4e0
callq 0x1fc90
movq (%rax), %rax
movq %rax, 0x48(%rsp)
cmpq $0x0, %rax
jne 0xc7f3
callq 0x6420
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq -0x8(%rax), %rdi
leaq 0x6144a(%rip), %rsi     # 0x6dc50
callq 0x20340
testb $0x1, %al
jne 0xc814
jmp 0xc951
leaq 0x61cbd(%rip), %rax     # 0x6e4d8
movq (%rax), %rdi
addq $0x48, %rdi
leaq 0x460df(%rip), %rsi     # 0x52908
callq 0x6370
movq %rax, %rcx
movq 0x60(%rsp), %rax
movq %rcx, 0x30(%rsp)
movq 0x68(%rax), %rsi
leaq 0x88(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x295b0
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x6340
movq %rax, 0x40(%rsp)
jmp 0xc867
movq 0x40(%rsp), %rdi
leaq 0x4606b(%rip), %rsi     # 0x528de
callq 0x6370
movq %rax, 0x28(%rsp)
jmp 0xc87f
movq 0x60(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x29600
movl %eax, 0x24(%rsp)
jmp 0xc893
movl 0x24(%rsp), %esi
movq 0x28(%rsp), %rdi
callq 0x6690
movq %rax, 0x18(%rsp)
jmp 0xc8a8
movq 0x18(%rsp), %rdi
movl $0x3a, %esi
callq 0x6480
movq %rax, 0x10(%rsp)
jmp 0xc8be
movq 0x60(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x29610
movl %eax, 0xc(%rsp)
jmp 0xc8d2
movl 0xc(%rsp), %esi
movq 0x10(%rsp), %rdi
callq 0x6690
jmp 0xc8e2
leaq 0x88(%rsp), %rdi
callq 0x6778
movq 0x60(%rsp), %rax
leaq 0x61bdd(%rip), %rcx     # 0x6e4d8
movq (%rcx), %rdi
movl 0x8(%rax), %esi
movl 0xc(%rax), %edx
callq 0x2f440
jmp 0xc951
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0xb8(%rsp), %rdi
callq 0x6778
jmp 0xc95b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb0(%rsp)
movl %eax, 0xac(%rsp)
leaq 0x88(%rsp), %rdi
callq 0x6778
jmp 0xc95b
jmp 0xc953
addq $0xe8, %rsp
retq
movq 0xb0(%rsp), %rdi
callq 0x66b0
nopl (%rax,%rax)