// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/line.c
// Function: gt_line_unit_test
int gt_line_unit_test(GtError *err)
{
  GtRange r1, r2, r3;
  GtArray* blocks;
  GtStr *seqid1;
  int had_err = 0;
  GtGenomeNode *parent, *gn1, *gn2, *gn3;
  double height;
  GtLine *l1;
  GtBlock *b1, *b2;
  GtStyle *sty = NULL;
  const char* foo = "foo";
  const char* bar = "bar";
  const char* blub = "blub";
  gt_error_check(err);

  r1.start = 10;
  r1.end = 40;
  r2.start = 51;
  r2.end = 80;
  r3.start = 0;
  r3.end = 7;

  seqid1 = gt_str_new_cstr("test1");

  parent = gt_feature_node_new(seqid1, gt_ft_gene, r1.start, r2.end,
                               GT_STRAND_FORWARD);
  gn1 = gt_feature_node_new(seqid1, gt_ft_exon, r1.start, r1.end,
                            GT_STRAND_FORWARD);
  gn2 = gt_feature_node_new(seqid1, gt_ft_exon, r2.start, r2.end,
                            GT_STRAND_FORWARD);
  gn3 = gt_feature_node_new(seqid1, gt_ft_TF_binding_site, r3.start, r3.end,
                            GT_STRAND_FORWARD);

  gt_feature_node_add_child((GtFeatureNode*) parent, (GtFeatureNode*) gn1);
  gt_feature_node_add_child((GtFeatureNode*) parent, (GtFeatureNode*) gn2);

  l1 = gt_line_new();

  gt_feature_node_add_attribute((GtFeatureNode*) parent, GT_GFF_NAME, foo);
  gt_feature_node_add_attribute((GtFeatureNode*) gn1, GT_GFF_NAME, bar);
  gt_feature_node_add_attribute((GtFeatureNode*) gn2, GT_GFF_NAME, bar);
  gt_feature_node_add_attribute((GtFeatureNode*) gn3, GT_GFF_NAME, blub);

  b1 = gt_block_new();
  b2 = gt_block_new();

  gt_block_insert_element(b1, (GtFeatureNode*) parent);
  gt_block_insert_element(b1, (GtFeatureNode*) gn1);
  gt_block_insert_element(b1, (GtFeatureNode*) gn2);
  gt_block_insert_element(b2, (GtFeatureNode*) gn3);
  gt_block_set_range(b1, r1);
  gt_block_set_range(b2, r2);

  /* test gt_line_insert_block */
  gt_ensure((0 == gt_array_size(gt_line_get_blocks(l1))));
  gt_line_insert_block(l1, b1);
  gt_ensure((1 == gt_array_size(gt_line_get_blocks(l1))));
  gt_line_insert_block(l1, b2);
  gt_ensure((2 == gt_array_size(gt_line_get_blocks(l1))));

  /* test gt_line_get_blocks */
  blocks = gt_line_get_blocks(l1);
  gt_ensure((2 == gt_array_size(blocks)));

  /* test gt_line_get_height() */
  if (!had_err)
  {
    sty = gt_style_new(err);
    gt_ensure(sty && !gt_error_is_set(err));
    gt_ensure(gt_line_get_height(l1, &height, sty, err) == 0);
    gt_ensure(height == BAR_HEIGHT_DEFAULT);
    gt_ensure(!gt_error_is_set(err));
    gt_style_set_num(sty, "exon", "bar_height", 42);
    gt_ensure(gt_line_get_height(l1, &height, sty, err) == 0);
    gt_ensure(height == 42);
    gt_ensure(!gt_error_is_set(err));
    gt_style_set_num(sty, "gene", "bar_height", 23);
    gt_ensure(gt_line_get_height(l1, &height, sty, err) == 0);
    gt_ensure(height == 42);
    gt_ensure(!gt_error_is_set(err));
    gt_style_unset(sty, "exon", "bar_height");
    gt_ensure(gt_line_get_height(l1, &height, sty, err) == 0);
    gt_ensure(height == 23);
    gt_ensure(!gt_error_is_set(err));
    gt_style_unset(sty, "gene", "bar_height");
    gt_style_set_num(sty, "format", "bar_height", 99);
    gt_ensure(gt_line_get_height(l1, &height, sty, err) == 0);
    gt_ensure(height == 99);
    gt_ensure(!gt_error_is_set(err));
  }

  gt_str_delete(seqid1);
  gt_line_delete(l1);
  gt_style_delete(sty);
  gt_genome_node_delete(parent);
  gt_genome_node_delete(gn3);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
testq %rdi, %rdi
je 0x6fe33
movq %rbx, %rdi
callq 0xc103
testb %al, %al
jne 0x70611
movq %rbx, (%rsp)
leaq 0x7000d(%rip), %rdi     # 0xdfe4b
callq 0x13da9
movq %rax, %r13
leaq 0x85b03(%rip), %rsi     # 0xf5950
pushq $0xa
popq %r15
pushq $0x50
popq %r14
movq %rax, %rdi
movq %r15, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x18cbb
movq %rax, %rbp
leaq 0x75dae(%rip), %rbx     # 0xe5c1e
pushq $0x28
popq %rcx
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
xorl %r8d, %r8d
callq 0x18cbb
movq %rax, %r12
pushq $0x33
popq %rdx
movq %r13, %rdi
movq %rbx, %rsi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x18cbb
movq %rax, %r14
leaq 0x5dd75(%rip), %rsi     # 0xcdc1a
pushq $0x7
popq %rcx
movq %r13, 0x20(%rsp)
movq %r13, %rdi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x18cbb
movq %rax, %r15
movq %rbp, %rdi
movq %r12, %rsi
callq 0x19245
movq %rbp, %rdi
movq %r14, %rsi
callq 0x19245
callq 0x6fb14
movq %rax, 0x10(%rsp)
leaq 0x6094a(%rip), %rbx     # 0xd082e
leaq 0x6b016(%rip), %rdx     # 0xdaf01
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x1a57d
leaq 0x6a32a(%rip), %r13     # 0xda227
movq %r12, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x1a57d
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x1a57d
leaq 0x6ff14(%rip), %rdx     # 0xdfe34
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1a57d
callq 0x6b40c
movq %rax, %r13
callq 0x6b40c
movq %rax, %rbx
movq %r13, %rdi
movq %rbp, 0x18(%rsp)
movq %rbp, %rsi
callq 0x6b4e5
movq %r13, %rdi
movq %r12, %rsi
callq 0x6b4e5
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %r14
movq 0x10(%rsp), %r15
callq 0x6b4e5
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6b4e5
movq %r13, %rdi
pushq $0xa
popq %rsi
pushq $0x28
popq %rdx
callq 0x6b8d4
movq %rbx, %rdi
pushq $0x33
popq %rsi
pushq $0x50
popq %rdx
callq 0x6b8d4
movq %r15, %rdi
callq 0x6fbf9
movq %rax, %rdi
callq 0x4b988
testq %rax, %rax
je 0x6ffe5
leaq 0x5c1ad(%rip), %rsi     # 0xcc159
leaq 0x6fe9e(%rip), %rdx     # 0xdfe51
leaq 0x6fe7f(%rip), %rcx     # 0xdfe39
leaq 0x6fddd(%rip), %r8      # 0xdfd9e
movq (%rsp), %r12
movq %r12, %rdi
movl $0xa2, %r9d
xorl %eax, %eax
callq 0xc007
movq %r15, %rdi
movq %r13, %rsi
callq 0x6fb41
jmp 0x70089
movq %r15, %rdi
movq %r13, %rsi
callq 0x6fb41
movq %r15, %rdi
callq 0x6fbf9
movq %rax, %rdi
callq 0x4b988
cmpq $0x1, %rax
movq (%rsp), %r12
jne 0x7005d
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6fb41
movq %r15, %rdi
callq 0x6fbf9
movq %rax, %rdi
callq 0x4b988
movb $0x1, %bl
cmpq $0x2, %rax
je 0x70096
leaq 0x5c125(%rip), %rsi     # 0xcc159
leaq 0x6fe70(%rip), %rdx     # 0xdfeab
leaq 0x6fdf7(%rip), %rcx     # 0xdfe39
leaq 0x6fd55(%rip), %r8      # 0xdfd9e
xorl %ebx, %ebx
movq %r12, %rdi
movl $0xa6, %r9d
xorl %eax, %eax
callq 0xc007
jmp 0x70096
leaq 0x5c0f5(%rip), %rsi     # 0xcc159
leaq 0x6fe13(%rip), %rdx     # 0xdfe7e
leaq 0x6fdc7(%rip), %rcx     # 0xdfe39
leaq 0x6fd25(%rip), %r8      # 0xdfd9e
movq %r12, %rdi
movl $0xa4, %r9d
xorl %eax, %eax
callq 0xc007
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6fb41
xorl %ebx, %ebx
movq %r15, %rdi
callq 0x6fbf9
pushq $-0x1
popq %r13
testb %bl, %bl
je 0x700f7
movq %rax, %rdi
callq 0x4b988
cmpq $0x2, %rax
jne 0x700fe
movq %r12, %rdi
callq 0x32840
movq %rax, %rbp
testq %rax, %rax
je 0x700d0
movq %r12, %rdi
callq 0xc103
testb %al, %al
je 0x70131
leaq 0x5c082(%rip), %rsi     # 0xcc159
leaq 0x6fe17(%rip), %rdx     # 0xdfef5
leaq 0x6fd54(%rip), %rcx     # 0xdfe39
leaq 0x6fcb2(%rip), %r8      # 0xdfd9e
movq %r12, %rdi
movl $0xb0, %r9d
jmp 0x70171
xorl %ebp, %ebp
jmp 0x701fd
leaq 0x5c054(%rip), %rsi     # 0xcc159
leaq 0x6fdcc(%rip), %rdx     # 0xdfed8
leaq 0x6fd26(%rip), %rcx     # 0xdfe39
leaq 0x6fc84(%rip), %r8      # 0xdfd9e
xorl %ebp, %ebp
movq %r12, %rdi
movl $0xaa, %r9d
xorl %eax, %eax
callq 0xc007
jmp 0x701fd
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x6fcf5
testl %eax, %eax
je 0x7023b
leaq 0x5c006(%rip), %rsi     # 0xcc159
leaq 0x6fdb8(%rip), %rdx     # 0xdff12
leaq 0x6fcd8(%rip), %rcx     # 0xdfe39
leaq 0x6fc36(%rip), %r8      # 0xdfd9e
movq %r12, %rdi
movl $0xb1, %r9d
xorl %eax, %eax
callq 0xc007
leaq 0x75a9f(%rip), %rsi     # 0xe5c1e
leaq 0x65e6b(%rip), %rdx     # 0xd5ff1
movsd 0x65b1a(%rip), %xmm0    # 0xd5ca8
movq %rbp, %rdi
callq 0x34010
leaq 0x857b3(%rip), %rsi     # 0xf5950
leaq 0x65e4d(%rip), %rdx     # 0xd5ff1
movsd 0x65b04(%rip), %xmm0    # 0xd5cb0
movq %rbp, %rdi
callq 0x34010
leaq 0x75a63(%rip), %rsi     # 0xe5c1e
leaq 0x65e2f(%rip), %rdx     # 0xd5ff1
movq %rbp, %rdi
callq 0x34510
leaq 0x8577f(%rip), %rsi     # 0xf5950
leaq 0x65e19(%rip), %rbx     # 0xd5ff1
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x34510
leaq 0x59fac(%rip), %rsi     # 0xca196
movsd 0x65ac6(%rip), %xmm0    # 0xd5cb8
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x34010
movq 0x20(%rsp), %rdi
callq 0x152db
movq %r15, %rdi
callq 0x70647
movq %rbp, %rdi
callq 0x34915
movq 0x18(%rsp), %rdi
callq 0x1d1e3
movq %r14, %rdi
callq 0x1d1e3
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movsd 0x8(%rsp), %xmm0
ucomisd 0x65a57(%rip), %xmm0    # 0xd5ca0
jne 0x70283
jp 0x70283
movq %r12, %rdi
callq 0xc103
testb %al, %al
je 0x702ad
leaq 0x5bef9(%rip), %rsi     # 0xcc159
leaq 0x64c57(%rip), %rdx     # 0xd4ebe
leaq 0x6fbcb(%rip), %rcx     # 0xdfe39
leaq 0x6fb29(%rip), %r8      # 0xdfd9e
movq %r12, %rdi
movl $0xb3, %r9d
jmp 0x70171
leaq 0x5becf(%rip), %rsi     # 0xcc159
leaq 0x6f2d2(%rip), %rdx     # 0xdf563
leaq 0x6fba1(%rip), %rcx     # 0xdfe39
leaq 0x6faff(%rip), %r8      # 0xdfd9e
movq %r12, %rdi
movl $0xb2, %r9d
jmp 0x70171
leaq 0x7596a(%rip), %rsi     # 0xe5c1e
leaq 0x65d36(%rip), %rdx     # 0xd5ff1
movsd 0x659e5(%rip), %xmm0    # 0xd5ca8
movq %rbp, %rdi
callq 0x34010
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x6fcf5
testl %eax, %eax
je 0x70313
leaq 0x5be70(%rip), %rsi     # 0xcc159
leaq 0x6fc22(%rip), %rdx     # 0xdff12
leaq 0x6fb42(%rip), %rcx     # 0xdfe39
leaq 0x6faa0(%rip), %r8      # 0xdfd9e
movq %r12, %rdi
movl $0xb5, %r9d
xorl %eax, %eax
callq 0xc007
jmp 0x70196
movsd 0x8(%rsp), %xmm0
ucomisd 0x65987(%rip), %xmm0    # 0xd5ca8
jne 0x70358
jp 0x70358
movq %r12, %rdi
callq 0xc103
testb %al, %al
je 0x7037f
leaq 0x5be21(%rip), %rsi     # 0xcc159
leaq 0x64b7f(%rip), %rdx     # 0xd4ebe
leaq 0x6faf3(%rip), %rcx     # 0xdfe39
leaq 0x6fa51(%rip), %r8      # 0xdfd9e
movq %r12, %rdi
movl $0xb7, %r9d
jmp 0x70307
leaq 0x5bdfa(%rip), %rsi     # 0xcc159
leaq 0x6f21a(%rip), %rdx     # 0xdf580
leaq 0x6facc(%rip), %rcx     # 0xdfe39
leaq 0x6fa2a(%rip), %r8      # 0xdfd9e
movq %r12, %rdi
movl $0xb6, %r9d
jmp 0x70307
leaq 0x855ca(%rip), %rsi     # 0xf5950
leaq 0x65c64(%rip), %rdx     # 0xd5ff1
movsd 0x6591b(%rip), %xmm0    # 0xd5cb0
movq %rbp, %rdi
callq 0x34010
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x6fcf5
testl %eax, %eax
je 0x703e5
leaq 0x5bd9e(%rip), %rsi     # 0xcc159
leaq 0x6fb50(%rip), %rdx     # 0xdff12
leaq 0x6fa70(%rip), %rcx     # 0xdfe39
leaq 0x6f9ce(%rip), %r8      # 0xdfd9e
movq %r12, %rdi
movl $0xb9, %r9d
xorl %eax, %eax
callq 0xc007
jmp 0x701b4
movsd 0x8(%rsp), %xmm0
ucomisd 0x658b5(%rip), %xmm0    # 0xd5ca8
jne 0x7042a
jp 0x7042a
movq %r12, %rdi
callq 0xc103
testb %al, %al
je 0x70451
leaq 0x5bd4f(%rip), %rsi     # 0xcc159
leaq 0x64aad(%rip), %rdx     # 0xd4ebe
leaq 0x6fa21(%rip), %rcx     # 0xdfe39
leaq 0x6f97f(%rip), %r8      # 0xdfd9e
movq %r12, %rdi
movl $0xbb, %r9d
jmp 0x703d9
leaq 0x5bd28(%rip), %rsi     # 0xcc159
leaq 0x6f148(%rip), %rdx     # 0xdf580
leaq 0x6f9fa(%rip), %rcx     # 0xdfe39
leaq 0x6f958(%rip), %r8      # 0xdfd9e
movq %r12, %rdi
movl $0xba, %r9d
jmp 0x703d9
leaq 0x757c6(%rip), %rsi     # 0xe5c1e
leaq 0x65b92(%rip), %rdx     # 0xd5ff1
movq %rbp, %rdi
callq 0x34510
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x6fcf5
testl %eax, %eax
je 0x704af
leaq 0x5bcd4(%rip), %rsi     # 0xcc159
leaq 0x6fa86(%rip), %rdx     # 0xdff12
leaq 0x6f9a6(%rip), %rcx     # 0xdfe39
leaq 0x6f904(%rip), %r8      # 0xdfd9e
movq %r12, %rdi
movl $0xbd, %r9d
xorl %eax, %eax
callq 0xc007
jmp 0x701ca
movsd 0x8(%rsp), %xmm0
ucomisd 0x657f3(%rip), %xmm0    # 0xd5cb0
jne 0x704f6
jp 0x704f6
movq (%rsp), %rdi
callq 0xc103
testb %al, %al
je 0x7051e
leaq 0x5bc84(%rip), %rsi     # 0xcc159
leaq 0x649e2(%rip), %rdx     # 0xd4ebe
leaq 0x6f956(%rip), %rcx     # 0xdfe39
leaq 0x6f8b4(%rip), %r8      # 0xdfd9e
movq (%rsp), %rdi
movl $0xbf, %r9d
jmp 0x704a3
leaq 0x5bc5c(%rip), %rsi     # 0xcc159
leaq 0x6f089(%rip), %rdx     # 0xdf58d
leaq 0x6f92e(%rip), %rcx     # 0xdfe39
leaq 0x6f88c(%rip), %r8      # 0xdfd9e
movq (%rsp), %rdi
movl $0xbe, %r9d
jmp 0x704a3
leaq 0x8542b(%rip), %rsi     # 0xf5950
leaq 0x65ac5(%rip), %rbx     # 0xd5ff1
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x34510
leaq 0x59c58(%rip), %rsi     # 0xca196
movsd 0x65772(%rip), %xmm0    # 0xd5cb8
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x34010
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
movq %rbp, %rdx
movq (%rsp), %rcx
callq 0x6fcf5
testl %eax, %eax
je 0x70594
leaq 0x5bbe9(%rip), %rsi     # 0xcc159
leaq 0x6f99b(%rip), %rdx     # 0xdff12
leaq 0x6f8bb(%rip), %rcx     # 0xdfe39
leaq 0x6f819(%rip), %r8      # 0xdfd9e
movq (%rsp), %rdi
movl $0xc2, %r9d
jmp 0x70125
movsd 0x8(%rsp), %xmm0
ucomisd 0x65716(%rip), %xmm0    # 0xd5cb8
jne 0x705de
jp 0x705de
movq (%rsp), %rdi
callq 0xc103
testb %al, %al
je 0x70609
leaq 0x5bb9f(%rip), %rsi     # 0xcc159
leaq 0x648fd(%rip), %rdx     # 0xd4ebe
leaq 0x6f871(%rip), %rcx     # 0xdfe39
leaq 0x6f7cf(%rip), %r8      # 0xdfd9e
movq (%rsp), %rdi
movl $0xc4, %r9d
jmp 0x70125
leaq 0x5bb74(%rip), %rsi     # 0xcc159
leaq 0x6f955(%rip), %rdx     # 0xdff41
leaq 0x6f846(%rip), %rcx     # 0xdfe39
leaq 0x6f7a4(%rip), %r8      # 0xdfd9e
movq (%rsp), %rdi
movl $0xc3, %r9d
jmp 0x70125
xorl %r13d, %r13d
jmp 0x701fd
movq 0xbd9a0(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x59a44(%rip), %rsi     # 0xca066
leaq 0x5a030(%rip), %rdx     # 0xca659
leaq 0x6f809(%rip), %rcx     # 0xdfe39
leaq 0x6f767(%rip), %r8      # 0xdfd9e
pushq $0x79
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300