// File: /workspace/github_c_makefile_star2_O2/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, %rax
leaq 0x1a6267(%rip), %rsi    # 0x35e5c0
pushq $0x10
popq %rcx
leaq 0x90(%rsp), %rdi
rep  movsq (%rsi), %es:(%rdi)
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x1b8383
movq 0x8(%rsp), %rdi
callq 0x89eb7
testb %al, %al
jne 0x1b86c4
leaq 0x1a5236(%rip), %rax    # 0x35d5c0
movq %rax, 0x20(%rsp)
xorl %eax, %eax
xorl %ebx, %ebx
cmpq $0x8, %rax
je 0x1b86b0
movq %rax, %r15
shlq $0x4, %rax
leaq (%rsp,%rax), %rdi
addq $0x90, %rdi
callq 0x1b7511
movq %rax, 0x10(%rsp)
movq %r15, 0x38(%rsp)
shlq $0x6, %r15
movq %r15, 0x40(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x28(%rsp)
xorl %ecx, %ecx
cmpq $0x7, %rcx
ja 0x1b8690
testl %ebx, %ebx
jne 0x1b8690
leaq 0x27b4eb(%rip), %rax    # 0x4338e0
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
leaq 0x1a517b(%rip), %rax    # 0x35d580
movq (%rax,%rcx,8), %rax
movq %rax, 0x58(%rsp)
movq 0x40(%rsp), %rax
leaq (%rax,%rcx,8), %rax
movq %rcx, 0x48(%rsp)
orq %rcx, %rax
movq %rax, 0x50(%rsp)
xorl %ebp, %ebp
xorl %ebx, %ebx
cmpq $0x40, %rbp
je 0x1b8677
pushq $0x1
popq %r12
movl %r12d, %edi
xorl %esi, %esi
movq 0x18(%rsp), %rdx
movq 0x58(%rsp), %rcx
xorl %r8d, %r8d
movq %rcx, %r9
callq 0x1918b9
movq %rax, %r14
leaq 0x27b486(%rip), %rax    # 0x4338e0
movq (%rbp,%rax), %r15
leaq 0x1a511a(%rip), %rax    # 0x35d580
movq (%rbp,%rax), %rcx
movl %r12d, %edi
xorl %esi, %esi
movq %r15, %rdx
xorl %r8d, %r8d
movq %rcx, %r9
callq 0x1918b9
movl %r12d, %edi
leaq 0x68(%rsp), %r12
movq %r12, %rsi
movq 0x10(%rsp), %r13
movq %r13, %rdx
movq %r14, 0x60(%rsp)
movq %r14, %rcx
movq %rax, %r14
movq %rax, %r8
pushq $0xc
popq %r9
callq 0x1b76b0
movq %r13, %rdi
movq %r12, %rsi
callq 0x1b80c8
movq %rax, %r12
testl %ebx, %ebx
jne 0x1b84f0
testq %r12, %r12
jne 0x1b84f0
movq 0x8(%rsp), %rdi
leaq 0x145f27(%rip), %rsi    # 0x2fe3f2
leaq 0x1a4ff0(%rip), %rdx    # 0x35d4c2
leaq 0x1a4fd6(%rip), %rcx    # 0x35d4af
leaq 0x1a4d12(%rip), %r8     # 0x35d1f2
movl $0x263, %r9d            # imm = 0x263
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbx
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rcx
movq 0x18(%rsp), %rdi
movq %r15, %rdx
callq 0xb4ea1
movq %rax, %r13
movq %rax, %rdi
movq %r12, %rsi
callq 0xb4f8d
xorl %ecx, %ecx
testl %ebx, %ebx
pushq $-0x1
popq %rbx
jne 0x1b8576
movq 0x28(%rsp), %rax
movq %r14, (%rsp)
movq (%rax,%rbp), %r14
movq %r13, %rdi
callq 0xb55be
movb $0x1, %cl
movl $0x0, %ebx
cmpq %rax, %r14
movq (%rsp), %r14
je 0x1b8576
movq 0x8(%rsp), %rdi
leaq 0x145ea3(%rip), %rsi    # 0x2fe3f2
leaq 0x1a4f7d(%rip), %rdx    # 0x35d4d3
leaq 0x1a4f52(%rip), %rcx    # 0x35d4af
leaq 0x1a4c8e(%rip), %r8     # 0x35d1f2
movl $0x267, %r9d            # imm = 0x267
xorl %eax, %eax
callq 0x89dbb
xorl %ecx, %ecx
pushq $-0x1
popq %rbx
movl %ecx, (%rsp)
movq %r12, %rdi
callq 0x101766
movq %r13, %rdi
callq 0xb647f
cmpq %rbp, 0x30(%rsp)
movq 0x60(%rsp), %r13
jne 0x1b865e
xorl %edi, %edi
leaq 0x68(%rsp), %rbx
movq %rbx, %rsi
movq 0x10(%rsp), %r12
movq %r12, %rdx
movq %r13, %rcx
movq %r14, %r8
pushq $0xc
popq %r9
callq 0x1b76b0
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1b80c8
movq %rax, %r12
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rcx
movq 0x18(%rsp), %rdi
movq %r15, %rdx
callq 0xb4ea1
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0xb4f8d
pushq $-0x1
popq %rbx
cmpb $0x0, (%rsp)
je 0x1b864e
leaq 0x1a4fc3(%rip), %rax    # 0x35d5c0
movq 0x50(%rsp), %rcx
movq %r14, (%rsp)
movq (%rax,%rcx,8), %r14
movq %r15, %rdi
callq 0xb55be
xorl %ebx, %ebx
cmpq %rax, %r14
movq (%rsp), %r14
je 0x1b864e
movq 0x8(%rsp), %rdi
leaq 0x145dc9(%rip), %rsi    # 0x2fe3f2
leaq 0x1a4ea3(%rip), %rdx    # 0x35d4d3
leaq 0x1a4e78(%rip), %rcx    # 0x35d4af
leaq 0x1a4bb4(%rip), %r8     # 0x35d1f2
movl $0x273, %r9d            # imm = 0x273
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbx
movq %r12, %rdi
callq 0x101766
movq %r15, %rdi
callq 0xb647f
movq %r13, %rdi
callq 0x191a01
movq %r14, %rdi
callq 0x191a01
addq $0x8, %rbp
jmp 0x1b8428
movq 0x48(%rsp), %rcx
incq %rcx
addq $0x40, 0x28(%rsp)
addq $0x8, 0x30(%rsp)
jmp 0x1b83dc
movq 0x10(%rsp), %rdi
callq 0x1b7634
movq 0x38(%rsp), %rax
incq %rax
addq $0x200, 0x20(%rsp)      # imm = 0x200
jmp 0x1b8393
movl %ebx, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x27f89d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x12c93e(%rip), %rsi    # 0x2e5013
leaq 0x12cae3(%rip), %rdx    # 0x2e51bf
leaq 0x1a4dcc(%rip), %rcx    # 0x35d4af
leaq 0x1a4b08(%rip), %r8     # 0x35d1f2
movl $0x255, %r9d            # imm = 0x255
xorl %eax, %eax
callq 0x17a50
callq 0x17390