// File: /workspace/github_cpp_makefile_star2_O1/icemiliang[P]vot/src/vot/ot.cc
// Function: vot::OT::read_empirical_from_file(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void OT::read_empirical_from_file(std::string pFilename) {
        std::string line, temp, tempNumM;
        std::ifstream measureFile(pFilename);
        getline(measureFile, line);
        std::stringstream pLine(line);
        pLine >> temp >> tempNumM;
        int numM = stoi(tempNumM);
        // x, y, z, mass, diracIndex
        std::string x, y, z, m, dIdx;
        for (int i = 0; i < numM; i++) {
            getline(measureFile, line);
            std::stringstream pLine(line);
            pLine >> x >> y >> z >> m >> dIdx;
            if (dIdx.empty()) dIdx = "-1";
            // All measures are non-negative
            assert(stod(m) >= 0.0);

            // Add an empirical measure to mDiagram
            mDiagram->add_empirical(stod(x), stod(y), stod(z), stod(m), stoi(dIdx));
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x658, %rsp            # imm = 0x658
movq %rdi, 0x110(%rsp)
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
xorl %eax, %eax
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x20(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x450(%rsp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x7620
movq 0x450(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7340
movsbl %al, %edx
leaq 0x450(%rsp), %r13
leaq 0x30(%rsp), %rsi
movq %r13, %rdi
callq 0x7720
leaq 0x2c8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movl $0x18, %edx
callq 0x7600
leaq 0x2c8(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x7470
leaq 0x10(%rsp), %rsi
movq %rax, %rdi
callq 0x7470
movq 0x10(%rsp), %r14
callq 0x7060
movq %rax, %rbx
movl (%rax), %ebp
movl $0x0, (%rax)
leaq 0x140(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movl $0xa, %edx
callq 0x7510
cmpq %r14, (%r15)
je 0x1b20d
movq %rax, %r12
movslq %r12d, %rax
cmpq %r12, %rax
jne 0x1b219
movl (%rbx), %eax
cmpl $0x22, %eax
je 0x1b219
testl %eax, %eax
jne 0x1acc9
movl %ebp, (%rbx)
leaq 0x100(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xe0(%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)
testl %r12d, %r12d
jle 0x1b014
leaq 0x30(%rsp), %rbp
movq 0x450(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7340
movsbl %al, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x7720
leaq 0x140(%rsp), %r14
movq %r14, %rdi
movq %rbp, %rsi
movl $0x18, %edx
callq 0x7600
movq %r14, %rdi
leaq 0xf0(%rsp), %rsi
callq 0x7470
movq %rax, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x7470
movq %rax, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x7470
movq %rax, %rdi
leaq 0x90(%rsp), %rsi
callq 0x7470
movq %rax, %rdi
leaq 0x70(%rsp), %rsi
callq 0x7470
movq 0x78(%rsp), %rdx
testq %rdx, %rdx
jne 0x1ade2
movl $0x2, %r8d
leaq 0x70(%rsp), %rdi
xorl %esi, %esi
leaq 0x34627(%rip), %rcx     # 0x4f404
callq 0x75c0
movq %r12, 0x138(%rsp)
movq %rbp, %r12
movq 0x90(%rsp), %r15
movl (%rbx), %ebp
movl $0x0, (%rbx)
movq %r15, %rdi
leaq 0x8(%rsp), %rsi
callq 0x72b0
cmpq %r15, 0x8(%rsp)
je 0x1b182
movl (%rbx), %eax
testl %eax, %eax
je 0x1ae25
cmpl $0x22, %eax
jne 0x1ae27
jmp 0x1b1e9
movl %ebp, (%rbx)
ucomisd 0x2fd19(%rip), %xmm0    # 0x4ab48
jb 0x1b18e
movq %r13, %r14
movq 0x110(%rsp), %rax
movq (%rax), %r15
movq 0xf0(%rsp), %rbp
movl (%rbx), %r13d
movl $0x0, (%rbx)
movq %rbp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x72b0
cmpq %rbp, 0x8(%rsp)
je 0x1b16a
movl (%rbx), %eax
testl %eax, %eax
movsd %xmm0, 0x130(%rsp)
je 0x1ae85
cmpl $0x22, %eax
jne 0x1ae88
jmp 0x1b201
movl %r13d, (%rbx)
movq 0xd0(%rsp), %rbp
movl (%rbx), %r13d
movl $0x0, (%rbx)
movq %rbp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x72b0
cmpq %rbp, 0x8(%rsp)
je 0x1b176
movl (%rbx), %eax
testl %eax, %eax
movsd %xmm0, 0x128(%rsp)
je 0x1aeca
cmpl $0x22, %eax
jne 0x1aecd
jmp 0x1b1dd
movl %r13d, (%rbx)
movq 0xb0(%rsp), %rbp
movl (%rbx), %r13d
movl $0x0, (%rbx)
movq %rbp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x72b0
cmpq %rbp, 0x8(%rsp)
je 0x1b15e
movl (%rbx), %eax
testl %eax, %eax
movsd %xmm0, 0x120(%rsp)
je 0x1af0f
cmpl $0x22, %eax
jne 0x1af12
jmp 0x1b1f5
movl %r13d, (%rbx)
movq 0x90(%rsp), %rbp
movl (%rbx), %r13d
movl $0x0, (%rbx)
movq %rbp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x72b0
cmpq %rbp, 0x8(%rsp)
je 0x1b1ad
movl (%rbx), %eax
testl %eax, %eax
movsd %xmm0, 0x118(%rsp)
je 0x1af54
cmpl $0x22, %eax
jne 0x1af57
jmp 0x1b1d1
movl %r13d, (%rbx)
movq 0x70(%rsp), %rbp
movl (%rbx), %r13d
movl $0x0, (%rbx)
movq %rbp, %rdi
leaq 0x8(%rsp), %rsi
movl $0xa, %edx
callq 0x7510
cmpq %rbp, 0x8(%rsp)
je 0x1b1c5
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
movsd 0x130(%rsp), %xmm0
jb 0x1b1b9
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x1b1b9
movq %r12, %rbp
testl %ecx, %ecx
movq 0x138(%rsp), %r12
jne 0x1afc2
movl %r13d, (%rbx)
movq %r15, %rdi
movsd 0x128(%rsp), %xmm1
movsd 0x120(%rsp), %xmm2
movsd 0x118(%rsp), %xmm3
movl %eax, %esi
callq 0x10cb8
movq %r14, %r13
leaq 0x140(%rsp), %rdi
movq 0x46f3f(%rip), %rsi     # 0x61f38
callq 0x72a0
leaq 0x1c0(%rsp), %rdi
callq 0x7130
decl %r12d
jne 0x1ad33
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x1b036
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
leaq 0x40(%rsp), %rbx
leaq 0x60(%rsp), %r14
je 0x1b065
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x1b08a
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x1b0af
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x1b0d4
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0x46e5d(%rip), %rsi     # 0x61f38
leaq 0x2c8(%rsp), %rdi
callq 0x72a0
leaq 0x348(%rsp), %rdi
callq 0x7130
leaq 0x450(%rsp), %rdi
callq 0x7100
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1b11e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x1b135
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0x30(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1b14c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7380
addq $0x658, %rsp            # imm = 0x658
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x343e1(%rip), %rdi     # 0x4f546
callq 0x7210
leaq 0x343d5(%rip), %rdi     # 0x4f546
callq 0x7210
leaq 0x343c9(%rip), %rdi     # 0x4f546
callq 0x7210
leaq 0x343bd(%rip), %rdi     # 0x4f546
callq 0x7210
leaq 0x34272(%rip), %rdi     # 0x4f407
leaq 0x34232(%rip), %rsi     # 0x4f3ce
leaq 0x34273(%rip), %rcx     # 0x4f416
movl $0x3e, %edx
callq 0x7240
leaq 0x34392(%rip), %rdi     # 0x4f546
callq 0x7210
leaq 0x34381(%rip), %rdi     # 0x4f541
callq 0x7550
leaq 0x34375(%rip), %rdi     # 0x4f541
callq 0x7210
leaq 0x3436e(%rip), %rdi     # 0x4f546
callq 0x7550
leaq 0x34362(%rip), %rdi     # 0x4f546
callq 0x7550
leaq 0x34356(%rip), %rdi     # 0x4f546
callq 0x7550
leaq 0x3434a(%rip), %rdi     # 0x4f546
callq 0x7550
leaq 0x3433e(%rip), %rdi     # 0x4f546
callq 0x7550
leaq 0x3432d(%rip), %rdi     # 0x4f541
callq 0x7210
leaq 0x34321(%rip), %rdi     # 0x4f541
callq 0x7550
jmp 0x1b257
movq %rax, %r14
leaq 0x20(%rsp), %rbx
jmp 0x1b3b2
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x1b243
movl %ebp, (%rbx)
jmp 0x1b243
movq %rax, %r14
leaq 0x40(%rsp), %r15
leaq 0x60(%rsp), %r12
leaq 0x20(%rsp), %rbx
jmp 0x1b384
movq %rax, %r14
leaq 0x20(%rsp), %rbx
jmp 0x1b3a5
jmp 0x1b287
jmp 0x1b27a
jmp 0x1b27a
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x1b29e
movl %ebp, (%rbx)
jmp 0x1b29e
jmp 0x1b27a
jmp 0x1b27a
movq %rax, %r14
cmpl $0x0, (%rbx)
jne 0x1b29e
movl %r13d, (%rbx)
jmp 0x1b29e
movq %rax, %r14
leaq 0x40(%rsp), %r15
leaq 0x60(%rsp), %r12
leaq 0x20(%rsp), %rbx
jmp 0x1b2ce
movq %rax, %r14
leaq 0x40(%rsp), %r15
leaq 0x60(%rsp), %r12
leaq 0x20(%rsp), %rbx
movq 0x46c84(%rip), %rsi     # 0x61f38
leaq 0x140(%rsp), %rdi
callq 0x72a0
leaq 0x1c0(%rsp), %rdi
callq 0x7130
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x1b2f0
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x1b315
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x1b33a
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x1b35f
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x1b384
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0x46bad(%rip), %rsi     # 0x61f38
leaq 0x2c8(%rsp), %rdi
callq 0x72a0
leaq 0x348(%rsp), %rdi
callq 0x7130
leaq 0x450(%rsp), %rdi
callq 0x7100
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1b3c9
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x1b3e0
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x7380
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x1b3f7
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7380
movq %r14, %rdi
callq 0x76c0
nop