// File: KokiKishimoto[P]cp_decomposition/./testdata.hpp
// Function: TestData::readFromRawFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Data&)
void readFromRawFile(std::string filename, Data& traindata) {
		std::ifstream fin;

		fin.open(filename);
		std::string t0, t1, t2;
		while (fin >> t0 >> t1 >> t2) {
			int subj = addEntity(t0, traindata);
			int obj = addEntity(t2, traindata);
			int relation = addRelation(t1, traindata);
			triples.emplace_back(subj, relation, obj);
			if (subj == -1 || obj == -1 || relation == -1) triples.back().flag = true;
		}
		fin.close();
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x350, %rsp            # imm = 0x350
movq %rsi, -0x310(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x320(%rbp)
leaq -0x220(%rbp), %rdi
movq %rdi, -0x318(%rbp)
callq 0x22a0
movq -0x318(%rbp), %rdi
movq -0x310(%rbp), %rsi
movl $0x8, %edx
callq 0x21e0
jmp 0x54c6
leaq -0x250(%rbp), %rdi
callq 0x2320
leaq -0x270(%rbp), %rdi
callq 0x2320
leaq -0x290(%rbp), %rdi
callq 0x2320
leaq -0x220(%rbp), %rdi
leaq -0x250(%rbp), %rsi
callq 0x2300
movq %rax, -0x328(%rbp)
jmp 0x5506
movq -0x328(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x2300
movq %rax, -0x330(%rbp)
jmp 0x5522
movq -0x330(%rbp), %rdi
leaq -0x290(%rbp), %rsi
callq 0x2300
movq %rax, -0x338(%rbp)
jmp 0x553e
movq -0x338(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x22f0
movb %al, -0x339(%rbp)
jmp 0x555c
movb -0x339(%rbp), %al
testb $0x1, %al
jne 0x556b
jmp 0x573c
leaq -0x2b8(%rbp), %rdi
leaq -0x250(%rbp), %rsi
callq 0x20f0
jmp 0x5580
movq -0x320(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0x2b8(%rbp), %rsi
callq 0xa9a0
movl %eax, -0x340(%rbp)
jmp 0x559f
leaq -0x2b8(%rbp), %rdi
callq 0x2150
movl -0x340(%rbp), %eax
movl %eax, -0x294(%rbp)
leaq -0x2e0(%rbp), %rdi
leaq -0x290(%rbp), %rsi
callq 0x20f0
jmp 0x55cc
movq -0x320(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0x2e0(%rbp), %rsi
callq 0xa9a0
movl %eax, -0x344(%rbp)
jmp 0x55eb
leaq -0x2e0(%rbp), %rdi
callq 0x2150
movl -0x344(%rbp), %eax
movl %eax, -0x2bc(%rbp)
leaq -0x308(%rbp), %rdi
leaq -0x270(%rbp), %rsi
callq 0x20f0
jmp 0x5618
movq -0x320(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0x308(%rbp), %rsi
callq 0xaa20
movl %eax, -0x348(%rbp)
jmp 0x5637
leaq -0x308(%rbp), %rdi
callq 0x2150
movl -0x348(%rbp), %eax
movq -0x320(%rbp), %rdi
movl %eax, -0x2e4(%rbp)
leaq -0x294(%rbp), %rsi
leaq -0x2e4(%rbp), %rdx
leaq -0x2bc(%rbp), %rcx
callq 0x74f0
jmp 0x5672
cmpl $-0x1, -0x294(%rbp)
je 0x5691
cmpl $-0x1, -0x2bc(%rbp)
je 0x5691
cmpl $-0x1, -0x2e4(%rbp)
jne 0x5737
movq -0x320(%rbp), %rdi
callq 0x9b20
movb $0x1, 0x10(%rax)
jmp 0x5737
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x57a7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
jmp 0x5783
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x2b8(%rbp), %rdi
callq 0x2150
jmp 0x5783
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x2e0(%rbp), %rdi
callq 0x2150
jmp 0x5783
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x228(%rbp)
movl %eax, -0x22c(%rbp)
leaq -0x308(%rbp), %rdi
callq 0x2150
jmp 0x5783
jmp 0x54ea
leaq -0x220(%rbp), %rdi
callq 0x2080
jmp 0x574a
leaq -0x290(%rbp), %rdi
callq 0x2150
leaq -0x270(%rbp), %rdi
callq 0x2150
leaq -0x250(%rbp), %rdi
callq 0x2150
leaq -0x220(%rbp), %rdi
callq 0x2090
addq $0x350, %rsp            # imm = 0x350
popq %rbp
retq
leaq -0x290(%rbp), %rdi
callq 0x2150
leaq -0x270(%rbp), %rdi
callq 0x2150
leaq -0x250(%rbp), %rdi
callq 0x2150
leaq -0x220(%rbp), %rdi
callq 0x2090
movq -0x228(%rbp), %rdi
callq 0x23a0
nop