// File: /workspace/github_cpp_makefile_star2_O1/Konano[P]Artificial-Intelligence-Input-Method/training.cpp
// Function: ReadInput(char*)
inline void ReadInput(char *localFileName)
{
	string str, py, tmp;

	len = 1;

	localFileName[14] = 'C';
	ifstream fin(localFileName);

	localFileName[14] = 'P';
	ifstream fpy(localFileName);

	while (!fin.eof())
	{
		fin >> str;
		if (str != "/")
		{
			int L = str.length() / 2;
			fpy >> py;
			for(int i = 1; i < L; i++)
				fpy >> tmp, py += '-' + tmp;
			text[len++] = Word_ID(str, py);
		}
		else
		{
			text[len++] = text[0] = 1;

			#ifdef WORD_1
			for(int j=1; j<len-1; j++) if (text[j])
				Times_1[text[j]]++;
			#endif

			#ifdef WORD_2
			for(int j=1; j<len; j++) if (text[j-1] && text[j])
				Times_2[Long(text[j-1], text[j])]++;
			#endif

			len = 1;
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x4d8, %rsp            # imm = 0x4D8
movq %rdi, %rbx
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x78(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xb8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movl $0x1, 0x59ae8f4(%rip)   # 0x59b1470
movb $0x43, 0xe(%rdi)
leaq 0xc8(%rsp), %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x2330
movb $0x50, 0xe(%rbx)
leaq 0x2d0(%rsp), %rdi
movq %rbx, %rsi
movl $0x8, %edx
callq 0x2330
movq 0xc8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0xe8(%rsp,%rax)
jne 0x2dcf
leaq 0x8(%rsp), %r14
leaq 0x59ae8ac(%rip), %r12   # 0x59b1480
leaq 0x48(%rsp), %r13
leaq 0x2d0(%rsp), %rbp
leaq 0x68(%rsp), %rbx
leaq 0xa8(%rsp), %r15
leaq 0xc8(%rsp), %rdi
movq %r14, %rsi
callq 0x2230
movq %r14, %rdi
leaq 0x24de(%rip), %rsi      # 0x50e6
callq 0x2090
testl %eax, %eax
je 0x2d3a
movq 0x10(%rsp), %r14
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x2230
shrq %r14
cmpl $0x2, %r14d
jl 0x2c7f
decl %r14d
movq %rbp, %rdi
movq %r15, %rsi
callq 0x2230
movq %r13, %rdi
movl $0x2d, %esi
movq %r15, %rdx
callq 0x44fd
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %rbx, %rdi
callq 0x20a0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2c7a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21d0
decl %r14d
jne 0x2c31
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x3d86
leaq 0x98(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %r14
movq %r14, %rdi
callq 0x3d86
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x31dd
leaq 0x8(%rsp), %r14
movslq 0x59ae78a(%rip), %rcx   # 0x59b1470
leal 0x1(%rcx), %edx
movl %edx, 0x59ae781(%rip)   # 0x59b1470
movl %eax, (%r12,%rcx,4)
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2d18
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2db5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x2db5
movl $0x1, %edx
movl %edx, 0x59ae73b(%rip)   # 0x59b1480
movslq 0x59ae724(%rip), %rax   # 0x59b1470
leal 0x1(%rax), %ecx
movl %ecx, 0x59ae71b(%rip)   # 0x59b1470
movl %edx, (%r12,%rax,4)
testq %rax, %rax
jle 0x2da6
movl $0x1, %r14d
movslq -0x4(%r12,%r14,4), %rax
testq %rax, %rax
je 0x2d97
movslq (%r12,%r14,4), %rcx
testq %rcx, %rcx
je 0x2d97
imulq $0x16e360, %rax, %rax   # imm = 0x16E360
addq %rcx, %rax
movq %rax, 0x48(%rsp)
leaq 0x5025033(%rip), %rdi   # 0x5027dc0
movq %r13, %rsi
callq 0x457e
incl (%rax)
incq %r14
movslq 0x59ae6cf(%rip), %rax   # 0x59b1470
cmpq %rax, %r14
jl 0x2d64
movl $0x1, 0x59ae6c0(%rip)   # 0x59b1470
leaq 0x8(%rsp), %r14
movq 0xc8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0xe8(%rsp,%rax)
je 0x2bee
leaq 0x2d0(%rsp), %rdi
callq 0x2070
leaq 0xc8(%rsp), %rdi
callq 0x2070
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x2e0e
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x2e2a
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2e46
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
addq $0x4d8, %rsp            # imm = 0x4D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2ee4
movq %rax, %rbx
jmp 0x2ef1
movq %rax, %rbx
jmp 0x2e95
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2e95
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2ed7
movq 0x38(%rsp), %rsi
jmp 0x2ec8
jmp 0x2ed4
jmp 0x2ed4
jmp 0x2ed4
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2ed7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x2ed7
jmp 0x2ed4
movq %rax, %rbx
leaq 0x2d0(%rsp), %rdi
callq 0x2070
leaq 0xc8(%rsp), %rdi
callq 0x2070
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x2f16
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x2f32
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2f4e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2310