// File: /workspace/github_cpp_makefile_star2_O1/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, %r14
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), %r15
movq 0xef9a(%rip), %r12      # 0x11fc0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x2200
movsbl %al, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x23b0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x3113
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq %rbp, %rdi
movq %r13, %rsi
movl $0x8, %edx
callq 0x2330
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x23d0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x30ca
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x30b5
movss 0xc(%rsp), %xmm0
movss %xmm0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x30c0
movq %r15, %rdi
movq %rbx, %rdx
callq 0x5e78
movq %rbp, %rdi
callq 0x2390
jmp 0x307b
movq 0x10(%rsp), %rax
cmpq 0x18(%rsp), %rax
je 0x30e3
leaq 0x30(%rsp), %rdi
movq %r15, %rsi
callq 0x4cbc
movq %rbp, %rdi
movq %r12, %rsi
callq 0x22c0
leaq 0xe0(%rsp), %rdi
callq 0x20a0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3026
callq 0x21e0
jmp 0x3026
leaq 0x30(%rsp), %rsi
movq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x4ce8
movq (%r15), %r14
movq 0x8(%r15), %rbx
movq 0xee95(%rip), %rdi      # 0x11fc8
leaq 0x8fc2(%rip), %rsi      # 0xc0fc
movl $0x11, %edx
callq 0x2240
subq %r14, %rbx
sarq $0x3, %rbx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rbx, %rsi
movq 0xee68(%rip), %rdi      # 0x11fc8
callq 0x21f0
movq %rax, %rbx
leaq 0x8f9f(%rip), %rsi      # 0xc10e
movl $0x15, %edx
movq %rax, %rdi
callq 0x2240
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 0x2200
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 0x31d0
callq 0x21e0
leaq 0x30(%rsp), %rdi
callq 0x4d62
movq %r15, %rax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3205
movq %rax, %rbx
movq %r15, %rdi
callq 0x4d62
jmp 0x323a
jmp 0x320a
movq %rax, %rbx
jmp 0x322b
movq %rax, %rbx
jmp 0x323a
movq %rax, %rbx
movq 0xedac(%rip), %rsi      # 0x11fc0
leaq 0x68(%rsp), %rdi
callq 0x22c0
leaq 0xe0(%rsp), %rdi
callq 0x20a0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x323a
callq 0x21e0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x324e
callq 0x21e0
leaq 0x30(%rsp), %rdi
callq 0x4d62
movq %rbx, %rdi
callq 0x2360