// File: /workspace/github_cpp_makefile_star2_O3/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, 0x59ae8e8(%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 0x2ddd
leaq 0x8(%rsp), %r14
leaq 0x59ae8a0(%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 0x24d2(%rip), %rsi      # 0x50e6
callq 0x2090
testl %eax, %eax
je 0x2d46
movq 0x10(%rsp), %r14
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x2230
shrq %r14
cmpl $0x2, %r14d
jl 0x2c8b
decl %r14d
movq %rbp, %rdi
movq %r15, %rsi
callq 0x2230
movq %r13, %rdi
movl $0x2d, %esi
movq %r15, %rdx
callq 0x4518
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 0x2c86
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21d0
decl %r14d
jne 0x2c3d
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x3d9a
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 0x3d9a
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
callq 0x31eb
leaq 0x8(%rsp), %r14
movslq 0x59ae77e(%rip), %rcx   # 0x59b1470
leal 0x1(%rcx), %edx
movl %edx, 0x59ae775(%rip)   # 0x59b1470
movl %eax, (%r12,%rcx,4)
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2d24
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2dc3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x2dc3
movl $0x1, %edx
movl %edx, 0x59ae72f(%rip)   # 0x59b1480
movslq 0x59ae718(%rip), %rcx   # 0x59b1470
leal 0x1(%rcx), %eax
movl %eax, 0x59ae70f(%rip)   # 0x59b1470
movl %edx, (%r12,%rcx,4)
testq %rcx, %rcx
jle 0x2db4
movl $0x1, %r14d
movslq -0x4(%r12,%r14,4), %rcx
testq %rcx, %rcx
je 0x2da9
movslq (%r12,%r14,4), %rdx
testq %rdx, %rdx
je 0x2da9
imulq $0x16e360, %rcx, %rax   # imm = 0x16E360
addq %rdx, %rax
movq %rax, 0x48(%rsp)
leaq 0x5025027(%rip), %rdi   # 0x5027dc0
movq %r13, %rsi
callq 0x4598
incl (%rax)
movl 0x59ae6c7(%rip), %eax   # 0x59b1470
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0x2d70
movl $0x1, 0x59ae6b2(%rip)   # 0x59b1470
leaq 0x8(%rsp), %r14
movq 0xc8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0xe8(%rsp,%rax)
je 0x2bfa
leaq 0x2d0(%rsp), %rdi
callq 0x2070
leaq 0xc8(%rsp), %rdi
callq 0x2070
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x2e1c
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x2e38
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2e54
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 0x2ef2
movq %rax, %rbx
jmp 0x2eff
movq %rax, %rbx
jmp 0x2ea3
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x2ea3
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2ee5
movq 0x38(%rsp), %rsi
jmp 0x2ed6
jmp 0x2ee2
jmp 0x2ee2
jmp 0x2ee2
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2ee5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x2ee5
jmp 0x2ee2
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 0x2f24
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x2f40
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2f5c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2310