// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/voronoicell.cc
// Function: VOR_CELL::addEdge(Point, Point)
void VOR_CELL::addEdge(Point from, Point to){
  map<Point,int>::iterator iter1 = vertexIDs.find(from);
  map<Point,int>::iterator iter2 = vertexIDs.find(to);
  if((iter1 == vertexIDs.end()) || (iter2 == vertexIDs.end())){
    cerr << "Unable to add edge because nodes have not been added." << "\n"
	 << "Point 1: (" << from[0] <<  ", " << from[1] << ", " << from[2] << ")" << "\n"
	 << "Point 2: (" << to[0]   <<  ", " << to[1]   << ", " << to[2]   << ")" << "\n"
	 << "Exiting..." << "\n";
    exit(1);
  }
  
  if(edgeConnections[iter2->second].find(iter1->second) == edgeConnections[iter2->second].end())
    edgeConnections[iter1->second].insert(iter2->second);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r15
leaq 0x48(%rsp), %rbx
leaq 0x30(%rsp), %r12
leaq 0x20(%rdi), %r13
movq %r13, %rdi
movq %r12, %rsi
callq 0x6deaa
movq %rax, %r14
movq %r13, %rdi
movq %rbx, %rsi
callq 0x6deaa
leaq 0x28(%r15), %rcx
cmpq %rcx, %r14
je 0x6aea2
cmpq %rcx, %rax
je 0x6aea2
movslq 0x38(%rax), %rcx
movq 0xe0(%r15), %rdi
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movq 0x10(%rdi,%rcx), %rdx
testq %rdx, %rdx
je 0x6ae7a
leaq (%rdi,%rcx), %rsi
addq $0x8, %rsi
movl 0x38(%r14), %ecx
movq %rsi, %r8
xorl %r9d, %r9d
cmpl %ecx, 0x20(%rdx)
setl %r9b
cmovgeq %rdx, %r8
movq 0x10(%rdx,%r9,8), %rdx
testq %rdx, %rdx
jne 0x6ae55
cmpq %rsi, %r8
je 0x6ae7e
cmpl 0x20(%r8), %ecx
jl 0x6ae7e
jmp 0x6ae98
movl 0x38(%r14), %ecx
addq $0x38, %rax
movslq %ecx, %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
addq %rcx, %rdi
movq %rax, %rsi
callq 0x1329a
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x12a147(%rip), %rdi    # 0x194ff0
leaq 0xe9428(%rip), %rsi     # 0x1542d8
callq 0x4440
leaq 0xe8762(%rip), %r14     # 0x15361e
movq %rax, %rdi
movq %r14, %rsi
callq 0x4440
leaq 0xe9440(%rip), %rsi     # 0x15430e
movq %rax, %rdi
callq 0x4440
movq %rax, %r15
movq %r12, %rdi
xorl %esi, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x4810
leaq 0xe45ce(%rip), %r15     # 0x14f4c4
movq %rax, %rdi
movq %r15, %rsi
callq 0x4440
movq %rax, %r13
movq %r12, %rdi
movl $0x1, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x4810
movq %rax, %rdi
movq %r15, %rsi
callq 0x4440
movq %rax, %r13
movq %r12, %rdi
movl $0x2, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x4810
leaq 0xe7754(%rip), %r12     # 0x15269f
movq %rax, %rdi
movq %r12, %rsi
callq 0x4440
movq %rax, %rdi
movq %r14, %rsi
callq 0x4440
leaq 0xe93b1(%rip), %rsi     # 0x154319
movq %rax, %rdi
callq 0x4440
movq %rax, %r13
movq %rbx, %rdi
xorl %esi, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x4810
movq %rax, %rdi
movq %r15, %rsi
callq 0x4440
movq %rax, %r13
movq %rbx, %rdi
movl $0x1, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x4810
movq %rax, %rdi
movq %r15, %rsi
callq 0x4440
movq %rax, %r15
movq %rbx, %rdi
movl $0x2, %esi
callq 0x83f9a
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x4810
movq %rax, %rdi
movq %r12, %rsi
callq 0x4440
movq %rax, %rdi
movq %r14, %rsi
callq 0x4440
leaq 0xe96d6(%rip), %rsi     # 0x1546ca
movq %rax, %rdi
callq 0x4440
movq %rax, %rdi
movq %r14, %rsi
callq 0x4440
movl $0x1, %edi
callq 0x72bc
nop