// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/intset_8.c
// Function: gt_intset_8_unit_test
int gt_intset_8_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_8_size_of_rep(arr[num_of_elems - 1], num_of_elems);

  if (!had_err) {
    if (is_size < (size_t) UINT_MAX) {
      is = gt_intset_8_new(arr[num_of_elems - 1], num_of_elems);
      for (idx = 0; idx < num_of_elems; idx++) {
        gt_intset_8_add(is, arr[idx]);
        gt_ensure(idx + 1 == gt_intset_8_size(is));
        if (idx < num_of_elems - 1)
          gt_ensure(gt_intset_8_get_idx_smallest_geq(is,
                                                     arr[idx] + 1) ==
                    num_of_elems);
      }

      gt_ensure(gt_intset_8_elems_is_valid(is));
      gt_ensure(gt_intset_8_secstart_is_valid(is));

      GT_INTSET_TEST_8_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_8_get_idx_smallest_geq_test(is, arr[idx] - 1) ==
          to_find);
        gt_ensure(
          gt_intset_8_get_idx_smallest_geq(is, arr[idx] - 1) ==
          to_find);
        GT_INTSET_TEST_8_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), %r14
leaq 0x8(,%rax,8), %rdi
leaq 0xdc80a(%rip), %rsi     # 0x3deb19
movl $0x1e7, %edx            # imm = 0x1E7
callq 0x104226
movq %rax, %r12
movl $0x4, %eax
xorl %edx, %edx
divq %r14
movq %r14, 0x20(%rsp)
movl %eax, %ecx
shlq %cl, %r14
testq %rbx, %rbx
je 0x302345
movq %rbx, %rdi
callq 0xfcc32
testb %al, %al
jne 0x3028fb
movq %rbx, 0x8(%rsp)
shrq %r14
movq %r14, %rdi
callq 0x105d85
incq %rax
movq %rax, (%r12)
cmpq $0x2, 0x20(%rsp)
jb 0x302385
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 0x302366
movq (%r12,%r13,8), %rdi
movq %rdi, %rax
shrq $0x8, %rax
leaq 0x9(,%rax,8), %rax
addq %r13, %rax
xorl %ebp, %ebp
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
cmpq %rcx, %rax
ja 0x3028d6
movq %r12, 0x10(%rsp)
movq 0x20(%rsp), %rbp
movq %rbp, %rsi
callq 0x3017d4
cmpq $0x1, %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 0x301fce
leaq 0x1(%r15), %rbx
testl %r14d, %r14d
je 0x3023f7
xorl %r12d, %r12d
jmp 0x30249b
callq 0x3018b1
movq %rax, %rdi
movq %r12, %rsi
callq 0x1566fc
movq 0x8(%r12), %rax
cmpq 0x20(%rax), %rbx
jne 0x30246a
xorl %r14d, %r14d
movb $0x1, %r12b
cmpq %r13, %r15
jae 0x3024a1
movq 0x10(%rsp), %rax
movq (%rax,%r15,8), %rsi
incq %rsi
movq 0x18(%rsp), %rdi
callq 0x302209
cmpq 0x20(%rsp), %rax
je 0x3024a1
xorl %r12d, %r12d
movq 0x8(%rsp), %rdi
leaq 0x5bff1(%rip), %rsi     # 0x35e43e
leaq 0xdc7cb(%rip), %rdx     # 0x3dec1f
leaq 0xdc78e(%rip), %rcx     # 0x3debe9
leaq 0xdc6b7(%rip), %r8      # 0x3deb19
movl $0x1fe, %r9d            # imm = 0x1FE
jmp 0x302494
xorl %r12d, %r12d
movq 0x8(%rsp), %rdi
leaq 0x5bfc5(%rip), %rsi     # 0x35e43e
leaq 0xdc77f(%rip), %rdx     # 0x3debff
leaq 0xdc762(%rip), %rcx     # 0x3debe9
leaq 0xdc68b(%rip), %r8      # 0x3deb19
movl $0x1fa, %r9d            # imm = 0x1FA
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %rbx, %r15
cmpq %rbx, %rbp
jne 0x3023d0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testb %r12b, %r12b
je 0x3028c7
callq 0x3018b1
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 0x302528
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 0x3024f4
je 0x302512
movq 0x10(%rax), %r10
movb (%r10,%rdi), %r11b
cmpb -0x1(%r10,%rdi), %r11b
jbe 0x30251e
incq %rdi
cmpq %rdx, %rdi
setae %r8b
jne 0x3024f1
testb $0x1, %r8b
je 0x3026ba
movq 0x30(%rcx), %rax
testq %rax, %rax
je 0x302550
movq (%rcx), %rcx
movl $0x1, %edx
movq (%rcx,%rdx,8), %rsi
cmpq -0x8(%rcx,%rdx,8), %rsi
jb 0x3026e3
incq %rdx
cmpq %rax, %rdx
jbe 0x302539
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x302900
cmpq (%r12), %rax
jne 0x3026a7
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3020ac
cmpq (%r12), %rax
jne 0x30270c
incq %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x302959
cmpq $0x1, %rax
jne 0x30271c
movq (%r12), %rsi
incq %rsi
movq %rbx, %rdi
callq 0x302209
cmpq $0x1, %rax
jne 0x30272c
cmpq $0x2, 0x20(%rsp)
jb 0x30267a
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 0x302959
cmpq %rbx, %rax
jne 0x3027f5
movq (%r12,%r15,8), %rsi
decq %rsi
movq %r14, %rdi
callq 0x302209
cmpq %rbx, %rax
jne 0x302821
movq %r14, %rdi
movq %r15, %rsi
callq 0x302900
cmpq (%r12,%r15,8), %rax
jne 0x30284d
movq %r14, %rdi
movq %r15, %rsi
callq 0x3020ac
cmpq (%r12,%r15,8), %rax
jne 0x30285d
incq %rax
movq %r14, %rdi
movq %rax, %rsi
callq 0x302959
leaq 0x1(%r15), %rbx
cmpq %rax, %rbx
jne 0x302889
movq %rax, %r12
movq 0x10(%rsp), %rax
movq (%rax,%r15,8), %rsi
incq %rsi
movq %r14, %rdi
callq 0x302209
cmpq %r12, %rax
jne 0x302899
movq %rbx, %r15
cmpq 0x20(%rsp), %rbx
movq 0x10(%rsp), %r12
jb 0x3025c5
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 0x30275f
movl %eax, %ebp
jmp 0x3028cc
leaq 0x5bd90(%rip), %rsi     # 0x35e43e
leaq 0xdc5ee(%rip), %rdx     # 0x3deca3
jmp 0x30273a
leaq 0x5bd7d(%rip), %rsi     # 0x35e43e
leaq 0xdc59a(%rip), %rdx     # 0x3dec62
leaq 0xdc51a(%rip), %rcx     # 0x3debe9
leaq 0xdc443(%rip), %r8      # 0x3deb19
movq 0x8(%rsp), %rdi
movl $0x201, %r9d            # imm = 0x201
jmp 0x302753
leaq 0x5bd54(%rip), %rsi     # 0x35e43e
leaq 0xdc590(%rip), %rdx     # 0x3dec81
leaq 0xdc4f1(%rip), %rcx     # 0x3debe9
leaq 0xdc41a(%rip), %r8      # 0x3deb19
movq 0x8(%rsp), %rdi
movl $0x202, %r9d            # imm = 0x202
jmp 0x302753
leaq 0x5bd2b(%rip), %rsi     # 0x35e43e
leaq 0xdc5af(%rip), %rdx     # 0x3decc9
jmp 0x30273a
leaq 0x5bd1b(%rip), %rsi     # 0x35e43e
leaq 0xdc5c0(%rip), %rdx     # 0x3decea
jmp 0x30273a
leaq 0x5bd0b(%rip), %rsi     # 0x35e43e
leaq 0xdc5ef(%rip), %rdx     # 0x3ded29
leaq 0xdc4a8(%rip), %rcx     # 0x3debe9
leaq 0xdc3d1(%rip), %r8      # 0x3deb19
movq 0x8(%rsp), %rdi
movl $0x204, %r9d            # imm = 0x204
xorl %eax, %eax
callq 0xfcb67
jmp 0x3028cc
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 0x3028cc
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 0x3026a0
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 0x3028cc
incq %r15
cmpq 0x20(%rsp), %r15
jb 0x30279d
jmp 0x3028cc
leaq 0x5bc42(%rip), %rsi     # 0x35e43e
leaq 0xdc560(%rip), %rdx     # 0x3ded63
leaq 0xdc3df(%rip), %rcx     # 0x3debe9
leaq 0xdc308(%rip), %r8      # 0x3deb19
movq 0x8(%rsp), %rdi
movl $0x209, %r9d            # imm = 0x209
jmp 0x302753
leaq 0x5bc16(%rip), %rsi     # 0x35e43e
leaq 0xdc577(%rip), %rdx     # 0x3deda6
leaq 0xdc3b3(%rip), %rcx     # 0x3debe9
leaq 0xdc2dc(%rip), %r8      # 0x3deb19
movq 0x8(%rsp), %rdi
movl $0x20c, %r9d            # imm = 0x20C
jmp 0x302753
leaq 0x5bbea(%rip), %rsi     # 0x35e43e
leaq 0xdc589(%rip), %rdx     # 0x3dede4
jmp 0x30286b
leaq 0x5bbda(%rip), %rsi     # 0x35e43e
leaq 0xdc5a3(%rip), %rdx     # 0x3dee0e
leaq 0xdc377(%rip), %rcx     # 0x3debe9
leaq 0xdc2a0(%rip), %r8      # 0x3deb19
movq 0x8(%rsp), %rdi
movl $0x20d, %r9d            # imm = 0x20D
jmp 0x302753
leaq 0x5bbae(%rip), %rsi     # 0x35e43e
leaq 0xdc59c(%rip), %rdx     # 0x3dee33
jmp 0x3028a7
leaq 0x5bb9e(%rip), %rsi     # 0x35e43e
leaq 0xdc5cf(%rip), %rdx     # 0x3dee76
leaq 0xdc33b(%rip), %rcx     # 0x3debe9
leaq 0xdc264(%rip), %r8      # 0x3deb19
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 0xdc23c(%rip), %rsi     # 0x3deb19
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 0x8cca9