// File: /workspace/github_c_makefile_star2_O3/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 0x517c6
movq %rdi, (%rsp)
callq 0x34fea
testb %al, %al
jne 0x517cb
leaq 0xb06ba(%rip), %rdi     # 0x101cf4
callq 0x3b785
movq %rax, 0x8(%rsp)
callq 0x514d4
movq %rax, %r15
xorl %ebx, %ebx
xorl %r13d, %r13d
movl $0xa, %edi
callq 0x7a51d
movq %rax, %r12
movl $0x14, %edi
callq 0x7a51d
leaq (%rax,%r12), %rcx
movq 0x8(%rsp), %rdi
leaq 0xbb048(%rip), %rsi     # 0x10c6c0
movq %r12, %rdx
xorl %r8d, %r8d
callq 0x3f280
movq %rax, %rbp
movsd 0x9a0e2(%rip), %xmm0    # 0xeb770
callq 0x7a595
movsd %xmm0, 0x20(%rsp)
movsd 0x9a0cf(%rip), %xmm0    # 0xeb770
callq 0x7a595
movsd %xmm0, 0x18(%rsp)
movsd 0x9a0bc(%rip), %xmm0    # 0xeb770
callq 0x7a595
movsd %xmm0, 0x10(%rsp)
movsd 0x9a0a9(%rip), %xmm0    # 0xeb770
callq 0x7a595
movaps %xmm0, %xmm3
movsd 0x20(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x10(%rsp), %xmm2
movq %rbp, %rdi
callq 0x52690
movq %rax, %r12
movq %r15, %rdi
movq %rax, %rsi
callq 0x515af
testl %r13d, %r13d
je 0x5170a
incq %rbx
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq %rbx, %r14
jmp 0x51786
movq %r15, %rdi
callq 0x5159c
leaq 0x1(%rbx), %r14
cmpq %r14, %rax
jne 0x51753
movq %r15, %rdi
movq %rbx, %rsi
callq 0x515f3
cmpq %r12, %rax
je 0x5179d
movq (%rsp), %rdi
leaq 0x91a23(%rip), %rsi     # 0xe3159
leaq 0x9a16b(%rip), %rdx     # 0xeb8a8
leaq 0x9a123(%rip), %rcx     # 0xeb867
leaq 0x9a02d(%rip), %r8      # 0xeb778
movl $0x84, %r9d
jmp 0x51779
movq (%rsp), %rdi
leaq 0x919fb(%rip), %rsi     # 0xe3159
leaq 0x9a11a(%rip), %rdx     # 0xeb87f
leaq 0x9a0fb(%rip), %rcx     # 0xeb867
leaq 0x9a005(%rip), %r8      # 0xeb778
movl $0x83, %r9d
xorl %eax, %eax
callq 0x34f1f
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq %rbp, %rdi
callq 0x4210c
movq %r14, %rbx
cmpq $0x14, %r14
jne 0x51651
jmp 0x517a2
xorl %r13d, %r13d
jmp 0x51786
movq %r15, %rdi
callq 0x51522
movq 0x8(%rsp), %rdi
callq 0x3c87b
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x17267
callq 0x17230