// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/anno_db_gfflike.c
// Function: gt_anno_db_gfflike_unit_test
int gt_anno_db_gfflike_unit_test(GtError *err)
{
  int had_err = 0, status = 0;
  GtFeatureIndex *fi = NULL;
  GtError *testerr = NULL;
  GtAnnoDBSchema *adb = NULL;
  FILE *tmpfp;
#ifdef HAVE_SQLITE
  GtRDB *rdb;
#endif
  GtStr* tmpfilename;
  gt_error_check(err);

  testerr = gt_error_new();

  tmpfilename = gt_str_new();
  tmpfp = gt_xtmpfp(tmpfilename);
  gt_fa_xfclose(tmpfp);

#ifdef HAVE_SQLITE
  rdb = gt_rdb_sqlite_new(gt_str_get(tmpfilename), testerr);
  gt_ensure(rdb != NULL);
  if (!had_err) {
    adb = gt_anno_db_gfflike_new();
    gt_ensure(adb != NULL);
  }

  if (!had_err) {
    fi = gt_anno_db_schema_get_feature_index(adb, rdb, testerr);
    gt_ensure(fi != NULL);
  }
#endif

  if (!had_err) {
    /* run generic feature index tests */
    status = gt_feature_index_unit_test(fi, testerr);
    gt_ensure(status == 0);
  }

  gt_xremove(gt_str_get(tmpfilename));
  gt_str_delete(tmpfilename);
  gt_feature_index_delete(fi);
  gt_anno_db_schema_delete(adb);
#ifdef HAVE_SQLITE
  gt_rdb_delete((GtRDB*) rdb);
#endif
  gt_error_delete(testerr);
  return had_err;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl $0x0, 0x3c(%rsp)
movl $0x0, 0x38(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x130a14
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1309dc
jmp 0x130a14
movq 0x50b5bd(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3e5626(%rip), %rsi    # 0x516013
leaq 0x3e57cb(%rip), %rdx    # 0x5161bf
leaq 0x416d5f(%rip), %rcx    # 0x54775a
leaq 0x416a4c(%rip), %r8     # 0x54744e
movl $0x7fd, %r9d            # imm = 0x7FD
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x130a16
callq 0xd88a0
movq %rax, 0x28(%rsp)
callq 0x11d4a0
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdi
xorl %esi, %esi
leaq 0x416a16(%rip), %rdx    # 0x54744e
movl $0x802, %ecx            # imm = 0x802
callq 0xd9e50
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
callq 0xd9570
movq 0x8(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x28(%rsp), %rsi
callq 0x1c4a80
movq %rax, 0x10(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0x130ab4
cmpq $0x0, 0x10(%rsp)
jne 0x130ab2
movq 0x40(%rsp), %rdi
leaq 0x3feb72(%rip), %rsi    # 0x52f5fa
leaq 0x416ce8(%rip), %rdx    # 0x547777
leaq 0x416cc4(%rip), %rcx    # 0x54775a
leaq 0x4169b1(%rip), %r8     # 0x54744e
movl $0x807, %r9d            # imm = 0x807
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x130ab4
jmp 0x130ab6
cmpl $0x0, 0x3c(%rsp)
jne 0x130b12
callq 0x1308b0
movq %rax, 0x20(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0x130b0e
cmpq $0x0, 0x20(%rsp)
jne 0x130b0c
movq 0x40(%rsp), %rdi
leaq 0x3feb18(%rip), %rsi    # 0x52f5fa
leaq 0x416c9a(%rip), %rdx    # 0x547783
leaq 0x416c6a(%rip), %rcx    # 0x54775a
leaq 0x416957(%rip), %r8     # 0x54744e
movl $0x80a, %r9d            # imm = 0x80A
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x130b0e
jmp 0x130b10
jmp 0x130b12
cmpl $0x0, 0x3c(%rsp)
jne 0x130b7d
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x132b50
movq %rax, 0x30(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0x130b79
cmpq $0x0, 0x30(%rsp)
jne 0x130b77
movq 0x40(%rsp), %rdi
leaq 0x3feaad(%rip), %rsi    # 0x52f5fa
leaq 0x416052(%rip), %rdx    # 0x546ba6
leaq 0x416bff(%rip), %rcx    # 0x54775a
leaq 0x4168ec(%rip), %r8     # 0x54744e
movl $0x80f, %r9d            # imm = 0x80F
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x130b79
jmp 0x130b7b
jmp 0x130b7d
cmpl $0x0, 0x3c(%rsp)
jne 0x130be1
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x16a150
movl %eax, 0x38(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0x130bdd
cmpl $0x0, 0x38(%rsp)
je 0x130bdb
movq 0x40(%rsp), %rdi
leaq 0x3fea49(%rip), %rsi    # 0x52f5fa
leaq 0x466d06(%rip), %rdx    # 0x5978be
leaq 0x416b9b(%rip), %rcx    # 0x54775a
leaq 0x416888(%rip), %r8     # 0x54744e
movl $0x816, %r9d            # imm = 0x816
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x3c(%rsp) # imm = 0xFFFFFFFF
jmp 0x130bdd
jmp 0x130bdf
jmp 0x130be1
movq 0x8(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
callq 0x126e90
movq 0x8(%rsp), %rdi
callq 0x11f560
movq 0x30(%rsp), %rdi
callq 0x169460
movq 0x20(%rsp), %rdi
callq 0x132a00
movq 0x10(%rsp), %rdi
callq 0x1c3d40
movq 0x28(%rsp), %rdi
callq 0xd8c80
movl 0x3c(%rsp), %eax
addq $0x48, %rsp
retq
nop