// File: flastest[P]HeterogeneousParallelDijkstra/BGL_Dijkstra.cc
// Function: initialize_distances_from_source_and_mutex_maps(boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, boost::no_property, boost::property<boost::edge_weight_t, int, boost::no_property>, boost::no_property, boost::listS> const&, std::map<unsigned long, std::shared_ptr<std::mutex>, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::shared_ptr<std::mutex>>>>&, std::map<unsigned long, std::shared_ptr<std::mutex>, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::shared_ptr<std::mutex>>>>&)
distance_map_t initialize_distances_from_source_and_mutex_maps(
								const graph_t &graph,
								mutex_map_t &distance_mutexes,
								mutex_map_t &predecessor_mutexes)
{
	map<vertex_descriptor, float> distances;
	
	int num_nodes = num_vertices(graph);

	for (int i = 0; i < num_nodes; ++i)
	{
		vertex_descriptor current_vertex = vertex(i,graph);
		distances[current_vertex] = INFINITY;
		//if (DEBUG) std::cout<<"i bet that infinity is a really big negative. it is "<< INFINITY <<std::endl;
		distance_mutexes[current_vertex] = mutex_ptr(new std::mutex);
		predecessor_mutexes[current_vertex] = mutex_ptr(new std::mutex);
	}

	return distances;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x78(%rbp)
movq %rdi, %rax
movq %rax, -0x70(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movb $0x0, -0x21(%rbp)
callq 0x1da00
movq -0x10(%rbp), %rdi
callq 0xae10
movq %rax, -0x68(%rbp)
jmp 0x1b95e
movq -0x68(%rbp), %rax
movl %eax, -0x28(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x28(%rbp), %eax
jge 0x1baca
movslq -0x38(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0xb230
movq %rax, -0x80(%rbp)
jmp 0x1b98b
movq -0x78(%rbp), %rdi
movq -0x80(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq -0x40(%rbp), %rsi
callq 0x1da20
movq %rax, -0x88(%rbp)
jmp 0x1b9a9
movq -0x88(%rbp), %rax
movl $0x7f800000, (%rax)     # imm = 0x7F800000
movl $0x28, %edi
callq 0x4320
movq %rax, -0x90(%rbp)
jmp 0x1b9c9
movq -0x90(%rbp), %rdi
callq 0x1e270
movq -0x90(%rbp), %rsi
leaq -0x50(%rbp), %rdi
callq 0x1e290
jmp 0x1b9e7
movq -0x18(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x1df60
movq %rax, -0x98(%rbp)
jmp 0x1b9fd
movq -0x98(%rbp), %rdi
leaq -0x50(%rbp), %rsi
movq %rsi, -0xa8(%rbp)
callq 0x1e2c0
movq -0xa8(%rbp), %rdi
callq 0x1e2f0
movl $0x28, %edi
callq 0x4320
movq %rax, -0xa0(%rbp)
jmp 0x1ba33
movq -0xa0(%rbp), %rdi
callq 0x1e270
movq -0xa0(%rbp), %rsi
leaq -0x60(%rbp), %rdi
callq 0x1e290
jmp 0x1ba51
movq -0x20(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x1df60
movq %rax, -0xb0(%rbp)
jmp 0x1ba67
movq -0xb0(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0x1e2c0
leaq -0x60(%rbp), %rdi
callq 0x1e2f0
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x1b96c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x1baea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x1e2f0
jmp 0x1baea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x1e2f0
jmp 0x1baea
movb $0x1, -0x21(%rbp)
testb $0x1, -0x21(%rbp)
jne 0x1badd
movq -0x78(%rbp), %rdi
callq 0xb400
movq -0x70(%rbp), %rax
addq $0xb0, %rsp
popq %rbp
retq
movq -0x78(%rbp), %rdi
callq 0xb400
movq -0x30(%rbp), %rdi
callq 0x4520
nopl (%rax)