// File: /workspace/github_c_makefile_star2_O1/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 $0x28, %rsp
movq %rdi, 0x8(%rsp)
leaq 0x2837b0(%rip), %rsi    # 0x36b980
movl $0xc3500, %edi          # imm = 0xC3500
movl $0x93, %edx
callq 0x1092b2
movl $0x1, %ecx
xorl %r14d, %r14d
movq %rax, (%rsp)
movq (%rsp), %r15
movl $0x1, %ebx
shlq %cl, %rbx
movl $0x186a0, %eax          # imm = 0x186A0
cmpq %rax, %rbx
movl $0x186a0, %r13d         # imm = 0x186A0
cmovbq %rbx, %r13
movq %r13, %rdi
movq %rcx, 0x18(%rsp)
movq %rcx, %rsi
callq 0xe7fd8
movq %rax, %rbp
decq %rbx
movq %rbx, 0x20(%rsp)
cmpq $0x1, %r13
movq %r13, 0x10(%rsp)
adcq $0x0, %r13
xorl %ebx, %ebx
movq %rbx, %rdx
cmpq $0x186a0, 0x10(%rsp)    # imm = 0x186A0
jne 0xe824e
movq 0x20(%rsp), %rdi
callq 0x10ae3c
movq %rax, %rdx
movq %rdx, (%r15,%rbx,8)
movq %rbp, %rdi
movq %rbx, %rsi
callq 0xe8138
movq %rbp, %rdi
movq %rbx, %rsi
callq 0xe80ec
xorl %r12d, %r12d
testl %r14d, %r14d
jne 0xe82b0
movb $0x1, %r12b
movl $0x0, %r14d
cmpq %rax, (%r15,%rbx,8)
je 0xe82b6
xorl %r12d, %r12d
movq 0x8(%rsp), %rdi
leaq 0x27f2ac(%rip), %rsi    # 0x36753a
leaq 0x2837d8(%rip), %rdx    # 0x36ba6d
leaq 0x2837ec(%rip), %rcx    # 0x36ba88
leaq 0x2836dd(%rip), %r8     # 0x36b980
movl $0x9c, %r9d
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
incq %rbx
cmpq %rbx, %r13
jne 0xe8233
testb %r12b, %r12b
movq (%rsp), %r13
je 0xe8335
xorl %ebx, %ebx
movq %rbp, %rdi
movq %rbx, %rsi
callq 0xe80ec
movq %rax, %r12
movq (%r13,%rbx,8), %r13
xorl %r14d, %r14d
cmpq %rax, %r13
je 0xe831c
movq 0x8(%rsp), %rdi
leaq 0x27f246(%rip), %rsi    # 0x36753a
leaq 0x283772(%rip), %rdx    # 0x36ba6d
leaq 0x283786(%rip), %rcx    # 0x36ba88
leaq 0x283677(%rip), %r8     # 0x36b980
movl $0xa0, %r9d
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
cmpq %r12, %r13
jne 0xe8331
incq %rbx
cmpq 0x10(%rsp), %rbx
movq (%rsp), %r13
jb 0xe82cd
jmp 0xe8335
movq (%rsp), %r13
movq %rbp, %rdi
callq 0xe80b1
movq 0x18(%rsp), %rcx
incq %rcx
cmpq $0x40, %rcx
jne 0xe81ef
leaq 0x28362a(%rip), %rsi    # 0x36b980
movq %r13, %rdi
movl $0xa4, %edx
callq 0x109670
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)