// File: /workspace/github_cpp_makefile_star2_O3/zhengwangsun[P]pas2c/semantics.cpp
// Function: standard_type(int)
int standard_type(int k)
{
	TreeNode tNode= tree.node[k];
	TreeNode childNode;
    if (lookahead(k) == 116)//int
    {
    	code[currentLine].append("int");
        return 1;
    }
    else if(lookahead(k) == 117)//real
    {
    	code[currentLine].append("float");
        return 2;
    }
    else if(lookahead(k) == 118)//bool
    {
    	code[currentLine].append("boolean");
        return 3;
    }
    else if(lookahead(k) == 119)//num
    {
        return -1;
    }
    else
    {
        cout<<"standard_type error!"<<endl;
        return -1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movslq %edi, %rax
imulq $0xa8, %rax, %rax
leaq 0xaf282(%rip), %rbp     # 0xb90c8
leaq (%rax,%rbp), %rbx
addq $0x8, %rbx
leaq 0x8(%rsp), %rax
movl $0xb, %ecx
movq %rax, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movb 0x58(%rbx), %cl
movb %cl, 0x58(%rax)
leaq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x60(%rbx), %rsi
movq 0x68(%rbx), %rdx
addq %rsi, %rdx
callq 0x7666
leaq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
addq %rsi, %rdx
callq 0x7666
movq 0xa0(%rbx), %rax
movq %rax, 0xa8(%rsp)
leaq 0x120(%rsp), %r12
movq %r12, -0x10(%r12)
xorl %eax, %eax
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x140(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
cmpl $0x0, (%rbx)
jle 0x9f41
movslq 0x4(%rbx), %rax
imulq $0xa8, %rax, %rax
movl 0x5c(%rbp,%rax), %eax
addl $-0x74, %eax
cmpl $0x3, %eax
ja 0x9f41
leaq 0x95fb(%rip), %rcx      # 0x13508
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movslq 0xa9693(%rip), %rax     # 0xb35b0
shlq $0x5, %rax
leaq 0xa8a08(%rip), %rdi     # 0xb2930
addq %rax, %rdi
movl $0x1, %ebx
leaq 0x9776(%rip), %rsi      # 0x136ad
callq 0x23d0
jmp 0x9fe3
movq 0xf088(%rip), %rbx      # 0x18fd0
leaq 0x9768(%rip), %rsi      # 0x136b7
movl $0x14, %edx
movq %rbx, %rdi
callq 0x2280
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq 0xf056(%rip), %rdi      # 0x18fd0
callq 0x2030
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %rax, %rdi
callq 0x2150
jmp 0x9fe3
movslq 0xa961b(%rip), %rax     # 0xb35b0
shlq $0x5, %rax
leaq 0xa8990(%rip), %rdi     # 0xb2930
addq %rax, %rdi
movl $0x3, %ebx
leaq 0x9065(%rip), %rsi      # 0x13014
callq 0x23d0
jmp 0x9fe3
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x9fe3
movslq 0xa95ec(%rip), %rax     # 0xb35b0
shlq $0x5, %rax
leaq 0xa8961(%rip), %rdi     # 0xb2930
addq %rax, %rdi
movl $0x2, %ebx
leaq 0x96d3(%rip), %rsi      # 0x136b1
callq 0x23d0
movq 0x130(%rsp), %rdi
cmpq %r13, %rdi
je 0xa000
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x110(%rsp), %rdi
cmpq %r12, %rdi
je 0xa01d
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0xa03a
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0xa051
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movl %ebx, %eax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0xa09b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0xa09b
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0xf396
leaq 0x8(%rsp), %rdi
callq 0xf396
movq %rbx, %rdi
callq 0x23a0