// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/image_info.c
// Function: gt_image_info_unit_test
int gt_image_info_unit_test(GtError *err)
{
  GtRecMap* rms[20];
  GtFeatureNode* features[20];
  GtImageInfo *ii;
  GtUword i;
  GtStr *seqid;
  int had_err = 0;
  gt_assert(err);
  gt_error_check(err);

  seqid = gt_str_new_cstr("seqid");
  ii = gt_image_info_new();

  for (i=0;i<20;i++)
  {
    const GtRecMap* rm;
    GtUword rbase;
    GtRange r;
    rbase = gt_rand_max(10);
    r.start = rbase;
    r.end = rbase + gt_rand_max(20);

    features[i] = (GtFeatureNode*) gt_feature_node_new(seqid, gt_ft_gene,
                                                       r.start, r.end,
                                                       GT_STRAND_FORWARD);
    rms[i] = gt_rec_map_new(gt_rand_max_double(100.0),
                            gt_rand_max_double(100.0),
                            gt_rand_max_double(100.0),
                            gt_rand_max_double(100.0),
                            features[i]);
    gt_image_info_add_rec_map(ii, rms[i]);
    gt_ensure(gt_image_info_num_of_rec_maps(ii) == i+1);
    gt_ensure((rm = gt_image_info_get_rec_map(ii, i)) == rms[i]);
    gt_genome_node_delete((GtGenomeNode*) features[i]);
  }

  gt_image_info_delete(ii);
  gt_str_delete(seqid);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
je 0x31193
movq %rdi, (%rsp)
callq 0xc103
testb %al, %al
jne 0x311bd
leaq 0xb9f61(%rip), %rdi     # 0xeaf70
callq 0x13da9
movq %rax, 0x8(%rsp)
callq 0x30d6c
movq %rax, %r15
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq $0x14, %r13
je 0x3116f
pushq $0xa
popq %rdi
callq 0x58dd2
movq %rax, %rbx
pushq $0x14
popq %rdi
callq 0x58dd2
leaq (%rax,%rbx), %rcx
movq 0x8(%rsp), %rdi
leaq 0xc48fc(%rip), %rsi     # 0xf5950
movq %rbx, %rdx
xorl %r8d, %r8d
callq 0x18cbb
movq %rax, %rbx
movsd 0xa36f6(%rip), %xmm0    # 0xd4760
callq 0x58ea0
movsd %xmm0, 0x20(%rsp)
movsd 0xa36e3(%rip), %xmm0    # 0xd4760
callq 0x58ea0
movsd %xmm0, 0x18(%rsp)
movsd 0xa36d0(%rip), %xmm0    # 0xd4760
callq 0x58ea0
movsd %xmm0, 0x10(%rsp)
movsd 0xa36bd(%rip), %xmm0    # 0xd4760
callq 0x58ea0
movaps %xmm0, %xmm3
movsd 0x20(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x10(%rsp), %xmm2
movq %rbx, %rdi
callq 0x32510
movq %rax, %rbp
movq %r15, %rdi
movq %rax, %rsi
callq 0x30ec2
testl %r12d, %r12d
je 0x310e0
incq %r13
movq %r13, %r14
jmp 0x31156
movq %r15, %rdi
callq 0x30e7e
leaq 0x1(%r13), %r14
cmpq %r14, %rax
jne 0x31129
movq %r15, %rdi
movq %r13, %rsi
callq 0x30f97
cmpq %rbp, %rax
je 0x3116a
movq (%rsp), %rdi
leaq 0x9b04d(%rip), %rsi     # 0xcc159
leaq 0xa3785(%rip), %rdx     # 0xd4898
leaq 0xa373d(%rip), %rcx     # 0xd4857
leaq 0xa3647(%rip), %r8      # 0xd4768
movl $0x84, %r9d
jmp 0x3114f
movq (%rsp), %rdi
leaq 0x9b025(%rip), %rsi     # 0xcc159
leaq 0xa3734(%rip), %rdx     # 0xd486f
leaq 0xa3715(%rip), %rcx     # 0xd4857
leaq 0xa361f(%rip), %r8      # 0xd4768
movl $0x83, %r9d
xorl %eax, %eax
callq 0xc007
pushq $-0x1
popq %r12
movq %rbx, %rdi
callq 0x1d1e3
movq %r14, %r13
jmp 0x31027
xorl %r12d, %r12d
jmp 0x3115a
movq %r15, %rdi
callq 0x30e14
movq 0x8(%rsp), %rdi
callq 0x152db
movl %r12d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xfce1e(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x98ec2(%rip), %rsi     # 0xca066
leaq 0xb39b3(%rip), %rdx     # 0xe4b5e
leaq 0xa36a5(%rip), %rcx     # 0xd4857
leaq 0xa35af(%rip), %r8      # 0xd4768
pushq $0x6b
jmp 0x311e5
movq 0xfcdf4(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x98e98(%rip), %rsi     # 0xca066
leaq 0x99484(%rip), %rdx     # 0xca659
leaq 0xa367b(%rip), %rcx     # 0xd4857
leaq 0xa3585(%rip), %r8      # 0xd4768
pushq $0x6c
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
nop