// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_test
static int
gt_hashtable_test(HashElemInfo table_info)
{
  GtFree orig_free_elem = table_info.free_op.free_elem;
  char *s1 = "foo", *s2 = "bar";
  GtHashtable *ht;
  int had_err = 0;
  struct gt_ht_elem_2cstr elemA = { s1, s2 }, elemB = { s2, s1 };
  table_info.free_op.free_elem = NULL;
  do {
    struct gt_ht_elem_2cstr *elem_p;
    /* empty hash */
    ht = gt_hashtable_new(table_info);
    gt_hashtable_delete(ht);

    /* empty hash with reset */
    ht = gt_hashtable_new(table_info);
    gt_hashtable_reset(ht);
    gt_hashtable_delete(ht);

    /* hashes containing one element */
    ht = gt_hashtable_new(table_info);
    gt_hashtable_add(ht, &elemA);
    my_ensure(had_err, !memcmp(gt_hashtable_get(ht, &elemA), &elemA,
                               table_info.elem_size));
    my_ensure(had_err, !gt_hashtable_get(ht, &elemB));
    gt_hashtable_delete(ht);

    /* hashes containing two elements */
    ht = gt_hashtable_new(table_info);
    gt_hashtable_add(ht, &elemA);
    gt_hashtable_add(ht, &elemB);
    elem_p = gt_hashtable_get(ht, &elemA);
    my_ensure(had_err, elem_p
              && !memcmp(elem_p, &elemA, table_info.elem_size));
    elem_p = gt_hashtable_get(ht, &elemB);
    my_ensure(had_err, elem_p
              && !memcmp(elem_p, &elemB, table_info.elem_size));

    /* remove element A and ensure it's no longer present */
    my_ensure(had_err, gt_hashtable_remove(ht, &elemA));
    my_ensure(had_err, !gt_hashtable_get(ht, &elemA));

    elem_p = gt_hashtable_get(ht, &elemB);
    my_ensure(had_err, elem_p
              && !memcmp(elem_p, &elemB, table_info.elem_size));
    gt_hashtable_delete(ht);

    /* hashes containing two elements (store key and value in
     * hashtable) where simple free is the correct way to get rid of them
     */
    if (orig_free_elem == gt_ht_2ptr_elem_free)
    {
      struct gt_ht_elem_2cstr elem_dup;
      table_info.free_op.free_elem = gt_ht_2ptr_elem_free;
      ht = gt_hashtable_new(table_info);

      cstr_cstr_elem_dup(&elem_dup, s1, s2);
      gt_hashtable_add(ht, &elem_dup);

      cstr_cstr_elem_dup(&elem_dup, s2, s1);
      gt_hashtable_add(ht, &elem_dup);

      elem_p = gt_hashtable_get(ht, &s1);
      my_ensure(had_err, elem_p && !strcmp(elem_p->value, s2));

      elem_p = gt_hashtable_get(ht, &s2);
      my_ensure(had_err, elem_p && !strcmp(elem_p->value, s1));

      /* remove first element */
      my_ensure(had_err, gt_hashtable_remove(ht, &s1));
      my_ensure(had_err, !gt_hashtable_get(ht, &s1));

      elem_p = gt_hashtable_get(ht, s2);
      my_ensure(had_err, elem_p && !strcmp(elem_p->value,  s1));
      gt_hashtable_delete(ht);
    }
  } while (0);
  return had_err;
}

// Assembly:
subq $0x98, %rsp
leaq 0xa0(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x90(%rsp)
leaq 0xe6372(%rip), %rcx     # 0x16f719
movq %rcx, 0x88(%rsp)
leaq 0xe5408(%rip), %rcx     # 0x16e7be
movq %rcx, 0x80(%rsp)
movl $0x0, 0x74(%rsp)
movq 0x88(%rsp), %rcx
movq %rcx, 0x60(%rsp)
movq 0x80(%rsp), %rcx
movq %rcx, 0x68(%rsp)
movq 0x80(%rsp), %rcx
movq %rcx, 0x50(%rsp)
movq 0x88(%rsp), %rcx
movq %rcx, 0x58(%rsp)
movq $0x0, 0x8(%rax)
movq 0x30(%rsp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movq %rsp, %rax
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x87020
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rdi
callq 0x888b0
movq 0x30(%rsp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movq %rsp, %rax
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x87020
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rdi
callq 0x88450
movq 0x78(%rsp), %rdi
callq 0x888b0
movq 0x30(%rsp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movq %rsp, %rax
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x87020
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x872d0
movq 0x78(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x87110
movq %rax, %rdi
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rdx
leaq 0x60(%rsp), %rsi
callq 0xb250
cmpl $0x0, %eax
je 0x894de
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x8982a
movq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x87110
cmpq $0x0, %rax
je 0x89500
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x8982a
movq 0x78(%rsp), %rdi
callq 0x888b0
movq 0x30(%rsp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movq %rsp, %rax
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x87020
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x872d0
movq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x872d0
movq 0x78(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x87110
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0x89589
movq 0x30(%rsp), %rax
movq 0x48(%rsp), %rdi
movq 0x10(%rax), %rdx
leaq 0x60(%rsp), %rsi
callq 0xb250
cmpl $0x0, %eax
je 0x89596
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x8982a
movq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x87110
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0x895cf
movq 0x30(%rsp), %rax
movq 0x48(%rsp), %rdi
movq 0x10(%rax), %rdx
leaq 0x50(%rsp), %rsi
callq 0xb250
cmpl $0x0, %eax
je 0x895dc
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x8982a
movq 0x78(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x87980
cmpl $0x0, %eax
jne 0x895fd
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x8982a
movq 0x78(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x87110
cmpq $0x0, %rax
je 0x8961f
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x8982a
movq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x87110
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0x89658
movq 0x30(%rsp), %rax
movq 0x48(%rsp), %rdi
movq 0x10(%rax), %rdx
leaq 0x50(%rsp), %rsi
callq 0xb250
cmpl $0x0, %eax
je 0x89665
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x8982a
movq 0x78(%rsp), %rdi
callq 0x888b0
leaq -0x456(%rip), %rax      # 0x89220
cmpq %rax, 0x90(%rsp)
jne 0x89828
movq 0x30(%rsp), %rax
leaq -0x470(%rip), %rcx      # 0x89220
movq %rcx, 0x8(%rax)
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x20(%rax), %xmm2
movq %rsp, %rax
movups %xmm2, 0x20(%rax)
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
callq 0x87020
movq %rax, 0x78(%rsp)
movq 0x88(%rsp), %rsi
movq 0x80(%rsp), %rdx
leaq 0x38(%rsp), %rdi
callq 0x89a00
movq 0x78(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x872d0
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
leaq 0x38(%rsp), %rdi
callq 0x89a00
movq 0x78(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x872d0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x87110
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0x89743
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x80(%rsp), %rsi
callq 0xb850
cmpl $0x0, %eax
je 0x89750
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x8982a
movq 0x78(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x87110
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0x8978a
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x88(%rsp), %rsi
callq 0xb850
cmpl $0x0, %eax
je 0x89797
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x8982a
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x87980
cmpl $0x0, %eax
jne 0x897b8
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x8982a
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x87110
cmpq $0x0, %rax
je 0x897da
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x8982a
movq 0x78(%rsp), %rdi
movq 0x80(%rsp), %rsi
callq 0x87110
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
je 0x89814
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x88(%rsp), %rsi
callq 0xb850
cmpl $0x0, %eax
je 0x8981e
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x8982a
movq 0x78(%rsp), %rdi
callq 0x888b0
jmp 0x8982a
movl 0x74(%rsp), %eax
addq $0x98, %rsp
retq
nopw %cs:(%rax,%rax)