// File: /workspace/github_c_makefile_star2_O1/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 0x32426c
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0x32236b
cmpq $0x0, 0x28(%r14)
movq 0x30(%r14), %rax
je 0x324169
testq %rax, %rax
jne 0x324172
callq 0x94337
testq %rax, %rax
jne 0x324289
movq %rbx, 0x10(%rsp)
movq %rsp, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x3223d2
testb %al, %al
je 0x32422f
xorl %ebp, %ebp
movq %rsp, %rbx
xorl %r13d, %r13d
xorl %r12d, %r12d
movl (%rsp), %eax
cmpl $0x2, %eax
je 0x3241c2
cmpl $0x1, %eax
je 0x3241b5
testl %eax, %eax
jne 0x3241c7
movq 0x8(%rsp), %rax
addq %rax, %rbp
jmp 0x3241bd
movq 0x8(%rsp), %rax
addq %rax, %r13
addq %rax, %r12
jmp 0x324215
addq 0x8(%rsp), %r12
movq 0x28(%r14), %rcx
testq %rcx, %rcx
je 0x32420a
movq 0x8(%rsp), %rdx
testq %rdx, %rdx
je 0x32420a
addq %rbp, %rcx
movq 0x30(%r14), %rsi
addq %r13, %rsi
xorl %edi, %edi
movb (%rcx,%rdi), %r8b
cmpb $-0x3, %r8b
ja 0x3241fd
cmpb (%rsi,%rdi), %r8b
jne 0x3241fd
cmpl $0x3, %eax
je 0x324202
jmp 0x324267
cmpl $0x2, %eax
jne 0x324262
incq %rdi
cmpq %rdi, %rdx
jne 0x3241e6
movq 0x8(%rsp), %rax
addq %rax, %rbp
addq %rax, %r13
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x3223d2
testb %al, %al
jne 0x32419a
jmp 0x324237
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x40(%r14), %rdi
cmpq %rbp, %rdi
jne 0x324271
movq 0x50(%r14), %rdi
cmpq %r13, %rdi
jne 0x324279
movq 0x10(%rsp), %rdi
cmpq %rdi, %r12
jne 0x324281
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x943e2
callq 0x943a9
callq 0x94490
movq %rbp, %rsi
callq 0x9441b
movq %r13, %rsi
callq 0x94442
movq %r12, %rsi
callq 0x94469
callq 0x94370