// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/compact_ulong_store.c
// Function: gt_compact_ulong_store_unit_test
int gt_compact_ulong_store_unit_test(GtError *err)
{
  GtCompactUlongStore *cus;
  const GtUword constnums = 100000UL;
  unsigned int bits;
  GtUword value, nums, idx, numforbits, *checknumbers;
  int had_err = 0;

  checknumbers = gt_malloc(sizeof (*checknumbers) * constnums);
  for (bits = 1U; bits <= (unsigned int) GT_INTWORDSIZE-1; bits++) {
    numforbits = 1UL << bits;
    nums = numforbits < constnums ? numforbits : constnums;
    cus = gt_compact_ulong_store_new(nums,bits);
    for (idx = 0; idx < nums; idx++) {
      checknumbers[idx] = nums == constnums ? gt_rand_max(numforbits-1) : idx;
      gt_compact_ulong_store_update(cus,idx,checknumbers[idx]);
      value = gt_compact_ulong_store_get(cus,idx);
      gt_ensure(checknumbers[idx] == value);
    }
    for (idx = 0; had_err == 0 && idx < nums; idx++) {
      value = gt_compact_ulong_store_get(cus,idx);
      gt_ensure(checknumbers[idx] == value);
    }
    gt_compact_ulong_store_delete(cus);
  }
  gt_free(checknumbers);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, (%rsp)
leaq 0x27eb5e(%rip), %rsi    # 0x36286d
movl $0xc3500, %edi          # imm = 0xC3500
movl $0x93, %edx
callq 0x104226
movq %rax, %r15
movl $0x1, %ecx
xorl %ebx, %ebx
movl $0x1, %r14d
shlq %cl, %r14
movl $0x186a0, %eax          # imm = 0x186A0
cmpq %rax, %r14
movl $0x186a0, %r12d         # imm = 0x186A0
cmovbq %r14, %r12
movq %r12, %rdi
movq %rcx, 0x8(%rsp)
movq %rcx, %rsi
callq 0xe3b18
decq %r14
movq %r14, 0x10(%rsp)
cmpq $0x1, %r12
movq %r12, %rbp
adcq $0x0, %rbp
movq %rax, %r13
testl %ebx, %ebx
sete %r14b
xorl %ebx, %ebx
movq %rbx, %rdx
cmpq $0x186a0, %r12          # imm = 0x186A0
jne 0xe3d8a
movq 0x10(%rsp), %rdi
callq 0x105d85
movq %rax, %rdx
movq %rdx, (%r15,%rbx,8)
movq %r13, %rdi
movq %rbx, %rsi
callq 0xe3c78
movq %r13, %rdi
movq %rbx, %rsi
callq 0xe3c2c
testb $0x1, %r14b
je 0xe3dea
cmpq %rax, (%r15,%rbx,8)
jne 0xe3dbd
incq %rbx
movb $0x1, %r14b
cmpq %rbp, %rbx
jne 0xe3d71
jmp 0xe3e1a
movq (%rsp), %rdi
leaq 0x27a676(%rip), %rsi    # 0x35e43e
leaq 0x27eb8b(%rip), %rdx    # 0x36295a
leaq 0x27eb9f(%rip), %rcx    # 0x362975
leaq 0x27ea90(%rip), %r8     # 0x36286d
movl $0x9c, %r9d
xorl %eax, %eax
callq 0xfcb67
incq %rbx
xorl %r14d, %r14d
cmpq %rbp, %rbx
jne 0xe3d71
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %r13, %rdi
callq 0xe3bf1
movq 0x8(%rsp), %rcx
incq %rcx
cmpq $0x40, %rcx
jne 0xe3d28
jmp 0xe3e68
xorl %ebx, %ebx
movq %r13, %rdi
movq %rbx, %rsi
callq 0xe3c2c
cmpq %rax, (%r15,%rbx,8)
jne 0xe3e39
incq %rbx
cmpq %r12, %rbx
jb 0xe3e1c
xorl %ebx, %ebx
jmp 0xe3dfe
movq (%rsp), %rdi
leaq 0x27a5fa(%rip), %rsi    # 0x35e43e
leaq 0x27eb0f(%rip), %rdx    # 0x36295a
leaq 0x27eb23(%rip), %rcx    # 0x362975
leaq 0x27ea14(%rip), %r8     # 0x36286d
movl $0xa0, %r9d
xorl %eax, %eax
callq 0xfcb67
jmp 0xe3df9
leaq 0x27e9fe(%rip), %rsi    # 0x36286d
movq %r15, %rdi
movl $0xa4, %edx
callq 0x1045eb
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)