// File: 0asa[P]TTree-source/JavaDB.cpp
// Function: JavaDB::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool JavaDB::load(std::string f) {
  long int memo = countLineAtt(f);
  printf ("memo = %ld - att.max_size() = %ld\n",memo,att.max_size());
  att.reserve(memo+10);
	std::ifstream fs(f.c_str());
	if (!fs)
		return false;
	std::string line;
	int ln = 0;
	while (getline(fs, line)) {
		//if (ln==5) printf("%s",line.c_str());
		if (ln>4)
			readline(line);
		ln++;
		if ((ln-5) % 200 == 0) 
			fprintf(stderr,"%d...",ln-5);
	}
	fprintf(stderr,"\n");
	fprintf(stderr,"%d individuals found\n",ln-5);
	fprintf(stderr,"%d attributes found\n",nbatt);
	setNbObject(ln-5);
	initWeight(ln-5);
	std::vector<REPTYPE>(att.begin(),att.end()).swap(att);
	std::vector<REPTYPE>(output.begin(),output.end()).swap(output);
	fs.close();
	return true;
}

// Assembly:
subq $0x388, %rsp            # imm = 0x388
movq %rsi, 0x60(%rsp)
movq %rdi, 0x378(%rsp)
movq %rsi, 0x370(%rsp)
movq 0x378(%rsp), %rax
movq %rax, 0x68(%rsp)
leaq 0x348(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0x3120
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x1e680
movq %rax, 0x78(%rsp)
jmp 0x1dc01
leaq 0x348(%rsp), %rdi
callq 0x3170
movq 0x78(%rsp), %rax
movq 0x68(%rsp), %rdi
movq %rax, 0x368(%rsp)
movq 0x368(%rsp), %rax
movq %rax, 0x48(%rsp)
addq $0x40, %rdi
movq %rdi, 0x50(%rsp)
callq 0x1eb20
movq 0x48(%rsp), %rsi
movq %rax, %rdx
leaq 0x12d7e(%rip), %rdi     # 0x309c8
xorl %eax, %eax
callq 0x3040
movq 0x50(%rsp), %rdi
movq 0x368(%rsp), %rsi
addq $0xa, %rsi
callq 0x1eb40
movq 0x60(%rsp), %rdi
callq 0x3100
movq %rax, %rsi
leaq 0x130(%rsp), %rdi
movl $0x8, %edx
callq 0x3410
movq 0x130(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x130(%rsp,%rax), %rdi
callq 0x3140
movb %al, 0x5f(%rsp)
jmp 0x1dca5
movb 0x5f(%rsp), %al
testb $0x1, %al
jne 0x1dcaf
jmp 0x1dd06
movb $0x0, 0x387(%rsp)
movl $0x1, 0x12c(%rsp)
jmp 0x1e076
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x340(%rsp)
movl %eax, 0x33c(%rsp)
leaq 0x348(%rsp), %rdi
callq 0x3170
jmp 0x1e0a1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x340(%rsp)
movl %eax, 0x33c(%rsp)
jmp 0x1e094
leaq 0x108(%rsp), %rdi
callq 0x3350
movl $0x0, 0x104(%rsp)
leaq 0x130(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x3070
movq %rax, 0x40(%rsp)
jmp 0x1dd3a
movq 0x40(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x3320
movb %al, 0x3f(%rsp)
jmp 0x1dd54
movb 0x3f(%rsp), %al
testb $0x1, %al
jne 0x1dd61
jmp 0x1de33
cmpl $0x4, 0x104(%rsp)
jle 0x1dde4
leaq 0xe0(%rsp), %rdi
leaq 0x108(%rsp), %rsi
callq 0x3120
jmp 0x1dd82
movq 0x68(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x1e830
jmp 0x1dd96
leaq 0xe0(%rsp), %rdi
callq 0x3170
jmp 0x1dde4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x340(%rsp)
movl %eax, 0x33c(%rsp)
jmp 0x1e067
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x340(%rsp)
movl %eax, 0x33c(%rsp)
leaq 0xe0(%rsp), %rdi
callq 0x3170
jmp 0x1e067
movl 0x104(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x104(%rsp)
movl 0x104(%rsp), %eax
subl $0x5, %eax
movl $0xc8, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x1de2e
movq 0x231c5(%rip), %rax     # 0x40fd8
movq (%rax), %rdi
movl 0x104(%rsp), %edx
subl $0x5, %edx
leaq 0x12bc4(%rip), %rsi     # 0x309eb
movb $0x0, %al
callq 0x3360
jmp 0x1dd1e
movq 0x2319e(%rip), %rax     # 0x40fd8
movq %rax, 0x30(%rsp)
movq (%rax), %rdi
leaq 0x127cb(%rip), %rsi     # 0x30614
xorl %eax, %eax
movb %al, 0x3e(%rsp)
callq 0x3360
movq 0x30(%rsp), %rcx
movb 0x3e(%rsp), %al
movq (%rcx), %rdi
movl 0x104(%rsp), %edx
addl $-0x5, %edx
leaq 0x12b80(%rip), %rsi     # 0x309f1
callq 0x3360
movq 0x30(%rsp), %rdx
movq 0x68(%rsp), %rcx
movb 0x3e(%rsp), %al
movq (%rdx), %rdi
movl 0x24(%rcx), %edx
leaq 0x12b76(%rip), %rsi     # 0x30a07
callq 0x3360
movq 0x68(%rsp), %rdi
movl 0x104(%rsp), %esi
addl $-0x5, %esi
callq 0x193d0
jmp 0x1deac
movq 0x68(%rsp), %rdi
movl 0x104(%rsp), %esi
addl $-0x5, %esi
movsd 0x128ad(%rip), %xmm0    # 0x30770
callq 0x18fc0
jmp 0x1deca
movq 0x68(%rsp), %rdi
addq $0x40, %rdi
movq %rdi, 0x20(%rsp)
callq 0x1ec50
movq 0x20(%rsp), %rdi
movq %rax, 0xc0(%rsp)
callq 0x1ec80
movq %rax, 0xb8(%rsp)
leaq 0xb7(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x19980
movq 0x28(%rsp), %rcx
movq 0xc0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
leaq 0xc8(%rsp), %rdi
callq 0x1ecb0
jmp 0x1df2d
movq 0x68(%rsp), %rsi
addq $0x40, %rsi
leaq 0xc8(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x1ed40
movq 0x8(%rsp), %rdi
callq 0x19800
leaq 0xb7(%rsp), %rdi
callq 0x19b40
movq 0x68(%rsp), %rdi
addq $0x28, %rdi
movq %rdi, 0x10(%rsp)
callq 0x1ec50
movq 0x10(%rsp), %rdi
movq %rax, 0x90(%rsp)
callq 0x1ec80
movq %rax, 0x88(%rsp)
leaq 0x87(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x19980
movq 0x18(%rsp), %rcx
movq 0x90(%rsp), %rsi
movq 0x88(%rsp), %rdx
leaq 0x98(%rsp), %rdi
callq 0x1ecb0
jmp 0x1dfc2
movq 0x68(%rsp), %rsi
addq $0x28, %rsi
leaq 0x98(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x1ed40
movq (%rsp), %rdi
callq 0x19800
leaq 0x87(%rsp), %rdi
callq 0x19b40
leaq 0x130(%rsp), %rdi
callq 0x3080
jmp 0x1e001
movb $0x1, 0x387(%rsp)
movl $0x1, 0x12c(%rsp)
leaq 0x108(%rsp), %rdi
callq 0x3170
jmp 0x1e076
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x340(%rsp)
movl %eax, 0x33c(%rsp)
leaq 0xb7(%rsp), %rdi
callq 0x19b40
jmp 0x1e067
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x340(%rsp)
movl %eax, 0x33c(%rsp)
leaq 0x87(%rsp), %rdi
callq 0x19b40
leaq 0x108(%rsp), %rdi
callq 0x3170
jmp 0x1e094
leaq 0x130(%rsp), %rdi
callq 0x30a0
movb 0x387(%rsp), %al
andb $0x1, %al
addq $0x388, %rsp            # imm = 0x388
retq
leaq 0x130(%rsp), %rdi
callq 0x30a0
movq 0x340(%rsp), %rdi
callq 0x33e0
nop