// File: gchen98[P]macs/datastructures.cpp
// Function: GraphBuilder::~GraphBuilder()
GraphBuilder::~GraphBuilder(){
    cerr<<"Graphbuilder destructor\n";
    this->pConfig = NULL;
    this->pRandNumGenerator = NULL;

    delete this->pEdgeListInARG;
    delete this->pEdgeVectorByPop;

    delete this->pVectorIndicesToRecycle;
    delete [] pTreeEdgesToCoalesceArray;
    delete this->pEdgeVectorInTree;
    delete [] this->pSampleNodeArray;
    MutationPtrVector::iterator it;
    for(it=pMutationPtrVector->begin();it!=pMutationPtrVector->end();++it){
        delete(*it);
    }
    delete this->pMutationPtrVector;
    delete this->pEventList;
    delete this->pGeneConversionPtrSet;
    delete [] sites;
    delete pChrPositionQueue;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq 0x20ef2(%rip), %rdi     # 0x48ff0
leaq 0xc61f(%rip), %rsi      # 0x34724
callq 0x42b0
jmp 0x2810c
movq -0x28(%rbp), %rax
movq $0x0, 0x8(%rax)
movq $0x0, (%rax)
movq 0x10(%rax), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x28144
movq -0x30(%rbp), %rdi
callq 0x1f700
movq -0x30(%rbp), %rdi
movl $0x18, %esi
callq 0x42d0
movq -0x28(%rbp), %rax
movq 0x98(%rax), %rax
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x28170
movq -0x38(%rbp), %rdi
callq 0x2b8f0
movq -0x38(%rbp), %rdi
movl $0x18, %esi
callq 0x42d0
movq -0x28(%rbp), %rax
movq 0xa0(%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x2819c
movq -0x40(%rbp), %rdi
callq 0x2b950
movq -0x40(%rbp), %rdi
movl $0x18, %esi
callq 0x42d0
movq -0x28(%rbp), %rax
movq 0xb8(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, %rax
je 0x28212
movq -0x48(%rbp), %rcx
movq %rcx, %rax
addq $-0x8, %rax
movq %rax, -0x60(%rbp)
movq -0x8(%rcx), %rdx
movq %rdx, -0x58(%rbp)
shlq $0x4, %rdx
movq %rcx, %rax
addq %rdx, %rax
cmpq %rax, %rcx
movq %rax, -0x50(%rbp)
je 0x281fd
movq -0x50(%rbp), %rdi
addq $-0x10, %rdi
movq %rdi, -0x68(%rbp)
callq 0x1e090
movq -0x48(%rbp), %rcx
movq -0x68(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x50(%rbp)
jne 0x281db
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
shlq $0x4, %rsi
addq $0x8, %rsi
callq 0x4560
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, %rax
je 0x2823b
movq -0x70(%rbp), %rdi
callq 0x2b9b0
movq -0x70(%rbp), %rdi
movl $0x18, %esi
callq 0x42d0
movq -0x28(%rbp), %rax
movq 0xc0(%rax), %rax
movq %rax, -0x78(%rbp)
cmpq $0x0, %rax
je 0x282c3
movq -0x78(%rbp), %rcx
movq %rcx, %rax
addq $-0x8, %rax
movq %rax, -0x90(%rbp)
movq -0x8(%rcx), %rdx
movq %rdx, -0x88(%rbp)
shlq $0x3, %rdx
movq %rcx, %rax
addq %rdx, %rax
cmpq %rax, %rcx
movq %rax, -0x80(%rbp)
je 0x282a8
movq -0x80(%rbp), %rdi
addq $-0x8, %rdi
movq %rdi, -0x98(%rbp)
callq 0x1e420
movq -0x78(%rbp), %rcx
movq -0x98(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x80(%rbp)
jne 0x28280
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
shlq $0x3, %rsi
addq $0x8, %rsi
callq 0x4560
leaq -0x10(%rbp), %rdi
callq 0x2ba10
movq -0x28(%rbp), %rax
movq 0xa8(%rax), %rdi
callq 0x26150
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x28(%rbp), %rax
movq 0xa8(%rax), %rdi
callq 0x25fa0
movq %rax, -0x20(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x2ba30
testb $0x1, %al
jne 0x2830f
jmp 0x28352
leaq -0x10(%rbp), %rdi
callq 0x265b0
movq (%rax), %rax
movq %rax, -0xa0(%rbp)
cmpq $0x0, %rax
je 0x28345
movq -0xa0(%rbp), %rdi
callq 0x271e0
movq -0xa0(%rbp), %rdi
movl $0x18, %esi
callq 0x42d0
jmp 0x28347
leaq -0x10(%rbp), %rdi
callq 0x2ba70
jmp 0x282e8
movq -0x28(%rbp), %rax
movq 0xa8(%rax), %rax
movq %rax, -0xa8(%rbp)
cmpq $0x0, %rax
je 0x28387
movq -0xa8(%rbp), %rdi
callq 0x2ba90
movq -0xa8(%rbp), %rdi
movl $0x18, %esi
callq 0x42d0
movq -0x28(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0xb0(%rbp)
cmpq $0x0, %rax
je 0x283b9
movq -0xb0(%rbp), %rdi
callq 0xb820
movq -0xb0(%rbp), %rdi
movl $0x18, %esi
callq 0x42d0
movq -0x28(%rbp), %rax
movq 0xf0(%rax), %rax
movq %rax, -0xb8(%rbp)
cmpq $0x0, %rax
je 0x283ee
movq -0xb8(%rbp), %rdi
callq 0x2baf0
movq -0xb8(%rbp), %rdi
movl $0x30, %esi
callq 0x42d0
movq -0x28(%rbp), %rax
movq 0xb0(%rax), %rax
movq %rax, -0xc0(%rbp)
cmpq $0x0, %rax
je 0x28412
movq -0xc0(%rbp), %rdi
callq 0x43d0
movq -0x28(%rbp), %rax
movq 0xd8(%rax), %rax
movq %rax, -0xc8(%rbp)
cmpq $0x0, %rax
je 0x28447
movq -0xc8(%rbp), %rdi
callq 0x2bb10
movq -0xc8(%rbp), %rdi
movl $0x50, %esi
callq 0x42d0
movq -0x28(%rbp), %rdi
addq $0x110, %rdi            # imm = 0x110
callq 0x1e090
movq -0x28(%rbp), %rdi
addq $0x100, %rdi            # imm = 0x100
callq 0x1e090
movq -0x28(%rbp), %rdi
addq $0x88, %rdi
callq 0x1e090
movq -0x28(%rbp), %rdi
addq $0x78, %rdi
callq 0x1e090
movq -0x28(%rbp), %rdi
addq $0x60, %rdi
callq 0xbae0
movq -0x28(%rbp), %rdi
addq $0x48, %rdi
callq 0x1e420
movq -0x28(%rbp), %rdi
addq $0x40, %rdi
callq 0x1e420
movq -0x28(%rbp), %rdi
addq $0x38, %rdi
callq 0x1e420
addq $0xd0, %rsp
popq %rbp
retq
movq %rax, %rdi
callq 0xb7d0
nopl (%rax)