// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/ft-eoplist.c
// Function: gt_eoplist_verify
void gt_eoplist_verify(const GtEoplist *eoplist,
                       GtEoplistReader *eoplist_reader,
                       GtUword edist)
{
  GtCigarOp co;
  GtUword sumulen = 0, sumvlen = 0, sumdist = 0;
  const bool distinguish_mismatch_match = true;

  gt_assert(eoplist != NULL);
  gt_eoplist_reader_reset(eoplist_reader,eoplist,true);
  if (eoplist->useq == NULL)
  {
    gt_assert(eoplist->vseq == NULL && distinguish_mismatch_match);
  } else
  {
    gt_assert(eoplist->vseq != NULL);
  }
  while (gt_eoplist_reader_next_cigar(&co,eoplist_reader,
                                      distinguish_mismatch_match))
  {
    if (co.eoptype == GtDeletionOp)
    {
      sumulen += co.iteration;
      sumdist += co.iteration;
    } else
    {
      if (co.eoptype == GtInsertionOp)
      {
        sumvlen += co.iteration;
        sumdist += co.iteration;
      } else
      {
        if (co.eoptype == GtMismatchOp)
        {
          sumdist += co.iteration;
        }
        if (eoplist->useq != NULL)
        {
          GtUword idx;

          for (idx = 0; idx < co.iteration; idx++)
          {
            const GtUchar a = eoplist->useq[sumulen+idx],
                          b = eoplist->vseq[sumvlen+idx];
            if (a == b && !GT_ISSPECIAL(a))
            {
              gt_assert(co.eoptype == GtMatchOp);
            } else
            {
              gt_assert(!distinguish_mismatch_match ||
                        co.eoptype == GtMismatchOp);
            }
            if (!distinguish_mismatch_match && (a != b || GT_ISSPECIAL(a)))
            {
              sumdist++;
            }
          }
        }
        sumulen += co.iteration;
        sumvlen += co.iteration;
      }
    }
  }
  if (eoplist->ulen != sumulen)
  {
    fprintf(stderr,"ulen = " GT_WU " != " GT_WU " = sumulen\n",
            eoplist->ulen,sumulen);
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }
  if (eoplist->vlen != sumvlen)
  {
    fprintf(stderr,"vlen = " GT_WU " != " GT_WU " = sumvlen\n",
            eoplist->vlen,sumvlen);
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }
  if (edist != sumdist)
  {
    fprintf(stderr,"edist = " GT_WU " != " GT_WU " = sumdist\n",
            edist,sumdist);
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x2ba1c3
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
pushq $0x1
popq %rdx
movq %rsi, %rdi
movq %r14, %rsi
callq 0x2b7c06
cmpq $0x0, 0x28(%r14)
movq 0x30(%r14), %rax
movq %rbx, (%rsp)
je 0x2ba096
testq %rax, %rax
jne 0x2ba09f
movq 0x17defc(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2af9d(%rip), %rsi     # 0x2e5013
leaq 0xc946c(%rip), %rdx     # 0x3834e9
leaq 0xc941f(%rip), %rcx     # 0x3834a3
leaq 0xc8f45(%rip), %r8      # 0x382fd0
movl $0x4ea, %r9d            # imm = 0x4EA
jmp 0x2ba1b7
testq %rax, %rax
jne 0x2ba240
xorl %r12d, %r12d
pushq $0x1
popq %rbx
xorl %r13d, %r13d
xorl %ebp, %ebp
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x2b7c9a
testb %al, %al
je 0x2ba127
movl 0x8(%rsp), %ecx
movq 0x10(%rsp), %rax
testl %ecx, %ecx
jne 0x2ba0d2
addq %rax, %rbp
addq %rax, %r12
jmp 0x2ba0aa
cmpl $0x1, %ecx
je 0x2ba11f
cmpl $0x2, %ecx
jne 0x2ba0df
addq %rax, %r12
movq 0x28(%r14), %rdx
testq %rdx, %rdx
je 0x2ba11a
addq %rbp, %rdx
xorl %esi, %esi
cmpq %rsi, %rax
je 0x2ba11a
movb (%rdx,%rsi), %dil
cmpb $-0x3, %dil
ja 0x2ba110
movq 0x30(%r14), %r8
addq %r13, %r8
cmpb (%rsi,%r8), %dil
jne 0x2ba110
cmpl $0x3, %ecx
je 0x2ba115
jmp 0x2ba15d
cmpl $0x2, %ecx
jne 0x2ba18b
incq %rsi
jmp 0x2ba0ed
addq %rax, %rbp
jmp 0x2ba122
addq %rax, %r12
addq %rax, %r13
jmp 0x2ba0aa
movq 0x40(%r14), %rdx
cmpq %rbp, %rdx
jne 0x2ba1f1
movq 0x50(%r14), %rdx
cmpq %r13, %rdx
jne 0x2ba207
movq (%rsp), %rdx
cmpq %rdx, %r12
jne 0x2ba21d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x17de04(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2aea5(%rip), %rsi     # 0x2e5013
leaq 0xc938a(%rip), %rdx     # 0x3834ff
leaq 0xc9327(%rip), %rcx     # 0x3834a3
leaq 0xc8e4d(%rip), %r8      # 0x382fd0
movl $0x509, %r9d            # imm = 0x509
jmp 0x2ba1b7
movq 0x17ddd6(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2ae77(%rip), %rsi     # 0x2e5013
leaq 0xc9374(%rip), %rdx     # 0x383517
leaq 0xc92f9(%rip), %rcx     # 0x3834a3
leaq 0xc8e1f(%rip), %r8      # 0x382fd0
movl $0x50d, %r9d            # imm = 0x50D
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x17dd9e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2ae3f(%rip), %rsi     # 0x2e5013
leaq 0x5adc0(%rip), %rdx     # 0x314f9b
leaq 0xc92c1(%rip), %rcx     # 0x3834a3
leaq 0xc8de7(%rip), %r8      # 0x382fd0
movl $0x4e3, %r9d            # imm = 0x4E3
jmp 0x2ba1b7
movq 0x17dd70(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0xc934f(%rip), %rsi     # 0x383551
movq %rbp, %rcx
jmp 0x2ba231
movq 0x17dd5a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0xc9356(%rip), %rsi     # 0x38356e
movq %r13, %rcx
jmp 0x2ba231
movq 0x17dd44(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0xc935d(%rip), %rsi     # 0x38358b
movq %r12, %rcx
xorl %eax, %eax
callq 0x17a50
pushq $0x2
popq %rdi
callq 0x178f0
movq 0x17dd21(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2adc2(%rip), %rsi     # 0x2e5013
leaq 0xc925d(%rip), %rdx     # 0x3834b5
leaq 0xc9244(%rip), %rcx     # 0x3834a3
leaq 0xc8d6a(%rip), %r8      # 0x382fd0
movl $0x4e7, %r9d            # imm = 0x4E7
jmp 0x2ba1b7