// File: /workspace/github_cpp_makefile_star2_O1/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 0x6ea94
movq %rax, %r14
movq %r13, %rdi
movq %rbx, %rsi
callq 0x6ea94
leaq 0x28(%r15), %rcx
cmpq %rcx, %r14
je 0x6b9e5
cmpq %rcx, %rax
je 0x6b9e5
movslq 0x38(%rax), %rcx
movq 0xe0(%r15), %rdi
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
addq %rdi, %rcx
addq $0x8, %rcx
movq 0x8(%rcx), %rsi
movq %rcx, %rdx
testq %rsi, %rsi
je 0x6b9a5
movl 0x38(%r14), %r8d
movq %rcx, %rdx
xorl %r9d, %r9d
cmpl %r8d, 0x20(%rsi)
setl %r9b
cmovgeq %rsi, %rdx
movq 0x10(%rsi,%r9,8), %rsi
testq %rsi, %rsi
jne 0x6b98c
movq %rcx, %rsi
cmpq %rcx, %rdx
je 0x6b9bb
movl 0x38(%r14), %esi
cmpl 0x20(%rdx), %esi
cmovlq %rcx, %rdx
movq %rdx, %rsi
cmpq %rcx, %rsi
jne 0x6b9db
addq $0x38, %rax
movslq 0x38(%r14), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
addq %rcx, %rdi
movq %rax, %rsi
callq 0x132f6
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x12b604(%rip), %rdi    # 0x196ff0
leaq 0xea7f5(%rip), %rsi     # 0x1561e8
callq 0x4440
leaq 0xe9b2f(%rip), %r14     # 0x15552e
movq %rax, %rdi
movq %r14, %rsi
callq 0x4440
leaq 0xea80d(%rip), %rsi     # 0x15621e
movq %rax, %rdi
callq 0x4440
movq %rax, %r15
movq %r12, %rdi
xorl %esi, %esi
callq 0x85478
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x4810
leaq 0xe5a1b(%rip), %r15     # 0x151454
movq %rax, %rdi
movq %r15, %rsi
callq 0x4440
movq %rax, %r13
movq %r12, %rdi
movl $0x1, %esi
callq 0x85478
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 0x85478
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x4810
leaq 0xe8b61(%rip), %r12     # 0x1545ef
movq %rax, %rdi
movq %r12, %rsi
callq 0x4440
movq %rax, %rdi
movq %r14, %rsi
callq 0x4440
leaq 0xea77e(%rip), %rsi     # 0x156229
movq %rax, %rdi
callq 0x4440
movq %rax, %r13
movq %rbx, %rdi
xorl %esi, %esi
callq 0x85478
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 0x85478
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 0x85478
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 0xeaa7b(%rip), %rsi     # 0x1565b2
movq %rax, %rdi
callq 0x4440
movq %rax, %rdi
movq %r14, %rsi
callq 0x4440
movl $0x1, %edi
callq 0x710c