// File: /workspace/github_cpp_makefile_star2_O3/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 0x20(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x60(%rsp), %r15
movq %r15, -0x10(%r15)
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb %al, (%r13)
leaq 0x140(%rsp), %rbx
movq %rbx, %rdi
movl $0x8, %edx
callq 0x7630
movq 0x140(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7350
movsbl %al, %edx
leaq 0x140(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x7730
leaq 0x348(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movl $0x18, %edx
callq 0x7610
leaq 0x348(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x7480
leaq 0x30(%rsp), %rsi
movq %rax, %rdi
callq 0x7480
movq 0x30(%rsp), %r14
callq 0x7060
movq %rax, %rbx
movl (%rax), %ebp
movl $0x0, (%rax)
leaq 0x4d0(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movl $0xa, %edx
callq 0x7520
cmpq %r14, (%r15)
je 0x1b33b
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x1b347
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x1b347
testl %ecx, %ecx
jne 0x1ade0
movl %ebp, (%rbx)
leaq 0x80(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %edx, %edx
movq %rdx, -0x8(%rcx)
movb %dl, (%rcx)
leaq 0x100(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rdx, -0x8(%rcx)
movb %dl, (%rcx)
leaq 0xe0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rdx, -0x8(%rcx)
movb %dl, (%rcx)
leaq 0xc0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rdx, -0x8(%rcx)
movb %dl, (%rcx)
leaq 0xa0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rdx, -0x8(%rcx)
movb %dl, (%rcx)
testl %eax, %eax
jle 0x1b167
leaq 0x10(%rsp), %r15
leaq 0x4d0(%rsp), %r13
leaq 0x140(%rsp), %r14
movq %rax, 0x138(%rsp)
movq 0x140(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7350
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x7730
movq %r13, %rdi
movq %r15, %rsi
movl $0x18, %edx
callq 0x7610
movq %r13, %rdi
leaq 0x70(%rsp), %rsi
callq 0x7480
movq %rax, %rdi
leaq 0xf0(%rsp), %rsi
callq 0x7480
movq %rax, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x7480
movq %rax, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x7480
movq %rax, %rdi
leaq 0x90(%rsp), %rsi
callq 0x7480
cmpq $0x0, 0x98(%rsp)
jne 0x1af0e
movl $0x2, %r8d
leaq 0x90(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0x3434b(%rip), %rcx     # 0x4f254
callq 0x75d0
movq 0xb0(%rsp), %r12
movl (%rbx), %ebp
movl $0x0, (%rbx)
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x72c0
cmpq %r12, 0x8(%rsp)
je 0x1b2b0
movl (%rbx), %r15d
testl %r15d, %r15d
je 0x1af49
cmpl $0x22, %r15d
jne 0x1af4e
jmp 0x1b317
movl %ebp, (%rbx)
movl %ebp, %r15d
ucomisd 0x2fc02(%rip), %xmm0    # 0x4ab58
jb 0x1b2bc
movq 0x110(%rsp), %rax
movq (%rax), %r12
movq 0x70(%rsp), %rbp
movl $0x0, (%rbx)
movq %rbp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x72c0
cmpq %rbp, 0x8(%rsp)
je 0x1b298
movl (%rbx), %r14d
testl %r14d, %r14d
movsd %xmm0, 0x130(%rsp)
je 0x1afa6
cmpl $0x22, %r14d
jne 0x1afac
jmp 0x1b32f
movl %r15d, (%rbx)
movl %r15d, %r14d
movq 0xf0(%rsp), %rbp
movl $0x0, (%rbx)
movq %rbp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x72c0
cmpq %rbp, 0x8(%rsp)
je 0x1b2a4
movl (%rbx), %r15d
testl %r15d, %r15d
movsd %xmm0, 0x128(%rsp)
je 0x1afee
cmpl $0x22, %r15d
jne 0x1aff4
jmp 0x1b30b
movl %r14d, (%rbx)
movl %r14d, %r15d
movq 0xd0(%rsp), %rbp
movl $0x0, (%rbx)
movq %rbp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x72c0
cmpq %rbp, 0x8(%rsp)
je 0x1b28c
movl (%rbx), %r14d
testl %r14d, %r14d
movsd %xmm0, 0x120(%rsp)
je 0x1b036
cmpl $0x22, %r14d
jne 0x1b03c
jmp 0x1b323
movl %r15d, (%rbx)
movl %r15d, %r14d
movq 0xb0(%rsp), %rbp
movl $0x0, (%rbx)
movq %rbp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x72c0
cmpq %rbp, 0x8(%rsp)
je 0x1b2db
movl (%rbx), %r15d
testl %r15d, %r15d
movsd %xmm0, 0x118(%rsp)
je 0x1b07e
cmpl $0x22, %r15d
jne 0x1b084
jmp 0x1b2ff
movl %r14d, (%rbx)
movl %r14d, %r15d
movq 0x90(%rsp), %rbp
movl $0x0, (%rbx)
movq %rbp, %rdi
leaq 0x8(%rsp), %rsi
movl $0xa, %edx
callq 0x7520
cmpq %rbp, 0x8(%rsp)
je 0x1b2f3
leaq -0x80000000(%rax), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
cmpq %rdx, %rcx
leaq 0x140(%rsp), %r14
movsd 0x130(%rsp), %xmm0
jb 0x1b2e7
movl (%rbx), %ecx
cmpl $0x22, %ecx
je 0x1b2e7
testl %ecx, %ecx
jne 0x1b0ec
movl %r15d, (%rbx)
movq %r12, %rdi
movsd 0x128(%rsp), %xmm1
movsd 0x120(%rsp), %xmm2
movsd 0x118(%rsp), %xmm3
movl %eax, %esi
callq 0x10bc2
leaq 0x10(%rsp), %r15
movq %r13, %rdi
movq 0x45e18(%rip), %rsi     # 0x60f38
callq 0x72b0
leaq 0x550(%rsp), %rdi
callq 0x7130
movq 0x138(%rsp), %rax
decl %eax
jne 0x1ae59
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x1b167
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x1b18c
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
leaq 0x20(%rsp), %rbx
leaq 0x60(%rsp), %r14
leaq 0x40(%rsp), %r15
je 0x1b1c0
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x1b1e5
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x1b207
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0x45d2a(%rip), %rsi     # 0x60f38
leaq 0x348(%rsp), %rdi
callq 0x72b0
leaq 0x3c8(%rsp), %rdi
callq 0x7130
leaq 0x140(%rsp), %rdi
callq 0x7100
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x1b24c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x1b263
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1b27a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7390
addq $0x658, %rsp            # imm = 0x658
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x34103(%rip), %rdi     # 0x4f396
callq 0x7210
leaq 0x340f7(%rip), %rdi     # 0x4f396
callq 0x7210
leaq 0x340eb(%rip), %rdi     # 0x4f396
callq 0x7210
leaq 0x340df(%rip), %rdi     # 0x4f396
callq 0x7210
leaq 0x33f94(%rip), %rdi     # 0x4f257
leaq 0x33f54(%rip), %rsi     # 0x4f21e
leaq 0x33f95(%rip), %rcx     # 0x4f266
movl $0x3e, %edx
callq 0x7240
leaq 0x340b4(%rip), %rdi     # 0x4f396
callq 0x7210
leaq 0x340a3(%rip), %rdi     # 0x4f391
callq 0x7560
leaq 0x34097(%rip), %rdi     # 0x4f391
callq 0x7210
leaq 0x34090(%rip), %rdi     # 0x4f396
callq 0x7560
leaq 0x34084(%rip), %rdi     # 0x4f396
callq 0x7560
leaq 0x34078(%rip), %rdi     # 0x4f396
callq 0x7560
leaq 0x3406c(%rip), %rdi     # 0x4f396
callq 0x7560
leaq 0x34060(%rip), %rdi     # 0x4f396
callq 0x7560
leaq 0x3404f(%rip), %rdi     # 0x4f391
callq 0x7210
leaq 0x34043(%rip), %rdi     # 0x4f391
callq 0x7560
jmp 0x1b380
movq %rax, %r12
jmp 0x1b4e9
movq %rax, %r12
cmpl $0x0, (%rbx)
jne 0x1b36c
movl %ebp, (%rbx)
jmp 0x1b36c
movq %rax, %r12
leaq 0x20(%rsp), %r14
leaq 0x60(%rsp), %r15
leaq 0x40(%rsp), %r13
jmp 0x1b4bb
movq %rax, %r12
jmp 0x1b4dc
jmp 0x1b3b6
jmp 0x1b3a9
jmp 0x1b3a9
movq %rax, %r12
cmpl $0x0, (%rbx)
jne 0x1b3d5
movl %ebp, (%rbx)
jmp 0x1b3d5
jmp 0x1b39c
movq %rax, %r12
cmpl $0x0, (%rbx)
jne 0x1b3d5
movl %r14d, (%rbx)
jmp 0x1b3d5
movq %rax, %r12
cmpl $0x0, (%rbx)
jne 0x1b3d5
movl %r15d, (%rbx)
jmp 0x1b3d5
movq %rax, %r12
leaq 0x20(%rsp), %r14
leaq 0x60(%rsp), %r15
leaq 0x40(%rsp), %r13
leaq 0x80(%rsp), %rbx
jmp 0x1b40d
movq %rax, %r12
leaq 0x20(%rsp), %r14
leaq 0x60(%rsp), %r15
leaq 0x40(%rsp), %r13
leaq 0x80(%rsp), %rbx
movq 0x45b45(%rip), %rsi     # 0x60f38
leaq 0x4d0(%rsp), %rdi
callq 0x72b0
leaq 0x550(%rsp), %rdi
callq 0x7130
leaq 0xa0(%rsp), %rax
movq 0x90(%rsp), %rdi
cmpq %rax, %rdi
je 0x1b432
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x1b457
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0x1b47c
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x1b4a1
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1b4bb
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0x45a76(%rip), %rsi     # 0x60f38
leaq 0x348(%rsp), %rdi
callq 0x72b0
leaq 0x3c8(%rsp), %rdi
callq 0x7130
leaq 0x140(%rsp), %rdi
callq 0x7100
movq 0x30(%rsp), %rdi
cmpq %r13, %rdi
je 0x1b500
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0x50(%rsp), %rdi
cmpq %r15, %rdi
je 0x1b517
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x7390
movq 0x10(%rsp), %rdi
cmpq %r14, %rdi
je 0x1b52e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x7390
movq %r12, %rdi
callq 0x76d0