// File: /workspace/github_cpp_makefile_star2_O1/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 0xac4f3(%rip), %r15     # 0xba0c8
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 0x768e
leaq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
addq %rsi, %rdx
callq 0x768e
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 0xdd1e
cmpl $0x0, 0x8(%rsp)
jle 0xdd68
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 0xdd47
cmpl $0x89, %eax
je 0xdd3e
cmpl $0x8a, %eax
jne 0xdd1e
leaq 0x656c(%rip), %rsi      # 0x14288
jmp 0xdd4e
movl 0x54(%rbx), %esi
movl 0xa6889(%rip), %edx     # 0xb45b0
movq 0x80(%rbx), %rcx
leaq 0x6d67(%rip), %rdi      # 0x14a9c
xorl %eax, %eax
callq 0x2040
jmp 0xdd68
leaq 0x6541(%rip), %rsi      # 0x14286
jmp 0xdd4e
leaq 0x6a34(%rip), %rsi      # 0x14782
movslq 0xa685b(%rip), %rax     # 0xb45b0
shlq $0x5, %rax
leaq 0xa5bd0(%rip), %rdi     # 0xb3930
addq %rax, %rdi
callq 0x23d0
movq 0x130(%rsp), %rdi
cmpq %rbp, %rdi
je 0xdd85
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x110(%rsp), %rdi
cmpq %r13, %rdi
je 0xdda2
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x88(%rsp), %rdi
cmpq %r12, %rdi
je 0xddbf
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xdddb
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 0xf7a8
leaq 0x8(%rsp), %rdi
callq 0xf7a8
jmp 0xde2a
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0xde2a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23a0