// File: /workspace/github_c_makefile_star2_O3/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 0x3ecec
movq %r14, %rdi
callq 0x34fea
testb %al, %al
jne 0x3eed7
callq 0x3ec3d
movq %rax, %rbx
testq %rax, %rax
jne 0x3ed25
leaq 0xa4459(%rip), %rsi     # 0xe3159
leaq 0xbf17a(%rip), %rdx     # 0xfde81
leaq 0xa5d58(%rip), %rcx     # 0xe4a66
leaq 0xa5ad7(%rip), %r8      # 0xe47ec
movq %r14, %rdi
movl $0x198, %r9d            # imm = 0x198
xorl %eax, %eax
callq 0x34f1f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3dd15
movl %eax, %ebp
callq 0x34f04
movq %rax, %r15
callq 0x3f477
movq %rax, %rdi
callq 0x3f369
movq %rax, %r12
testl %ebp, %ebp
jne 0x3ed95
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3d79a
testl %eax, %eax
je 0x3ed93
leaq 0xa43f2(%rip), %rsi     # 0xe3159
leaq 0xa5d1a(%rip), %rdx     # 0xe4a88
leaq 0xa5cf1(%rip), %rcx     # 0xe4a66
leaq 0xa5a70(%rip), %r8      # 0xe47ec
movq %r14, %rdi
movl $0x1a1, %r9d            # imm = 0x1A1
xorl %eax, %eax
callq 0x34f1f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x3ed95
xorl %ebp, %ebp
callq 0x3e5ab
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3dcfc
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3e9d1
testl %ebp, %ebp
jne 0x3ee22
cmpq %r12, %rax
je 0x3ede3
leaq 0xa4396(%rip), %rsi     # 0xe3159
leaq 0xa5cf2(%rip), %rdx     # 0xe4abc
leaq 0xa5c95(%rip), %rcx     # 0xe4a66
leaq 0xa5a14(%rip), %r8      # 0xe47ec
movq %r14, %rdi
movl $0x1a7, %r9d            # imm = 0x1A7
jmp 0x3ee16
movq %r15, %rdi
callq 0x34fea
xorl %ebp, %ebp
testb %al, %al
je 0x3ee22
leaq 0xa4361(%rip), %rsi     # 0xe3159
leaq 0xa5cc7(%rip), %rdx     # 0xe4ac6
leaq 0xa5c60(%rip), %rcx     # 0xe4a66
leaq 0xa59df(%rip), %r8      # 0xe47ec
movq %r14, %rdi
movl $0x1a8, %r9d            # imm = 0x1A8
xorl %eax, %eax
callq 0x34f1f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
callq 0x3e5ab
movq %rax, %rdi
movq %rbx, %rsi
callq 0x3dcfc
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x3e9d1
testl %ebp, %ebp
jne 0x3ee7b
testq %rax, %rax
je 0x3ee7b
leaq 0xa430a(%rip), %rsi     # 0xe3159
leaq 0xa5c8a(%rip), %rdx     # 0xe4ae0
leaq 0xa5c09(%rip), %rcx     # 0xe4a66
leaq 0xa5988(%rip), %r8      # 0xe47ec
movq %r14, %rdi
movl $0x1af, %r9d            # imm = 0x1AF
xorl %eax, %eax
callq 0x34f1f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x3ee8d
testl %ebp, %ebp
jne 0x3ee8d
movq %r15, %rdi
callq 0x34fea
xorl %ebp, %ebp
testb %al, %al
je 0x3eeb0
movq %r12, %rdi
callq 0x4210c
movq %rbx, %rdi
callq 0x3d69a
movq %r15, %rdi
callq 0x35085
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa42a2(%rip), %rsi     # 0xe3159
leaq 0xa5c09(%rip), %rdx     # 0xe4ac7
leaq 0xa5ba1(%rip), %rcx     # 0xe4a66
leaq 0xa5920(%rip), %r8      # 0xe47ec
movq %r14, %rdi
movl $0x1b0, %r9d            # imm = 0x1B0
jmp 0x3ee6d
callq 0xf5b2