// File: /workspace/github_cpp_makefile_star2_O3/Ripser[P]ripser/ripser.cpp
// Function: read_point_cloud(std::istream&)
euclidean_distance_matrix read_point_cloud(std::istream& input_stream) {
	std::vector<std::vector<value_t>> points;

	std::string line;
	value_t value;
	while (std::getline(input_stream, line)) {
		std::vector<value_t> point;
		std::istringstream s(line);
		while (s >> value) {
			point.push_back(value);
			s.ignore();
		}
		if (!point.empty()) points.push_back(point);
		assert(point.size() == points.front().size());
	}

	euclidean_distance_matrix eucl_dist(std::move(points));
	index_t n = eucl_dist.size();
	std::cout << "point cloud with " << n << " points in dimension "
	          << eucl_dist.points.front().size() << std::endl;

	return eucl_dist;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, %r15
movq %rdi, 0x28(%rsp)
xorl %eax, %eax
leaq 0x30(%rsp), %rcx
movq %rax, 0x10(%rcx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rcx)
leaq 0x58(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
leaq 0x48(%rsp), %r13
leaq 0x68(%rsp), %rbp
leaq 0xc(%rsp), %rbx
leaq 0x10(%rsp), %r12
movq 0xef98(%rip), %r14      # 0x11fc0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x23a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3115
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq %rbp, %rdi
movq %r13, %rsi
movl $0x8, %edx
callq 0x2320
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x23c0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x30cc
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x30b7
movss 0xc(%rsp), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x30c2
movq %r12, %rdi
movq %rbx, %rdx
callq 0x5e50
movq %rbp, %rdi
callq 0x2380
jmp 0x307d
movq 0x10(%rsp), %rax
cmpq 0x18(%rsp), %rax
je 0x30e5
leaq 0x30(%rsp), %rdi
movq %r12, %rsi
callq 0x4ca2
movq %rbp, %rdi
movq %r14, %rsi
callq 0x22b0
leaq 0xe0(%rsp), %rdi
callq 0x20a0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3028
callq 0x21d0
jmp 0x3028
leaq 0x30(%rsp), %rsi
movq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x4cce
movq (%r15), %r14
movq 0x8(%r15), %rbx
movq 0xee93(%rip), %rdi      # 0x11fc8
leaq 0x8fc0(%rip), %rsi      # 0xc0fc
movl $0x11, %edx
callq 0x2230
subq %r14, %rbx
sarq $0x3, %rbx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rbx, %rsi
movq 0xee66(%rip), %rdi      # 0x11fc8
callq 0x21e0
movq %rax, %rbx
leaq 0x8f9d(%rip), %rsi      # 0xc10e
movl $0x15, %edx
movq %rax, %rdi
callq 0x2230
movq (%r15), %rax
movq 0x8(%rax), %rsi
subq (%rax), %rsi
sarq $0x2, %rsi
movq %rbx, %rdi
callq 0x2170
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2180
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x31d2
callq 0x21d0
leaq 0x30(%rsp), %rdi
callq 0x4d48
movq %r15, %rax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3207
movq %rax, %rbx
movq %r15, %rdi
callq 0x4d48
jmp 0x323c
jmp 0x320c
movq %rax, %rbx
jmp 0x322d
movq %rax, %rbx
jmp 0x323c
movq %rax, %rbx
movq 0xedaa(%rip), %rsi      # 0x11fc0
leaq 0x68(%rsp), %rdi
callq 0x22b0
leaq 0xe0(%rsp), %rdi
callq 0x20a0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x323c
callq 0x21d0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x3250
callq 0x21d0
leaq 0x30(%rsp), %rdi
callq 0x4d48
movq %rbx, %rdi
callq 0x2350