// File: /workspace/github_cpp_makefile_star2_O1/icemiliang[P]vot/src/votx/otx.cc
// Function: votx::OTX::read_empiricalX_from_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void OTX::read_empiricalX_from_file(std::string pFilename) {
        std::string line, tmp, sNum, sDim, sMass;
        std::ifstream file(pFilename);
        do {getline(file, line);} while (line[0] == '#'); 
        std::stringstream pLine(line);
        pLine >> tmp >> sNum >> sDim;
        int num = stoi(sNum);
        int dim = stoi(sDim);

        // Read samples line by line
        for (int i = 0; i < num; i++) {
            do {getline(file, line);} while (line[0] == '#');
            std::stringstream pline(line);
            pline >> sMass;
            double* coors = new double[dim];
            for (int j = 0; j < dim; j++) {
                ASSERT_VOT(pline >> tmp, "# coor elements != dimension");
                coors[j] = stod(tmp);
            }
            EmpiricalX *tmpempiricalx = new EmpiricalX(dim, *coors, stod(sMass));
            vEmpiricalXs.push_back(tmpempiricalx);
        }
        vNumEmpiricalXs = vEmpiricalXs.size();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x608, %rsp            # imm = 0x608
movq %rdi, %r14
leaq 0x30(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xc0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xa0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x80(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x400(%rsp), %r15
movq %r15, %rdi
movl $0x8, %edx
callq 0x7570
leaq 0x20(%rsp), %rbx
movq 0x400(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %edx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7670
movq 0x20(%rsp), %rax
cmpb $0x23, (%rax)
je 0x10598
leaq 0x278(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl $0x18, %edx
callq 0x7550
movq %r14, 0x8(%rsp)
leaq 0x278(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x7400
leaq 0xb0(%rsp), %rsi
movq %rax, %rdi
callq 0x7400
leaq 0x90(%rsp), %rsi
movq %rax, %rdi
callq 0x7400
movq 0xb0(%rsp), %rbx
callq 0x7060
movq %rax, %r14
movl (%rax), %ebp
movl $0x0, (%rax)
leaq 0xf0(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x7490
cmpq %rbx, (%r12)
je 0x10ab0
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x10abc
movq %rax, %rcx
movl (%r14), %eax
cmpl $0x22, %eax
je 0x10abc
movq %rcx, 0x40(%rsp)
testl %eax, %eax
jne 0x10678
movl %ebp, (%r14)
movq 0x90(%rsp), %rbx
movl (%r14), %ebp
movl $0x0, (%r14)
leaq 0xf0(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x7490
cmpq %rbx, (%r12)
je 0x10ac8
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
leaq -0x80000000(%rax), %rcx
cmpq %rdx, %rcx
movq 0x40(%rsp), %rcx
jb 0x10ad4
movq %rax, %rdx
movl (%r14), %eax
cmpl $0x22, %eax
je 0x10ad4
movq %rdx, 0x10(%rsp)
testl %eax, %eax
jne 0x106e6
movl %ebp, (%r14)
testl %ecx, %ecx
jle 0x108f4
movq 0x10(%rsp), %r12
movslq %r12d, %rax
leaq (,%rax,8), %rcx
testl %eax, %eax
movq $-0x1, %rax
cmovnsq %rcx, %rax
movq %rax, 0xd8(%rsp)
movq 0x8(%rsp), %rax
addq $0x18, %rax
movq %rax, 0xd0(%rsp)
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
movq %r12, 0xe0(%rsp)
xorl %ebx, %ebx
leaq 0xf0(%rsp), %r12
movq %rbx, 0x48(%rsp)
movq 0x400(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %edx
movq %r15, %rdi
leaq 0x20(%rsp), %rsi
callq 0x7670
movq 0x20(%rsp), %rax
cmpb $0x23, (%rax)
je 0x10742
movq %r12, %rdi
leaq 0x20(%rsp), %rsi
movl $0x18, %edx
callq 0x7550
movq %r12, %rdi
leaq 0x70(%rsp), %rsi
callq 0x7400
movq 0xd8(%rsp), %rdi
callq 0x7030
movq %rax, %rbx
cmpl $0x0, 0x10(%rsp)
jle 0x10819
xorl %ebp, %ebp
movq %r12, %rdi
leaq 0x50(%rsp), %rsi
callq 0x7400
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x109fb
movq 0x50(%rsp), %r13
movl (%r14), %r15d
movl $0x0, (%r14)
movq %r13, %rdi
leaq 0x18(%rsp), %rsi
callq 0x7290
cmpq %r13, 0x18(%rsp)
je 0x109ef
movl (%r14), %eax
testl %eax, %eax
je 0x10804
cmpl $0x22, %eax
jne 0x10807
jmp 0x10a8c
movl %r15d, (%r14)
movsd %xmm0, (%rbx,%rbp,8)
incq %rbp
cmpq %rbp, 0xe0(%rsp)
jne 0x107ad
movl $0x18, %edi
callq 0x7340
movq %rax, %r13
movq 0x70(%rsp), %rbp
movl (%r14), %r15d
movl $0x0, (%r14)
movq %rbp, %rdi
leaq 0x18(%rsp), %rsi
callq 0x7290
cmpq %rbp, 0x18(%rsp)
je 0x10a98
movl (%r14), %eax
testl %eax, %eax
je 0x1085e
cmpl $0x22, %eax
jne 0x10861
jmp 0x10aa4
movl %r15d, (%r14)
movq %rbx, (%r13)
movq 0x10(%rsp), %rax
movl %eax, 0x8(%r13)
movsd %xmm0, 0x10(%r13)
movl $0xffffffff, 0xc(%r13)  # imm = 0xFFFFFFFF
movq %r13, 0xe8(%rsp)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rsi
cmpq 0x28(%rax), %rsi
je 0x108aa
movq %r13, (%rsi)
addq $0x8, 0x20(%rax)
leaq 0x400(%rsp), %r15
movq 0x48(%rsp), %rbx
jmp 0x108cc
movq 0xd0(%rsp), %rdi
leaq 0xe8(%rsp), %rdx
callq 0x13298
leaq 0x400(%rsp), %r15
movq 0x48(%rsp), %rbx
movq %r12, %rdi
movq 0xa682(%rip), %rsi      # 0x1af58
callq 0x7280
leaq 0x170(%rsp), %rdi
callq 0x7120
incl %ebx
cmpl 0x40(%rsp), %ebx
jne 0x1073d
movq 0x8(%rsp), %rcx
movq 0x20(%rcx), %rax
subq 0x18(%rcx), %rax
shrq $0x3, %rax
movl %eax, 0x80(%rcx)
movq 0xa646(%rip), %rsi      # 0x1af58
leaq 0x278(%rsp), %rdi
callq 0x7280
leaq 0x2f8(%rsp), %rdi
callq 0x7120
leaq 0x400(%rsp), %rdi
callq 0x70f0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x1095b
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x10980
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x109a5
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x109c1
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x109dd
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7350
addq $0x608, %rsp            # imm = 0x608
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x445f(%rip), %rdi      # 0x14e55
callq 0x7200
movq 0xa5de(%rip), %rdi      # 0x1afe0
leaq 0x41a6(%rip), %rsi      # 0x14baf
movl $0x27, %edx
callq 0x73a0
movq 0xa5c6(%rip), %rdi      # 0x1afe0
leaq 0x41b6(%rip), %rsi      # 0x14bd7
movl $0x6, %edx
callq 0x73a0
movq 0xa5ae(%rip), %rdi      # 0x1afe0
leaq 0x41a5(%rip), %rsi      # 0x14bde
movl $0x6, %edx
callq 0x73a0
movq 0xa596(%rip), %rdi      # 0x1afe0
movl $0x4f, %esi
callq 0x75f0
movq %rax, %rbx
leaq 0x39f5(%rip), %rsi      # 0x14453
movl $0x2, %edx
movq %rax, %rdi
callq 0x73a0
leaq 0x4173(%rip), %rsi      # 0x14be5
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x73a0
movq %rbx, %rdi
callq 0x7190
callq 0x7100
leaq 0x43c2(%rip), %rdi      # 0x14e55
callq 0x74c0
leaq 0x43b6(%rip), %rdi      # 0x14e55
callq 0x7200
leaq 0x43aa(%rip), %rdi      # 0x14e55
callq 0x74c0
leaq 0x4399(%rip), %rdi      # 0x14e50
callq 0x7200
leaq 0x438d(%rip), %rdi      # 0x14e50
callq 0x74c0
leaq 0x4381(%rip), %rdi      # 0x14e50
callq 0x7200
leaq 0x4375(%rip), %rdi      # 0x14e50
callq 0x74c0
jmp 0x10b1f
movq %rax, %rbx
jmp 0x10b8b
jmp 0x10aec
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x10b5d
movl %ebp, (%r14)
jmp 0x10b5d
jmp 0x10b5a
jmp 0x10b5a
jmp 0x10b26
jmp 0x10b26
jmp 0x10b26
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x10b10
movl %r15d, (%r14)
movl $0x18, %esi
movq %r13, %rdi
callq 0x7350
jmp 0x10b37
movq %rax, %rbx
jmp 0x10b7e
jmp 0x10b26
movq %rax, %rbx
jmp 0x10b37
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0x10b37
movl %r15d, (%r14)
movq 0xa41a(%rip), %rsi      # 0x1af58
leaq 0xf0(%rsp), %rdi
callq 0x7280
leaq 0x170(%rsp), %rdi
callq 0x7120
jmp 0x10b5d
movq %rax, %rbx
movq 0xa3f4(%rip), %rsi      # 0x1af58
leaq 0x278(%rsp), %rdi
callq 0x7280
leaq 0x2f8(%rsp), %rdi
callq 0x7120
leaq 0x400(%rsp), %rdi
callq 0x70f0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x10bad
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x10bd2
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x10bf7
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x10c13
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x10c2f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7350
movq %rbx, %rdi
callq 0x7620
nop