// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/xdrop.c
// Function: gt_xdrop_unit_test
int gt_xdrop_unit_test(GT_UNUSED GtError *err)
{
  int had_err = 0, i, j, s;
  const GtUchar *strings[GT_XDROP_NUM_OF_TESTS] =
    {(const GtUchar*) "TTTTTTTTTTTTTTTAAAGGGTTTCCCAAAGGGTTTCCCTTTTTTTTTTTTTTT",
     (const GtUchar*) "TTTTTTTTTTTTTTTTTTTGGGGCCCCAAAATTTTTTTTTTTTTTT",
     (const GtUchar*) "TTTTTTTTTTTTTTTNNNNTTTTGGGGCCCCAAAATTTTTTTTTTTTTTT",
     (const GtUchar*) "TTTTTTTTTTTTTTTAAAGGGTTTCGCAAAGGGTTTCCCTTTTTTTTTTTTTTT",
     (const GtUchar*) "TTTTTTTTTTTTTTTAAAGGGTTTCCAAAGGGTTTCCCCTTTTTTTTTTTTTTT",
     (const GtUchar*) "TTTTTTTTTTTTTTTAAAGGGTTTCCTCAAAGGGTTTCCTTTTTTTTTTTTTTT",
     (const GtUchar*) "TTTTTTTTTTTTTTTAAACAGATCACCCGCTTTTTTTTTTTTTTTT",
     (const GtUchar*) "TTTTTTTTTTTTTTTAAACGGGTTTCTCAAAGGGTTCCCTTTTTTTTTTTTTTT"};
  GtUword lengths[GT_XDROP_NUM_OF_TESTS] =
  {54UL, 46UL, 50UL, 54UL, 54UL, 54UL, 46UL, 54UL},
    eval_scores[GT_XDROP_NUM_OF_TESTS *
      GT_XDROP_NUM_OF_TESTS *
      GT_XDROP_NUM_OF_TESTS] =
      {0, 13UL, 0, 1UL, 4UL, 1UL, 0, 7UL,
        13UL, 0, 0, 14UL, 15UL, 14UL, 0, 15UL,
        0, 0, 0, 0, 0, 0, 0, 0,
        1UL, 14UL, 0, 0, 1UL, 2UL, 0, 1UL,
        4UL, 15UL, 0, 1UL, 0, 8UL, 0, 1UL,
        1UL, 14UL, 0, 2UL, 8UL, 0, 0, 4UL,
        0, 0, 0, 0, 0, 0, 0, 0,
        7UL, 15UL, 0, 1UL, 1UL, 4UL, 0, 0,

        0, 13UL, 0, 1UL, 4UL, 5UL, 14UL, 7UL,
        13UL, 0, 0, 14UL, 15UL, 14UL, 12UL, 15UL,
        0, 0, 0, 20UL, 0, 19UL, 17UL, 0,
        1UL, 14UL, 20UL, 0, 5UL, 6UL, 15UL, 8UL,
        4UL, 15UL, 0, 5UL, 0, 8UL, 15UL, 10UL,
        5UL, 14UL, 19UL, 6UL, 8UL, 0, 14UL, 4UL,
        14UL, 12UL, 17UL, 15UL, 15UL, 14UL, 0, 14UL,
        7UL, 15UL, 0, 8UL, 10UL, 4UL, 14UL, 0,

        0, 13UL, 19UL, 1UL, 2UL, 2UL, 13UL, 3UL,
        13UL, 0, 9UL, 14UL, 14UL, 13UL, 12UL, 14UL,
        17UL, 4UL, 0, 18UL, 19UL, 16UL, 16UL, 18UL,
        1UL, 14UL, 18UL, 0, 2UL, 3UL, 13UL, 3UL,
        2UL, 14UL, 18UL, 2UL, 0, 4UL, 13UL, 4UL,
        2UL, 13UL, 19UL, 3UL, 4UL, 0, 13UL, 3UL,
        14UL, 12UL, 17UL, 13UL, 13UL, 14UL, 0, 14UL,
        3UL, 14UL, 18UL, 3UL, 4UL, 3UL, 13UL, 0,

        0, 13UL, 17UL, 1UL, 2UL, 2UL, 14UL, 3UL,
        13UL, 0, 4UL, 14UL, 15UL, 13UL, 12UL, 14UL,
        19UL, 9UL, 0, 18UL, 18UL, 19UL, 17UL, 18UL,
        1UL, 14UL, 18UL, 0, 2UL, 3UL, 13UL, 3UL,
        2UL, 14UL, 19UL, 2UL, 0, 4UL, 13UL, 4UL,
        2UL, 13UL, 16UL, 3UL, 4UL, 0, 14UL, 3UL,
        13UL, 12UL, 16UL, 13UL, 13UL, 13UL, 0, 13UL,
        3UL, 14UL, 18UL, 3UL, 4UL, 3UL, 14UL, 0,

        0, 0, 0, 1UL, 1UL, 1UL, 0, 1UL,
        0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0,
        1UL, 0, 0, 0, 1UL, 0, 0, 1UL,
        1UL, 0, 0, 1UL, 0, 0, 0, 1UL,
        1UL, 0, 0, 0, 0, 0, 0, 1UL,
        0, 0, 0, 0, 0, 0, 0, 0,
        1UL, 0, 0, 1UL, 1UL, 1UL, 0, 0,

        0, 0, 0, 1UL, 1UL, 1UL, 0, 1UL,
        0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0,
        1UL, 0, 0, 0, 1UL, 2UL, 0, 1UL,
        1UL, 0, 0, 1UL, 0, 0, 0, 1UL,
        1UL, 0, 0, 2UL, 0, 0, 0, 1UL,
        0, 0, 0, 0, 0, 0, 0, 0,
        1UL, 0, 0, 1UL, 1UL, 1UL, 0, 0,

        0, 13UL, 17UL, 1UL, 2UL, 2UL, 13UL, 3UL,
        13UL, 0, 4UL, 14UL, 14UL, 13UL, 12UL, 14UL,
        17UL, 4UL, 0, 18UL, 19UL, 16UL, 16UL, 19UL,
        1UL, 14UL, 18UL, 0, 2UL, 3UL, 13UL, 3UL,
        2UL, 14UL, 19UL, 2UL, 0, 4UL, 13UL, 4UL,
        2UL, 13UL, 16UL, 3UL, 4UL, 0, 13UL, 3UL,
        13UL, 12UL, 16UL, 13UL, 13UL, 13UL, 0, 13UL,
        3UL, 14UL, 19UL, 3UL, 4UL, 3UL, 13UL, 0,

        0, 13UL, 0, 1UL, 2UL, 2UL, 5UL, 3UL,
        13UL, 0, 0, 14UL, 15UL, 13UL, 0, 14UL,
        0, 0, 0, 0, 0, 0, 0, 0,
        1UL, 14UL, 0, 0, 2UL, 3UL, 5UL, 3UL,
        2UL, 15UL, 0, 2UL, 0, 4UL, 5UL, 4UL,
        2UL, 13UL, 0, 3UL, 4UL, 0, 6UL, 3UL,
        5UL, 0, 0, 5UL, 5UL, 6UL, 0, 5UL,
        3UL, 14UL, 0, 3UL, 4UL, 3UL, 5UL, 0};
  GtSeqabstract *useq, *vseq;

  GtXdropArbitraryscores score[GT_XDROP_NUM_OF_TESTS] = {{2, -2, -2, -2},
                                                         {2, -1, -1, -1},
                                                         {2, -1, -5, -2},
                                                         {2, -1, -2, -5},
                                                         {3, -2, -3, -3},
                                                         {3, -1, -1, -1},
                                                         {4, -1, -3, -3},
                                                         {10, -3, -8, -8}};
  GtXdropresources *resources;
  GtXdropbest best;
  GtXdropscore dropscore = (GtXdropscore) 12;
  GtMultieoplist *edit_ops = NULL;
  GtAlignment *alignment;
  bool rightextension = true;

  gt_error_check(err);

  for (s = 0; s < GT_XDROP_NUM_OF_TESTS; ++s) {
    resources = gt_xdrop_resources_new(&score[s]);
    for (i = 0; i < GT_XDROP_NUM_OF_TESTS && !had_err; ++i) {
      for (j = 0; j < GT_XDROP_NUM_OF_TESTS; ++j) {
        useq = gt_seqabstract_new_gtuchar(rightextension,GT_READMODE_FORWARD,
                                          strings[i], lengths[i], 0,lengths[i]);
        vseq = gt_seqabstract_new_gtuchar(rightextension, GT_READMODE_FORWARD,
                                          strings[j], lengths[j], 0,lengths[j]);
        gt_evalxdroparbitscoresextend(true, &best, resources, useq, vseq,
                                      dropscore);

        edit_ops = gt_xdrop_backtrack(resources, &best);
        gt_ensure(edit_ops != NULL);
        alignment = gt_alignment_new_with_seqs(strings[i], best.ivalue,
                                               strings[j], best.jvalue);
        gt_alignment_set_multieop_list(alignment, edit_ops);
        gt_ensure(eval_scores[s*64+i*8+j] == gt_alignment_eval(alignment));

        gt_multieoplist_delete(edit_ops);
        gt_alignment_delete(alignment);
        if (i == j) {
          gt_evalxdroparbitscoresextend(false, &best, resources, useq, vseq,
                                        dropscore);

          edit_ops = gt_xdrop_backtrack(resources, &best);
          alignment = gt_alignment_new_with_seqs(strings[i], best.ivalue,
                                                 strings[j], best.jvalue);
          gt_alignment_set_multieop_list(alignment, edit_ops);
          gt_ensure(eval_scores[s*64+i*8+j] == gt_alignment_eval(alignment));
          gt_multieoplist_delete(edit_ops);
          gt_alignment_delete(alignment);
        }
        gt_seqabstract_delete(useq);
        gt_seqabstract_delete(vseq);
      }
    }
    gt_xdrop_resources_delete(resources);
  }

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdi, %rbx
leaq 0x1b9dcf(%rip), %rsi    # 0x3c77f0
leaq 0x90(%rsp), %rdi
movl $0x10, %ecx
rep  movsq (%rsi), %es:(%rdi)
testq %rbx, %rbx
je 0x20da46
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x20dd6b
movq %rbx, 0x18(%rsp)
leaq 0x1b8d9e(%rip), %r14    # 0x3c67f0
xorl %eax, %eax
xorl %ebx, %ebx
movq %rax, 0x48(%rsp)
shlq $0x4, %rax
leaq (%rsp,%rax), %rdi
addq $0x90, %rdi
callq 0x20cd7d
movq %rax, 0x20(%rsp)
testl %ebx, %ebx
movq %r14, 0x50(%rsp)
jne 0x20dd2f
movq %r14, 0x10(%rsp)
movq $0x0, 0x30(%rsp)
xorl %ecx, %ecx
leaq 0x2b1e38(%rip), %rax    # 0x4bf8d0
movq (%rax,%rcx,8), %rax
movq %rax, 0x28(%rsp)
leaq 0x1b8d08(%rip), %rax    # 0x3c67b0
movq %rcx, 0x58(%rsp)
movq (%rax,%rcx,8), %rax
movq %rax, 0x60(%rsp)
xorl %ebp, %ebp
movl $0x1, %edi
xorl %esi, %esi
movq 0x28(%rsp), %rdx
movq 0x60(%rsp), %rcx
xorl %r8d, %r8d
movq %rcx, %r9
callq 0x1ec161
movq %rax, %r12
leaq 0x2b1df2(%rip), %rax    # 0x4bf8d0
movq (%rbp,%rax), %r13
leaq 0x1b8cc6(%rip), %rax    # 0x3c67b0
movq (%rbp,%rax), %rcx
movl $0x1, %edi
xorl %esi, %esi
movq %r13, %rdx
xorl %r8d, %r8d
movq %rcx, %r9
callq 0x1ec161
movl $0xc, %r9d
movl $0x1, %edi
leaq 0x68(%rsp), %r14
movq %r14, %rsi
movq 0x20(%rsp), %r15
movq %r15, %rdx
movq %r12, 0x40(%rsp)
movq %r12, %rcx
movq %rax, 0x38(%rsp)
movq %rax, %r8
callq 0x20cec8
movq %r15, %rdi
movq %r14, %rsi
callq 0x20d829
movq %rax, %r15
testl %ebx, %ebx
jne 0x20db7e
testq %r15, %r15
jne 0x20db7e
movq 0x18(%rsp), %rdi
leaq 0x1599e3(%rip), %rsi    # 0x36753a
leaq 0x1b8b91(%rip), %rdx    # 0x3c66ef
leaq 0x1b8b77(%rip), %rcx    # 0x3c66dc
leaq 0x1b88b3(%rip), %r8     # 0x3c641f
movl $0x263, %r9d            # imm = 0x263
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rcx
movq 0x28(%rsp), %rdi
movq %r13, %rdx
callq 0x126b6e
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x126c36
xorl %r14d, %r14d
testl %ebx, %ebx
je 0x20dbb4
movl $0x0, 0xc(%rsp)
jmp 0x20dc06
movq 0x10(%rsp), %rax
movq (%rax,%rbp), %rbx
movq %r12, %rdi
callq 0x126f96
movb $0x1, %cl
movl %ecx, 0xc(%rsp)
cmpq %rax, %rbx
je 0x20dc0c
movl $0x0, 0xc(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x159956(%rip), %rsi    # 0x36753a
leaq 0x1b8b15(%rip), %rdx    # 0x3c6700
leaq 0x1b8aea(%rip), %rcx    # 0x3c66dc
leaq 0x1b8826(%rip), %r8     # 0x3c641f
movl $0x267, %r9d            # imm = 0x267
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %r15, %rdi
callq 0x169cb5
movq %r12, %rdi
callq 0x127c25
movl %r14d, %ebx
cmpq %rbp, 0x30(%rsp)
jne 0x20dceb
movl $0xc, %r9d
xorl %edi, %edi
leaq 0x68(%rsp), %rbx
movq %rbx, %rsi
movq 0x20(%rsp), %r14
movq %r14, %rdx
movq 0x40(%rsp), %rcx
movq 0x38(%rsp), %r8
callq 0x20cec8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x20d829
movq %rax, %r15
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rcx
movq 0x28(%rsp), %rdi
movq %r13, %rdx
callq 0x126b6e
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x126c36
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpb $0x0, 0xc(%rsp)
je 0x20dcdb
movq 0x10(%rsp), %rax
movq (%rax,%rbp), %r14
movq %r12, %rdi
callq 0x126f96
xorl %ebx, %ebx
cmpq %rax, %r14
je 0x20dcdb
movq 0x18(%rsp), %rdi
leaq 0x159886(%rip), %rsi    # 0x36753a
leaq 0x1b8a45(%rip), %rdx    # 0x3c6700
leaq 0x1b8a1a(%rip), %rcx    # 0x3c66dc
leaq 0x1b8756(%rip), %r8     # 0x3c641f
movl $0x273, %r9d            # imm = 0x273
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %r15, %rdi
callq 0x169cb5
movq %r12, %rdi
callq 0x127c25
movq 0x40(%rsp), %rdi
callq 0x1ec2af
movq 0x38(%rsp), %rdi
callq 0x1ec2af
addq $0x8, %rbp
cmpq $0x40, %rbp
jne 0x20dab8
movq 0x58(%rsp), %rcx
cmpq $0x6, %rcx
ja 0x20dd2f
incq %rcx
addq $0x8, 0x30(%rsp)
addq $0x40, 0x10(%rsp)
testl %ebx, %ebx
je 0x20da91
movq 0x20(%rsp), %rdi
callq 0x20ce46
movq 0x48(%rsp), %rax
incq %rax
movq 0x50(%rsp), %r14
addq $0x200, %r14            # imm = 0x200
cmpq $0x8, %rax
jne 0x20da56
movl %ebx, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x81d18