// File: /workspace/github_cpp_makefile_star2_O3/zhengwangsun[P]pas2c/lex.cpp
// Function: makeFile()
void makeFile()
{
	ofstream fp("lexout.txt");
	if(!fp)
	{
		fp<<"词法分析写入文件失败!"<<endl;
	}
	
    fp<<"******************************记号流***********************************"<<endl; 
	fp<<setw(10)<<"内容"<<setw(10)<<"\t"<<"种别码"<<setw(10)<<"\t"<<"行号"<<setw(10)<<"\t"<<"列号"<<endl;
	 
    for(int j=1;j<=token_count+1;j++)
    {
    	fp<<setw(10)<<token[j].value<<setw(10)<<"\t"<<token[j].type<<"\t"<<setw(10)<<token[j].line<<"\t"<<setw(10)<<token[j].col<<endl;
    }
    fp<<endl<<endl;
    
    fp<<"********************************错误表********************************"<<endl; 
	fp<<setw(20)<<"描述"<<setw(7)<<"\t"<<"行号"<<setw(7)<<"\t"<<"列号"<<setw(20)<<"内容"<<endl;
	 
    for(int j=1;j<=lex_error_count;j++)
    {
    	fp<<setw(20)<<lex_error[j].description<<setw(7)<<"\t"<<lex_error[j].line<<setw(7)<<"\t"<<lex_error[j].col<<setw(20)<<lex_error[j].value<<endl;
    }
    
    fp<<"*******************************注释信息*********************************"<<endl;
    fp<<"startLine    "<<"startCol    "<<"endLine    "<<"endCol"<<endl;
    for(int i=1;i<=note_count;i++) 
    {
    	fp<<setw(10)<<note[i].start_line<<setw(10)<<note[i].start_col<<setw(10)<<note[i].end_line<<setw(10)<<note[i].end_col<<endl;
    }
	 
    fp<<"*******************************统计结果*********************************"<<endl<<endl;
	fp<<"总行数:"<<line<<endl;
	fp<<"总记号数:"<<token_count<<endl;
	fp<<"总错误数:"<<lex_error_count<<endl; 
	fp<<"总字符数:"<<char_count<<endl;
	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
leaq 0xceed(%rip), %rsi      # 0x134b3
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movl $0x10, %edx
callq 0x2250
movq (%rbx), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x28(%rsp,%rax)
je 0x662a
leaq 0xced1(%rip), %rsi      # 0x134be
leaq 0x8(%rsp), %rbx
movl $0x1f, %edx
movq %rbx, %rdi
callq 0x2280
movq 0x8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
leaq 0x8(%rsp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0xccc8(%rip), %rsi      # 0x132f9
leaq 0x8(%rsp), %rbx
movl $0x4a, %edx
movq %rbx, %rdi
callq 0x2280
movq 0x8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
leaq 0x8(%rsp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x8(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x18(%rsp,%rax)
leaq 0xccba(%rip), %rsi      # 0x13344
movl $0x6, %edx
callq 0x2280
leaq 0x8(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x18(%rsp,%rax)
leaq 0xcc9b(%rip), %rsi      # 0x1334b
movl $0x1, %edx
callq 0x2280
leaq 0xcc8c(%rip), %rsi      # 0x1334d
leaq 0x8(%rsp), %rdi
movl $0x9, %edx
callq 0x2280
leaq 0x8(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x18(%rsp,%rax)
leaq 0xcc5f(%rip), %rsi      # 0x1334b
movl $0x1, %edx
callq 0x2280
leaq 0xcc5a(%rip), %rsi      # 0x13357
leaq 0x8(%rsp), %rdi
movl $0x6, %edx
callq 0x2280
leaq 0x8(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x18(%rsp,%rax)
leaq 0xcc23(%rip), %rsi      # 0x1334b
movl $0x1, %edx
callq 0x2280
leaq 0xcc25(%rip), %rsi      # 0x1335e
leaq 0x8(%rsp), %rbx
movl $0x6, %edx
movq %rbx, %rdi
callq 0x2280
movq 0x8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
cmpl $0x0, 0x157d0(%rip)     # 0x1bf50
js 0x688d
leaq 0x15847(%rip), %r13     # 0x1bfd4
xorl %ebp, %ebp
leaq 0x8(%rsp), %r14
leaq 0xcbb0(%rip), %r15      # 0x1334b
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x18(%rsp,%rax)
movq -0x24(%r13), %rsi
movq -0x1c(%r13), %rdx
movq %r14, %rdi
callq 0x2280
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x10(%r12,%rax)
movl $0x1, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x2280
movl -0x2c(%r13), %esi
movq %r12, %rdi
callq 0x2390
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2280
movq (%r12), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x10(%r12,%rax)
movl -0x4(%r13), %esi
movq %r12, %rdi
callq 0x2390
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x2280
movq (%r12), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x10(%r12,%rax)
movl (%r13), %esi
movq %r12, %rdi
callq 0x2390
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movslq 0x156d3(%rip), %rax     # 0x1bf50
incq %rbp
addq $0x38, %r13
cmpq %rax, %rbp
jle 0x679b
movq 0x8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
leaq 0x8(%rsp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0xca7c(%rip), %rsi      # 0x13365
leaq 0x8(%rsp), %rbx
movl $0x49, %edx
movq %rbx, %rdi
callq 0x2280
movq 0x8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
leaq 0x8(%rsp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x8(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0x14, 0x18(%rsp,%rax)
leaq 0xca6d(%rip), %rsi      # 0x133af
movl $0x6, %edx
callq 0x2280
leaq 0x8(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0x7, 0x18(%rsp,%rax)
leaq 0xc9e3(%rip), %rsi      # 0x1334b
movl $0x1, %edx
callq 0x2280
leaq 0xc9de(%rip), %rsi      # 0x13357
leaq 0x8(%rsp), %rdi
movl $0x6, %edx
callq 0x2280
leaq 0x8(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
movq $0x7, 0x18(%rsp,%rax)
leaq 0xc9a7(%rip), %rsi      # 0x1334b
movl $0x1, %edx
callq 0x2280
leaq 0xc9a9(%rip), %rsi      # 0x1335e
leaq 0x8(%rsp), %rdi
movl $0x6, %edx
callq 0x2280
leaq 0x8(%rsp), %rbx
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq $0x14, 0x18(%rsp,%rax)
leaq 0xc964(%rip), %rsi      # 0x13344
movl $0x6, %edx
movq %rbx, %rdi
callq 0x2280
movq 0x8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
leaq 0x8(%rsp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
cmpl $0x0, 0x15539(%rip)     # 0x1bf58
jle 0x6b21
leaq 0x9e160(%rip), %r12     # 0xa4b8c
xorl %r13d, %r13d
leaq 0x8(%rsp), %rbx
leaq 0xc910(%rip), %r14      # 0x1334b
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rax
movq $0x14, 0x18(%rsp,%rax)
movq -0x24(%r12), %rsi
movq -0x1c(%r12), %rdx
movq %rbx, %rdi
callq 0x2280
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movq $0x7, 0x10(%r15,%rax)
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2280
movl -0x4(%r12), %esi
movq %r15, %rdi
callq 0x2390
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rax
movq $0x7, 0x10(%r15,%rax)
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x2280
movl (%r12), %esi
movq %r15, %rdi
callq 0x2390
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x14, 0x10(%rax,%rcx)
movq -0x44(%r12), %rsi
movq -0x3c(%r12), %rdx
movq %rax, %rdi
callq 0x2280
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movslq 0x15447(%rip), %rax     # 0x1bf58
incq %r13
addq $0x50, %r12
cmpq %rax, %r13
jl 0x6a3b
leaq 0xc88e(%rip), %rsi      # 0x133b6
leaq 0x8(%rsp), %rbx
movl $0x4c, %edx
movq %rbx, %rdi
callq 0x2280
movq 0x8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
leaq 0x8(%rsp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0xc897(%rip), %rsi      # 0x13403
leaq 0x8(%rsp), %rdi
movl $0xd, %edx
callq 0x2280
leaq 0xc88f(%rip), %rsi      # 0x13411
leaq 0x8(%rsp), %rdi
movl $0xc, %edx
callq 0x2280
leaq 0xc886(%rip), %rsi      # 0x1341e
leaq 0x8(%rsp), %rdi
movl $0xb, %edx
callq 0x2280
leaq 0xc87c(%rip), %rsi      # 0x1342a
leaq 0x8(%rsp), %rbx
movl $0x6, %edx
movq %rbx, %rdi
callq 0x2280
movq 0x8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
leaq 0x8(%rsp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
cmpl $0x0, 0x1536e(%rip)     # 0x1bf60
jle 0x6cb9
leaq 0x9fe4d(%rip), %r15     # 0xa6a4c
xorl %r12d, %r12d
leaq 0x8(%rsp), %rbx
movq 0x8(%rsp), %rax
movq -0x18(%rax), %rax
movq $0xa, 0x18(%rsp,%rax)
movl -0xc(%r15), %esi
movq %rbx, %rdi
callq 0x2390
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xa, 0x10(%rax,%rcx)
movl -0x8(%r15), %esi
movq %rax, %rdi
callq 0x2390
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xa, 0x10(%rax,%rcx)
movl -0x4(%r15), %esi
movq %rax, %rdi
callq 0x2390
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0xa, 0x10(%rax,%rcx)
movl (%r15), %esi
movq %rax, %rdi
callq 0x2390
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movslq 0x152b7(%rip), %rax     # 0x1bf60
incq %r12
addq $0x10, %r15
cmpq %rax, %r12
jl 0x6c07
leaq 0xc771(%rip), %rsi      # 0x13431
leaq 0x8(%rsp), %rbx
movl $0x4c, %edx
movq %rbx, %rdi
callq 0x2280
movq 0x8(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
leaq 0x8(%rsp), %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0xc750(%rip), %rsi      # 0x1347e
leaq 0x8(%rsp), %rdi
movl $0xa, %edx
callq 0x2280
movl 0x124c5(%rip), %esi     # 0x19208
leaq 0x8(%rsp), %rdi
callq 0x2390
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0xc70b(%rip), %rsi      # 0x13489
leaq 0x8(%rsp), %rdi
movl $0xd, %edx
callq 0x2280
movl 0x151bd(%rip), %esi     # 0x1bf50
leaq 0x8(%rsp), %rdi
callq 0x2390
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0xc6c9(%rip), %rsi      # 0x13497
leaq 0x8(%rsp), %rdi
movl $0xd, %edx
callq 0x2280
movl 0x15175(%rip), %esi     # 0x1bf58
leaq 0x8(%rsp), %rdi
callq 0x2390
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0xc687(%rip), %rsi      # 0x134a5
leaq 0x8(%rsp), %rdi
movl $0xd, %edx
callq 0x2280
movl 0x15121(%rip), %esi     # 0x1bf54
leaq 0x8(%rsp), %rdi
callq 0x2390
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq 0x12152(%rip), %rax     # 0x18fc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x10(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x8(%rsp,%rcx)
callq 0x21c0
leaq 0x100(%rsp), %rdi
callq 0x20b0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6eb1
jmp 0x6eb1
jmp 0x6eb1
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2300
movq %rbx, %rdi
callq 0x23a0