// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x1a8, %rsp            # imm = 0x1A8
movq %rdi, 0x1a0(%rsp)
movl $0x0, 0x44(%rsp)
cmpq $0x0, 0x1a0(%rsp)
jne 0x4540a
movq 0x16ebff(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x118c83(%rip), %rsi    # 0x15e066
leaq 0x1348cc(%rip), %rdx    # 0x179cb6
leaq 0x1236a6(%rip), %rcx    # 0x168a97
leaq 0x1235b0(%rip), %r8     # 0x1689a8
movl $0x6b, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x4540c
jmp 0x4540e
cmpq $0x0, 0x1a0(%rsp)
je 0x45464
movq 0x1a0(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x4542c
jmp 0x45464
movq 0x16eba5(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x118c29(%rip), %rsi    # 0x15e066
leaq 0x119204(%rip), %rdx    # 0x15e648
leaq 0x12364c(%rip), %rcx    # 0x168a97
leaq 0x123556(%rip), %r8     # 0x1689a8
movl $0x6c, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x45466
leaq 0x13f503(%rip), %rdi    # 0x184970
callq 0x18f70
movq %rax, 0x48(%rsp)
callq 0x45010
movq %rax, 0x58(%rsp)
movq $0x0, 0x50(%rsp)
cmpq $0x14, 0x50(%rsp)
jae 0x45674
movl $0xa, %edi
callq 0x8c3c0
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq %rax, (%rsp)
movl $0x14, %edi
callq 0x8c3c0
movq %rax, %rcx
movq (%rsp), %rax
addq %rcx, %rax
movq %rax, 0x28(%rsp)
movq 0x48(%rsp), %rdi
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x14a029(%rip), %rsi    # 0x18f510
xorl %r8d, %r8d
callq 0x20580
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x60(%rsp,%rax,8)
movsd 0x12349c(%rip), %xmm0   # 0x1689a0
callq 0x8c4e0
movsd %xmm0, 0x18(%rsp)
movsd 0x123489(%rip), %xmm0   # 0x1689a0
callq 0x8c4e0
movsd %xmm0, 0x8(%rsp)
movsd 0x123476(%rip), %xmm0   # 0x1689a0
callq 0x8c4e0
movsd %xmm0, 0x10(%rsp)
movsd 0x123463(%rip), %xmm0   # 0x1689a0
callq 0x8c4e0
movsd 0x8(%rsp), %xmm1
movsd 0x10(%rsp), %xmm2
movaps %xmm0, %xmm3
movsd 0x18(%rsp), %xmm0
movq 0x50(%rsp), %rax
movq 0x60(%rsp,%rax,8), %rdi
callq 0x473c0
movq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x100(%rsp,%rax,8)
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %rax
movq 0x100(%rsp,%rax,8), %rsi
callq 0x45210
cmpl $0x0, 0x44(%rsp)
jne 0x455e7
movq 0x58(%rsp), %rdi
callq 0x451b0
movq 0x50(%rsp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
je 0x455e5
movq 0x1a0(%rsp), %rdi
leaq 0x11abbc(%rip), %rsi    # 0x160177
leaq 0x1234ed(%rip), %rdx    # 0x168aaf
leaq 0x1234ce(%rip), %rcx    # 0x168a97
leaq 0x1233d8(%rip), %r8     # 0x1689a8
movl $0x83, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x455e7
jmp 0x455e9
jmp 0x455eb
cmpl $0x0, 0x44(%rsp)
jne 0x45650
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x45340
movq %rax, 0x38(%rsp)
movq 0x50(%rsp), %rcx
cmpq 0x100(%rsp,%rcx,8), %rax
je 0x4564e
movq 0x1a0(%rsp), %rdi
leaq 0x11ab53(%rip), %rsi    # 0x160177
leaq 0x1234ad(%rip), %rdx    # 0x168ad8
leaq 0x123465(%rip), %rcx    # 0x168a97
leaq 0x12336f(%rip), %r8     # 0x1689a8
movl $0x84, %r9d
movb $0x0, %al
callq 0xc0d0
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0x45650
jmp 0x45652
movq 0x50(%rsp), %rax
movq 0x60(%rsp,%rax,8), %rdi
callq 0x26eb0
movq 0x50(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x50(%rsp)
jmp 0x4548a
movq 0x58(%rsp), %rdi
callq 0x450f0
movq 0x48(%rsp), %rdi
callq 0x1afc0
movl 0x44(%rsp), %eax
addq $0x1a8, %rsp            # imm = 0x1A8
retq
nopw %cs:(%rax,%rax)
nop