// File: /workspace/github_c_makefile_star2_O3/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
leaq 0x22a676(%rip), %rsi    # 0x38cb68
movl $0x20, %edi
movl $0x2a, %edx
callq 0x104226
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
testq %rbx, %rbx
je 0x162523
movq %rbx, %rdi
callq 0xfcc32
testb %al, %al
jne 0x162a72
movl $0x1, %edx
movq %r14, %rdi
movl $0x3, %esi
callq 0x161ecf
cmpq $0x1, 0x18(%r14)
jne 0x162595
movq 0x8(%r14), %rax
movb (%rax), %al
movl %eax, %ecx
andb $-0x40, %cl
negb %cl
jno 0x1625be
andb $0x3f, %al
cmpb $0x1, %al
jne 0x1625e7
movq %r14, %rdi
xorl %esi, %esi
callq 0x16210e
movb $0x1, %bpl
cmpq $0x1, %rdx
je 0x162615
leaq 0x1fbecb(%rip), %rsi    # 0x35e43e
leaq 0x22a91c(%rip), %rdx    # 0x38ce96
leaq 0x22a846(%rip), %rcx    # 0x38cdc7
leaq 0x22a5e0(%rip), %r8     # 0x38cb68
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x1c2, %r9d            # imm = 0x1C2
jmp 0x16260e
leaq 0x1fbea2(%rip), %rsi    # 0x35e43e
leaq 0x22a83e(%rip), %rdx    # 0x38cde1
leaq 0x22a81d(%rip), %rcx    # 0x38cdc7
leaq 0x22a5b7(%rip), %r8     # 0x38cb68
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x1bc, %r9d            # imm = 0x1BC
jmp 0x16260e
leaq 0x1fbe79(%rip), %rsi    # 0x35e43e
leaq 0x22a84a(%rip), %rdx    # 0x38ce16
leaq 0x22a7f4(%rip), %rcx    # 0x38cdc7
leaq 0x22a58e(%rip), %r8     # 0x38cb68
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x1bd, %r9d            # imm = 0x1BD
jmp 0x16260e
leaq 0x1fbe50(%rip), %rsi    # 0x35e43e
leaq 0x22a863(%rip), %rdx    # 0x38ce58
leaq 0x22a7cb(%rip), %rcx    # 0x38cdc7
leaq 0x22a565(%rip), %r8     # 0x38cb68
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x1be, %r9d            # imm = 0x1BE
xorl %eax, %eax
callq 0xfcb67
movl $0x3f, %r15d
movl $0x1, %edx
movq %r14, %rdi
movl $0x3, %esi
callq 0x161ecf
decq %r15
jne 0x16261b
testb %bpl, %bpl
je 0x162808
cmpq $0x2, 0x18(%r14)
jne 0x162810
movq 0x8(%r14), %rax
movb 0x1(%rax), %cl
movl %ecx, %edx
andb $-0x40, %dl
negb %dl
jno 0x16283d
andb $0x3f, %cl
cmpb $0x1, %cl
jne 0x16286a
movb (%rax), %al
notb %al
testb $0x3f, %al
jne 0x162897
movq %r14, %rdi
callq 0x162043
cmpq $0x40, %rax
jne 0x1628c4
movl $0x1f, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x161ecf
cmpq $0x3, 0x18(%r14)
jne 0x1628f1
movq 0x8(%r14), %rax
movb 0x2(%rax), %al
cmpb $0x40, %al
jae 0x16291e
cmpb $0x1f, %al
jne 0x16294b
movl $0x7e, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x161ecf
cmpq $0x5, 0x18(%r14)
jne 0x162978
movq 0x8(%r14), %rax
movb 0x4(%rax), %al
cmpb $0x40, %al
jae 0x1629a5
cmpb $0x1f, %al
jne 0x1629cf
xorl %edi, %edi
movq %r14, %rsi
callq 0x161db3
movq %rax, %r15
movq %r14, %rdi
callq 0x1620d5
movq %rax, %r12
movq %r15, %rdi
callq 0x1620d5
cmpq %rax, %r12
jne 0x1629f9
movq %r14, %rdi
callq 0x162043
movq %rax, %r12
movq %r15, %rdi
callq 0x162043
cmpq %rax, %r12
jne 0x162a20
movq 0x18(%r14), %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x1627f3
xorl %ecx, %ecx
xorl %r12d, %r12d
movl %ecx, %ebp
movq %r14, %rdi
movq %r12, %rsi
callq 0x16210e
movl %eax, 0xc(%rsp)
movq %rdx, %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x16210e
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testl %ebp, %ebp
je 0x16276e
xorl %ebp, %ebp
jmp 0x1627dc
cmpl %eax, 0xc(%rsp)
jne 0x162780
cmpq %rdx, %r13
jne 0x1627a9
xorl %ecx, %ecx
movb $0x1, %bpl
jmp 0x1627dc
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0x1fbcb2(%rip), %rsi    # 0x35e43e
leaq 0x22aacb(%rip), %rdx    # 0x38d25e
leaq 0x22a62d(%rip), %rcx    # 0x38cdc7
leaq 0x22a3c7(%rip), %r8     # 0x38cb68
movl $0x1ef, %r9d            # imm = 0x1EF
jmp 0x1627d0
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0x1fbc89(%rip), %rsi    # 0x35e43e
leaq 0x22aab9(%rip), %rdx    # 0x38d275
leaq 0x22a604(%rip), %rcx    # 0x38cdc7
leaq 0x22a39e(%rip), %r8     # 0x38cb68
movl $0x1f0, %r9d            # imm = 0x1F0
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
incq %r12
cmpq %r12, 0x10(%rsp)
jne 0x162742
testb %bpl, %bpl
je 0x162a4c
movq %r14, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x16225c
jmp 0x162a4c
xorl %r15d, %r15d
jmp 0x162a4c
leaq 0x1fbc27(%rip), %rsi    # 0x35e43e
leaq 0x22a694(%rip), %rdx    # 0x38ceb2
leaq 0x22a5a2(%rip), %rcx    # 0x38cdc7
leaq 0x22a33c(%rip), %r8     # 0x38cb68
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1c8, %r9d            # imm = 0x1C8
jmp 0x162a45
leaq 0x1fbbfa(%rip), %rsi    # 0x35e43e
leaq 0x22a69c(%rip), %rdx    # 0x38cee7
leaq 0x22a575(%rip), %rcx    # 0x38cdc7
leaq 0x22a30f(%rip), %r8     # 0x38cb68
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1c9, %r9d            # imm = 0x1C9
jmp 0x162a45
leaq 0x1fbbcd(%rip), %rsi    # 0x35e43e
leaq 0x22a6b1(%rip), %rdx    # 0x38cf29
leaq 0x22a548(%rip), %rcx    # 0x38cdc7
leaq 0x22a2e2(%rip), %r8     # 0x38cb68
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1cb, %r9d            # imm = 0x1CB
jmp 0x162a45
leaq 0x1fbba0(%rip), %rsi    # 0x35e43e
leaq 0x22a6d0(%rip), %rdx    # 0x38cf75
leaq 0x22a51b(%rip), %rcx    # 0x38cdc7
leaq 0x22a2b5(%rip), %r8     # 0x38cb68
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1cd, %r9d            # imm = 0x1CD
jmp 0x162a45
leaq 0x1fbb73(%rip), %rsi    # 0x35e43e
leaq 0x22a701(%rip), %rdx    # 0x38cfd3
leaq 0x22a4ee(%rip), %rcx    # 0x38cdc7
leaq 0x22a288(%rip), %r8     # 0x38cb68
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1cf, %r9d            # imm = 0x1CF
jmp 0x162a45
leaq 0x1fbb46(%rip), %rsi    # 0x35e43e
leaq 0x22a721(%rip), %rdx    # 0x38d020
leaq 0x22a4c1(%rip), %rcx    # 0x38cdc7
leaq 0x22a25b(%rip), %r8     # 0x38cb68
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1d3, %r9d            # imm = 0x1D3
jmp 0x162a45
leaq 0x1fbb19(%rip), %rsi    # 0x35e43e
leaq 0x22a729(%rip), %rdx    # 0x38d055
leaq 0x22a494(%rip), %rcx    # 0x38cdc7
leaq 0x22a22e(%rip), %r8     # 0x38cb68
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1d5, %r9d            # imm = 0x1D5
jmp 0x162a45
leaq 0x1fbaec(%rip), %rsi    # 0x35e43e
leaq 0x22a740(%rip), %rdx    # 0x38d099
leaq 0x22a467(%rip), %rcx    # 0x38cdc7
leaq 0x22a201(%rip), %r8     # 0x38cb68
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1d7, %r9d            # imm = 0x1D7
jmp 0x162a45
leaq 0x1fbabf(%rip), %rsi    # 0x35e43e
leaq 0x22a776(%rip), %rdx    # 0x38d0fc
leaq 0x22a43a(%rip), %rcx    # 0x38cdc7
leaq 0x22a1d4(%rip), %r8     # 0x38cb68
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1db, %r9d            # imm = 0x1DB
jmp 0x162a45
leaq 0x1fba92(%rip), %rsi    # 0x35e43e
leaq 0x22a77e(%rip), %rdx    # 0x38d131
leaq 0x22a40d(%rip), %rcx    # 0x38cdc7
leaq 0x22a1a7(%rip), %r8     # 0x38cb68
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1dd, %r9d            # imm = 0x1DD
jmp 0x162a45
leaq 0x1fba68(%rip), %rsi    # 0x35e43e
leaq 0x22a798(%rip), %rdx    # 0x38d175
leaq 0x22a3e3(%rip), %rcx    # 0x38cdc7
leaq 0x22a17d(%rip), %r8     # 0x38cb68
xorl %r15d, %r15d
movq %rbx, %rdi
movl $0x1df, %r9d            # imm = 0x1DF
jmp 0x162a45
leaq 0x1fba3e(%rip), %rsi    # 0x35e43e
leaq 0x22a7bd(%rip), %rdx    # 0x38d1c4
leaq 0x22a3b9(%rip), %rcx    # 0x38cdc7
leaq 0x22a153(%rip), %r8     # 0x38cb68
movq %rbx, %rdi
movl $0x1e6, %r9d            # imm = 0x1E6
jmp 0x162a45
leaq 0x1fba17(%rip), %rsi    # 0x35e43e
leaq 0x22a7dc(%rip), %rdx    # 0x38d20a
leaq 0x22a392(%rip), %rcx    # 0x38cdc7
leaq 0x22a12c(%rip), %r8     # 0x38cb68
movq %rbx, %rdi
movl $0x1e8, %r9d            # imm = 0x1E8
xorl %eax, %eax
callq 0xfcb67
movq %r14, %rdi
callq 0x161e59
movq %r15, %rdi
callq 0x161e59
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x162405
callq 0x4da9f
nop