// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
movq %rdi, %rbx
testq %rdi, %rdi
je 0x8ed2a
movq %rbx, %rdi
callq 0x3566a
testb %al, %al
jne 0x8f61f
movq %rbx, 0x10(%rsp)
leaq 0x67e40(%rip), %rdi     # 0xf6b76
callq 0x3c03d
movq %rax, %r14
leaq 0x7db5b(%rip), %rsi     # 0x10c8a0
movl $0xa, %edx
movl $0x50, %ecx
movq %rax, %rdi
xorl %r8d, %r8d
callq 0x3fbf0
movq %rax, %r15
leaq 0x6dc1e(%rip), %rbx     # 0xfc982
movl $0xa, %edx
movl $0x28, %ecx
movq %r14, %rdi
movq %rbx, %rsi
xorl %r8d, %r8d
callq 0x3fbf0
movq %rax, %r12
movl $0x33, %edx
movl $0x50, %ecx
movq %r14, %rdi
movq %rbx, %rsi
xorl %r8d, %r8d
callq 0x3fbf0
movq %rax, %rbx
leaq 0x55e99(%rip), %rsi     # 0xe4c3a
movl $0x7, %ecx
movq %r14, 0x30(%rsp)
movq %r14, %rdi
xorl %edx, %edx
xorl %r8d, %r8d
callq 0x3fbf0
movq %rax, 0x20(%rsp)
movq %r15, %rdi
movq %r12, %rsi
movq %r12, 0x18(%rsp)
callq 0x4005b
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4005b
leaq 0x67cea(%rip), %rdx     # 0xf6ac9
movl $0x1, %edi
movl $0x10, %esi
movl $0x26, %ecx
callq 0x3601f
movq %rax, %r13
movl $0x8, %edi
callq 0x6e93c
movq %rax, 0x8(%r13)
movb $0x0, (%r13)
leaq 0x58a80(%rip), %r14     # 0xe7890
leaq 0x62e1a(%rip), %rdx     # 0xf1c31
movq %r15, %rdi
movq %r14, %rsi
callq 0x40b96
leaq 0x6249e(%rip), %rbp     # 0xf12c7
movq %r12, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x40b96
movq %rbx, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x40b96
leaq 0x67d13(%rip), %rdx     # 0xf6b5f
movq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x40b96
callq 0x8ad21
movq %rax, %r14
callq 0x8ad21
movq %rax, %rbp
movq %r14, %rdi
movq %r15, 0x28(%rsp)
movq %r15, %rsi
callq 0x8adcd
movq %r14, %rdi
movq 0x18(%rsp), %rsi
callq 0x8adcd
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8adcd
movq %rbp, %rdi
movq %r12, %rsi
callq 0x8adcd
movl $0xa, %esi
movl $0x28, %edx
movq %r14, %rdi
callq 0x8b000
movl $0x33, %esi
movl $0x50, %edx
movq %rbp, %rdi
callq 0x8b000
movq %r13, %rdi
callq 0x8eb59
movq %rax, %rdi
callq 0x6ecda
testq %rax, %rax
je 0x8ef19
leaq 0x5429a(%rip), %rsi     # 0xe3179
leaq 0x67c96(%rip), %rdx     # 0xf6b7c
leaq 0x67c77(%rip), %rcx     # 0xf6b64
leaq 0x67bd5(%rip), %r8      # 0xf6ac9
movq 0x10(%rsp), %r15
movq %r15, %rdi
movl $0xa2, %r9d
xorl %eax, %eax
callq 0x3559f
movq %r13, %rdi
movq %r14, %rsi
callq 0x8eb01
jmp 0x8efbe
movq %r13, %rdi
movq %r14, %rsi
callq 0x8eb01
movq %r13, %rdi
callq 0x8eb59
movq %rax, %rdi
callq 0x6ecda
cmpq $0x1, %rax
movq 0x10(%rsp), %r15
jne 0x8ef92
movq %r13, %rdi
movq %rbp, %rsi
callq 0x8eb01
movq %r13, %rdi
callq 0x8eb59
movq %rax, %rdi
callq 0x6ecda
movb $0x1, %bl
cmpq $0x2, %rax
je 0x8efcb
leaq 0x54210(%rip), %rsi     # 0xe3179
leaq 0x67c66(%rip), %rdx     # 0xf6bd6
leaq 0x67bed(%rip), %rcx     # 0xf6b64
leaq 0x67b4b(%rip), %r8      # 0xf6ac9
xorl %ebx, %ebx
movq %r15, %rdi
movl $0xa6, %r9d
xorl %eax, %eax
callq 0x3559f
jmp 0x8efcb
leaq 0x541e0(%rip), %rsi     # 0xe3179
leaq 0x67c09(%rip), %rdx     # 0xf6ba9
leaq 0x67bbd(%rip), %rcx     # 0xf6b64
leaq 0x67b1b(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xa4, %r9d
xorl %eax, %eax
callq 0x3559f
movq %r13, %rdi
movq %rbp, %rsi
callq 0x8eb01
xorl %ebx, %ebx
movq %r13, %rdi
callq 0x8eb59
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testb %bl, %bl
je 0x8f02e
movq %rax, %rdi
callq 0x6ecda
cmpq $0x2, %rax
jne 0x8f035
movq %r15, %rdi
callq 0x53488
movq %rax, %rbp
testq %rax, %rax
je 0x8f007
movq %r15, %rdi
callq 0x3566a
testb %al, %al
je 0x8f068
leaq 0x5416b(%rip), %rsi     # 0xe3179
leaq 0x67c0b(%rip), %rdx     # 0xf6c20
leaq 0x67b48(%rip), %rcx     # 0xf6b64
leaq 0x67aa6(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xb0, %r9d
jmp 0x8f0a8
xorl %ebp, %ebp
jmp 0x8f5b4
leaq 0x5413d(%rip), %rsi     # 0xe3179
leaq 0x67bc0(%rip), %rdx     # 0xf6c03
leaq 0x67b1a(%rip), %rcx     # 0xf6b64
leaq 0x67a78(%rip), %r8      # 0xf6ac9
xorl %ebp, %ebp
movq %r15, %rdi
movl $0xaa, %r9d
xorl %eax, %eax
callq 0x3559f
jmp 0x8f5b4
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x8ebfa
testl %eax, %eax
je 0x8f5f2
leaq 0x540ef(%rip), %rsi     # 0xe3179
leaq 0x67bac(%rip), %rdx     # 0xf6c3d
leaq 0x67acc(%rip), %rcx     # 0xf6b64
leaq 0x67a2a(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xb1, %r9d
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movb $0x1, %cl
testb %cl, %cl
jne 0x8f0fd
movsd 0x8(%rsp), %xmm0
ucomisd 0x5dc30(%rip), %xmm0    # 0xeccf8
jne 0x8f0cc
jnp 0x8f0fd
leaq 0x540a6(%rip), %rsi     # 0xe3179
leaq 0x67189(%rip), %rdx     # 0xf6263
leaq 0x67a83(%rip), %rcx     # 0xf6b64
leaq 0x679e1(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xb2, %r9d
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x8f13d
movq %r15, %rdi
callq 0x3566a
testb %al, %al
je 0x8f3fc
leaq 0x54061(%rip), %rsi     # 0xe3179
leaq 0x5cdff(%rip), %rdx     # 0xebf1e
leaq 0x67a3e(%rip), %rcx     # 0xf6b64
leaq 0x6799c(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xb3, %r9d
xorl %eax, %eax
callq 0x3559f
leaq 0x6d83e(%rip), %rsi     # 0xfc982
leaq 0x5defe(%rip), %rdx     # 0xed049
movsd 0x5dbad(%rip), %xmm0    # 0xecd00
movq %rbp, %rdi
callq 0x545ea
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movb $0x1, %cl
testb %cl, %cl
jne 0x8f1a9
movsd 0x8(%rsp), %xmm0
ucomisd 0x5db8c(%rip), %xmm0    # 0xecd00
jne 0x8f178
jnp 0x8f1a9
leaq 0x53ffa(%rip), %rsi     # 0xe3179
leaq 0x670fa(%rip), %rdx     # 0xf6280
leaq 0x679d7(%rip), %rcx     # 0xf6b64
leaq 0x67935(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xb6, %r9d
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x8f1e9
movq %r15, %rdi
callq 0x3566a
testb %al, %al
je 0x8f466
leaq 0x53fb5(%rip), %rsi     # 0xe3179
leaq 0x5cd53(%rip), %rdx     # 0xebf1e
leaq 0x67992(%rip), %rcx     # 0xf6b64
leaq 0x678f0(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xb7, %r9d
xorl %eax, %eax
callq 0x3559f
leaq 0x7d6b0(%rip), %rsi     # 0x10c8a0
leaq 0x5de52(%rip), %rdx     # 0xed049
movsd 0x5db09(%rip), %xmm0    # 0xecd08
movq %rbp, %rdi
callq 0x545ea
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movb $0x1, %cl
testb %cl, %cl
jne 0x8f255
movsd 0x8(%rsp), %xmm0
ucomisd 0x5dae0(%rip), %xmm0    # 0xecd00
jne 0x8f224
jnp 0x8f255
leaq 0x53f4e(%rip), %rsi     # 0xe3179
leaq 0x6704e(%rip), %rdx     # 0xf6280
leaq 0x6792b(%rip), %rcx     # 0xf6b64
leaq 0x67889(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xba, %r9d
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x8f295
movq %r15, %rdi
callq 0x3566a
testb %al, %al
je 0x8f4d0
leaq 0x53f09(%rip), %rsi     # 0xe3179
leaq 0x5cca7(%rip), %rdx     # 0xebf1e
leaq 0x678e6(%rip), %rcx     # 0xf6b64
leaq 0x67844(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xbb, %r9d
xorl %eax, %eax
callq 0x3559f
leaq 0x6d6e6(%rip), %rsi     # 0xfc982
leaq 0x5dda6(%rip), %rdx     # 0xed049
movq %rbp, %rdi
callq 0x54937
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movb $0x1, %cl
testb %cl, %cl
jne 0x8f2f9
movsd 0x8(%rsp), %xmm0
ucomisd 0x5da44(%rip), %xmm0    # 0xecd08
jne 0x8f2c8
jnp 0x8f2f9
leaq 0x53eaa(%rip), %rsi     # 0xe3179
leaq 0x66fb7(%rip), %rdx     # 0xf628d
leaq 0x67887(%rip), %rcx     # 0xf6b64
leaq 0x677e5(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xbe, %r9d
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x8f339
movq %r15, %rdi
callq 0x3566a
testb %al, %al
je 0x8f532
leaq 0x53e65(%rip), %rsi     # 0xe3179
leaq 0x5cc03(%rip), %rdx     # 0xebf1e
leaq 0x67842(%rip), %rcx     # 0xf6b64
leaq 0x677a0(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xbf, %r9d
xorl %eax, %eax
callq 0x3559f
leaq 0x7d560(%rip), %rsi     # 0x10c8a0
leaq 0x5dd02(%rip), %rbx     # 0xed049
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x54937
leaq 0x51e3d(%rip), %rsi     # 0xe1196
movsd 0x5d9af(%rip), %xmm0    # 0xecd10
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x545ea
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movb $0x1, %cl
testb %cl, %cl
jne 0x8f3ba
movsd 0x8(%rsp), %xmm0
ucomisd 0x5d98b(%rip), %xmm0    # 0xecd10
jne 0x8f389
jnp 0x8f3ba
leaq 0x53de9(%rip), %rsi     # 0xe3179
leaq 0x678d5(%rip), %rdx     # 0xf6c6c
leaq 0x677c6(%rip), %rcx     # 0xf6b64
leaq 0x67724(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xc3, %r9d
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0x8f5b4
movq %r15, %rdi
callq 0x3566a
testb %al, %al
je 0x8f5b1
leaq 0x53da0(%rip), %rsi     # 0xe3179
leaq 0x5cb3e(%rip), %rdx     # 0xebf1e
leaq 0x6777d(%rip), %rcx     # 0xf6b64
leaq 0x676db(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xc4, %r9d
jmp 0x8f05c
leaq 0x6d57f(%rip), %rsi     # 0xfc982
leaq 0x5dc3f(%rip), %rdx     # 0xed049
movsd 0x5d8ee(%rip), %xmm0    # 0xecd00
movq %rbp, %rdi
callq 0x545ea
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x8ebfa
testl %eax, %eax
je 0x8f5fb
leaq 0x53d3d(%rip), %rsi     # 0xe3179
leaq 0x677fa(%rip), %rdx     # 0xf6c3d
leaq 0x6771a(%rip), %rcx     # 0xf6b64
leaq 0x67678(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xb5, %r9d
xorl %eax, %eax
callq 0x3559f
jmp 0x8f15b
leaq 0x7d433(%rip), %rsi     # 0x10c8a0
leaq 0x5dbd5(%rip), %rdx     # 0xed049
movsd 0x5d88c(%rip), %xmm0    # 0xecd08
movq %rbp, %rdi
callq 0x545ea
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x8ebfa
testl %eax, %eax
je 0x8f604
leaq 0x53cd3(%rip), %rsi     # 0xe3179
leaq 0x67790(%rip), %rdx     # 0xf6c3d
leaq 0x676b0(%rip), %rcx     # 0xf6b64
leaq 0x6760e(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xb9, %r9d
xorl %eax, %eax
callq 0x3559f
jmp 0x8f207
leaq 0x6d4ab(%rip), %rsi     # 0xfc982
leaq 0x5db6b(%rip), %rdx     # 0xed049
movq %rbp, %rdi
callq 0x54937
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x8ebfa
testl %eax, %eax
je 0x8f60d
leaq 0x53c71(%rip), %rsi     # 0xe3179
leaq 0x6772e(%rip), %rdx     # 0xf6c3d
leaq 0x6764e(%rip), %rcx     # 0xf6b64
leaq 0x675ac(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xbd, %r9d
xorl %eax, %eax
callq 0x3559f
jmp 0x8f2ab
leaq 0x7d367(%rip), %rsi     # 0x10c8a0
leaq 0x5db09(%rip), %rbx     # 0xed049
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x54937
leaq 0x51c44(%rip), %rsi     # 0xe1196
movsd 0x5d7b6(%rip), %xmm0    # 0xecd10
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x545ea
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x8ebfa
testl %eax, %eax
je 0x8f616
leaq 0x53bf2(%rip), %rsi     # 0xe3179
leaq 0x676af(%rip), %rdx     # 0xf6c3d
leaq 0x675cf(%rip), %rcx     # 0xf6b64
leaq 0x6752d(%rip), %r8      # 0xf6ac9
movq %r15, %rdi
movl $0xc2, %r9d
xorl %eax, %eax
callq 0x3559f
jmp 0x8f36c
xorl %r14d, %r14d
movq 0x30(%rsp), %rdi
callq 0x3d1eb
movq %r13, %rdi
callq 0x8f624
movq %rbp, %rdi
callq 0x54be4
movq 0x28(%rsp), %rdi
callq 0x42ade
movq %r12, %rdi
callq 0x42ade
movl %r14d, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ecx, %ecx
xorl %eax, %eax
jmp 0x8f0b6
xorl %ecx, %ecx
xorl %eax, %eax
jmp 0x8f162
xorl %ecx, %ecx
xorl %eax, %eax
jmp 0x8f20e
xorl %ecx, %ecx
xorl %eax, %eax
jmp 0x8f2b2
xorl %ecx, %ecx
xorl %eax, %eax
jmp 0x8f373
callq 0x21cf1