// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x1188, %rsp           # imm = 0x1188
movq %rdi, 0x1180(%rsp)
movl $0x0, 0x117c(%rsp)
leaq 0x1130(%rsp), %rdi
leaq 0x33d307(%rip), %rsi    # 0x637020
movl $0x40, %edx
callq 0x19610
leaq 0x10f0(%rsp), %rdi
leaq 0x29658e(%rip), %rsi    # 0x5902c0
movl $0x40, %edx
callq 0x19610
leaq 0xf0(%rsp), %rdi
leaq 0x2965b5(%rip), %rsi    # 0x590300
movl $0x1000, %edx           # imm = 0x1000
callq 0x19610
leaq 0x60(%rsp), %rdi
leaq 0x29759f(%rip), %rsi    # 0x591300
movl $0x80, %edx
callq 0x19610
movq $0xc, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movb $0x1, 0x17(%rsp)
cmpq $0x0, 0x1180(%rsp)
je 0x2f9dd8
movq 0x1180(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x2f9da0
jmp 0x2f9dd8
movq 0x3421f9(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x21c262(%rip), %rsi    # 0x516013
leaq 0x21c407(%rip), %rdx    # 0x5161bf
leaq 0x29643e(%rip), %rcx    # 0x5901fd
leaq 0x29613c(%rip), %r8     # 0x58ff02
movl $0x255, %r9d            # imm = 0x255
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2f9dda
movl $0x0, 0x1170(%rsp)
cmpl $0x8, 0x1170(%rsp)
jge 0x2fa20c
movslq 0x1170(%rsp), %rax
leaq 0x60(%rsp), %rdi
shlq $0x4, %rax
addq %rax, %rdi
callq 0x2f8350
movq %rax, 0x58(%rsp)
movl $0x0, 0x1178(%rsp)
xorl %eax, %eax
cmpl $0x8, 0x1178(%rsp)
movb %al, 0x16(%rsp)
jge 0x2f9e3d
cmpl $0x0, 0x117c(%rsp)
setne %al
xorb $-0x1, %al
movb %al, 0x16(%rsp)
movb 0x16(%rsp), %al
testb $0x1, %al
jne 0x2f9e4a
jmp 0x2fa1ec
movl $0x0, 0x1174(%rsp)
cmpl $0x8, 0x1174(%rsp)
jge 0x2fa1d4
movb 0x17(%rsp), %al
movslq 0x1178(%rsp), %rcx
movq 0x1130(%rsp,%rcx,8), %rdx
movslq 0x1178(%rsp), %rcx
movq 0x10f0(%rsp,%rcx,8), %rcx
movslq 0x1178(%rsp), %rsi
movq 0x10f0(%rsp,%rsi,8), %r9
xorl %esi, %esi
xorl %edi, %edi
movl %edi, %r8d
andb $0x1, %al
movzbl %al, %edi
callq 0x2b0b50
movq %rax, 0xe8(%rsp)
movb 0x17(%rsp), %al
movslq 0x1174(%rsp), %rcx
movq 0x1130(%rsp,%rcx,8), %rdx
movslq 0x1174(%rsp), %rcx
movq 0x10f0(%rsp,%rcx,8), %rcx
movslq 0x1174(%rsp), %rsi
movq 0x10f0(%rsp,%rsi,8), %r9
xorl %esi, %esi
xorl %edi, %edi
movl %edi, %r8d
andb $0x1, %al
movzbl %al, %edi
callq 0x2b0b50
movq %rax, 0xe0(%rsp)
movq 0x58(%rsp), %rdx
movq 0xe8(%rsp), %rcx
movq 0xe0(%rsp), %r8
movq 0x28(%rsp), %r9
movl $0x1, %edi
leaq 0x30(%rsp), %rsi
callq 0x2f8690
movq 0x58(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x2f98e0
movq %rax, 0x20(%rsp)
cmpl $0x0, 0x117c(%rsp)
jne 0x2f9f8a
cmpq $0x0, 0x20(%rsp)
jne 0x2f9f88
movq 0x1180(%rsp), %rdi
leaq 0x23569f(%rip), %rsi    # 0x52f5fa
leaq 0x2962ae(%rip), %rdx    # 0x590210
leaq 0x296294(%rip), %rcx    # 0x5901fd
leaq 0x295f92(%rip), %r8     # 0x58ff02
movl $0x263, %r9d            # imm = 0x263
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x117c(%rsp) # imm = 0xFFFFFFFF
jmp 0x2f9f8a
jmp 0x2f9f8c
movslq 0x1178(%rsp), %rax
movq 0x1130(%rsp,%rax,8), %rdi
movq 0x30(%rsp), %rsi
movslq 0x1174(%rsp), %rax
movq 0x1130(%rsp,%rax,8), %rdx
movq 0x38(%rsp), %rcx
callq 0x129ec0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x12a050
cmpl $0x0, 0x117c(%rsp)
jne 0x2fa05e
movl 0x1170(%rsp), %eax
shll $0x6, %eax
movl 0x1178(%rsp), %ecx
shll $0x3, %ecx
addl %ecx, %eax
addl 0x1174(%rsp), %eax
cltq
movq 0xf0(%rsp,%rax,8), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdi
callq 0x12a9b0
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
je 0x2fa05c
movq 0x1180(%rsp), %rdi
leaq 0x2355cb(%rip), %rsi    # 0x52f5fa
leaq 0x2961eb(%rip), %rdx    # 0x590221
leaq 0x2961c0(%rip), %rcx    # 0x5901fd
leaq 0x295ebe(%rip), %r8     # 0x58ff02
movl $0x267, %r9d            # imm = 0x267
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x117c(%rsp) # imm = 0xFFFFFFFF
jmp 0x2fa05e
jmp 0x2fa060
movq 0x20(%rsp), %rdi
callq 0x1afba0
movq 0x18(%rsp), %rdi
callq 0x12c3e0
movl 0x1178(%rsp), %eax
cmpl 0x1174(%rsp), %eax
jne 0x2fa1a4
movq 0x58(%rsp), %rdx
movq 0xe8(%rsp), %rcx
movq 0xe0(%rsp), %r8
movq 0x28(%rsp), %r9
xorl %edi, %edi
leaq 0x30(%rsp), %rsi
callq 0x2f8690
movq 0x58(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x2f98e0
movq %rax, 0x20(%rsp)
movslq 0x1178(%rsp), %rax
movq 0x1130(%rsp,%rax,8), %rdi
movq 0x30(%rsp), %rsi
movslq 0x1174(%rsp), %rax
movq 0x1130(%rsp,%rax,8), %rdx
movq 0x38(%rsp), %rcx
callq 0x129ec0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x12a050
cmpl $0x0, 0x117c(%rsp)
jne 0x2fa18e
movl 0x1170(%rsp), %eax
shll $0x6, %eax
movl 0x1178(%rsp), %ecx
shll $0x3, %ecx
addl %ecx, %eax
addl 0x1174(%rsp), %eax
cltq
movq 0xf0(%rsp,%rax,8), %rax
movq %rax, (%rsp)
movq 0x18(%rsp), %rdi
callq 0x12a9b0
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
je 0x2fa18c
movq 0x1180(%rsp), %rdi
leaq 0x23549b(%rip), %rsi    # 0x52f5fa
leaq 0x2960bb(%rip), %rdx    # 0x590221
leaq 0x296090(%rip), %rcx    # 0x5901fd
leaq 0x295d8e(%rip), %r8     # 0x58ff02
movl $0x273, %r9d            # imm = 0x273
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x117c(%rsp) # imm = 0xFFFFFFFF
jmp 0x2fa18e
jmp 0x2fa190
movq 0x20(%rsp), %rdi
callq 0x1afba0
movq 0x18(%rsp), %rdi
callq 0x12c3e0
movq 0xe8(%rsp), %rdi
callq 0x2b0d20
movq 0xe0(%rsp), %rdi
callq 0x2b0d20
movl 0x1174(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1174(%rsp)
jmp 0x2f9e55
jmp 0x2fa1d6
movl 0x1178(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1178(%rsp)
jmp 0x2f9e1c
movq 0x58(%rsp), %rdi
callq 0x2f85d0
movl 0x1170(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1170(%rsp)
jmp 0x2f9de5
movl 0x117c(%rsp), %eax
addq $0x1188, %rsp           # imm = 0x1188
retq
nopl (%rax,%rax)