// File: /workspace/github_c_makefile_star2_O3/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 $0x128, %rsp            # imm = 0x128
movq %rdi, %rbx
leaq 0x1ba0a1(%rip), %rsi    # 0x3be170
leaq 0xa0(%rsp), %rdi
movl $0x10, %ecx
rep  movsq (%rsi), %es:(%rdi)
testq %rbx, %rbx
je 0x2040f4
movq %rbx, %rdi
callq 0xfcc32
testb %al, %al
jne 0x204449
movq %rbx, 0x10(%rsp)
leaq 0x1b9070(%rip), %rax    # 0x3bd170
movq %rax, 0x28(%rsp)
xorl %eax, %eax
xorl %ebx, %ebx
movq %rax, 0x30(%rsp)
shlq $0x4, %rax
leaq (%rsp,%rax), %rdi
addq $0xa0, %rdi
callq 0x2033eb
movq %rax, 0x18(%rsp)
testl %ebx, %ebx
jne 0x204410
movq 0x30(%rsp), %rax
shlq $0x6, %rax
movq %rax, 0x58(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
xorl %ecx, %ecx
leaq 0x2b0767(%rip), %rax    # 0x4b48c0
movq (%rax,%rcx,8), %rax
movq %rax, 0x20(%rsp)
leaq 0x1b8fc7(%rip), %rax    # 0x3bd130
movq (%rax,%rcx,8), %rax
movq %rax, 0x70(%rsp)
movq 0x58(%rsp), %rax
leaq (%rax,%rcx,8), %rax
movq %rcx, 0x60(%rsp)
addq %rcx, %rax
movq %rax, 0x68(%rsp)
xorl %ebp, %ebp
xorl %ebx, %ebx
movl $0x1, %edi
xorl %esi, %esi
movq 0x20(%rsp), %rdx
movq 0x70(%rsp), %rcx
xorl %r8d, %r8d
movq %rcx, %r9
callq 0x1e28c9
movq %rax, %r12
leaq 0x2b070e(%rip), %rax    # 0x4b48c0
movq (%rbp,%rax), %r13
leaq 0x1b8f72(%rip), %rax    # 0x3bd130
movq (%rbp,%rax), %rcx
movl $0x1, %edi
xorl %esi, %esi
movq %r13, %rdx
xorl %r8d, %r8d
movq %rcx, %r9
callq 0x1e28c9
movl $0xc, %r9d
movl $0x1, %edi
leaq 0x78(%rsp), %r14
movq %r14, %rsi
movq 0x18(%rsp), %r15
movq %r15, %rdx
movq %r12, 0x50(%rsp)
movq %r12, %rcx
movq %rax, 0x48(%rsp)
movq %rax, %r8
callq 0x203536
movq %r15, %rdi
movq %r14, %rsi
callq 0x203ed7
movq %rax, %r15
testl %ebx, %ebx
jne 0x204252
testq %r15, %r15
jne 0x204252
movq 0x10(%rsp), %rdi
leaq 0x15a213(%rip), %rsi    # 0x35e43e
leaq 0x1b8e3c(%rip), %rdx    # 0x3bd06e
leaq 0x1b8e22(%rip), %rcx    # 0x3bd05b
leaq 0x1b8b5e(%rip), %r8     # 0x3bcd9e
movl $0x263, %r9d            # imm = 0x263
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rcx
movq 0x20(%rsp), %rdi
movq %r13, %rdx
callq 0x120d76
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x120e3e
xorl %r14d, %r14d
testl %ebx, %ebx
je 0x20428b
movl $0x0, 0xc(%rsp)
jmp 0x2042dd
movq 0x38(%rsp), %rax
movq (%rax,%rbp), %rbx
movq %r12, %rdi
callq 0x12119e
movb $0x1, %cl
movl %ecx, 0xc(%rsp)
cmpq %rax, %rbx
je 0x2042e3
movl $0x0, 0xc(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x15a183(%rip), %rsi    # 0x35e43e
leaq 0x1b8dbd(%rip), %rdx    # 0x3bd07f
leaq 0x1b8d92(%rip), %rcx    # 0x3bd05b
leaq 0x1b8ace(%rip), %r8     # 0x3bcd9e
movl $0x267, %r9d            # imm = 0x267
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %r15, %rdi
callq 0x161e59
movq %r12, %rdi
callq 0x121e3c
movl %r14d, %ebx
cmpq %rbp, 0x40(%rsp)
jne 0x2043cc
movl $0xc, %r9d
xorl %edi, %edi
leaq 0x78(%rsp), %rbx
movq %rbx, %rsi
movq 0x18(%rsp), %r14
movq %r14, %rdx
movq 0x50(%rsp), %rcx
movq 0x48(%rsp), %r8
callq 0x203536
movq %r14, %rdi
movq %rbx, %rsi
callq 0x203ed7
movq %rax, %r15
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rcx
movq 0x20(%rsp), %rdi
movq %r13, %rdx
callq 0x120d76
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x120e3e
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpb $0x0, 0xc(%rsp)
je 0x2043bc
leaq 0x1b8dff(%rip), %rax    # 0x3bd170
movq 0x68(%rsp), %rcx
movq (%rax,%rcx,8), %r14
movq %r12, %rdi
callq 0x12119e
xorl %ebx, %ebx
cmpq %rax, %r14
je 0x2043bc
movq 0x10(%rsp), %rdi
leaq 0x15a0a9(%rip), %rsi    # 0x35e43e
leaq 0x1b8ce3(%rip), %rdx    # 0x3bd07f
leaq 0x1b8cb8(%rip), %rcx    # 0x3bd05b
leaq 0x1b89f4(%rip), %r8     # 0x3bcd9e
movl $0x273, %r9d            # imm = 0x273
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %r15, %rdi
callq 0x161e59
movq %r12, %rdi
callq 0x121e3c
movq 0x50(%rsp), %rdi
callq 0x1e2a17
movq 0x48(%rsp), %rdi
callq 0x1e2a17
addq $0x8, %rbp
cmpq $0x40, %rbp
jne 0x20418c
movq 0x60(%rsp), %rcx
cmpq $0x6, %rcx
ja 0x204410
incq %rcx
addq $0x8, 0x40(%rsp)
addq $0x40, 0x38(%rsp)
testl %ebx, %ebx
je 0x204152
movq 0x18(%rsp), %rdi
callq 0x2034b4
movq 0x30(%rsp), %rax
incq %rax
addq $0x200, 0x28(%rsp)      # imm = 0x200
cmpq $0x8, %rax
jne 0x204109
movl %ebx, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7fe63
nop