// File: 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
subq $0xe0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa8(%rbp)
movl $0x0, -0xc(%rbp)
movq -0xa8(%rbp), %rdi
movl -0xc(%rbp), %eax
movl %eax, -0xac(%rbp)
addq $0x10, %rdi
callq 0x15530
movq %rax, %rcx
movl -0xac(%rbp), %eax
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x14207
movq -0xa8(%rbp), %rdi
addq $0x10, %rdi
movslq -0xc(%rbp), %rsi
callq 0x15550
movq %rax, %rdi
callq 0x10030
movq -0xa8(%rbp), %rdi
movl %eax, -0x10(%rbp)
addq $0x10, %rdi
movslq -0xc(%rbp), %rsi
callq 0x15550
movq %rax, %rdi
callq 0x10070
movq -0xa8(%rbp), %rdi
movl %eax, -0x14(%rbp)
addq $0x10, %rdi
movslq -0xc(%rbp), %rsi
callq 0x15550
movq %rax, %rdi
callq 0x10050
movq -0xa8(%rbp), %rdi
movl %eax, -0x18(%rbp)
addq $0x10, %rdi
movslq -0xc(%rbp), %rsi
callq 0x15550
movq %rax, %rdi
callq 0x10090
movl %eax, -0x1c(%rbp)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
movq -0xa8(%rbp), %rdi
movslq -0x20(%rbp), %rax
movq %rax, -0xb8(%rbp)
addq $0x10, %rdi
callq 0x15530
movq %rax, %rcx
movq -0xb8(%rbp), %rax
cmpq %rcx, %rax
jae 0x141f7
movq -0xa8(%rbp), %rdi
addq $0x10, %rdi
movslq -0x20(%rbp), %rsi
callq 0x15550
movq %rax, %rdi
callq 0x10030
cmpl -0x10(%rbp), %eax
jne 0x13fd9
movq -0xa8(%rbp), %rdi
addq $0x10, %rdi
movslq -0x20(%rbp), %rsi
callq 0x15550
movq %rax, %rdi
callq 0x10070
cmpl -0x14(%rbp), %eax
jne 0x13fd9
movq -0xa8(%rbp), %rdi
movq %rdi, %rax
addq $0x10, %rax
movq %rax, -0xc0(%rbp)
addq $0x10, %rdi
callq 0x155e0
movq %rax, -0x38(%rbp)
movslq -0x20(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x15610
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x15650
movq -0xc0(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x15570
movq %rax, -0x40(%rbp)
movl -0x20(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x141e7
movq -0xa8(%rbp), %rdi
addq $0x10, %rdi
movslq -0x20(%rbp), %rsi
callq 0x15550
movq %rax, %rdi
callq 0x10050
cmpl -0x10(%rbp), %eax
jne 0x14081
movq -0xa8(%rbp), %rdi
addq $0x10, %rdi
movslq -0x20(%rbp), %rsi
callq 0x15550
movq %rax, %rdi
callq 0x10090
cmpl -0x14(%rbp), %eax
jne 0x14081
movq -0xa8(%rbp), %rdi
movq %rdi, %rax
addq $0x10, %rax
movq %rax, -0xc8(%rbp)
addq $0x10, %rdi
callq 0x155e0
movq %rax, -0x58(%rbp)
movslq -0x20(%rbp), %rsi
leaq -0x58(%rbp), %rdi
callq 0x15610
movq %rax, -0x50(%rbp)
leaq -0x48(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x15650
movq -0xc8(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x15570
movq %rax, -0x60(%rbp)
movl -0x20(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x141e5
movq -0xa8(%rbp), %rdi
addq $0x10, %rdi
movslq -0x20(%rbp), %rsi
callq 0x15550
movq %rax, %rdi
callq 0x10050
cmpl -0x18(%rbp), %eax
jne 0x14129
movq -0xa8(%rbp), %rdi
addq $0x10, %rdi
movslq -0x20(%rbp), %rsi
callq 0x15550
movq %rax, %rdi
callq 0x10090
cmpl -0x1c(%rbp), %eax
jne 0x14129
movq -0xa8(%rbp), %rdi
movq %rdi, %rax
addq $0x10, %rax
movq %rax, -0xd0(%rbp)
addq $0x10, %rdi
callq 0x155e0
movq %rax, -0x78(%rbp)
movslq -0x20(%rbp), %rsi
leaq -0x78(%rbp), %rdi
callq 0x15610
movq %rax, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x15650
movq -0xd0(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x15570
movq %rax, -0x80(%rbp)
movl -0x20(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x141e3
movq -0xa8(%rbp), %rdi
addq $0x10, %rdi
movslq -0x20(%rbp), %rsi
callq 0x15550
movq %rax, %rdi
callq 0x10030
cmpl -0x18(%rbp), %eax
jne 0x141e1
movq -0xa8(%rbp), %rdi
addq $0x10, %rdi
movslq -0x20(%rbp), %rsi
callq 0x15550
movq %rax, %rdi
callq 0x10070
cmpl -0x1c(%rbp), %eax
jne 0x141e1
movq -0xa8(%rbp), %rdi
movq %rdi, %rax
addq $0x10, %rax
movq %rax, -0xd8(%rbp)
addq $0x10, %rdi
callq 0x155e0
movq %rax, -0x98(%rbp)
movslq -0x20(%rbp), %rsi
leaq -0x98(%rbp), %rdi
callq 0x15610
movq %rax, -0x90(%rbp)
leaq -0x88(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x15650
movq -0xd8(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x15570
movq %rax, -0xa0(%rbp)
movl -0x20(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x141e3
jmp 0x141e5
jmp 0x141e7
jmp 0x141e9
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x13f03
jmp 0x141f9
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x13e51
addq $0xe0, %rsp
popq %rbp
retq