// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/alignment.c
// Function: gt_alignment_unit_test
int gt_alignment_unit_test(GtError *err)
{
  static char u[] = "acgtagatatatagat",
              v[] = "agaaagaggtaagaggga";
  GtAlignment *alignment;
  int had_err = 0;
  gt_error_check(err);

  /* construct the following alignment (backwards):

     acgtaga--tatata-gat
     |   |||  || | | |                  [R 7,I 2,R 2,D 1,R 3,I 1,R 3]
     agaaagaggta-agaggga
  */

  alignment = gt_alignment_new_with_seqs((const GtUchar *) u,
                                 (GtUword) strlen(u),
                                 (const GtUchar *) v,
                                 (GtUword) strlen(v));
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_insertion(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_deletion(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_insertion(alignment);
  gt_alignment_add_insertion(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_replacement(alignment);
  gt_alignment_add_replacement(alignment);

  gt_ensure(gt_alignment_eval(alignment) == 10UL);

  gt_alignment_delete(alignment);

  return had_err;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl $0x0, 0x14(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x12c581
movq 0x20(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x12c549
jmp 0x12c581
movq 0x50fa50(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e9ab9(%rip), %rsi    # 0x516013
leaq 0x3e9c5e(%rip), %rdx    # 0x5161bf
leaq 0x41ad13(%rip), %rcx    # 0x54727b
leaq 0x41a8d9(%rip), %r8     # 0x546e48
movl $0x342, %r9d            # imm = 0x342
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x12c583
leaq 0x5111d6(%rip), %rdi    # 0x63d760
callq 0x192b0
movq %rax, 0x8(%rsp)
leaq 0x5111e5(%rip), %rdi    # 0x63d780
callq 0x192b0
movq 0x8(%rsp), %rsi
movq %rax, %rcx
leaq 0x5111b1(%rip), %rdi    # 0x63d760
leaq 0x5111ca(%rip), %rdx    # 0x63d780
callq 0x129ec0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a4f0
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a480
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a4f0
movq 0x18(%rsp), %rdi
callq 0x12a4f0
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a410
movq 0x18(%rsp), %rdi
callq 0x12a410
cmpl $0x0, 0x14(%rsp)
jne 0x12c6cd
movq 0x18(%rsp), %rdi
callq 0x12a9b0
cmpq $0xa, %rax
je 0x12c6cb
movq 0x20(%rsp), %rdi
leaq 0x402f59(%rip), %rsi    # 0x52f5fa
leaq 0x41abea(%rip), %rdx    # 0x547292
leaq 0x41abcc(%rip), %rcx    # 0x54727b
leaq 0x41a792(%rip), %r8     # 0x546e48
movl $0x363, %r9d            # imm = 0x363
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
jmp 0x12c6cd
jmp 0x12c6cf
movq 0x18(%rsp), %rdi
callq 0x12c3e0
movl 0x14(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)