// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq $0x186a0, 0x50(%rsp)    # imm = 0x186A0
movl $0x0, 0x1c(%rsp)
movl $0xc3500, %edi          # imm = 0xC3500
leaq 0x49170c(%rip), %rsi    # 0x533ae2
movl $0x93, %edx
callq 0xe80f0
movq %rax, 0x20(%rsp)
movl $0x1, 0x4c(%rsp)
cmpl $0x3f, 0x4c(%rsp)
ja 0xa2607
movl 0x4c(%rsp), %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, 0x28(%rsp)
cmpq $0x186a0, 0x28(%rsp)    # imm = 0x186A0
jae 0xa2422
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0xa242e
movl $0x186a0, %eax          # imm = 0x186A0
movq %rax, 0x10(%rsp)
jmp 0xa242e
movq 0x10(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rdi
movl 0x4c(%rsp), %esi
callq 0xa1e30
movq %rax, 0x58(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x38(%rsp), %rax
jae 0xa253d
cmpq $0x186a0, 0x38(%rsp)    # imm = 0x186A0
jne 0xa2484
movq 0x28(%rsp), %rdi
subq $0x1, %rdi
callq 0xec350
movq %rax, 0x8(%rsp)
jmp 0xa248e
movq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
callq 0xa21f0
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0xa20c0
movq %rax, 0x40(%rsp)
cmpl $0x0, 0x1c(%rsp)
jne 0xa2526
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rax
cmpq 0x40(%rsp), %rax
je 0xa2524
movq 0x60(%rsp), %rdi
leaq 0x48d100(%rip), %rsi    # 0x52f5fa
leaq 0x4916ce(%rip), %rdx    # 0x533bcf
leaq 0x4916e2(%rip), %rcx    # 0x533bea
leaq 0x4915d3(%rip), %r8     # 0x533ae2
movl $0x9c, %r9d
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
jmp 0xa2526
jmp 0xa2528
jmp 0xa252a
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0xa2454
movq $0x0, 0x30(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x1c(%rsp)
movb %al, 0x7(%rsp)
jne 0xa2564
movq 0x30(%rsp), %rax
cmpq 0x38(%rsp), %rax
setb %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0xa256e
jmp 0xa25ed
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0xa20c0
movq %rax, 0x40(%rsp)
cmpl $0x0, 0x1c(%rsp)
jne 0xa25d6
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rax
cmpq 0x40(%rsp), %rax
je 0xa25d4
movq 0x60(%rsp), %rdi
leaq 0x48d050(%rip), %rsi    # 0x52f5fa
leaq 0x49161e(%rip), %rdx    # 0x533bcf
leaq 0x491632(%rip), %rcx    # 0x533bea
leaq 0x491523(%rip), %r8     # 0x533ae2
movl $0xa0, %r9d
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
jmp 0xa25d6
jmp 0xa25d8
jmp 0xa25da
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0xa2546
movq 0x58(%rsp), %rdi
callq 0xa2080
movl 0x4c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4c(%rsp)
jmp 0xa23ed
movq 0x20(%rsp), %rdi
leaq 0x4914cf(%rip), %rsi    # 0x533ae2
movl $0xa4, %edx
callq 0xe88c0
movl 0x1c(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)