// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/block.c
// Function: gt_block_unit_test
int gt_block_unit_test(GtError *err)
{
  GtRange r1, r2, r_temp, b_range;
  GtStrand s;
  GtGenomeNode *gn1, *gn2;
  GtElement *e1, *e2;
  double height;
  GtBlock *b;
  GtStr *seqid, *caption1, *caption2;
  int had_err = 0;
  GtStyle *sty;
  GtError *testerr;
  gt_error_check(err);

  seqid = gt_str_new_cstr("seqid");
  caption1 = gt_str_new_cstr("foo");
  caption2 = gt_str_new_cstr("bar");
  testerr = gt_error_new();

  r1.start = 10UL;
  r1.end = 50UL;

  r2.start = 40UL;
  r2.end = 50UL;

  gn1 = gt_feature_node_new(seqid, gt_ft_gene, r1.start, r1.end,
                            GT_STRAND_FORWARD);
  gn2 = gt_feature_node_new(seqid, gt_ft_exon, r2.start, r2.end,
                            GT_STRAND_FORWARD);

  e1 = gt_element_new((GtFeatureNode*) gn1);
  e2 = gt_element_new((GtFeatureNode*) gn2);

  b = gt_block_new();

  /* test gt_block_insert_elements */
  gt_ensure((0UL == gt_block_get_size(b)));
  gt_block_insert_element(b, (GtFeatureNode*) gn1);
  gt_ensure((1UL == gt_block_get_size(b)));
  gt_block_insert_element(b, (GtFeatureNode*) gn2);
  gt_ensure((2UL == gt_block_get_size(b)));

  /* test gt_block_set_range & gt_block_get_range */
  r_temp = gt_range_join(&r1, &r2);
  gt_block_set_range(b, r_temp);
  b_range = gt_block_get_range(b);
  gt_ensure((0 == gt_range_compare(&b_range, &r_temp)));
  gt_ensure((1 == gt_range_compare(&r2, &r_temp)));

  /* tests gt_block_set_caption & gt_block_get_caption */
  gt_block_set_caption(b, caption1);
  gt_ensure((0 == gt_str_cmp(gt_block_get_caption(b), caption1)));
  gt_ensure((0 != gt_str_cmp(gt_block_get_caption(b), caption2)));

  /* tests gt_block_set_strand & gt_block_get_range */
  s = gt_block_get_strand(b);
  gt_ensure((GT_STRAND_UNKNOWN == s));
  gt_block_set_strand(b, GT_STRAND_FORWARD);
  s = gt_block_get_strand(b);
  gt_ensure((GT_STRAND_FORWARD == s));

  /* test gt_block_get_max_height() */
  sty = gt_style_new(err);
  gt_ensure(gt_block_get_max_height(b, &height, sty, err) == 0);
  gt_ensure(!gt_error_is_set(testerr));
  gt_ensure(height == BAR_HEIGHT_DEFAULT);
  gt_style_set_num(sty, "exon", "bar_height", 42);
  gt_ensure(gt_block_get_max_height(b, &height, sty, err) == 0);
  gt_ensure(!gt_error_is_set(testerr));
  gt_ensure(height == 42);
  gt_style_set_num(sty, "gene", "bar_height", 23);
  gt_ensure(gt_block_get_max_height(b, &height, sty, err) == 0);
  gt_ensure(!gt_error_is_set(testerr));
  gt_ensure(height == 42);
  gt_style_unset(sty, "exon", "bar_height");
  gt_ensure(gt_block_get_max_height(b, &height, sty, err) == 0);
  gt_ensure(!gt_error_is_set(testerr));
  gt_ensure(height == 23);

  gt_str_delete(caption2);
  gt_str_delete(seqid);
  gt_element_delete(e1);
  gt_element_delete(e2);
  gt_block_delete(b);
  gt_style_delete(sty);
  gt_error_delete(testerr);
  gt_genome_node_delete(gn1);
  gt_genome_node_delete(gn2);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbp
testq %rdi, %rdi
je 0x8afcf
movq %rbp, %rdi
callq 0x34fea
testb %al, %al
jne 0x8b7bd
leaq 0x76d1e(%rip), %rdi     # 0x101cf4
callq 0x3b785
movq %rax, %rbx
leaq 0x66bfc(%rip), %rdi     # 0xf1be1
callq 0x3b785
movq %rax, %r12
leaq 0x66283(%rip), %rdi     # 0xf1277
callq 0x3b785
movq %rax, 0x20(%rsp)
callq 0x34f04
movq %rax, 0x18(%rsp)
movq $0xa, 0x68(%rsp)
movl $0x32, %eax
movq %rax, 0x70(%rsp)
movq $0x28, 0x48(%rsp)
movq %rax, 0x50(%rsp)
leaq 0x81690(%rip), %rsi     # 0x10c6c0
movl $0xa, %edx
movl $0x32, %ecx
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0x3f280
movq %rax, %r15
leaq 0x718a3(%rip), %rsi     # 0xfc8f2
movl $0x28, %edx
movl $0x32, %ecx
movq %rbx, 0x8(%rsp)
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0x3f280
movq %rax, %r13
movq %r15, %rdi
callq 0x8e084
movq %rax, 0x30(%rsp)
movq %r13, %rdi
callq 0x8e084
movq %rax, 0x28(%rsp)
callq 0x8a805
movq %rax, %rbx
movq %rax, %rdi
callq 0x8a9cc
testq %rax, %rax
je 0x8b0d7
leaq 0x580b7(%rip), %rsi     # 0xe3159
leaq 0x6afe0(%rip), %rdx     # 0xf6089
leaq 0x6afc6(%rip), %rcx     # 0xf6076
leaq 0x6ac8a(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1a3, %r9d            # imm = 0x1A3
xorl %eax, %eax
callq 0x34f1f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8a8b1
jmp 0x8b169
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8a8b1
movq %rbx, %rdi
callq 0x8a9cc
cmpq $0x1, %rax
jne 0x8b13d
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8a8b1
movq %rbx, %rdi
callq 0x8a9cc
movb $0x1, %r14b
cmpq $0x2, %rax
je 0x8b177
leaq 0x58046(%rip), %rsi     # 0xe3159
leaq 0x6afab(%rip), %rdx     # 0xf60c5
leaq 0x6af55(%rip), %rcx     # 0xf6076
leaq 0x6ac19(%rip), %r8      # 0xf5d41
xorl %r14d, %r14d
movq %rbp, %rdi
movl $0x1a7, %r9d            # imm = 0x1A7
xorl %eax, %eax
callq 0x34f1f
jmp 0x8b177
leaq 0x58015(%rip), %rsi     # 0xe3159
leaq 0x6af5c(%rip), %rdx     # 0xf60a7
leaq 0x6af24(%rip), %rcx     # 0xf6076
leaq 0x6abe8(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1a5, %r9d            # imm = 0x1A5
xorl %eax, %eax
callq 0x34f1f
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8a8b1
xorl %r14d, %r14d
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x7e2af
movq %rax, 0x38(%rsp)
movq %rdx, 0x40(%rsp)
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8aae4
movq %rbx, %rdi
callq 0x8a733
movq %rax, 0x58(%rsp)
movq %rdx, 0x60(%rsp)
testb %r14b, %r14b
je 0x8b287
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x7e09c
testl %eax, %eax
je 0x8b1f3
leaq 0x57f89(%rip), %rsi     # 0xe3159
leaq 0x6af0c(%rip), %rdx     # 0xf60e3
leaq 0x6ae98(%rip), %rcx     # 0xf6076
leaq 0x6ab5c(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1ad, %r9d            # imm = 0x1AD
jmp 0x8b280
leaq 0x48(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x7e09c
cmpl $0x1, %eax
jne 0x8b25b
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8aba7
movq %rbx, %rdi
callq 0x8a747
movq %rax, %rdi
movq %r12, %rsi
callq 0x3bc02
testl %eax, %eax
je 0x8b401
leaq 0x57f25(%rip), %rsi     # 0xe3159
leaq 0x6aef9(%rip), %rdx     # 0xf6134
leaq 0x6ae34(%rip), %rcx     # 0xf6076
leaq 0x6aaf8(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1b2, %r9d            # imm = 0x1B2
xorl %eax, %eax
callq 0x34f1f
jmp 0x8b292
leaq 0x57ef7(%rip), %rsi     # 0xe3159
leaq 0x6aea5(%rip), %rdx     # 0xf610e
leaq 0x6ae06(%rip), %rcx     # 0xf6076
leaq 0x6aaca(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1ae, %r9d            # imm = 0x1AE
xorl %eax, %eax
callq 0x34f1f
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8aba7
movq %rbx, %rdi
callq 0x8abc6
movb $0x1, %r12b
xorl %r14d, %r14d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x8abb7
movq %rbx, %rdi
callq 0x8abc6
testb %r12b, %r12b
jne 0x8b2f7
testl %eax, %eax
je 0x8b2f7
leaq 0x57e97(%rip), %rsi     # 0xe3159
leaq 0x6aeee(%rip), %rdx     # 0xf61b7
leaq 0x6ada6(%rip), %rcx     # 0xf6076
leaq 0x6aa6a(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1ba, %r9d            # imm = 0x1BA
xorl %eax, %eax
callq 0x34f1f
movq %rbp, %rdi
callq 0x52810
movq %rax, %r12
jmp 0x8b466
movq %rbp, %rdi
callq 0x52810
movq %rax, %r12
testb %r14b, %r14b
je 0x8b466
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x8abf5
testl %eax, %eax
je 0x8b34c
leaq 0x57e30(%rip), %rsi     # 0xe3159
leaq 0x6aea0(%rip), %rdx     # 0xf61d0
leaq 0x6ad3f(%rip), %rcx     # 0xf6076
leaq 0x6aa03(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1be, %r9d            # imm = 0x1BE
jmp 0x8b45f
movq 0x18(%rsp), %rdi
callq 0x34fea
testb %al, %al
je 0x8b384
leaq 0x57df8(%rip), %rsi     # 0xe3159
leaq 0x5975e(%rip), %rdx     # 0xe4ac6
leaq 0x6ad07(%rip), %rcx     # 0xf6076
leaq 0x6a9cb(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1bf, %r9d            # imm = 0x1BF
jmp 0x8b45f
movsd 0x10(%rsp), %xmm0
ucomisd 0x6191e(%rip), %xmm0    # 0xeccb0
jne 0x8b43a
jp 0x8b43a
leaq 0x7154d(%rip), %rsi     # 0xfc8f2
leaq 0x61c55(%rip), %rdx     # 0xed001
movsd 0x61904(%rip), %xmm0    # 0xeccb8
movq %r12, %rdi
callq 0x53956
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x8abf5
testl %eax, %eax
je 0x8b54f
leaq 0x57d7b(%rip), %rsi     # 0xe3159
leaq 0x6adeb(%rip), %rdx     # 0xf61d0
leaq 0x6ac8a(%rip), %rcx     # 0xf6076
leaq 0x6a94e(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1c2, %r9d            # imm = 0x1C2
jmp 0x8b654
movq %rbx, %rdi
callq 0x8a747
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x3bc02
testl %eax, %eax
je 0x8b525
movq %rbx, %rdi
callq 0x8abc6
cmpl $0x3, %eax
jne 0x8b587
movb $0x1, %r14b
xorl %r12d, %r12d
jmp 0x8b2a0
leaq 0x57d18(%rip), %rsi     # 0xe3159
leaq 0x6adbb(%rip), %rdx     # 0xf6203
leaq 0x6ac27(%rip), %rcx     # 0xf6076
leaq 0x6a8eb(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1c0, %r9d            # imm = 0x1C0
xorl %eax, %eax
callq 0x34f1f
leaq 0x71485(%rip), %rsi     # 0xfc8f2
leaq 0x61b8d(%rip), %rdx     # 0xed001
movsd 0x6183c(%rip), %xmm0    # 0xeccb8
movq %r12, %rdi
callq 0x53956
movq 0x8(%rsp), %rbp
leaq 0x81230(%rip), %rsi     # 0x10c6c0
leaq 0x61b6a(%rip), %rdx     # 0xed001
movsd 0x61821(%rip), %xmm0    # 0xeccc0
movq %r12, %rdi
callq 0x53956
leaq 0x71444(%rip), %rsi     # 0xfc8f2
leaq 0x61b4c(%rip), %rdx     # 0xed001
movq %r12, %rdi
callq 0x53ca3
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq 0x20(%rsp), %rdi
callq 0x3c87b
movq %rbp, %rdi
callq 0x3c87b
movq 0x30(%rsp), %rdi
callq 0x8e571
movq 0x28(%rsp), %rdi
callq 0x8e571
movq %rbx, %rdi
callq 0x8b7c2
movq %r12, %rdi
callq 0x53f50
movq 0x18(%rsp), %rdi
callq 0x35085
movq %r15, %rdi
callq 0x4210c
movq %r13, %rdi
callq 0x4210c
movl %r14d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x57c2d(%rip), %rsi     # 0xe3159
leaq 0x6ac36(%rip), %rdx     # 0xf6169
leaq 0x6ab3c(%rip), %rcx     # 0xf6076
leaq 0x6a800(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1b3, %r9d            # imm = 0x1B3
jmp 0x8b252
movq 0x18(%rsp), %rdi
callq 0x34fea
testb %al, %al
je 0x8b5be
leaq 0x57bf5(%rip), %rsi     # 0xe3159
leaq 0x5955b(%rip), %rdx     # 0xe4ac6
leaq 0x6ab04(%rip), %rcx     # 0xf6076
leaq 0x6a7c8(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1c3, %r9d            # imm = 0x1C3
jmp 0x8b654
leaq 0x57bcb(%rip), %rsi     # 0xe3159
leaq 0x6ac09(%rip), %rdx     # 0xf619e
leaq 0x6aada(%rip), %rcx     # 0xf6076
leaq 0x6a79e(%rip), %r8      # 0xf5d41
xorl %r14d, %r14d
movq %rbp, %rdi
movl $0x1b7, %r9d            # imm = 0x1B7
xorl %eax, %eax
callq 0x34f1f
movb $0x1, %r12b
jmp 0x8b2a0
movsd 0x10(%rsp), %xmm0
ucomisd 0x616ec(%rip), %xmm0    # 0xeccb8
jne 0x8b62f
jp 0x8b62f
leaq 0x810e9(%rip), %rsi     # 0x10c6c0
leaq 0x61a23(%rip), %rdx     # 0xed001
movsd 0x616da(%rip), %xmm0    # 0xeccc0
movq %r12, %rdi
callq 0x53956
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x8abf5
testl %eax, %eax
je 0x8b660
leaq 0x57b4d(%rip), %rsi     # 0xe3159
leaq 0x6abbd(%rip), %rdx     # 0xf61d0
leaq 0x6aa5c(%rip), %rcx     # 0xf6076
leaq 0x6a720(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1c6, %r9d            # imm = 0x1C6
jmp 0x8b726
leaq 0x57b23(%rip), %rsi     # 0xe3159
leaq 0x6abe3(%rip), %rdx     # 0xf6220
leaq 0x6aa32(%rip), %rcx     # 0xf6076
leaq 0x6a6f6(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1c4, %r9d            # imm = 0x1C4
xorl %eax, %eax
callq 0x34f1f
jmp 0x8b484
movq 0x18(%rsp), %rdi
callq 0x34fea
testb %al, %al
je 0x8b698
leaq 0x57ae4(%rip), %rsi     # 0xe3159
leaq 0x5944a(%rip), %rdx     # 0xe4ac6
leaq 0x6a9f3(%rip), %rcx     # 0xf6076
leaq 0x6a6b7(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1c7, %r9d            # imm = 0x1C7
jmp 0x8b726
movsd 0x10(%rsp), %xmm0
ucomisd 0x61612(%rip), %xmm0    # 0xeccb8
jne 0x8b701
jp 0x8b701
leaq 0x71241(%rip), %rsi     # 0xfc8f2
leaq 0x61949(%rip), %rdx     # 0xed001
movq %r12, %rdi
callq 0x53ca3
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
movq %rbp, %rcx
callq 0x8abf5
testl %eax, %eax
je 0x8b737
leaq 0x57a7b(%rip), %rsi     # 0xe3159
leaq 0x6aaeb(%rip), %rdx     # 0xf61d0
leaq 0x6a98a(%rip), %rcx     # 0xf6076
leaq 0x6a64e(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1ca, %r9d            # imm = 0x1CA
jmp 0x8b7a6
leaq 0x57a51(%rip), %rsi     # 0xe3159
leaq 0x6ab11(%rip), %rdx     # 0xf6220
leaq 0x6a960(%rip), %rcx     # 0xf6076
leaq 0x6a624(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1c8, %r9d            # imm = 0x1C8
xorl %eax, %eax
callq 0x34f1f
movq 0x8(%rsp), %rbp
jmp 0x8b4a7
movq 0x18(%rsp), %rdi
callq 0x34fea
testb %al, %al
je 0x8b76c
leaq 0x57a0d(%rip), %rsi     # 0xe3159
leaq 0x59373(%rip), %rdx     # 0xe4ac6
leaq 0x6a91c(%rip), %rcx     # 0xf6076
leaq 0x6a5e0(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1cb, %r9d            # imm = 0x1CB
jmp 0x8b7a6
movsd 0x10(%rsp), %xmm0
xorl %r14d, %r14d
ucomisd 0x61543(%rip), %xmm0    # 0xeccc0
jne 0x8b781
jnp 0x8b7b3
leaq 0x579d1(%rip), %rsi     # 0xe3159
leaq 0x6aa9e(%rip), %rdx     # 0xf622d
leaq 0x6a8e0(%rip), %rcx     # 0xf6076
leaq 0x6a5a4(%rip), %r8      # 0xf5d41
movq %rbp, %rdi
movl $0x1cc, %r9d            # imm = 0x1CC
xorl %eax, %eax
callq 0x34f1f
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq 0x8(%rsp), %rbp
jmp 0x8b4c3
callq 0x213dd