// File: /workspace/github_c_makefile_star2_O3/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 0x319f84
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x317fcb
cmpq $0x0, 0x28(%r14)
movq 0x30(%r14), %rax
je 0x319e86
testq %rax, %rax
jne 0x319e8f
callq 0x92424
testq %rax, %rax
jne 0x319fa1
movq %rbx, (%rsp)
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x318032
testb %al, %al
je 0x319f48
xorl %ebp, %ebp
leaq 0x8(%rsp), %rbx
xorl %r13d, %r13d
xorl %r12d, %r12d
movl 0x8(%rsp), %ecx
movq 0x10(%rsp), %rax
cmpl $0x2, %ecx
je 0x319ede
cmpl $0x1, %ecx
je 0x319ed6
testl %ecx, %ecx
jne 0x319ee1
addq %rax, %rbp
jmp 0x319ed9
addq %rax, %r13
addq %rax, %r12
jmp 0x319f2e
addq %rax, %r12
movq 0x28(%r14), %rdx
testq %rdx, %rdx
sete %sil
testq %rax, %rax
sete %dil
orb %sil, %dil
jne 0x319f28
addq %rbp, %rdx
movq 0x30(%r14), %rsi
addq %r13, %rsi
xorl %edi, %edi
movb (%rdx,%rdi), %r8b
cmpb $-0x3, %r8b
ja 0x319f1b
cmpb (%rsi,%rdi), %r8b
jne 0x319f1b
cmpl $0x3, %ecx
je 0x319f20
jmp 0x319f7f
cmpl $0x2, %ecx
jne 0x319f7a
incq %rdi
cmpq %rdi, %rax
jne 0x319f04
addq %rax, %rbp
addq %rax, %r13
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x318032
testb %al, %al
jne 0x319eba
jmp 0x319f50
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x40(%r14), %rdi
cmpq %rbp, %rdi
jne 0x319f89
movq 0x50(%r14), %rdi
cmpq %r13, %rdi
jne 0x319f91
movq (%rsp), %rdi
cmpq %rdi, %r12
jne 0x319f99
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x924cf
callq 0x92496
callq 0x9257d
movq %rbp, %rsi
callq 0x92508
movq %r13, %rsi
callq 0x9252f
movq %r12, %rsi
callq 0x92556
callq 0x9245d