// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
movq %rdi, %r14
testq %rdi, %rdi
je 0x3f644
movq %r14, %rdi
callq 0x3566a
testb %al, %al
jne 0x3f849
callq 0x3f595
movq %rax, %rbx
testq %rax, %rax
jne 0x3f67d
leaq 0xa3b21(%rip), %rsi     # 0xe3179
leaq 0xbe882(%rip), %rdx     # 0xfdee1
leaq 0xa5420(%rip), %rcx     # 0xe4a86
leaq 0xa519f(%rip), %r8      # 0xe480c
movq %r14, %rdi
movl $0x198, %r9d            # imm = 0x198
xorl %eax, %eax
callq 0x3559f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3e691
movl %eax, %ebp
callq 0x35584
movq %rax, %r15
callq 0x3fde7
movq %rax, %rdi
callq 0x3fcd9
movq %rax, %r12
testl %ebp, %ebp
jne 0x3f6ed
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3e116
testl %eax, %eax
je 0x3f6eb
leaq 0xa3aba(%rip), %rsi     # 0xe3179
leaq 0xa53e2(%rip), %rdx     # 0xe4aa8
leaq 0xa53b9(%rip), %rcx     # 0xe4a86
leaq 0xa5138(%rip), %r8      # 0xe480c
movq %r14, %rdi
movl $0x1a1, %r9d            # imm = 0x1A1
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x3f6ed
xorl %ebp, %ebp
callq 0x3ef03
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3e678
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3f329
testl %ebp, %ebp
jne 0x3f749
cmpq %r12, %rax
je 0x3f747
leaq 0xa3a5e(%rip), %rsi     # 0xe3179
leaq 0xa53ba(%rip), %rdx     # 0xe4adc
leaq 0xa535d(%rip), %rcx     # 0xe4a86
leaq 0xa50dc(%rip), %r8      # 0xe480c
movq %r14, %rdi
movl $0x1a7, %r9d            # imm = 0x1A7
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x3f749
xorl %ebp, %ebp
testl %ebp, %ebp
jne 0x3f78c
movq %r15, %rdi
callq 0x3566a
xorl %ebp, %ebp
testb %al, %al
je 0x3f78c
leaq 0xa3a17(%rip), %rsi     # 0xe3179
leaq 0xa537d(%rip), %rdx     # 0xe4ae6
leaq 0xa5316(%rip), %rcx     # 0xe4a86
leaq 0xa5095(%rip), %r8      # 0xe480c
movq %r14, %rdi
movl $0x1a8, %r9d            # imm = 0x1A8
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
callq 0x3ef03
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3e678
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x3f329
testl %ebp, %ebp
jne 0x3f7e3
testq %rax, %rax
je 0x3f7e3
leaq 0xa39c0(%rip), %rsi     # 0xe3179
leaq 0xa5340(%rip), %rdx     # 0xe4b00
leaq 0xa52bf(%rip), %rcx     # 0xe4a86
leaq 0xa503e(%rip), %r8      # 0xe480c
movq %r14, %rdi
movl $0x1af, %r9d            # imm = 0x1AF
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %ebp, %ebp
jne 0x3f826
movq %r15, %rdi
callq 0x3566a
xorl %ebp, %ebp
testb %al, %al
jne 0x3f826
leaq 0xa397d(%rip), %rsi     # 0xe3179
leaq 0xa52e4(%rip), %rdx     # 0xe4ae7
leaq 0xa527c(%rip), %rcx     # 0xe4a86
leaq 0xa4ffb(%rip), %r8      # 0xe480c
movq %r14, %rdi
movl $0x1b0, %r9d            # imm = 0x1B0
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %r12, %rdi
callq 0x42ade
movq %rbx, %rdi
callq 0x3e016
movq %r15, %rdi
callq 0x35705
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0xf5eb
nop