LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/fusion.cpp
// Function: Fusion::sort_matches()
void Fusion::sort_matches(){
  Mismatch temp_mim;

  // sort by overlap length
  for( int i=0; i<match_list.size(); i++ ){
    for( int j=i; j<match_list.size(); j++ ){
      if( match_list[i].get_length() < match_list[j].get_length() ){
        temp_mim = match_list[i];
        match_list[i] = match_list[j];
        match_list[j] = temp_mim;
      }
    }
  }

  // sort by score
  for( int i=0; i<match_list.size(); i++ ){
    for( int j=i; j<match_list.size(); j++ ){
      if( match_list[i].get_score() > match_list[j].get_score() ){
        temp_mim = match_list[i];
        match_list[i] = match_list[j];
        match_list[j] = temp_mim;
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq -0x60(%rbp), %rdi
callq 0x9558
movq 0x18(%rbx), %rax
cmpq 0x10(%rbx), %rax
je 0xc287
xorl %r13d, %r13d
xorl %r15d, %r15d
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rax
subq %rdi, %rax
sarq $0x5, %rax
movq %r13, -0x30(%rbp)
movq %r15, %r12
cmpq %r15, %rax
movq %r15, -0x38(%rbp)
jbe 0xc267
shlq $0x5, %r15
addq %r15, %rdi
callq 0x95e8
movl %eax, %r14d
movq 0x10(%rbx), %rdi
addq %r13, %rdi
callq 0x95e8
cmpl %eax, %r14d
jge 0xc244
movq 0x10(%rbx), %rax
movups (%rax,%r15), %xmm0
movups 0xc(%rax,%r15), %xmm1
movups %xmm1, -0x54(%rbp)
movaps %xmm0, -0x60(%rbp)
movups (%rax,%r13), %xmm0
movupd 0xc(%rax,%r13), %xmm1
movupd %xmm1, 0xc(%rax,%r15)
movups %xmm0, (%rax,%r15)
movq 0x10(%rbx), %rax
movups -0x54(%rbp), %xmm0
movups %xmm0, 0xc(%rax,%r13)
movapd -0x60(%rbp), %xmm0
movupd %xmm0, (%rax,%r13)
incq %r12
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rax
subq %rdi, %rax
sarq $0x5, %rax
addq $0x20, %r13
cmpq %r12, %rax
movq -0x38(%rbp), %r15
ja 0xc1dc
movq 0x18(%rbx), %rax
subq 0x10(%rbx), %rax
incq %r15
sarq $0x5, %rax
movq -0x30(%rbp), %r13
addq $0x20, %r13
cmpq %r15, %rax
ja 0xc1b9
movq 0x18(%rbx), %rax
cmpq 0x10(%rbx), %rax
je 0xc36c
xorl %r12d, %r12d
xorl %r14d, %r14d
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rax
subq %rdi, %rax
sarq $0x5, %rax
movq %r12, -0x30(%rbp)
movq %r14, %r13
cmpq %r14, %rax
jbe 0xc34c
movq %r14, %r15
shlq $0x5, %r15
addq %r15, %rdi
callq 0x95de
movsd %xmm0, -0x38(%rbp)
movq 0x10(%rbx), %rdi
addq %r12, %rdi
callq 0x95de
movsd -0x38(%rbp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0xc32d
movq 0x10(%rbx), %rax
movups (%rax,%r15), %xmm0
movups 0xc(%rax,%r15), %xmm1
movups %xmm1, -0x54(%rbp)
movaps %xmm0, -0x60(%rbp)
movups (%rax,%r12), %xmm0
movupd 0xc(%rax,%r12), %xmm1
movupd %xmm1, 0xc(%rax,%r15)
movups %xmm0, (%rax,%r15)
movq 0x10(%rbx), %rax
movups -0x54(%rbp), %xmm0
movups %xmm0, 0xc(%rax,%r12)
movapd -0x60(%rbp), %xmm0
movupd %xmm0, (%rax,%r12)
incq %r13
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rax
subq %rdi, %rax
sarq $0x5, %rax
addq $0x20, %r12
cmpq %r13, %rax
ja 0xc2ba
movq 0x18(%rbx), %rax
subq 0x10(%rbx), %rax
incq %r14
sarq $0x5, %rax
movq -0x30(%rbp), %r12
addq $0x20, %r12
cmpq %r14, %rax
ja 0xc29b
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/fusion.cpp
// Function: Fusion::clean_matches()
void Fusion::clean_matches(){
  for( int i=0; i<(int)match_list.size()-1; i++ ){
    int index_i = match_list[i].get_index_i();
    int end_i = match_list[i].get_end_i();
    int index_j = match_list[i].get_index_j();
    int end_j = match_list[i].get_end_j();
    for( int j=i+1; j<match_list.size(); j++ ){
      if( match_list[j].get_index_i() == index_i && match_list[j].get_end_i() == end_i ){
        match_list.erase( match_list.begin() + j );
        j--;
      }
      else if( match_list[j].get_index_j() == index_i && match_list[j].get_end_j() == end_i ){
        match_list.erase( match_list.begin() + j );
        j--;
      }
      else if( match_list[j].get_index_j() == index_j && match_list[j].get_end_j() == end_j ){
        match_list.erase( match_list.begin() + j );
        j--;
      }
      else if( match_list[j].get_index_i() == index_j && match_list[j].get_end_i() == end_j ){
        match_list.erase( match_list.begin() + j );
        j--;
      }
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
movq 0x18(%rbx), %rax
subq %rdi, %rax
shrq $0x5, %rax
cmpl $0x2, %eax
jl 0xc50e
xorl %r15d, %r15d
movq %r15, %r13
shlq $0x5, %r13
addq %r13, %rdi
callq 0x95f2
movl %eax, %r14d
movq 0x10(%rbx), %rdi
addq %r13, %rdi
callq 0x9606
movl %eax, -0x30(%rbp)
movq 0x10(%rbx), %rdi
addq %r13, %rdi
callq 0x95fc
movl %eax, %r12d
addq 0x10(%rbx), %r13
movq %r13, %rdi
callq 0x9610
movl %eax, -0x2c(%rbp)
incq %r15
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rax
subq %rdi, %rax
sarq $0x5, %rax
movq %r15, -0x38(%rbp)
cmpq %r15, %rax
jbe 0xc4e1
movq -0x38(%rbp), %rax
movq %rax, %r15
movl %eax, %r13d
shlq $0x5, %r15
addq %r15, %rdi
callq 0x95f2
cmpl %r14d, %eax
jne 0xc435
movq 0x10(%rbx), %rdi
addq %r15, %rdi
callq 0x9606
cmpl -0x30(%rbp), %eax
je 0xc49b
movq 0x10(%rbx), %rdi
addq %r15, %rdi
callq 0x95fc
cmpl %r14d, %eax
jne 0xc457
movq 0x10(%rbx), %rdi
addq %r15, %rdi
callq 0x9610
cmpl -0x30(%rbp), %eax
je 0xc49b
movq 0x10(%rbx), %rdi
addq %r15, %rdi
callq 0x95fc
cmpl %r12d, %eax
jne 0xc479
movq 0x10(%rbx), %rdi
addq %r15, %rdi
callq 0x9610
cmpl -0x2c(%rbp), %eax
je 0xc49b
movq 0x10(%rbx), %rdi
addq %r15, %rdi
callq 0x95f2
cmpl %r12d, %eax
jne 0xc4c3
movq 0x10(%rbx), %rdi
addq %r15, %rdi
callq 0x9606
cmpl -0x2c(%rbp), %eax
jne 0xc4c3
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rdx
leaq (%rdi,%r15), %rsi
addq $0x20, %rsi
cmpq %rdx, %rsi
je 0xc4bb
addq %r15, %rdi
subq %rsi, %rdx
callq 0x4530
addq $-0x20, 0x18(%rbx)
decl %r13d
incl %r13d
movslq %r13d, %r15
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rax
subq %rdi, %rax
sarq $0x5, %rax
cmpq %r15, %rax
ja 0xc413
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rax
subq %rdi, %rax
shlq $0x1b, %rax
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
addq %rcx, %rax
sarq $0x20, %rax
movq -0x38(%rbp), %r15
cmpq %rax, %r15
jl 0xc3ab
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/match.cpp
// Function: Match::start_match()
void Match::start_match(){
  if( back ){
    match_contig_rr();
  }
  else{
    match_contig_fr();
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpb $0x1, 0x20(%rdi)
jne 0xdcb6
popq %rbp
jmp 0xdcbc
popq %rbp
jmp 0xdf88
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/match.cpp
// Function: Match::check_cov(int)
int Match::check_cov( int pos ){
  int cov = 0;

  for( int i=0; i<matchlist.size(); i++ ){
    if( matchlist[i].get_pos( pos, back ) != -1 ){
      cov++;
    }
  }
  return cov;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x8(%rdi), %rdi
cmpq %rdi, 0x10(%r14)
je 0xe3d0
movl %esi, %ebx
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %r15d, %r15d
addq %r12, %rdi
movzbl 0x20(%r14), %edx
movl %ebx, %esi
callq 0x941c
xorl %ecx, %ecx
cmpb $-0x1, %al
setne %cl
addl %ecx, %r15d
incq %r13
movq 0x8(%r14), %rdi
movq 0x10(%r14), %rax
subq %rdi, %rax
sarq $0x4, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
addq $0x30, %r12
cmpq %r13, %rax
ja 0xe38c
jmp 0xe3d3
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/readlist.cpp
// Function: Readlist::Readlist(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Readlist::Readlist( string readsfiles ){
  Log::Inst()->log_it( "Begin add_reads()" );
  add_reads( readsfiles );

  Log::Inst()->log_it( "Begin sort_reads()" );
  sort_reads();
  
  Log::Inst()->log_it( "Begin sort_rc()" );
  sort_rc();
  
  Log::Inst()->log_it( "Begin create_reads_range()" );
  create_read_range();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa0, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x30(%rdi), %rax
movq %rax, (%rdi)
movq $0x1, 0x8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movl $0x3f800000, 0x20(%rdi) # imm = 0x3F800000
movups %xmm0, 0x28(%rdi)
callq 0x9626
movq %rax, %r15
leaq -0xb0(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x7a2c(%rip), %rsi      # 0x161f0
leaq 0x7a36(%rip), %rdx      # 0x16201
leaq -0xc0(%rbp), %rdi
callq 0x6b5c
leaq -0xc0(%rbp), %rsi
movq %r15, %rdi
callq 0x9846
movq -0xc0(%rbp), %rdi
cmpq %r12, %rdi
je 0xe7f7
callq 0x42f0
leaq -0x90(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0xa0(%rbp), %rdi
callq 0x6876
leaq -0xa0(%rbp), %rsi
movq %rbx, %rdi
callq 0xe996
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
je 0xe838
callq 0x42f0
callq 0x9626
movq %rax, %r14
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x79b3(%rip), %rsi      # 0x16202
leaq 0x79be(%rip), %rdx      # 0x16214
leaq -0x80(%rbp), %rdi
callq 0x6b5c
leaq -0x80(%rbp), %rsi
movq %r14, %rdi
callq 0x9846
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0xe879
callq 0x42f0
movq 0xee18(%rip), %rsi      # 0x1d698
movq 0xee19(%rip), %rdx      # 0x1d6a0
leaq 0x156a(%rip), %rcx      # 0xfdf8
movq %rbx, %rdi
callq 0x100a8
callq 0x9626
movq %rax, %r14
leaq -0x50(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x7968(%rip), %rsi      # 0x16215
leaq 0x7970(%rip), %rdx      # 0x16224
leaq -0x60(%rbp), %rdi
callq 0x6b5c
leaq -0x60(%rbp), %rsi
movq %r14, %rdi
callq 0x9846
movq -0x60(%rbp), %rdi
cmpq %r15, %rdi
je 0xe8d7
callq 0x42f0
movq %rbx, %rdi
callq 0xf4c6
callq 0x9626
movq %rax, %r14
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x792f(%rip), %rsi      # 0x16225
leaq 0x7942(%rip), %rdx      # 0x1623f
leaq -0x40(%rbp), %rdi
callq 0x6b5c
leaq -0x40(%rbp), %rsi
movq %r14, %rdi
callq 0x9846
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0xe920
callq 0x42f0
movq %rbx, %rdi
callq 0xf532
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq -0x40(%rbp), %rdi
jmp 0xe963
jmp 0xe982
movq %rax, %r14
movq -0x60(%rbp), %rdi
jmp 0xe963
jmp 0xe982
movq %rax, %r14
movq -0x80(%rbp), %rdi
jmp 0xe963
jmp 0xe982
movq %rax, %r14
movq -0xa0(%rbp), %rdi
cmpq %r15, %rdi
jne 0xe979
jmp 0xe985
movq %rax, %r14
movq -0xc0(%rbp), %rdi
cmpq %r12, %rdi
je 0xe985
callq 0x42f0
jmp 0xe985
jmp 0xe982
movq %rax, %r14
movq %rbx, %rdi
callq 0x8a10
movq %r14, %rdi
callq 0x4590
nop
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/readlist.cpp
// Function: Readlist::sort_rc()
void Readlist::sort_rc(){
  rc_reflist.resize( rlist.size() );
  
  // initialize the rc_reflist with indices equal to their own as a beginning point
  for( int i=0; i<rc_reflist.size(); i++ ){
    rc_reflist[i]=i;
  }

  // sort
  merge_sort( rc_reflist.begin(), rc_reflist.end(), cmp_rc );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xe1ca(%rip), %rsi      # 0x1d6a0
subq 0xe1bb(%rip), %rsi      # 0x1d698
sarq $0x5, %rsi
leaq 0xe1c8(%rip), %rdi      # 0x1d6b0
callq 0x10124
movq 0xe1c4(%rip), %rdx      # 0x1d6b8
movq 0xe1b5(%rip), %rsi      # 0x1d6b0
movq %rdx, %rax
subq %rsi, %rax
je 0xf51d
sarq $0x3, %rax
cmpq $0x1, %rax
adcq $0x0, %rax
xorl %ecx, %ecx
movq %rcx, (%rsi,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0xf511
leaq 0x6ca(%rip), %rcx       # 0xfbee
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1015c
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/readlist.cpp
// Function: Readlist::cmp_rc(int, int)
bool Readlist::cmp_rc( const int ind1, const int ind2 ){
  string str1 = rlist[ind1].substr( rlist[ind1].length()-max_sort_char, max_sort_char );
  str1 = revcomp( str1 );
  string str2 = rlist[ind2].substr( rlist[ind2].length()-max_sort_char, max_sort_char );
  str2 = revcomp( str2 );

  return (str1.compare( str2 ) < 0 ); 
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xa0, %rsp
movl %esi, %ebx
movslq %edi, %rax
movq 0xda8c(%rip), %rcx      # 0x1d698
shlq $0x5, %rax
leaq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rdx
leaq 0xd9f4(%rip), %r15      # 0x1d614
movslq (%r15), %rcx
subq %rcx, %rdx
leaq -0x60(%rbp), %r14
movq %r14, %rdi
callq 0x4330
leaq -0x90(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0xa0(%rbp), %rdi
callq 0x6876
leaq -0x40(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x946c
leaq -0x60(%rbp), %rdi
leaq -0x40(%rbp), %r14
movq %r14, %rsi
callq 0x43b0
movq (%r14), %rdi
leaq -0x30(%rbp), %r14
cmpq %r14, %rdi
je 0xfc85
callq 0x42f0
movq -0xa0(%rbp), %rdi
cmpq %r12, %rdi
je 0xfc96
callq 0x42f0
movslq %ebx, %rax
movq 0xd9f8(%rip), %rcx      # 0x1d698
shlq $0x5, %rax
leaq (%rcx,%rax), %rsi
movq 0x8(%rcx,%rax), %rdx
movslq (%r15), %rcx
subq %rcx, %rdx
leaq -0x40(%rbp), %rdi
callq 0x4330
leaq -0x70(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x40(%rbp), %rsi
movq -0x38(%rbp), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x6876
leaq -0xc0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x946c
leaq -0x40(%rbp), %rdi
leaq -0xc0(%rbp), %rbx
movq %rbx, %rsi
callq 0x43b0
movq (%rbx), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0xfd0f
callq 0x42f0
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0xfd1d
callq 0x42f0
movq -0x58(%rbp), %r15
movq -0x38(%rbp), %r12
cmpq %r15, %r12
movq %r15, %rdx
cmovbq %r12, %rdx
testq %rdx, %rdx
je 0xfd45
movq -0x40(%rbp), %rsi
movq -0x60(%rbp), %rdi
callq 0x4150
movl %eax, %ebx
jmp 0xfd47
xorl %ebx, %ebx
testl %ebx, %ebx
jne 0xfd6c
subq %r12, %r15
cmpq $-0x7fffffff, %r15      # imm = 0x80000001
movq $-0x80000000, %rbx      # imm = 0x80000000
cmovgeq %r15, %rbx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %rbx
cmovgeq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
je 0xfd7a
callq 0x42f0
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfd8c
callq 0x42f0
shrl $0x1f, %ebx
movl %ebx, %eax
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0xfdb7
callq 0x42f0
jmp 0xfdb7
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r14, %rdi
jne 0xfdd3
jmp 0xfddd
jmp 0xfdda
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
cmpq %r12, %rdi
je 0xfddd
callq 0x42f0
jmp 0xfddd
movq %rax, %rbx
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xfdef
callq 0x42f0
movq %rbx, %rdi
callq 0x4590
nop
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/readlist.cpp
// Function: Readlist::get_read_range(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
tuple<long,long,long,long> Readlist::get_read_range( string read_seg ){
  try{
    return read_range.at(read_seg);
  }
  catch( const out_of_range& e ){
    return make_tuple( -1,-1,-1,-1 );
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x1233a
testq %rax, %rax
je 0xfea8
movdqu 0x28(%rax), %xmm0
movups 0x38(%rax), %xmm1
movups %xmm1, 0x10(%rbx)
movdqu %xmm0, (%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x67b3(%rip), %rdi      # 0x16662
callq 0x4470
movq %rax, %rdi
callq 0x4130
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, (%rbx)
movdqu %xmm0, 0x10(%rbx)
callq 0x4540
jmp 0xfe9e
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/readlist.cpp
// Function: Readlist::homopolymer_check(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Readlist::homopolymer_check( string seq ){
  int i = 0;
  if( seq[0] == 'A' ){
    for( i=1; i<seq.length(); i++ ){
      if( seq[i] != 'A' ){
        break;
      }
    }
  }
  else if( seq[0] == 'T' ){
    for( i=1; i<seq.length(); i++ ){
      if( seq[i] != 'T' ){
        break;
      }
    }
  }
  else if( seq[0] == 'C' ){
    for( i=1; i<seq.length(); i++ ){
      if( seq[i] != 'C' ){
        break;
      }
    }
  }
  else if( seq[0] == 'G' ){
    for( i=1; i<seq.length(); i++ ){
      if( seq[i] != 'G' ){
        break;
      }
    }
  }
  if( i == seq.length() ){
    return true;
  }

  return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rsi), %rcx
movzbl (%rcx), %edx
xorl %eax, %eax
cmpl $0x46, %edx
jg 0xff0e
cmpl $0x41, %edx
je 0xff37
cmpl $0x43, %edx
jne 0xff76
movq 0x8(%rsi), %rdx
movl $0x1, %eax
cmpq $0x2, %rdx
jb 0xff76
cmpb $0x43, (%rcx,%rax)
jne 0xff76
incq %rax
cmpq %rax, %rdx
jne 0xfefe
jmp 0xff73
cmpl $0x54, %edx
je 0xff56
cmpl $0x47, %edx
jne 0xff76
movq 0x8(%rsi), %rdx
movl $0x1, %eax
cmpq $0x2, %rdx
jb 0xff76
cmpb $0x47, (%rcx,%rax)
jne 0xff76
incq %rax
cmpq %rax, %rdx
jne 0xff27
jmp 0xff73
movq 0x8(%rsi), %rdx
movl $0x1, %eax
cmpq $0x2, %rdx
jb 0xff76
cmpb $0x41, (%rcx,%rax)
jne 0xff76
incq %rax
cmpq %rax, %rdx
jne 0xff46
jmp 0xff73
movq 0x8(%rsi), %rdx
movl $0x1, %eax
cmpq $0x2, %rdx
jb 0xff76
cmpb $0x54, (%rcx,%rax)
jne 0xff76
incq %rax
cmpq %rax, %rdx
jne 0xff65
movq %rdx, %rax
movl %eax, %eax
cmpq %rax, 0x8(%rsi)
sete %al
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/readlist.cpp
// Function: void Readlist::merge_sort<__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>, bool (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)>(__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>, __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>, bool (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>))
void Readlist::merge_sort( Iter first, Iter last, Order order ){
  if (last - first > 1){
    Iter middle = first + (last - first)/2;
    merge_sort( first, middle, order );
    merge_sort( middle, last, order );
    inplace_merge( first, middle, last, order );
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
subq %rsi, %r12
sarq $0x5, %r12
cmpq $0x1, %r12
jle 0x10115
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r13
shlq $0x4, %r12
andq $-0x20, %r12
addq %rsi, %r12
movq %r12, %rdx
callq 0x100a8
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x100a8
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10214
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/extension.cpp
// Function: Extension::Extension(Readlist*, int)
Extension::Extension( Readlist *reads, int len ) : reads(reads), len(len), matches(Match(reads)){
  start = -1;
  missed_bp_tot = 0;
  missed_bp_avg = 0;
  back = false;
  contig = "";
  exten_seq = "";
  pos_mult = -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %r12d
movq %rsi, %r14
movq %rdi, %rbx
callq 0xda14
movq %r14, 0x48(%rbx)
leaq 0x50(%rbx), %rax
movq %rax, -0x38(%rbp)
leaq 0x88(%rbx), %r15
leaq 0x98(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rbx)
movups %xmm0, 0x60(%rbx)
movups %xmm0, 0x70(%rbx)
movq %rax, -0x30(%rbp)
movq %rax, 0x88(%rbx)
xorl %eax, %eax
movq %rax, 0x90(%rbx)
movb %al, 0x98(%rbx)
leaq 0xa8(%rbx), %r13
leaq 0xb8(%rbx), %r14
movq %r14, 0xa8(%rbx)
movq %rax, 0xb0(%rbx)
movb %al, 0xb8(%rbx)
movl %r12d, 0xcc(%rbx)
movl $0xffffffff, 0x80(%rbx) # imm = 0xFFFFFFFF
movq %rax, 0xd0(%rbx)
movb %al, 0x84(%rbx)
leaq 0x3b23(%rip), %rcx      # 0x15f4c
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x44f0
movq 0xb0(%rbx), %rdx
leaq 0x3b06(%rip), %rcx      # 0x15f4c
movq %r13, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x44f0
movl $0xffffffff, 0xc8(%rbx) # imm = 0xFFFFFFFF
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
movq (%r13), %rdi
cmpq %r14, %rdi
je 0x1247d
callq 0x42f0
movq (%r15), %rdi
cmpq -0x30(%rbp), %rdi
je 0x1248b
callq 0x42f0
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x12499
callq 0x42f0
movq -0x38(%rbp), %rdi
callq 0x63aa
movq %rbx, %rdi
callq 0x12dde
movq %r12, %rdi
callq 0x4590
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/extension.cpp
// Function: Extension::Extension(Readlist*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Extension::Extension( Readlist *reads, int len, string contig ) : reads(reads), len(len), matches(Match(reads,contig)){
  start = -1;
  missed_bp_tot = 0;
  missed_bp_avg = 0;
  back = false;
  contig = "";
  exten_seq = "";
  pos_mult = -1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r15
movl %edx, -0x2c(%rbp)
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x48(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq -0x58(%rbp), %r13
movq %r13, %rdi
callq 0x6876
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0xda88
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x1250a
callq 0x42f0
movq %r14, 0x48(%rbx)
leaq 0x50(%rbx), %rax
movq %rax, -0x38(%rbp)
leaq 0x98(%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rbx)
movups %xmm0, 0x60(%rbx)
movups %xmm0, 0x70(%rbx)
movq %rax, %r12
movq %rax, 0x88(%rbx)
xorl %eax, %eax
movq %rax, 0x90(%rbx)
movb %al, 0x98(%rbx)
leaq 0xa8(%rbx), %r13
leaq 0xb8(%rbx), %r14
movq %r14, 0xa8(%rbx)
movq %rax, 0xb0(%rbx)
movb %al, 0xb8(%rbx)
movl -0x2c(%rbp), %ecx
movl %ecx, 0xcc(%rbx)
movl $0xffffffff, 0x80(%rbx) # imm = 0xFFFFFFFF
movq %rax, 0xd0(%rbx)
movb %al, 0x84(%rbx)
movq 0x8(%r15), %rdx
leaq 0x39ba(%rip), %rcx      # 0x15f4c
movq %r15, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x44f0
movq 0xb0(%rbx), %rdx
leaq 0x399f(%rip), %rcx      # 0x15f4c
movq %r13, %rdi
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x44f0
movl $0xffffffff, 0xc8(%rbx) # imm = 0xFFFFFFFF
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x12627
callq 0x42f0
jmp 0x12627
movq %rax, %r15
movq (%r13), %rdi
cmpq %r14, %rdi
je 0x125f7
callq 0x42f0
movq 0x88(%rbx), %rdi
cmpq %r12, %rdi
je 0x12608
callq 0x42f0
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x12616
callq 0x42f0
movq -0x38(%rbp), %rdi
callq 0x63aa
movq %rbx, %rdi
callq 0x12dde
movq %r15, %rdi
callq 0x4590
nop
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/extension.cpp
// Function: Extension::bp_count()
void Extension::bp_count(){
  for( int i=0; i<len; i++ ){
    // initialize temporary vector 
    vector<int> ATCG_curr = { 0,0,0,0,0 };
    int next_char = 0;

    // loop through matches to get count of each nucleotide present at the current position
    for( int j=0; j<matches.get_matchlist_size(); j++ ){
      next_char = matches.get_pos( j, start+(pos_mult*i) );

      if ( next_char == 'A' ) {
        ATCG_curr[0]++;
      }
      else if ( next_char == 'T' ) {
        ATCG_curr[1]++;
      }
      else if ( next_char == 'C' ) {
        ATCG_curr[2]++;
      }
      else if ( next_char == 'G' ) {
        ATCG_curr[3]++;
      }
    }

    // determine maximum number of any nucleotide 
    for( int j=0; j<4; j++ ){
      if( ATCG_curr[j] > ATCG_curr[4] ){
        ATCG_curr[4] = ATCG_curr[j];
      }
    }

    // check coverage level and break if below min
    if( ATCG_curr[4] < min_cov ){
      len = i;
      break;
    }

    // initialize next bp to 0 for each nucleotide
    ATCG.push_back( ATCG_curr );
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
cmpl $0x0, 0xcc(%rdi)
jle 0x1277a
movq %rdi, %rbx
leaq 0x50(%rdi), %rax
movq %rax, -0x50(%rbp)
xorl %r13d, %r13d
leaq -0x48(%rbp), %r15
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
movl $0x0, -0x60(%rbp)
movl $0x5, %edx
movq %r15, %rdi
leaq -0x70(%rbp), %rsi
leaq -0x29(%rbp), %rcx
callq 0x12e0c
xorl %r12d, %r12d
movq %rbx, %rdi
callq 0xdaf2
cmpq %r12, %rax
jbe 0x1270d
movl 0xc8(%rbx), %edx
imull %r13d, %edx
addl 0x80(%rbx), %edx
movq %rbx, %rdi
movl %r12d, %esi
callq 0xdb12
movzbl %al, %eax
cmpl $0x46, %eax
jg 0x126e4
cmpl $0x41, %eax
je 0x126f8
cmpl $0x43, %eax
jne 0x12708
movq -0x48(%rbp), %rax
addq $0x8, %rax
jmp 0x12706
cmpl $0x47, %eax
je 0x126fe
cmpl $0x54, %eax
jne 0x12708
movq -0x48(%rbp), %rax
addq $0x4, %rax
jmp 0x12706
movq -0x48(%rbp), %rax
jmp 0x12706
movq -0x48(%rbp), %rax
addq $0xc, %rax
incl (%rax)
incq %r12
jmp 0x126a0
movq -0x48(%rbp), %rax
movl 0x10(%rax), %edx
xorl %ecx, %ecx
movl (%rax,%rcx,4), %esi
cmpl %edx, %esi
jle 0x12722
movl %esi, 0x10(%rax)
movl %esi, %edx
incq %rcx
cmpq $0x4, %rcx
jne 0x12716
movq -0x48(%rbp), %rax
movl 0x10(%rax), %r12d
leaq 0xaede(%rip), %rax      # 0x1d618
movl (%rax), %r14d
cmpl %r14d, %r12d
jge 0x1274b
movl %r13d, 0xcc(%rbx)
jmp 0x12757
movq -0x50(%rbp), %rdi
movq %r15, %rsi
callq 0x12e4a
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x12765
callq 0x42f0
cmpl %r14d, %r12d
jl 0x1277a
incl %r13d
cmpl 0xcc(%rbx), %r13d
jl 0x1267a
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1278b
movq %rax, %rbx
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x1279c
callq 0x42f0
movq %rbx, %rdi
callq 0x4590
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/extension.cpp
// Function: Extension::missed_count()
void Extension::missed_count(){
  for( int i=0; i<len; i++ ){
    int next_char = 0;
    for( int j=0; j<matches.get_matchlist_size(); j++ ){
      next_char = matches.get_pos( j, start+(pos_mult*i) );
      switch( next_char ){
        case 'A':
          if( ATCG[i][0] < ATCG[i][4] ){
            missed_bp[j]++;
            missed_bp_tot++;
          }
          break;
        case 'T':
          if( ATCG[i][1] < ATCG[i][4] ){
            missed_bp[j]++;
            missed_bp_tot++;
          }
          break;
        case 'C':
          if( ATCG[i][2] < ATCG[i][4] ){
            missed_bp[j]++;
            missed_bp_tot++;
          }
          break;
        case 'G':
          if( ATCG[i][3] < ATCG[i][4] ){
            missed_bp[j]++;
            missed_bp_tot++;
          }
          break;
        default:
          break;
      }
    }
  }
}

// Assembly:
cmpl $0x0, 0xcc(%rdi)
jle 0x12884
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0xdaf2
testq %rax, %rax
je 0x12869
leaq (%r15,%r15,2), %r12
xorl %r14d, %r14d
movl 0xc8(%rbx), %edx
imull %r15d, %edx
addl 0x80(%rbx), %edx
movq %rbx, %rdi
movl %r14d, %esi
callq 0xdb12
movzbl %al, %eax
cmpl $0x46, %eax
jg 0x12814
cmpl $0x41, %eax
je 0x1282b
cmpl $0x43, %eax
jne 0x12855
movq 0x50(%rbx), %rax
movq (%rax,%r12,8), %rax
movl 0x8(%rax), %ecx
jmp 0x12842
cmpl $0x47, %eax
je 0x12837
cmpl $0x54, %eax
jne 0x12855
movq 0x50(%rbx), %rax
movq (%rax,%r12,8), %rax
movl 0x4(%rax), %ecx
jmp 0x12842
movq 0x50(%rbx), %rax
movq (%rax,%r12,8), %rax
movl (%rax), %ecx
jmp 0x12842
movq 0x50(%rbx), %rax
movq (%rax,%r12,8), %rax
movl 0xc(%rax), %ecx
cmpl 0x10(%rax), %ecx
jge 0x12855
movq 0x68(%rbx), %rax
incl (%rax,%r14,4)
incl 0xd0(%rbx)
incq %r14
movq %rbx, %rdi
callq 0xdaf2
cmpq %r14, %rax
ja 0x127da
incq %r15
movslq 0xcc(%rbx), %rax
cmpq %rax, %r15
jl 0x127c2
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/extension.cpp
// Function: Extension::error_removal()
bool Extension::error_removal(){
  int start_size = (int)matches.get_matchlist_size();
  for( int i=0; i<missed_bp.size(); i++ ){
    if( missed_bp[i] > missed_bp_avg ){
      matches.remove_match( i );
      missed_bp.erase( missed_bp.begin() + i );
      i--;
    }
  }
  if( start_size > 5 && matches.get_matchlist_size() < start_size * stop_ext ){
    return false;
  }
  
  return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %r14
callq 0xdaf2
movq %rax, %rbx
movq 0x68(%r14), %rax
cmpq %rax, 0x70(%r14)
je 0x12907
xorl %r12d, %r12d
xorl %r15d, %r15d
movl (%rax,%r12,4), %eax
cmpl 0xd4(%r14), %eax
jle 0x128ed
movq %r14, %rdi
movl %r15d, %esi
callq 0xe3e6
movq 0x68(%r14), %rax
movq 0x70(%r14), %rdx
leaq (%rax,%r12,4), %rsi
addq $0x4, %rsi
cmpq %rdx, %rsi
je 0x128e5
leaq (%rax,%r12,4), %rdi
subq %rsi, %rdx
callq 0x4530
addq $-0x4, 0x70(%r14)
decl %r15d
incl %r15d
movslq %r15d, %r12
movq 0x68(%r14), %rax
movq 0x70(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %r12, %rcx
ja 0x128ac
cmpl $0x5, %ebx
jle 0x12951
movq %r14, %rdi
callq 0xdaf2
movq %rax, %xmm0
punpckldq 0x37cf(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x37d7(%rip), %xmm0     # 0x16100
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
leaq 0xaced(%rip), %rax      # 0x1d630
mulsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x12951
xorl %eax, %eax
jmp 0x12953
movb $0x1, %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/afinit[P]afin/contiglist.cpp
// Function: Contiglist::parse_ids()
void Contiglist::parse_ids(){
  for( int i=0; i<contigs.size(); i++ ){
    string contig_id = contigs[i].get_contig_id(); 
    size_t pos = contig_id.find( "_", 5, 1 );

    if( pos != string::npos ){
      contig_id = contig_id.substr( 0, pos );
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq 0x8(%rdi), %rsi
cmpq %rsi, 0x10(%rdi)
je 0x13da0
movq %rdi, %rbx
xorl %r13d, %r13d
leaq -0x48(%rbp), %r14
leaq -0x68(%rbp), %r12
xorl %r15d, %r15d
addq %r13, %rsi
movq %r14, %rdi
callq 0x5ca8
movl $0x5, %edx
movl $0x1, %ecx
movq %r14, %rdi
leaq 0x23ea(%rip), %rsi      # 0x16113
callq 0x4580
cmpq $-0x1, %rax
je 0x13d61
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x4330
movq %r14, %rdi
movq %r12, %rsi
callq 0x43b0
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x13d61
callq 0x42f0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x13d73
callq 0x42f0
incq %r15
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rax
subq %rsi, %rax
sarq $0x4, %rax
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rcx, %rax
addq $0x50, %r13
cmpq %r15, %rax
ja 0x13d0a
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x13dc4
callq 0x42f0
movq %rbx, %rdi
callq 0x4590
// File: /workspace/github_cpp_makefile_star2_O1/sharmaeklavya2[P]ddos-on-anycast/src/lib/network.cpp
// Function: Network::init(int, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int>>> const&, bool, int)
void Network::init(int n, const ipvec& edges, bool virtual_parent, int side_connectivity) {
    // if side_connectivity is positive, that many side_links are made for each edge
    // otherwise in_links are used.
    int vparent = -1;
    depthwise.resize(1);
    if(virtual_parent) {
        vparent = 0;
        make_new_vertices(1, -1);
        depthwise[0].push_back(0);
    }
    int ufirst = vparent + 1;
    int uend = ufirst + n;
    make_new_vertices(n, vparent);
    for(int i=ufirst; i<uend; ++i) {
        depthwise[0].push_back(i);
    }

    for(const iipair& p: edges) {
        int u = ufirst + p.first, v = ufirst + p.second;
        if(side_connectivity > 0) {
            for(int i=0; i<side_connectivity; ++i) {
                add_side_edge(u, v);
            }
        }
        else {
            add_in_edge(u, v);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %ebx
movl %ecx, %r15d
movq %rdx, 0x10(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdi, %r14
leaq 0xa8(%rdi), %r12
movl $0x1, %esi
movq %r12, %rdi
callq 0x3910
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %r15d, %r15d
je 0x2872
movq %r14, %rdi
movl $0x1, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x2938
movq 0xa8(%r14), %rdi
movl $0x0, 0x1c(%rsp)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2866
movl $0x0, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x2870
leaq 0x1c(%rsp), %rdx
callq 0x3f50
xorl %ebp, %ebp
movl %ebx, 0x18(%rsp)
leal 0x1(%rbp), %r13d
movq %r14, %rdi
movq 0x20(%rsp), %rbx
movl %ebx, %esi
movl %ebp, %edx
callq 0x2938
movl %r13d, 0xc(%rsp)
testl %ebx, %ebx
jle 0x28d0
addl %ebp, %ebx
incl %ebx
leaq 0xc(%rsp), %r15
movl %r13d, %eax
movq (%r12), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x28ba
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x28c2
movq %r15, %rdx
callq 0x3e1c
movl 0xc(%rsp), %eax
incl %eax
movl %eax, 0xc(%rsp)
cmpl %ebx, %eax
jl 0x28a0
movq 0x10(%rsp), %rax
movq (%rax), %r12
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
cmpq %rax, %r12
je 0x2928
movl (%r12), %ebp
addl %r13d, %ebp
movl 0x4(%r12), %r15d
addl %r13d, %r15d
movl 0x18(%rsp), %ebx
testl %ebx, %ebx
jle 0x2910
movq %r14, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x2a10
decl %ebx
jne 0x28fd
jmp 0x291d
movq %r14, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x2a8e
addq $0x8, %r12
cmpq 0x10(%rsp), %r12
jne 0x28e6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/sharmaeklavya2[P]ddos-on-anycast/src/lib/network.cpp
// Function: Network::make_new_vertices(int, int)
int Network::make_new_vertices(int k, int _nid) {
    // insert k new physical nodes in the network whose network id is _nid
    // doesn't fill 'depthwise'
    int u = size();
    int uend = u+k;
    nid.resize(uend, _nid);
    netsize.resize(uend, 0);
    if(_nid >= 0) {
        netsize[_nid] += k;
        depth.resize(uend, depth[_nid]);
    }
    else {
        depth.resize(uend, 0);
    }

    in_nbrs.resize(uend);
    side_nbrs.resize(uend);
    up_nbrs.resize(uend);
    down_nbrs.resize(uend);
    return u;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %r12d
movq %rdi, %rbx
leaq 0xc(%rsp), %r13
movl %edx, (%r13)
movq 0x20(%rdi), %r14
subq 0x18(%rdi), %r14
leaq 0x18(%rdi), %rbp
shrq $0x2, %r14
leal (%r14,%r12), %eax
movslq %eax, %r15
movq %r15, %rsi
movq %r13, %rdx
callq 0x39ec
leaq 0x14(%rsp), %rdx
movl $0x0, (%rdx)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x39ec
movslq (%r13), %rax
testq %rax, %rax
js 0x29b1
movq 0x18(%rbx), %rcx
addl %r12d, (%rcx,%rax,4)
leaq 0x30(%rbx), %rdi
movslq 0xc(%rsp), %rdx
shlq $0x2, %rdx
addq 0x30(%rbx), %rdx
jmp 0x29c0
leaq 0x30(%rbx), %rdi
leaq 0x10(%rsp), %rdx
movl $0x0, (%rdx)
movq %r15, %rsi
callq 0x39ec
leaq 0x48(%rbx), %rdi
movq %r15, %rsi
callq 0x3910
leaq 0x60(%rbx), %rdi
movq %r15, %rsi
callq 0x3910
leaq 0x78(%rbx), %rdi
movq %r15, %rsi
callq 0x3910
addq $0x90, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3910
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/sharmaeklavya2[P]ddos-on-anycast/src/lib/network.cpp
// Function: Network::add_upward_edge(int, int)
void Network::add_upward_edge(int u, int v) {
    insert(up_nbrs[u], v);
    insert(down_nbrs[v], u);
    if(is_virtual(v)) {
        fprintf(stderr, "virtual node %d got a child %d\n", v, u);
    }
    if(depth[u] != depth[v] + 1) {
        fprintf(stderr, "Depth of lower node %d is %d, depth of upper node %d is %d\n",
            u, depth[u], v, depth[v]);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movslq %esi, %r15
movq 0x78(%rdi), %rax
leaq (%r15,%r15,2), %rcx
leaq (%rax,%rcx,8), %rdi
movl %edx, 0x8(%rsp)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2b48
movl %ebx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x2b52
leaq 0x8(%rsp), %rdx
callq 0x3e1c
movslq %ebx, %r12
movq 0x90(%r14), %rax
leaq (%r12,%r12,2), %rcx
leaq (%rax,%rcx,8), %rdi
movl %ebp, 0xc(%rsp)
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x2b7e
movl %ebp, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x2b88
leaq 0xc(%rsp), %rdx
callq 0x3e1c
movq 0x18(%r14), %rax
cmpl $0x0, (%rax,%r12,4)
jg 0x2bb4
movq 0x30(%r14), %rax
movl (%rax,%r15,4), %ecx
movl (%rax,%r12,4), %r9d
leal 0x1(%r9), %eax
cmpl %eax, %ecx
jne 0x2bd2
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0xf415(%rip), %rax      # 0x11fd0
movq (%rax), %rdi
leaq 0xa47b(%rip), %rsi      # 0xd040
movl %ebx, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x21b0
jmp 0x2b93
movq 0xf3f7(%rip), %rax      # 0x11fd0
movq (%rax), %rdi
leaq 0xa47d(%rip), %rsi      # 0xd060
movl %ebp, %edx
movl %ebx, %r8d
xorl %eax, %eax
callq 0x21b0
jmp 0x2ba7
nop
// File: /workspace/github_cpp_makefile_star2_O1/sharmaeklavya2[P]ddos-on-anycast/src/lib/network.cpp
// Function: Network::edge_list() const
ipvec Network::edge_list() const {
    ipvec l;
    for(int u=0; u<size(); ++u) {
        if(!is_virtual(u)) {
            for(int v: in_nbrs[u]) {if(v > u) {l.push_back(iipair(u, v));}}
            for(int v: side_nbrs[u]) {if(v > u) {l.push_back(iipair(u, v));}}
            for(int v: up_nbrs[u]) {if(v > u) {l.push_back(iipair(u, v));}}
            for(int v: down_nbrs[u]) {if(v > u) {l.push_back(iipair(u, v));}}
        }
    }
    return l;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x18(%rsi), %rax
movq 0x20(%rsi), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
testl %ecx, %ecx
jle 0x2e14
movq %rsi, %r14
xorl %r12d, %r12d
cmpl $0x0, (%rax,%r12,4)
jle 0x2cd9
incq %r12
movq 0x18(%r14), %rax
movq 0x20(%r14), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movslq %ecx, %rcx
cmpq %rcx, %r12
jl 0x2cb3
jmp 0x2e14
movq 0x48(%r14), %rax
leaq (%r12,%r12,2), %r13
movq (%rax,%r13,8), %rbp
movq 0x8(%rax,%r13,8), %r15
cmpq %r15, %rbp
je 0x2d29
movslq (%rbp), %rax
cmpq %rax, %r12
jge 0x2d23
movl %r12d, (%rsp)
movl %eax, 0x4(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2d18
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x2d23
movq %rbx, %rdi
movq %rsp, %rdx
callq 0x41d0
addq $0x4, %rbp
jmp 0x2cea
movq 0x60(%r14), %rax
movq (%rax,%r13,8), %rbp
movq 0x8(%rax,%r13,8), %r15
cmpq %r15, %rbp
je 0x2d75
movslq (%rbp), %rax
cmpq %rax, %r12
jge 0x2d6f
movl %r12d, (%rsp)
movl %eax, 0x4(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2d64
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x2d6f
movq %rbx, %rdi
movq %rsp, %rdx
callq 0x41d0
addq $0x4, %rbp
jmp 0x2d36
movq 0x78(%r14), %rax
movq (%rax,%r13,8), %rbp
movq 0x8(%rax,%r13,8), %r15
cmpq %r15, %rbp
je 0x2dc1
movslq (%rbp), %rax
cmpq %rax, %r12
jge 0x2dbb
movl %r12d, (%rsp)
movl %eax, 0x4(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2db0
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x2dbb
movq %rbx, %rdi
movq %rsp, %rdx
callq 0x41d0
addq $0x4, %rbp
jmp 0x2d82
movq 0x90(%r14), %rax
movq (%rax,%r13,8), %rbp
movq 0x8(%rax,%r13,8), %r15
cmpq %r15, %rbp
je 0x2cba
movslq (%rbp), %rax
cmpq %rax, %r12
jge 0x2e0e
movl %r12d, (%rsp)
movl %eax, 0x4(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x2e03
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x2e0e
movq %rbx, %rdi
movq %rsp, %rdx
callq 0x41d0
addq $0x4, %rbp
jmp 0x2dd1
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2e2c
jmp 0x2e2c
jmp 0x2e2c
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2e3c
callq 0x2150
movq %r14, %rdi
callq 0x2220
// File: /workspace/github_cpp_makefile_star2_O1/sharmaeklavya2[P]ddos-on-anycast/src/lib/network.cpp
// Function: Network::print(std::ostream&) const
void Network::print(ostream& os) const {
    os << "Network"
        << "(\n        nid = " << nid
        << ",\n    netsize = " << netsize
        << "(\n      depth = " << depth
        << ",\n    in_nbrs = " << in_nbrs
        << ",\n  side_nbrs = " << side_nbrs
        << ",\n    up_nbrs = " << up_nbrs
        << ",\n  down_nbrs = " << down_nbrs
        << "\n)\n";
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0xa25b(%rip), %rsi      # 0xd0b0
movl $0x7, %edx
movq %r14, %rdi
callq 0x21a0
leaq 0xa24f(%rip), %rsi      # 0xd0b8
movl $0x10, %edx
movq %r14, %rdi
callq 0x21a0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3ad7
movq %rax, %r14
leaq 0xa23e(%rip), %rsi      # 0xd0c9
movl $0x10, %edx
movq %rax, %rdi
callq 0x21a0
leaq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x3ad7
movq %rax, %r14
leaq 0xa22c(%rip), %rsi      # 0xd0da
movl $0x10, %edx
movq %rax, %rdi
callq 0x21a0
leaq 0x30(%rbx), %rsi
movq %r14, %rdi
callq 0x3ad7
movq %rax, %r14
leaq 0xa21a(%rip), %rsi      # 0xd0eb
movl $0x10, %edx
movq %rax, %rdi
callq 0x21a0
leaq 0x48(%rbx), %rsi
movq %r14, %rdi
callq 0x3a1f
movq %rax, %r14
leaq 0xa208(%rip), %rsi      # 0xd0fc
movl $0x10, %edx
movq %rax, %rdi
callq 0x21a0
leaq 0x60(%rbx), %rsi
movq %r14, %rdi
callq 0x3a1f
movq %rax, %r14
leaq 0xa1f6(%rip), %rsi      # 0xd10d
movl $0x10, %edx
movq %rax, %rdi
callq 0x21a0
leaq 0x78(%rbx), %rsi
movq %r14, %rdi
callq 0x3a1f
movq %rax, %r14
leaq 0xa1e4(%rip), %rsi      # 0xd11e
movl $0x10, %edx
movq %rax, %rdi
callq 0x21a0
addq $0x90, %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3a1f
leaq 0xa1cf(%rip), %rsi      # 0xd12f
movl $0x3, %edx
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x21a0
// File: /workspace/github_cpp_makefile_star2_O1/sharmaeklavya2[P]ddos-on-anycast/src/lib/prettyprint.hpp
// Function: std::ostream& std::operator<<<std::vector<int, std::allocator<int>>>(std::ostream&, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>> const&)
ostream& operator<<(ostream& os, const std::vector<T>& v) {
        os << "[";
        if(!v.empty()) {
            os << v[0];
        }
        for(int i=1; i < int(v.size()); ++i) {
            os << ", " << v[i];
        }
        os << "]";
        return os;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x9b19(%rip), %rsi      # 0xd54e
movl $0x1, %edx
callq 0x21a0
movq (%r14), %rsi
cmpq 0x8(%r14), %rsi
je 0x3a50
movq %rbx, %rdi
callq 0x3ad7
movq 0x8(%r14), %rax
subq (%r14), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
cmpl $0x2, %eax
jl 0x3ab6
movl $0x1, %r12d
movl $0x18, %r13d
leaq 0x96ee(%rip), %r15      # 0xd167
movl $0x2, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x21a0
movq (%r14), %rsi
addq %r13, %rsi
movq %rbx, %rdi
callq 0x3ad7
incq %r12
movq 0x8(%r14), %rax
subq (%r14), %rax
shrq $0x3, %rax
imull $0xaaaaaaab, %eax, %eax # imm = 0xAAAAAAAB
cltq
addq $0x18, %r13
cmpq %rax, %r12
jl 0x3a79
leaq 0x99bb(%rip), %rsi      # 0xd478
movl $0x1, %edx
movq %rbx, %rdi
callq 0x21a0
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/sharmaeklavya2[P]ddos-on-anycast/src/lib/network_grow.cpp
// Function: Network::hgrow(GraphGen&, int)
void Network::hgrow(GraphGen& graph_gen, int seed) {
    rng_t rng(seed);
    ivec leaves(depthwise.back().begin(), depthwise.back().end());
    for(int u: leaves) {
        if(!is_virtual(u)) {
            expand_node(u, graph_gen, rng());
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq 0xb0(%rdi), %rax
movq -0x18(%rax), %rsi
movq -0x10(%rax), %rdx
leaq 0x10(%rsp), %r15
leaq 0xf(%rsp), %rcx
movq %r15, %rdi
callq 0x5884
movq (%r15), %r12
movq 0x8(%r15), %r13
cmpq %r13, %r12
je 0x4f6c
movslq %ebp, %rcx
movabsq $0x200000005, %rbp      # imm = 0x200000005
movq %rcx, %rax
mulq %rbp
movq %rcx, %r15
subq %rdx, %r15
shrq %r15
addq %rdx, %r15
shrq $0x1e, %r15
movq %r15, %rax
shlq $0x1f, %rax
subq %rax, %r15
leaq (%rcx,%r15), %rax
cmpq $0x1, %rax
adcq %rcx, %r15
movslq (%r12), %rsi
movq 0x18(%r14), %rax
cmpl $0x0, (%rax,%rsi,4)
jg 0x4f63
imulq $0xbc8f, %r15, %rcx     # imm = 0xBC8F
movq %rcx, %rax
mulq %rbp
movq %rcx, %r15
subq %rdx, %r15
shrq %r15
addq %rdx, %r15
shrq $0x1e, %r15
movq %r15, %rax
shlq $0x1f, %rax
subq %rax, %r15
addq %rcx, %r15
movq %r14, %rdi
movq %rbx, %rdx
movl %r15d, %ecx
callq 0x4888
addq $0x4, %r12
cmpq %r13, %r12
jne 0x4f1d
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4f7b
callq 0x2150
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4f9c
callq 0x2150
movq %rbx, %rdi
callq 0x2220
// File: /workspace/github_cpp_makefile_star2_O1/sharmaeklavya2[P]ddos-on-anycast/src/lib/network.hpp
// Function: Network::reserve(int)
void reserve(int n) {
        nid.reserve(n);
        netsize.reserve(n);
        depth.reserve(n);
        in_nbrs.reserve(n);
        side_nbrs.reserve(n);
        up_nbrs.reserve(n);
        down_nbrs.reserve(n);
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movslq %esi, %rbx
movq %rbx, %rsi
callq 0x58be
leaq 0x18(%r14), %rdi
movq %rbx, %rsi
callq 0x58be
leaq 0x30(%r14), %rdi
movq %rbx, %rsi
callq 0x58be
leaq 0x48(%r14), %rdi
movq %rbx, %rsi
callq 0x5ce6
leaq 0x60(%r14), %rdi
movq %rbx, %rsi
callq 0x5ce6
leaq 0x78(%r14), %rdi
movq %rbx, %rsi
callq 0x5ce6
addq $0x90, %r14
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5ce6