// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/multieoplist.c
// Function: gt_multieoplist_unit_test
int gt_multieoplist_unit_test(GtError *err)
{
  int had_err = 0;
  GtUword idx, num;
  GtMultieoplist *list = gt_multieoplist_new(),
                 *list2 = NULL;

  gt_error_check(err);

  gt_multieoplist_add_deletion(list);
  gt_ensure(gt_multieoplist_get_num_entries(list) == (GtUword) 1);
  gt_ensure(list->meoplist.spaceEop[0] >> GT_MEOPS_STEPS_BITS == GT_MEOPS_DEL);
  gt_ensure((int) (list->meoplist.spaceEop[0] & GT_MEOPS_STEPS_MASK) == 1);
  if (!had_err) {
    GtMultieop meop = gt_multieoplist_get_entry(list, 0);
    gt_ensure(meop.type = Deletion);
    gt_ensure(meop.steps == (GtUword) 1UL);
  }

  for (idx = 0; idx < (GtUword) GT_MEOPS_STEPS_MASK; idx++) {
    gt_multieoplist_add_deletion(list);
  }
  gt_ensure(gt_multieoplist_get_num_entries(list) == (GtUword) 2);
  gt_ensure(list->meoplist.spaceEop[1] >> GT_MEOPS_STEPS_BITS == GT_MEOPS_DEL);
  gt_ensure((GtUword) (list->meoplist.spaceEop[1] & GT_MEOPS_STEPS_MASK) ==
            (GtUword) 1);
  gt_ensure((GtUword) (list->meoplist.spaceEop[0] & GT_MEOPS_STEPS_MASK) ==
            (GtUword) GT_MEOPS_STEPS_MASK);
  gt_ensure(gt_multieoplist_get_repdel_length(list) ==
            (GtUword) GT_MEOPS_STEPS_MASK + 1);

  if (!had_err)
    gt_multieoplist_add_eops(list, Match, (GtUword) (GT_MEOPS_STEPS_MASK >> 1));
  gt_ensure(gt_multieoplist_get_num_entries(list) == (GtUword) 3);
  gt_ensure(list->meoplist.spaceEop[2] >> GT_MEOPS_STEPS_BITS ==
            GT_MEOPS_MATCH);
  gt_ensure((GtUword) (list->meoplist.spaceEop[2] & GT_MEOPS_STEPS_MASK) ==
            (GtUword) GT_MEOPS_STEPS_MASK >> 1);

  if (!had_err)
    gt_multieoplist_add_eops(list, Match, (GtUword) (GT_MEOPS_STEPS_MASK << 1));
  gt_ensure(gt_multieoplist_get_num_entries(list) == (GtUword) 5);
  gt_ensure(list->meoplist.spaceEop[4] >> GT_MEOPS_STEPS_BITS ==
            GT_MEOPS_MATCH);
  gt_ensure((list->meoplist.spaceEop[4] & GT_MEOPS_STEPS_MASK) ==
            GT_MEOPS_STEPS_MASK >> 1);

  if (!had_err) {
    list2 = gt_multieoplist_clone(list2, list);
  }

  gt_ensure(gt_multieoplist_get_length(list) ==
            gt_multieoplist_get_length(list2));
  gt_ensure(gt_multieoplist_get_repdel_length(list) ==
            gt_multieoplist_get_repdel_length(list2));
  if (!had_err) {
    num = gt_multieoplist_get_num_entries(list);

    for (idx = 0; idx < num; idx++) {
      GtMultieop eop1 = gt_multieoplist_get_entry(list, idx),
                 eop2 = gt_multieoplist_get_entry(list2, idx);
      gt_ensure(eop1.type == eop2.type);
      gt_ensure(eop1.steps == eop2.steps);
    }
  }

  if (!had_err) {
    gt_multieoplist_combine(list, list2, true);
  }
  gt_multieoplist_delete(list);
  gt_multieoplist_delete(list2);

  had_err = gt_multieoplist_unit_test_2(err);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x101648
movq %rax, %r14
testq %rbx, %rbx
je 0x101ff6
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x10250d
movq %r14, %rdi
callq 0x10196c
cmpq $0x1, 0x18(%r14)
jne 0x10205e
movq 0x8(%r14), %rax
movb (%rax), %al
movl %eax, %ecx
andb $-0x40, %cl
negb %cl
jno 0x102087
andb $0x3f, %al
cmpb $0x1, %al
jne 0x1020b0
movq %r14, %rdi
xorl %esi, %esi
callq 0x101b4b
movb $0x1, %bpl
cmpq $0x1, %rdx
je 0x1020de
leaq 0x1fc3b6(%rip), %rsi    # 0x2fe3f2
leaq 0x22b243(%rip), %rdx    # 0x32d286
leaq 0x22b16d(%rip), %rcx    # 0x32d1b7
leaq 0x22af07(%rip), %r8     # 0x32cf58
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x1c2, %r9d            # imm = 0x1C2
jmp 0x1020d7
leaq 0x1fc38d(%rip), %rsi    # 0x2fe3f2
leaq 0x22b165(%rip), %rdx    # 0x32d1d1
leaq 0x22b144(%rip), %rcx    # 0x32d1b7
leaq 0x22aede(%rip), %r8     # 0x32cf58
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x1bc, %r9d            # imm = 0x1BC
jmp 0x1020d7
leaq 0x1fc364(%rip), %rsi    # 0x2fe3f2
leaq 0x22b171(%rip), %rdx    # 0x32d206
leaq 0x22b11b(%rip), %rcx    # 0x32d1b7
leaq 0x22aeb5(%rip), %r8     # 0x32cf58
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x1bd, %r9d            # imm = 0x1BD
jmp 0x1020d7
leaq 0x1fc33b(%rip), %rsi    # 0x2fe3f2
leaq 0x22b18a(%rip), %rdx    # 0x32d248
leaq 0x22b0f2(%rip), %rcx    # 0x32d1b7
leaq 0x22ae8c(%rip), %r8     # 0x32cf58
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x1be, %r9d            # imm = 0x1BE
xorl %eax, %eax
callq 0x89dbb
pushq $0x3f
popq %r15
subq $0x1, %r15
jb 0x1020f2
movq %r14, %rdi
callq 0x10196c
jmp 0x1020e2
testb %bpl, %bpl
je 0x10228f
cmpq $0x2, 0x18(%r14)
jne 0x102297
movq 0x8(%r14), %rax
movb 0x1(%rax), %cl
movl %ecx, %edx
andb $-0x40, %dl
negb %dl
jno 0x1022c4
andb $0x3f, %cl
cmpb $0x1, %cl
jne 0x1022f1
movb (%rax), %al
notb %al
testb $0x3f, %al
jne 0x10231e
movq %r14, %rdi
callq 0x1019fc
cmpq $0x40, %rax
jne 0x10234b
pushq $0x1f
popq %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x1017d1
cmpq $0x3, 0x18(%r14)
jne 0x102378
movq 0x8(%r14), %rax
movb 0x2(%rax), %al
cmpb $0x40, %al
jae 0x1023a5
cmpb $0x1f, %al
jne 0x1023d2
pushq $0x7e
popq %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x1017d1
cmpq $0x5, 0x18(%r14)
jne 0x1023ff
movq 0x8(%r14), %rax
movb 0x4(%rax), %al
cmpb $0x40, %al
jae 0x10242c
cmpb $0x1f, %al
jne 0x102456
xorl %edi, %edi
movq %r14, %rsi
callq 0x1016b3
movq %rax, %r15
movq %r14, %rdi
callq 0x101ae6
movq %rax, %r12
movq %r15, %rdi
callq 0x101ae6
cmpq %rax, %r12
jne 0x102480
movq %r14, %rdi
callq 0x1019fc
movq %rax, %r12
movq %r15, %rdi
callq 0x1019fc
cmpq %rax, %r12
jne 0x1024a7
movq 0x18(%r14), %rax
movq %rax, 0x10(%rsp)
xorl %r12d, %r12d
xorl %ebp, %ebp
cmpq %r12, 0x10(%rsp)
je 0x1024f9
movq %r14, %rdi
movq %r12, %rsi
callq 0x101b4b
movl %eax, 0xc(%rsp)
movq %rdx, %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x101b4b
testl %ebp, %ebp
pushq $-0x1
popq %rbp
jne 0x102287
cmpl %eax, 0xc(%rsp)
jne 0x102258
xorl %ebp, %ebp
cmpq %rdx, %r13
je 0x102287
movq %rbx, %rdi
leaq 0x1fc1b7(%rip), %rsi    # 0x2fe3f2
leaq 0x22b423(%rip), %rdx    # 0x32d665
leaq 0x22af6e(%rip), %rcx    # 0x32d1b7
leaq 0x22ad08(%rip), %r8     # 0x32cf58
movl $0x1f0, %r9d            # imm = 0x1F0
jmp 0x10227d
movq %rbx, %rdi
leaq 0x1fc190(%rip), %rsi    # 0x2fe3f2
leaq 0x22b3e5(%rip), %rdx    # 0x32d64e
leaq 0x22af47(%rip), %rcx    # 0x32d1b7
leaq 0x22ace1(%rip), %r8     # 0x32cf58
movl $0x1ef, %r9d            # imm = 0x1EF
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbp
incq %r12
jmp 0x1021f5
xorl %r15d, %r15d
jmp 0x1024d3
leaq 0x1fc154(%rip), %rsi    # 0x2fe3f2
leaq 0x22affd(%rip), %rdx    # 0x32d2a2
leaq 0x22af0b(%rip), %rcx    # 0x32d1b7
leaq 0x22aca5(%rip), %r8     # 0x32cf58
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1c8, %r9d            # imm = 0x1C8
jmp 0x1024cc
leaq 0x1fc127(%rip), %rsi    # 0x2fe3f2
leaq 0x22b005(%rip), %rdx    # 0x32d2d7
leaq 0x22aede(%rip), %rcx    # 0x32d1b7
leaq 0x22ac78(%rip), %r8     # 0x32cf58
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1c9, %r9d            # imm = 0x1C9
jmp 0x1024cc
leaq 0x1fc0fa(%rip), %rsi    # 0x2fe3f2
leaq 0x22b01a(%rip), %rdx    # 0x32d319
leaq 0x22aeb1(%rip), %rcx    # 0x32d1b7
leaq 0x22ac4b(%rip), %r8     # 0x32cf58
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1cb, %r9d            # imm = 0x1CB
jmp 0x1024cc
leaq 0x1fc0cd(%rip), %rsi    # 0x2fe3f2
leaq 0x22b039(%rip), %rdx    # 0x32d365
leaq 0x22ae84(%rip), %rcx    # 0x32d1b7
leaq 0x22ac1e(%rip), %r8     # 0x32cf58
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1cd, %r9d            # imm = 0x1CD
jmp 0x1024cc
leaq 0x1fc0a0(%rip), %rsi    # 0x2fe3f2
leaq 0x22b06a(%rip), %rdx    # 0x32d3c3
leaq 0x22ae57(%rip), %rcx    # 0x32d1b7
leaq 0x22abf1(%rip), %r8     # 0x32cf58
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1cf, %r9d            # imm = 0x1CF
jmp 0x1024cc
leaq 0x1fc073(%rip), %rsi    # 0x2fe3f2
leaq 0x22b08a(%rip), %rdx    # 0x32d410
leaq 0x22ae2a(%rip), %rcx    # 0x32d1b7
leaq 0x22abc4(%rip), %r8     # 0x32cf58
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1d3, %r9d            # imm = 0x1D3
jmp 0x1024cc
leaq 0x1fc046(%rip), %rsi    # 0x2fe3f2
leaq 0x22b092(%rip), %rdx    # 0x32d445
leaq 0x22adfd(%rip), %rcx    # 0x32d1b7
leaq 0x22ab97(%rip), %r8     # 0x32cf58
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1d5, %r9d            # imm = 0x1D5
jmp 0x1024cc
leaq 0x1fc019(%rip), %rsi    # 0x2fe3f2
leaq 0x22b0a9(%rip), %rdx    # 0x32d489
leaq 0x22add0(%rip), %rcx    # 0x32d1b7
leaq 0x22ab6a(%rip), %r8     # 0x32cf58
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1d7, %r9d            # imm = 0x1D7
jmp 0x1024cc
leaq 0x1fbfec(%rip), %rsi    # 0x2fe3f2
leaq 0x22b0df(%rip), %rdx    # 0x32d4ec
leaq 0x22ada3(%rip), %rcx    # 0x32d1b7
leaq 0x22ab3d(%rip), %r8     # 0x32cf58
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1db, %r9d            # imm = 0x1DB
jmp 0x1024cc
leaq 0x1fbfbf(%rip), %rsi    # 0x2fe3f2
leaq 0x22b0e7(%rip), %rdx    # 0x32d521
leaq 0x22ad76(%rip), %rcx    # 0x32d1b7
leaq 0x22ab10(%rip), %r8     # 0x32cf58
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1dd, %r9d            # imm = 0x1DD
jmp 0x1024cc
leaq 0x1fbf95(%rip), %rsi    # 0x2fe3f2
leaq 0x22b101(%rip), %rdx    # 0x32d565
leaq 0x22ad4c(%rip), %rcx    # 0x32d1b7
leaq 0x22aae6(%rip), %r8     # 0x32cf58
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1df, %r9d            # imm = 0x1DF
jmp 0x1024cc
leaq 0x1fbf6b(%rip), %rsi    # 0x2fe3f2
leaq 0x22b126(%rip), %rdx    # 0x32d5b4
leaq 0x22ad22(%rip), %rcx    # 0x32d1b7
leaq 0x22aabc(%rip), %r8     # 0x32cf58
movq %rbx, %rdi
movl $0x1e6, %r9d            # imm = 0x1E6
jmp 0x1024cc
leaq 0x1fbf44(%rip), %rsi    # 0x2fe3f2
leaq 0x22b145(%rip), %rdx    # 0x32d5fa
leaq 0x22acfb(%rip), %rcx    # 0x32d1b7
leaq 0x22aa95(%rip), %r8     # 0x32cf58
movq %rbx, %rdi
movl $0x1e8, %r9d            # imm = 0x1E8
xorl %eax, %eax
callq 0x89dbb
movq %r14, %rdi
callq 0x101766
movq %r15, %rdi
callq 0x101766
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x101f2c
testl %ebp, %ebp
jne 0x1024d3
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x101d7f
jmp 0x1024d3
movq 0x335a54(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e2af5(%rip), %rsi    # 0x2e5013
leaq 0x1e2c9a(%rip), %rdx    # 0x2e51bf
leaq 0x22ac8b(%rip), %rcx    # 0x32d1b7
leaq 0x22aa25(%rip), %r8     # 0x32cf58
movl $0x1b9, %r9d            # imm = 0x1B9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nopl (%rax)