// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/feature_index_memory.c
// Function: gt_feature_index_memory_unit_test
int gt_feature_index_memory_unit_test(GtError *err)
{
  int had_err = 0, status = 0;
  GtFeatureIndex *fi = NULL;
  GtFeatureNode *tmp, *fn;
  GtError *testerr;
  gt_error_check(err);

  fi = gt_feature_index_memory_new();
  gt_ensure(fi);

  /* run generic feature index tests */
  had_err = gt_feature_index_unit_test(fi, err);
  gt_ensure(status == 0);

  /* run subclass specific tests */
  testerr = gt_error_new();
  fn = gt_feature_node_cast(gt_feature_node_new_standard_gene());
  gt_ensure(!gt_feature_index_add_feature_node(fi, fn, testerr));

  /* test gt_feature_index_memory_get_node_by_ptr() */
  tmp = gt_feature_index_memory_get_node_by_ptr(
                                            gt_feature_index_memory_cast(fi),
                                            fn, testerr);
  gt_ensure(tmp == fn);
  gt_ensure(!gt_error_is_set(testerr));

  /* we don't store NULL pointers */
  tmp = gt_feature_index_memory_get_node_by_ptr(
                                               gt_feature_index_memory_cast(fi),
                                               (GtFeatureNode*) 0,
                                                testerr);
  gt_ensure(tmp == NULL);
  gt_ensure(gt_error_is_set(testerr));
  gt_genome_node_delete((GtGenomeNode*) fn);
  gt_feature_index_delete(fi);

  gt_error_delete(testerr);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
testq %rdi, %rdi
je 0x185ef
movq %r14, %rdi
callq 0xc103
testb %al, %al
jne 0x187de
callq 0x18544
movq %rax, %rbx
testq %rax, %rax
jne 0x18628
leaq 0xb3b56(%rip), %rsi     # 0xcc159
leaq 0xceb77(%rip), %rdx     # 0xe7181
leaq 0xb5455(%rip), %rcx     # 0xcda66
leaq 0xb51d4(%rip), %r8      # 0xcd7ec
movq %r14, %rdi
movl $0x198, %r9d            # imm = 0x198
xorl %eax, %eax
callq 0xc007
movq %rbx, %rdi
movq %r14, %rsi
callq 0x17321
movl %eax, %ebp
callq 0xbff0
movq %rax, %r15
callq 0x18fd1
movq %rax, %rdi
callq 0x18df7
movq %rax, %r12
testl %ebp, %ebp
jne 0x18696
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x16acd
testl %eax, %eax
je 0x18694
leaq 0xb3aef(%rip), %rsi     # 0xcc159
leaq 0xb5417(%rip), %rdx     # 0xcda88
leaq 0xb53ee(%rip), %rcx     # 0xcda66
leaq 0xb516d(%rip), %r8      # 0xcd7ec
movq %r14, %rdi
movl $0x1a1, %r9d            # imm = 0x1A1
xorl %eax, %eax
callq 0xc007
pushq $-0x1
popq %rbp
jmp 0x18696
xorl %ebp, %ebp
callq 0x17bc8
movq %rax, %rdi
movq %rbx, %rsi
callq 0x172d5
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x180f8
testl %ebp, %ebp
jne 0x18721
cmpq %r12, %rax
je 0x186e4
leaq 0xb3a95(%rip), %rsi     # 0xcc159
leaq 0xb53f1(%rip), %rdx     # 0xcdabc
leaq 0xb5394(%rip), %rcx     # 0xcda66
leaq 0xb5113(%rip), %r8      # 0xcd7ec
movq %r14, %rdi
movl $0x1a7, %r9d            # imm = 0x1A7
jmp 0x18717
movq %r15, %rdi
callq 0xc103
xorl %ebp, %ebp
testb %al, %al
je 0x18721
leaq 0xb3a60(%rip), %rsi     # 0xcc159
leaq 0xb53c6(%rip), %rdx     # 0xcdac6
leaq 0xb535f(%rip), %rcx     # 0xcda66
leaq 0xb50de(%rip), %r8      # 0xcd7ec
movq %r14, %rdi
movl $0x1a8, %r9d            # imm = 0x1A8
xorl %eax, %eax
callq 0xc007
pushq $-0x1
popq %rbp
pushq $-0x1
popq %r13
callq 0x17bc8
movq %rax, %rdi
movq %rbx, %rsi
callq 0x172d5
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x180f8
testl %ebp, %ebp
jne 0x1877c
testq %rax, %rax
je 0x1877c
leaq 0xb3a07(%rip), %rsi     # 0xcc159
leaq 0xb5387(%rip), %rdx     # 0xcdae0
leaq 0xb5306(%rip), %rcx     # 0xcda66
leaq 0xb5085(%rip), %r8      # 0xcd7ec
movq %r14, %rdi
movl $0x1af, %r9d            # imm = 0x1AF
xorl %eax, %eax
callq 0xc007
movl %r13d, %ebp
jmp 0x1878e
testl %ebp, %ebp
jne 0x1878e
movq %r15, %rdi
callq 0xc103
xorl %ebp, %ebp
testb %al, %al
je 0x187b7
movq %r12, %rdi
callq 0x1d1e3
movq %rbx, %rdi
callq 0x16967
movq %r15, %rdi
callq 0xc291
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb399b(%rip), %rsi     # 0xcc159
leaq 0xb5302(%rip), %rdx     # 0xcdac7
leaq 0xb529a(%rip), %rcx     # 0xcda66
leaq 0xb5019(%rip), %r8      # 0xcd7ec
movq %r14, %rdi
movl $0x1b0, %r9d            # imm = 0x1B0
jmp 0x18770
movq 0x1157d3(%rip), %rax    # 0x12dfb8
movq (%rax), %rdi
leaq 0xb1877(%rip), %rsi     # 0xca066
leaq 0xb1e63(%rip), %rdx     # 0xca659
leaq 0xb5269(%rip), %rcx     # 0xcda66
leaq 0xb4fe8(%rip), %r8      # 0xcd7ec
movl $0x195, %r9d            # imm = 0x195
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
nop