// File: /workspace/github_cpp_makefile_star2_O3/zhengwangsun[P]pas2c/semantics.cpp
// Function: addop(int)
int addop(int k)
{
	TreeNode tNode= tree.node[k];
	TreeNode childNode;
	if(tNode.type==38){
		if(tNode.childNum>0){
			childNode=tree.node[tNode.child[0]];
			if(childNode.type==137){
				code[currentLine].append("+");
			}
			else if(childNode.type==138){
				code[currentLine].append("-");
			}
			else if(childNode.type==132){
				code[currentLine].append("or");
			}
			else 
				ERROR;
		}
	}
	else
		 ERROR;
    return 0;//返回对吗
}

// 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 0xab792(%rip), %r15     # 0xb90c8
leaq (%r15,%rax), %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), %rax
movq %rax, -0x10(%rax)
movq 0x60(%rbx), %rsi
movq 0x68(%rbx), %rdx
addq %rsi, %rdx
callq 0x7666
leaq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
addq %rsi, %rdx
callq 0x7666
movq 0xa0(%rbx), %rax
movq %rax, 0xa8(%rsp)
leaq 0x120(%rsp), %r13
movq %r13, -0x10(%r13)
xorl %eax, %eax
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x140(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq %rax, -0x8(%rbp)
movb %al, (%rbp)
cmpl $0x26, 0x5c(%rsp)
jne 0xda7f
cmpl $0x0, 0x8(%rsp)
jle 0xdac9
leaq 0x110(%rsp), %rax
movslq 0xc(%rsp), %rcx
imulq $0xa8, %rcx, %r8
leaq (%r15,%r8), %r14
addq $0x8, %r14
leaq 0xb0(%rsp), %rdx
movl $0xb, %ecx
movq %rdx, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
movb 0x58(%r14), %cl
movb %cl, 0x58(%rdx)
leaq (%r15,%r8), %rsi
addq $0x68, %rsi
movq %rax, %rdi
callq 0x2110
leaq 0x130(%rsp), %rdi
leaq 0x80(%r14), %rsi
callq 0x2110
movq 0xa0(%r14), %rax
movq %rax, 0x150(%rsp)
movl 0x104(%rsp), %eax
cmpl $0x84, %eax
je 0xdaa8
cmpl $0x89, %eax
je 0xda9f
cmpl $0x8a, %eax
jne 0xda7f
leaq 0x580b(%rip), %rsi      # 0x13288
jmp 0xdaaf
movl 0x54(%rbx), %esi
movl 0xa5b28(%rip), %edx     # 0xb35b0
movq 0x80(%rbx), %rcx
leaq 0x6036(%rip), %rdi      # 0x13acc
xorl %eax, %eax
callq 0x2040
jmp 0xdac9
leaq 0x57e0(%rip), %rsi      # 0x13286
jmp 0xdaaf
leaq 0x5d03(%rip), %rsi      # 0x137b2
movslq 0xa5afa(%rip), %rax     # 0xb35b0
shlq $0x5, %rax
leaq 0xa4e6f(%rip), %rdi     # 0xb2930
addq %rax, %rdi
callq 0x23d0
movq 0x130(%rsp), %rdi
cmpq %rbp, %rdi
je 0xdae6
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x110(%rsp), %rdi
cmpq %r13, %rdi
je 0xdb03
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0xdb20
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xdb3c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
xorl %eax, %eax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xb0(%rsp), %rdi
callq 0xf396
leaq 0x8(%rsp), %rdi
callq 0xf396
jmp 0xdb8b
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xdb8b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23a0