// File: /workspace/github_cpp_makefile_star2_O3/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), %r12
movq %r12, %rdi
movl $0x8, %edx
callq 0x7570
leaq 0x20(%rsp), %rbx
movq 0x400(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %edx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x7670
movq 0x20(%rsp), %rax
cmpb $0x23, (%rax)
je 0x10500
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, %r15
movl (%rax), %r13d
movl $0x0, (%rax)
leaq 0xf0(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
movl $0xa, %edx
callq 0x7490
cmpq %rbx, (%r14)
je 0x10a0d
movslq %eax, %rcx
movq %rax, 0x40(%rsp)
cmpq %rax, %rcx
jne 0x10a19
movl (%r15), %ebp
cmpl $0x22, %ebp
je 0x10a19
testl %ebp, %ebp
jne 0x105e0
movl %r13d, (%r15)
movl %r13d, %ebp
movq 0x90(%rsp), %rbx
movl $0x0, (%r15)
leaq 0xf0(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
movl $0xa, %edx
callq 0x7490
cmpq %rbx, (%r14)
je 0x10a25
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
leaq -0x80000000(%rax), %rcx
cmpq %rdx, %rcx
movq 0x40(%rsp), %rcx
jb 0x10a31
movl (%r15), %edx
cmpl $0x22, %edx
je 0x10a31
movq %rax, 0x10(%rsp)
testl %edx, %edx
jne 0x10647
movl %ebp, (%r15)
testl %ecx, %ecx
jle 0x10851
movq 0x10(%rsp), %r13
movl %r13d, %eax
shlq $0x3, %rax
testl %r13d, %r13d
movq $-0x1, %rcx
cmovnsq %rax, %rcx
movq %rcx, 0xd8(%rsp)
movq 0x8(%rsp), %rax
addq $0x18, %rax
movq %rax, 0xd0(%rsp)
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq %r13, 0xe0(%rsp)
xorl %ebx, %ebx
leaq 0xf0(%rsp), %r13
movq %rbx, 0x48(%rsp)
movq 0x400(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x7320
movsbl %al, %edx
movq %r12, %rdi
leaq 0x20(%rsp), %rsi
callq 0x7670
movq 0x20(%rsp), %rax
cmpb $0x23, (%rax)
je 0x106a0
movq %r13, %rdi
leaq 0x20(%rsp), %rsi
movl $0x18, %edx
callq 0x7550
movq %r13, %rdi
leaq 0x70(%rsp), %rsi
callq 0x7400
movq 0xd8(%rsp), %rdi
callq 0x7030
movq %rax, %rbx
cmpl $0x0, 0x10(%rsp)
jle 0x10779
xorl %r14d, %r14d
movq %r13, %rdi
leaq 0x50(%rsp), %rsi
callq 0x7400
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x10958
movq 0x50(%rsp), %rbp
movl (%r15), %r12d
movl $0x0, (%r15)
movq %rbp, %rdi
leaq 0x18(%rsp), %rsi
callq 0x7290
cmpq %rbp, 0x18(%rsp)
je 0x1094c
movl (%r15), %eax
testl %eax, %eax
je 0x10763
cmpl $0x22, %eax
jne 0x10766
jmp 0x109e9
movl %r12d, (%r15)
movsd %xmm0, (%rbx,%r14,8)
incq %r14
cmpq %r14, 0xe0(%rsp)
jne 0x1070c
movl $0x18, %edi
callq 0x7340
movq %rax, %rbp
movq 0x70(%rsp), %r14
movl (%r15), %r12d
movl $0x0, (%r15)
movq %r14, %rdi
leaq 0x18(%rsp), %rsi
callq 0x7290
cmpq %r14, 0x18(%rsp)
je 0x109f5
movl (%r15), %eax
testl %eax, %eax
je 0x107be
cmpl $0x22, %eax
jne 0x107c1
jmp 0x10a01
movl %r12d, (%r15)
movq %rbx, (%rbp)
movq 0x10(%rsp), %rax
movl %eax, 0x8(%rbp)
movsd %xmm0, 0x10(%rbp)
movl $0xffffffff, 0xc(%rbp)  # imm = 0xFFFFFFFF
movq %rbp, 0xe8(%rsp)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rsi
cmpq 0x28(%rax), %rsi
je 0x10807
movq %rbp, (%rsi)
addq $0x8, 0x20(%rax)
leaq 0x400(%rsp), %r12
movq 0x48(%rsp), %rbx
jmp 0x10829
movq 0xd0(%rsp), %rdi
leaq 0xe8(%rsp), %rdx
callq 0x13230
leaq 0x400(%rsp), %r12
movq 0x48(%rsp), %rbx
movq %r13, %rdi
movq 0xa725(%rip), %rsi      # 0x1af58
callq 0x7280
leaq 0x170(%rsp), %rdi
callq 0x7120
incl %ebx
cmpl 0x40(%rsp), %ebx
jne 0x1069b
movq 0x8(%rsp), %rcx
movq 0x20(%rcx), %rax
subq 0x18(%rcx), %rax
shrq $0x3, %rax
movl %eax, 0x80(%rcx)
movq 0xa6e9(%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 0x108b8
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x108dd
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x10902
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1091e
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1093a
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 0x4522(%rip), %rdi      # 0x14e75
callq 0x7200
movq 0xa681(%rip), %rdi      # 0x1afe0
leaq 0x4269(%rip), %rsi      # 0x14bcf
movl $0x27, %edx
callq 0x73a0
movq 0xa669(%rip), %rdi      # 0x1afe0
leaq 0x4279(%rip), %rsi      # 0x14bf7
movl $0x6, %edx
callq 0x73a0
movq 0xa651(%rip), %rdi      # 0x1afe0
leaq 0x4268(%rip), %rsi      # 0x14bfe
movl $0x6, %edx
callq 0x73a0
movq 0xa639(%rip), %rdi      # 0x1afe0
movl $0x4f, %esi
callq 0x75f0
movq %rax, %rbx
leaq 0x3a98(%rip), %rsi      # 0x14453
movl $0x2, %edx
movq %rax, %rdi
callq 0x73a0
leaq 0x4236(%rip), %rsi      # 0x14c05
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x73a0
movq %rbx, %rdi
callq 0x7190
callq 0x7100
leaq 0x4485(%rip), %rdi      # 0x14e75
callq 0x74c0
leaq 0x4479(%rip), %rdi      # 0x14e75
callq 0x7200
leaq 0x446d(%rip), %rdi      # 0x14e75
callq 0x74c0
leaq 0x445c(%rip), %rdi      # 0x14e70
callq 0x7200
leaq 0x4450(%rip), %rdi      # 0x14e70
callq 0x74c0
leaq 0x4444(%rip), %rdi      # 0x14e70
callq 0x7200
leaq 0x4438(%rip), %rdi      # 0x14e70
callq 0x74c0
jmp 0x10a88
movq %rax, %rbx
jmp 0x10af4
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x10ac6
movl %ebp, (%r15)
jmp 0x10ac6
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x10ac6
movl %r13d, (%r15)
jmp 0x10ac6
jmp 0x10ac3
jmp 0x10ac3
jmp 0x10a8f
jmp 0x10a8f
jmp 0x10a8f
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x10a79
movl %r12d, (%r15)
movl $0x18, %esi
movq %rbp, %rdi
callq 0x7350
jmp 0x10aa0
movq %rax, %rbx
jmp 0x10ae7
jmp 0x10a8f
movq %rax, %rbx
jmp 0x10aa0
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x10aa0
movl %r12d, (%r15)
movq 0xa4b1(%rip), %rsi      # 0x1af58
leaq 0xf0(%rsp), %rdi
callq 0x7280
leaq 0x170(%rsp), %rdi
callq 0x7120
jmp 0x10ac6
movq %rax, %rbx
movq 0xa48b(%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 0x10b16
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x10b3b
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x10b60
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x10b7c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x7350
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x10b98
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x7350
movq %rbx, %rdi
callq 0x7620