// File: /workspace/github_c_makefile_star2_O1/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 0x52445
movq %rdi, (%rsp)
callq 0x3566a
testb %al, %al
jne 0x5244a
leaq 0xafabe(%rip), %rdi     # 0x101d80
callq 0x3c03d
movq %rax, 0x8(%rsp)
movl $0x1, %r12d
callq 0x5215c
movq %rax, %r15
xorl %r14d, %r14d
movl %r14d, %r13d
movl $0xa, %edi
callq 0x7a188
movq %rax, %rbx
movl $0x14, %edi
callq 0x7a188
leaq (%rax,%rbx), %rcx
movq 0x8(%rsp), %rdi
leaq 0xba599(%rip), %rsi     # 0x10c8a0
movq %rbx, %rdx
xorl %r8d, %r8d
callq 0x3fbf0
movq %rax, %rbp
movsd 0x994a3(%rip), %xmm0    # 0xeb7c0
callq 0x7a200
movsd %xmm0, 0x20(%rsp)
movsd 0x99490(%rip), %xmm0    # 0xeb7c0
callq 0x7a200
movsd %xmm0, 0x18(%rsp)
movsd 0x9947d(%rip), %xmm0    # 0xeb7c0
callq 0x7a200
movsd %xmm0, 0x10(%rsp)
movsd 0x9946a(%rip), %xmm0    # 0xeb7c0
callq 0x7a200
movaps %xmm0, %xmm3
movsd 0x20(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x10(%rsp), %xmm2
movq %rbp, %rdi
callq 0x53308
movq %rax, %rbx
movq %r15, %rdi
movq %rax, %rsi
callq 0x52237
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testl %r13d, %r13d
jne 0x52405
movq %r15, %rdi
callq 0x52224
cmpq %rax, %r12
jne 0x523d8
leaq -0x1(%r12), %rsi
movq %r15, %rdi
callq 0x5227b
cmpq %rbx, %rax
je 0x5241c
movq (%rsp), %rdi
leaq 0x90dbe(%rip), %rsi     # 0xe3179
leaq 0x99536(%rip), %rdx     # 0xeb8f8
leaq 0x994ee(%rip), %rcx     # 0xeb8b7
leaq 0x993f8(%rip), %r8      # 0xeb7c8
movl $0x84, %r9d
jmp 0x523fe
movq (%rsp), %rdi
leaq 0x90d96(%rip), %rsi     # 0xe3179
leaq 0x994e5(%rip), %rdx     # 0xeb8cf
leaq 0x994c6(%rip), %rcx     # 0xeb8b7
leaq 0x993d0(%rip), %r8      # 0xeb7c8
movl $0x83, %r9d
xorl %eax, %eax
callq 0x3559f
movq %rbp, %rdi
callq 0x42ade
incq %r12
cmpq $0x15, %r12
jne 0x522dd
jmp 0x52421
xorl %r14d, %r14d
jmp 0x52405
movq %r15, %rdi
callq 0x521aa
movq 0x8(%rsp), %rdi
callq 0x3d1eb
movl %r14d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x173b9
callq 0x17382
nop