// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r13
leaq 0x58(%rsp), %rbx
leaq 0x40(%rsp), %r12
leaq 0x20(%rdi), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x513a4
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x513a4
movq %rax, %r14
leaq 0x28(%r13), %rax
cmpq %rax, %r15
je 0x4eeb7
cmpq %rax, %r14
je 0x4eeb7
movslq 0x38(%r14), %rax
imulq $0x30, %rax, %rdi
addq 0xe0(%r13), %rdi
addq $0x38, %r15
movq %r15, %rsi
callq 0xf68e
movslq 0x38(%r14), %rcx
movq 0xe0(%r13), %rdi
imulq $0x30, %rcx, %rcx
addq %rdi, %rcx
addq $0x8, %rcx
cmpq %rcx, %rax
jne 0x4eea8
addq $0x38, %r14
movslq (%r15), %rax
imulq $0x30, %rax, %rax
addq %rax, %rdi
movq %r14, %rsi
callq 0xf334
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x101132(%rip), %rdi    # 0x14fff0
leaq 0xb4373(%rip), %rsi     # 0x103238
callq 0x4480
leaq 0xb36ad(%rip), %r14     # 0x10257e
movq %rax, %rdi
movq %r14, %rsi
callq 0x4480
leaq 0xb438b(%rip), %rsi     # 0x10326e
movq %rax, %rdi
callq 0x4480
movq %rax, %r15
movq %r12, %rdi
xorl %esi, %esi
callq 0x63c78
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x47f0
leaq 0xaf575(%rip), %r15     # 0xfe480
movq %rax, %rdi
movq %r15, %rsi
callq 0x4480
movq %rax, %r13
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x63c78
movsd (%rax), %xmm0
movq %r13, %rdi
callq 0x47f0
movq %rax, %rdi
movq %r15, %rsi
callq 0x4480
movq %rax, %rbp
pushq $0x2
popq %r13
movq %r12, %rdi
movl %r13d, %esi
callq 0x63c78
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x47f0
leaq 0xb26af(%rip), %r12     # 0x10160f
movq %rax, %rdi
movq %r12, %rsi
callq 0x4480
movq %rax, %rdi
movq %r14, %rsi
callq 0x4480
leaq 0xb42fc(%rip), %rsi     # 0x103279
movq %rax, %rdi
callq 0x4480
movq %rax, %rbp
movq %rbx, %rdi
xorl %esi, %esi
callq 0x63c78
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x47f0
movq %rax, %rdi
movq %r15, %rsi
callq 0x4480
movq %rax, %rbp
movq %rbx, %rdi
pushq $0x1
popq %r14
movl %r14d, %esi
callq 0x63c78
movsd (%rax), %xmm0
movq %rbp, %rdi
callq 0x47f0
movq %rax, %rdi
movq %r15, %rsi
callq 0x4480
movq %rax, %r15
movq %rbx, %rdi
movl %r13d, %esi
callq 0x63c78
movsd (%rax), %xmm0
movq %r15, %rdi
callq 0x47f0
movq %rax, %rdi
movq %r12, %rsi
callq 0x4480
movq %rax, %rdi
leaq 0xb357d(%rip), %rbx     # 0x10257e
movq %rbx, %rsi
callq 0x4480
leaq 0xb4612(%rip), %rsi     # 0x103622
movq %rax, %rdi
callq 0x4480
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4480
movl %r14d, %edi
callq 0x524c
nop