// File: /workspace/github_c_makefile_star2_O1/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 $0x18, %rsp
movq %rdi, %rbx
movl $0x400, %edi            # imm = 0x400
callq 0x10ae3c
movq %rax, %r13
leaq 0x1(%rax), %r12
leaq 0x8(,%rax,8), %rdi
leaq 0xdc086(%rip), %rsi     # 0x3e8219
movl $0x1e7, %edx            # imm = 0x1E7
callq 0x1092b2
movq %rax, %r14
movl $0x4, %eax
xorl %edx, %edx
divq %r12
movq %r12, 0x10(%rsp)
movl %eax, %ecx
shlq %cl, %r12
testq %rbx, %rbx
je 0x30c1c9
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0x30c748
movq %rbx, 0x8(%rsp)
shrq %r12
movq %r12, %rdi
callq 0x10ae3c
incq %rax
movq %rax, (%r14)
cmpq $0x2, 0x10(%rsp)
jb 0x30c208
xorl %ebx, %ebx
movq (%r14,%rbx,8), %rbp
movq %r12, %rdi
callq 0x10ae3c
addq %rbp, %rax
incq %rax
movq %rax, 0x8(%r14,%rbx,8)
incq %rbx
cmpq %rbx, %r13
jne 0x30c1e9
movq (%r14,%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 0x30c723
movq 0x10(%rsp), %rbx
movq %rbx, %rsi
callq 0x30b5f8
cmpq $0x1, %rbx
adcq $0x0, %rbx
movq %rax, %r12
xorl %ecx, %ecx
xorl %ebp, %ebp
movl %ecx, %r15d
movq (%r14,%rbp,8), %rsi
movq %r12, %rdi
callq 0x30be3f
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movb $0x1, %al
testl %r15d, %r15d
jne 0x30c2c0
leaq 0x1(%rbp), %r15
callq 0x30b6d5
movq %rax, %rdi
movq %r12, %rsi
callq 0x15e2b0
movq 0x8(%r12), %rdx
xorl %eax, %eax
movl $0x0, %ecx
cmpq 0x20(%rdx), %r15
je 0x30c2c0
movq 0x8(%rsp), %rdi
leaq 0x5b2a3(%rip), %rsi     # 0x36753a
leaq 0xdc061(%rip), %rdx     # 0x3e82ff
leaq 0xdc044(%rip), %rcx     # 0x3e82e9
leaq 0xdbf6d(%rip), %r8      # 0x3e8219
movl $0x1fa, %r9d            # imm = 0x1FA
xorl %eax, %eax
callq 0x1019cf
movb $0x1, %al
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %r13, %rbp
setae %dl
orb %al, %dl
jne 0x30c315
movq (%r14,%rbp,8), %rsi
incq %rsi
movq %r12, %rdi
callq 0x30c08d
xorl %ecx, %ecx
cmpq 0x10(%rsp), %rax
je 0x30c315
movq 0x8(%rsp), %rdi
leaq 0x5b24c(%rip), %rsi     # 0x36753a
leaq 0xdc02a(%rip), %rdx     # 0x3e831f
leaq 0xdbfed(%rip), %rcx     # 0x3e82e9
leaq 0xdbf16(%rip), %r8      # 0x3e8219
movl $0x1fe, %r9d            # imm = 0x1FE
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
incq %rbp
cmpq %rbp, %rbx
jne 0x30c24a
testl %ecx, %ecx
je 0x30c32c
xorl %ebx, %ebx
jmp 0x30c4e8
callq 0x30b6d5
movq %rax, %rdi
movq %r12, %rsi
callq 0x15e2b0
movq 0x8(%r12), %rcx
movq 0x28(%rcx), %rdx
cmpq $0x2, %rdx
setb %dil
jb 0x30c38a
movq (%rcx), %rsi
movl $0x1, %r8d
xorl %edi, %edi
xorl %r9d, %r9d
decq %r9
movq %r9, %r10
incq %r9
cmpq 0x8(%rsi,%r10,8), %r8
ja 0x30c360
je 0x30c37e
movq 0x10(%rax), %r10
movb (%r10,%r8), %r11b
cmpb -0x1(%r10,%r8), %r11b
jbe 0x30c38a
incq %r8
cmpq %rdx, %r8
setae %dil
jne 0x30c35d
testb $0x1, %dil
je 0x30c442
movq 0x30(%rcx), %rax
testq %rax, %rax
sete %dl
je 0x30c3cf
movq (%rcx), %rcx
movq 0x8(%rcx), %rdx
cmpq (%rcx), %rdx
jb 0x30c46d
movl $0x2, %esi
cmpq %rax, %rsi
seta %dl
ja 0x30c3cf
movq (%rcx,%rsi,8), %rdi
leaq 0x1(%rsi), %r8
cmpq -0x8(%rcx,%rsi,8), %rdi
movq %r8, %rsi
jae 0x30c3b5
testb %dl, %dl
je 0x30c46d
movq %r12, %rdi
xorl %esi, %esi
callq 0x30c74d
cmpq (%r14), %rax
jne 0x30c498
movq %r12, %rdi
xorl %esi, %esi
callq 0x30bf25
movq (%r14), %rsi
cmpq %rsi, %rax
jne 0x30c4a8
incq %rsi
movq %r12, %rdi
callq 0x30c7a6
cmpq $0x1, %rax
jne 0x30c4b8
movq (%r14), %rsi
incq %rsi
movq %r12, %rdi
callq 0x30c08d
movb $0x1, %bl
cmpq $0x1, %rax
je 0x30c4e8
leaq 0x5b104(%rip), %rsi     # 0x36753a
leaq 0xdbfec(%rip), %rdx     # 0x3e8429
jmp 0x30c4c6
leaq 0x5b0f1(%rip), %rsi     # 0x36753a
leaq 0xdbf12(%rip), %rdx     # 0x3e8362
leaq 0xdbe92(%rip), %rcx     # 0x3e82e9
leaq 0xdbdbb(%rip), %r8      # 0x3e8219
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
movl $0x201, %r9d            # imm = 0x201
jmp 0x30c4e1
leaq 0x5b0c6(%rip), %rsi     # 0x36753a
leaq 0xdbf06(%rip), %rdx     # 0x3e8381
leaq 0xdbe67(%rip), %rcx     # 0x3e82e9
leaq 0xdbd90(%rip), %r8      # 0x3e8219
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
movl $0x202, %r9d            # imm = 0x202
jmp 0x30c4e1
leaq 0x5b09b(%rip), %rsi     # 0x36753a
leaq 0xdbefd(%rip), %rdx     # 0x3e83a3
jmp 0x30c4c6
leaq 0x5b08b(%rip), %rsi     # 0x36753a
leaq 0xdbf13(%rip), %rdx     # 0x3e83c9
jmp 0x30c4c6
leaq 0x5b07b(%rip), %rsi     # 0x36753a
leaq 0xdbf24(%rip), %rdx     # 0x3e83ea
leaq 0xdbe1c(%rip), %rcx     # 0x3e82e9
leaq 0xdbd45(%rip), %r8      # 0x3e8219
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
movl $0x204, %r9d            # imm = 0x204
xorl %eax, %eax
callq 0x1019cf
cmpq $0x2, 0x10(%rsp)
setb %al
movl %ebx, %ecx
xorb $0x1, %cl
orb %al, %cl
jne 0x30c678
movl $0x1, %r13d
leaq 0x5b02f(%rip), %r15     # 0x36753a
leaq 0xdbdd7(%rip), %rbp     # 0x3e82e9
leaq -0x1(%r13), %rbx
movq (%r14,%r13,8), %rsi
decq %rsi
cmpq %rsi, -0x8(%r14,%r13,8)
cmovneq %r13, %rbx
movq %r12, %rdi
callq 0x30c7a6
cmpq %rbx, %rax
jne 0x30c5cb
movq (%r14,%r13,8), %rsi
decq %rsi
movq %r12, %rdi
callq 0x30c08d
cmpq %rbx, %rax
jne 0x30c5ee
movq %r12, %rdi
movq %r13, %rsi
callq 0x30c74d
cmpq (%r14,%r13,8), %rax
jne 0x30c611
movq %r12, %rdi
movq %r13, %rsi
callq 0x30bf25
movq (%r14,%r13,8), %rsi
cmpq %rsi, %rax
jne 0x30c624
incq %rsi
movq %r12, %rdi
callq 0x30c7a6
leaq 0x1(%r13), %rbp
cmpq %rax, %rbp
jne 0x30c637
movq (%r14,%r13,8), %rsi
incq %rsi
movq %r12, %rdi
callq 0x30c08d
movb $0x1, %bl
cmpq %rax, %rbp
leaq 0xdbd3a(%rip), %rbp     # 0x3e82e9
je 0x30c666
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
movq %r15, %rsi
leaq 0xdbfb0(%rip), %rdx     # 0x3e8576
jmp 0x30c64f
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
movq %r15, %rsi
leaq 0xdbe87(%rip), %rdx     # 0x3e8463
movq %rbp, %rcx
leaq 0xdbc33(%rip), %r8      # 0x3e8219
movl $0x209, %r9d            # imm = 0x209
jmp 0x30c65f
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
movq %r15, %rsi
leaq 0xdbea7(%rip), %rdx     # 0x3e84a6
movq %rbp, %rcx
leaq 0xdbc10(%rip), %r8      # 0x3e8219
movl $0x20c, %r9d            # imm = 0x20C
jmp 0x30c65f
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
movq %r15, %rsi
leaq 0xdbec2(%rip), %rdx     # 0x3e84e4
jmp 0x30c64f
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
movq %r15, %rsi
leaq 0xdbed9(%rip), %rdx     # 0x3e850e
jmp 0x30c64f
xorl %ebx, %ebx
movq 0x8(%rsp), %rdi
movq %r15, %rsi
leaq 0xdbeeb(%rip), %rdx     # 0x3e8533
leaq 0xdbc9a(%rip), %rbp     # 0x3e82e9
movq %rbp, %rcx
leaq 0xdbbc0(%rip), %r8      # 0x3e8219
movl $0x20d, %r9d            # imm = 0x20D
xorl %eax, %eax
callq 0x1019cf
testb %bl, %bl
je 0x30c678
incq %r13
cmpq 0x10(%rsp), %r13
jb 0x30c512
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testb %bl, %bl
movq 0x8(%rsp), %rbx
je 0x30c69b
movq (%r14), %rdx
decq %rdx
movq %r12, %rdi
xorl %esi, %esi
movq %rbx, %rcx
callq 0x15e50e
movl %eax, %ebp
testl %ebp, %ebp
jne 0x30c6b6
movq (%r14), %rdx
decq %rdx
movq %r12, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x15e59e
movl %eax, %ebp
testl %ebp, %ebp
setne %al
cmpq $0x2, 0x10(%rsp)
setb %cl
orb %al, %cl
jne 0x30c71b
movl $0x1, %r13d
movq -0x8(%r14,%r13,8), %rsi
movq (%r14,%r13,8), %rdx
incq %rsi
decq %rdx
movq %r12, %rdi
movq %rbx, %rcx
callq 0x15e50e
movl %eax, %ebp
testl %eax, %eax
jne 0x30c70d
movq -0x8(%r14,%r13,8), %rsi
movq (%r14,%r13,8), %rdx
incq %rsi
decq %rdx
movq %r12, %rdi
movq %r13, %rcx
movq %rbx, %r8
callq 0x15e59e
movl %eax, %ebp
testl %ebp, %ebp
jne 0x30c71b
incq %r13
cmpq 0x10(%rsp), %r13
jb 0x30c6ce
movq %r12, %rdi
callq 0x15e488
leaq 0xdbaef(%rip), %rsi     # 0x3e8219
movq %r14, %rdi
movl $0x21d, %edx            # imm = 0x21D
callq 0x109670
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x8e98c