// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/intset_16.c
// Function: gt_intset_16_unit_test
int gt_intset_16_unit_test(GtError *err)
{
  int had_err = 0;
  GtIntset *is;
  GtUword num_of_elems = gt_rand_max(((GtUword) 1) << 10) + 1,
          *arr = gt_malloc(sizeof (*arr) * num_of_elems),
          stepsize = GT_DIV2(num_of_elems <<4 / num_of_elems),
          idx;
  size_t is_size;

  gt_error_check(err);

  arr[0] = gt_rand_max(stepsize) + 1;
  for (idx = (GtUword) 1; idx < num_of_elems; ++idx) {
    arr[idx] = arr[idx - 1] + gt_rand_max(stepsize) + 1;
  }

  is_size = gt_intset_16_size_of_rep(arr[num_of_elems - 1], num_of_elems);

  if (!had_err) {
    if (is_size < (size_t) UINT_MAX) {
      is = gt_intset_16_new(arr[num_of_elems - 1], num_of_elems);
      for (idx = 0; idx < num_of_elems; idx++) {
        gt_intset_16_add(is, arr[idx]);
        gt_ensure(idx + 1 == gt_intset_16_size(is));
        if (idx < num_of_elems - 1)
          gt_ensure(gt_intset_16_get_idx_smallest_geq(is,
                                                      arr[idx] + 1) ==
                    num_of_elems);
      }

      gt_ensure(gt_intset_16_elems_is_valid(is));
      gt_ensure(gt_intset_16_secstart_is_valid(is));

      GT_INTSET_TEST_16_BINSEARCH(0);
      for (idx = 1; !had_err && idx < num_of_elems; idx++) {
        GtUword to_find = (arr[idx - 1] == (arr[idx] - 1)) ? idx - 1 : idx;
        gt_ensure(
          gt_intset_16_get_idx_smallest_geq_test(is, arr[idx] - 1) ==
          to_find);
        gt_ensure(
          gt_intset_16_get_idx_smallest_geq(is, arr[idx] - 1) ==
          to_find);
        GT_INTSET_TEST_16_BINSEARCH(idx);
      }
      if (!had_err)
        had_err = gt_intset_unit_test_notinset(is, 0, arr[0] - 1, err);
      if (!had_err)
        had_err = gt_intset_unit_test_check_seqnum(is, 0, arr[0] - 1, 0, err);
      for (idx = (GtUword) 1; !had_err && idx < num_of_elems; idx++) {
        had_err = gt_intset_unit_test_notinset(is, arr[idx - 1] + 1,
                                               arr[idx] - 1, err);
        if (!had_err)
          had_err = gt_intset_unit_test_check_seqnum(is, arr[idx - 1] + 1,
                                                     arr[idx] - 1, idx, err);
      }
      gt_intset_delete(is);
    }
  }
  gt_free(arr);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl $0x400, %edi            # imm = 0x400
callq 0x105d85
movq %rax, %r13
leaq 0x1(%rax), %rbp
leaq 0x8(,%rax,8), %rdi
leaq 0xde201(%rip), %rsi     # 0x3de090
movl $0x1e7, %edx            # imm = 0x1E7
callq 0x104226
movq %rax, %r12
movl $0x4, %eax
xorl %edx, %edx
divq %rbp
movq %rbp, %r14
movl %eax, %ecx
shlq %cl, %r14
testq %rbx, %rbx
je 0x2ffec3
movq %rbx, %rdi
callq 0xfcc32
testb %al, %al
jne 0x300480
movq %rbx, 0x8(%rsp)
shrq %r14
movq %r14, %rdi
callq 0x105d85
incq %rax
movq %rax, (%r12)
cmpq $0x2, %rbp
jb 0x2fff01
xorl %ebx, %ebx
movq (%r12,%rbx,8), %r15
movq %r14, %rdi
callq 0x105d85
addq %r15, %rax
incq %rax
movq %rax, 0x8(%r12,%rbx,8)
incq %rbx
cmpq %rbx, %r13
jne 0x2ffee2
movq (%r12,%r13,8), %rdi
movq %rdi, %rax
shrq $0xd, %rax
andq $-0x8, %rax
leaq (%rax,%rbp,2), %rax
addq $0x8, %rax
movq %rbp, %rbx
xorl %ebp, %ebp
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
cmpq %rcx, %rax
ja 0x30045b
movq %r12, 0x10(%rsp)
movq %rbx, %rsi
callq 0x2ff32c
cmpq $0x1, %rbx
movq %rbx, 0x20(%rsp)
movq %rbx, %rbp
adcq $0x0, %rbp
movq %rax, 0x18(%rsp)
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x10(%rsp), %rax
movq (%rax,%r15,8), %rsi
movq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x2ffb30
leaq 0x1(%r15), %rbx
testl %r14d, %r14d
je 0x2fff7a
xorl %r12d, %r12d
jmp 0x30001e
callq 0x2ff40a
movq %rax, %rdi
movq %r12, %rsi
callq 0x1566fc
movq 0x8(%r12), %rax
cmpq 0x20(%rax), %rbx
jne 0x2fffed
xorl %r14d, %r14d
movb $0x1, %r12b
cmpq %r13, %r15
jae 0x300024
movq 0x10(%rsp), %rax
movq (%rax,%r15,8), %rsi
incq %rsi
movq 0x18(%rsp), %rdi
callq 0x2ffd72
cmpq 0x20(%rsp), %rax
je 0x300024
xorl %r12d, %r12d
movq 0x8(%rsp), %rdi
leaq 0x5e46e(%rip), %rsi     # 0x35e43e
leaq 0xde399(%rip), %rdx     # 0x3de370
leaq 0xde35a(%rip), %rcx     # 0x3de338
leaq 0xde0ab(%rip), %r8      # 0x3de090
movl $0x1fe, %r9d            # imm = 0x1FE
jmp 0x300017
xorl %r12d, %r12d
movq 0x8(%rsp), %rdi
leaq 0x5e442(%rip), %rsi     # 0x35e43e
leaq 0xde34c(%rip), %rdx     # 0x3de34f
leaq 0xde32e(%rip), %rcx     # 0x3de338
leaq 0xde07f(%rip), %r8      # 0x3de090
movl $0x1fa, %r9d            # imm = 0x1FA
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %rbx, %r15
cmpq %rbx, %rbp
jne 0x2fff53
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testb %r12b, %r12b
je 0x30044c
callq 0x2ff40a
movq %rax, %rdi
movq 0x18(%rsp), %rbx
movq %rbx, %rsi
callq 0x1566fc
movq 0x8(%rbx), %rcx
movq 0x28(%rcx), %rdx
cmpq $0x2, %rdx
movq 0x10(%rsp), %r12
jb 0x3000ad
movq (%rcx), %rsi
movl $0x1, %edi
xorl %r8d, %r8d
xorl %r9d, %r9d
decq %r9
movq %r9, %r10
incq %r9
cmpq 0x8(%rsi,%r10,8), %rdi
ja 0x300077
je 0x300097
movq 0x10(%rax), %r10
movzwl (%r10,%rdi,2), %r11d
cmpw -0x2(%r10,%rdi,2), %r11w
jbe 0x3000a3
incq %rdi
cmpq %rdx, %rdi
setae %r8b
jne 0x300074
testb $0x1, %r8b
je 0x30023f
movq 0x30(%rcx), %rax
testq %rax, %rax
je 0x3000d5
movq (%rcx), %rcx
movl $0x1, %edx
movq (%rcx,%rdx,8), %rsi
cmpq -0x8(%rcx,%rdx,8), %rsi
jb 0x300268
incq %rdx
cmpq %rax, %rdx
jbe 0x3000be
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x300485
cmpq (%r12), %rax
jne 0x30022c
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2ffc0f
cmpq (%r12), %rax
jne 0x300291
incq %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3004de
cmpq $0x1, %rax
jne 0x3002a1
movq (%r12), %rsi
incq %rsi
movq %rbx, %rdi
callq 0x2ffd72
cmpq $0x1, %rax
jne 0x3002b1
cmpq $0x2, 0x20(%rsp)
jb 0x3001ff
movl $0x1, %r15d
movq 0x18(%rsp), %r14
leaq -0x1(%r15), %rbx
movq (%r12,%r15,8), %rsi
decq %rsi
cmpq %rsi, -0x8(%r12,%r15,8)
cmovneq %r15, %rbx
movq %r14, %rdi
callq 0x3004de
cmpq %rbx, %rax
jne 0x30037a
movq (%r12,%r15,8), %rsi
decq %rsi
movq %r14, %rdi
callq 0x2ffd72
cmpq %rbx, %rax
jne 0x3003a6
movq %r14, %rdi
movq %r15, %rsi
callq 0x300485
cmpq (%r12,%r15,8), %rax
jne 0x3003d2
movq %r14, %rdi
movq %r15, %rsi
callq 0x2ffc0f
cmpq (%r12,%r15,8), %rax
jne 0x3003e2
incq %rax
movq %r14, %rdi
movq %rax, %rsi
callq 0x3004de
leaq 0x1(%r15), %rbx
cmpq %rax, %rbx
jne 0x30040e
movq %rax, %r12
movq 0x10(%rsp), %rax
movq (%rax,%r15,8), %rsi
incq %rsi
movq %r14, %rdi
callq 0x2ffd72
cmpq %r12, %rax
jne 0x30041e
movq %rbx, %r15
cmpq 0x20(%rsp), %rbx
movq 0x10(%rsp), %r12
jb 0x30014a
movq (%r12), %rdx
decq %rdx
movq 0x18(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
movq 0x8(%rsp), %r15
movq %r15, %rcx
callq 0x15695a
testl %eax, %eax
je 0x3002e4
movl %eax, %ebp
jmp 0x300451
leaq 0x5e20b(%rip), %rsi     # 0x35e43e
leaq 0xde1bd(%rip), %rdx     # 0x3de3f7
jmp 0x3002bf
leaq 0x5e1f8(%rip), %rsi     # 0x35e43e
leaq 0xde167(%rip), %rdx     # 0x3de3b4
leaq 0xde0e4(%rip), %rcx     # 0x3de338
leaq 0xdde35(%rip), %r8      # 0x3de090
movq 0x8(%rsp), %rdi
movl $0x201, %r9d            # imm = 0x201
jmp 0x3002d8
leaq 0x5e1cf(%rip), %rsi     # 0x35e43e
leaq 0xde15e(%rip), %rdx     # 0x3de3d4
leaq 0xde0bb(%rip), %rcx     # 0x3de338
leaq 0xdde0c(%rip), %r8      # 0x3de090
movq 0x8(%rsp), %rdi
movl $0x202, %r9d            # imm = 0x202
jmp 0x3002d8
leaq 0x5e1a6(%rip), %rsi     # 0x35e43e
leaq 0xde17f(%rip), %rdx     # 0x3de41e
jmp 0x3002bf
leaq 0x5e196(%rip), %rsi     # 0x35e43e
leaq 0xde191(%rip), %rdx     # 0x3de440
jmp 0x3002bf
leaq 0x5e186(%rip), %rsi     # 0x35e43e
leaq 0xde1c1(%rip), %rdx     # 0x3de480
leaq 0xde072(%rip), %rcx     # 0x3de338
leaq 0xdddc3(%rip), %r8      # 0x3de090
movq 0x8(%rsp), %rdi
movl $0x204, %r9d            # imm = 0x204
xorl %eax, %eax
callq 0xfcb67
jmp 0x300451
cmpq $0x2, 0x20(%rsp)
setb %bl
movq (%r12), %rdx
decq %rdx
movq %r14, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
movq %r15, %r8
callq 0x1569ea
movl %eax, %ebp
testl %eax, %eax
setne %al
orb %bl, %al
jne 0x300451
movl $0x1, %r15d
movq 0x18(%rsp), %rbx
movq 0x8(%rsp), %r14
movq -0x8(%r12,%r15,8), %rsi
movq (%r12,%r15,8), %rdx
incq %rsi
decq %rdx
movq %rbx, %rdi
movq %r14, %rcx
callq 0x15695a
testl %eax, %eax
jne 0x300225
movq -0x8(%r12,%r15,8), %rsi
movq (%r12,%r15,8), %rdx
incq %rsi
decq %rdx
movq %rbx, %rdi
movq %r15, %rcx
movq %r14, %r8
callq 0x1569ea
movl %eax, %ebp
testl %eax, %eax
jne 0x300451
incq %r15
cmpq 0x20(%rsp), %r15
jb 0x300322
jmp 0x300451
leaq 0x5e0bd(%rip), %rsi     # 0x35e43e
leaq 0xde133(%rip), %rdx     # 0x3de4bb
leaq 0xddfa9(%rip), %rcx     # 0x3de338
leaq 0xddcfa(%rip), %r8      # 0x3de090
movq 0x8(%rsp), %rdi
movl $0x209, %r9d            # imm = 0x209
jmp 0x3002d8
leaq 0x5e091(%rip), %rsi     # 0x35e43e
leaq 0xde14b(%rip), %rdx     # 0x3de4ff
leaq 0xddf7d(%rip), %rcx     # 0x3de338
leaq 0xddcce(%rip), %r8      # 0x3de090
movq 0x8(%rsp), %rdi
movl $0x20c, %r9d            # imm = 0x20C
jmp 0x3002d8
leaq 0x5e065(%rip), %rsi     # 0x35e43e
leaq 0xde15e(%rip), %rdx     # 0x3de53e
jmp 0x3003f0
leaq 0x5e055(%rip), %rsi     # 0x35e43e
leaq 0xde179(%rip), %rdx     # 0x3de569
leaq 0xddf41(%rip), %rcx     # 0x3de338
leaq 0xddc92(%rip), %r8      # 0x3de090
movq 0x8(%rsp), %rdi
movl $0x20d, %r9d            # imm = 0x20D
jmp 0x3002d8
leaq 0x5e029(%rip), %rsi     # 0x35e43e
leaq 0xde173(%rip), %rdx     # 0x3de58f
jmp 0x30042c
leaq 0x5e019(%rip), %rsi     # 0x35e43e
leaq 0xde1a7(%rip), %rdx     # 0x3de5d3
leaq 0xddf05(%rip), %rcx     # 0x3de338
leaq 0xddc56(%rip), %r8      # 0x3de090
movq 0x8(%rsp), %rdi
movl $0x20d, %r9d            # imm = 0x20D
xorl %eax, %eax
callq 0xfcb67
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %rdi
callq 0x1568d4
leaq 0xddc2e(%rip), %rsi     # 0x3de090
movq %r12, %rdi
movl $0x21d, %edx            # imm = 0x21D
callq 0x1045eb
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x8c353