// File: /workspace/github_cpp_makefile_star2_O2/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 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0x58(%rsp), %rdx
movq %rdx, -0x10(%rdx)
andq $0x0, -0x8(%rdx)
movb %cl, (%rax)
movb %cl, (%rdx)
movl $0x1, 0x59aeb0f(%rip)   # 0x59b1460
movb $0x43, 0xe(%rdi)
leaq 0xc8(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rbx, %rsi
callq 0x2300
movb $0x50, 0xe(%rbx)
leaq 0x2d0(%rsp), %rdi
pushq $0x8
popq %rdx
movq %rbx, %rsi
callq 0x2300
leaq 0x28(%rsp), %rsi
leaq 0x48(%rsp), %rbp
leaq 0x88(%rsp), %rbx
leaq 0x59aead8(%rip), %r14   # 0x59b1470
movq 0xc8(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0xe8(%rsp,%rax)
jne 0x2b14
movq %rsi, %r15
leaq 0xc8(%rsp), %rdi
callq 0x2200
movq %r15, %r13
movq %r15, %rdi
leaq 0x2717(%rip), %rsi      # 0x50e6
callq 0x406f
testb %al, %al
je 0x2a37
movq 0x30(%rsp), %r15
leaq 0x2d0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2200
shrq %r15
pushq $0x1
popq %r12
cmpl %r15d, %r12d
jge 0x2ab6
leaq 0x2d0(%rsp), %rdi
movq %rbp, %rsi
callq 0x2200
movq %rbx, %rdi
pushq $0x2d
popq %rsi
movq %rbp, %rdx
callq 0x4079
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x2320
movq %rbx, %rdi
callq 0x20d0
incl %r12d
jmp 0x29f6
pushq $0x1
popq %rdx
movl %edx, 0x59aea30(%rip)   # 0x59b1470
movslq 0x59aea19(%rip), %rcx   # 0x59b1460
leal 0x1(%rcx), %eax
movl %eax, 0x59aea10(%rip)   # 0x59b1460
movl %edx, (%r14,%rcx,4)
pushq $0x1
popq %r15
movq %r13, %rsi
movslq %eax, %rcx
cmpq %rcx, %r15
jge 0x2aa7
movslq -0x4(%r14,%r15,4), %rcx
testq %rcx, %rcx
je 0x2aa2
movslq (%r14,%r15,4), %rdx
testq %rdx, %rdx
je 0x2aa2
imulq $0x16e360, %rcx, %rax   # imm = 0x16E360
addq %rdx, %rax
movq %rax, 0x88(%rsp)
leaq 0x5025321(%rip), %rdi   # 0x5027db0
movq %rbx, %rsi
callq 0x40d6
incl (%rax)
movl 0x59ae9c1(%rip), %eax   # 0x59b1460
movq %r13, %rsi
incq %r15
jmp 0x2a5b
movl $0x1, 0x59ae9af(%rip)   # 0x59b1460
jmp 0x2998
leaq 0x68(%rsp), %rdi
movq %r13, %rsi
callq 0x2230
leaq 0xa8(%rsp), %r12
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x2230
leaq 0x68(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x2de5
movslq 0x59ae971(%rip), %rcx   # 0x59b1460
leal 0x1(%rcx), %edx
movl %edx, 0x59ae968(%rip)   # 0x59b1460
movl %eax, (%r14,%rcx,4)
movq %r12, %rdi
callq 0x20d0
movq %r15, %rdi
callq 0x20d0
movq %r13, %rsi
jmp 0x2998
leaq 0x2d0(%rsp), %rdi
callq 0x2060
leaq 0xc8(%rsp), %rdi
callq 0x2060
leaq 0x48(%rsp), %rdi
callq 0x20d0
leaq 0x8(%rsp), %rdi
callq 0x20d0
leaq 0x28(%rsp), %rdi
callq 0x20d0
addq $0x4d8, %rsp            # imm = 0x4D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2bae
movq %rax, %rbx
jmp 0x2bbb
movq %rax, %rbx
leaq 0xa8(%rsp), %rdi
callq 0x20d0
jmp 0x2b7d
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x2b95
jmp 0x2b9e
jmp 0x2b9e
jmp 0x2b9e
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x20d0
jmp 0x2ba1
jmp 0x2b9e
movq %rax, %rbx
leaq 0x2d0(%rsp), %rdi
callq 0x2060
leaq 0xc8(%rsp), %rdi
callq 0x2060
leaq 0x48(%rsp), %rdi
callq 0x20d0
leaq 0x8(%rsp), %rdi
callq 0x20d0
leaq 0x28(%rsp), %rdi
callq 0x20d0
movq %rbx, %rdi
callq 0x22e0