// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/element.c
// Function: gt_element_unit_test
int gt_element_unit_test(GtError *err)
{
  GtRange r1, r2, r_temp;
  GtGenomeNode *gn, *gn2;
  GtElement *e, *e2, *e3;
  GtStr *seqid;
  int had_err = 0;
  gt_error_check(err);

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

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

  seqid = gt_str_new_cstr("seqid");
  gn = gt_feature_node_new(seqid, gt_ft_exon, r1.start, r1.end, GT_STRAND_BOTH);
  gn2 = gt_feature_node_new(seqid, gt_ft_exon, r2.start, r2.end,
                             GT_STRAND_BOTH);

  e = gt_element_new((GtFeatureNode*) gn);
  e2 = gt_element_new((GtFeatureNode*)gn);
  e3 = gt_element_new((GtFeatureNode*)gn2);

  /* tests gt_element_get_range */
  r_temp = gt_element_get_range(e);
  gt_ensure((0 == gt_range_compare(&r1, &r_temp)));
  gt_ensure((1 == gt_range_compare(&r2, &r_temp)));

  /* tests gt_element_get_type and gt_element_set_type*/
  gt_ensure(!strcmp(gt_ft_exon, gt_element_get_type(e)));
  gt_ensure(strcmp(gt_ft_intron, gt_element_get_type(e)));
  gt_element_set_type(e, gt_ft_intron);
  gt_ensure(!strcmp(gt_ft_intron, gt_element_get_type(e)));
  gt_element_set_type(e2, gt_ft_intron);

  /* tests elements_are_equal */
  gt_ensure(elements_are_equal(e, e2));
  gt_ensure(!elements_are_equal(e, e3));
  gt_ensure(!elements_are_equal(e2, e3));

  gt_element_delete(e);
  gt_element_delete(e2);
  gt_element_delete(e3);
  gt_genome_node_delete(gn);
  gt_genome_node_delete(gn2);
  gt_str_delete(seqid);

  return had_err;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbp
testq %rdi, %rdi
je 0x6f70c
movq %rbp, %rdi
callq 0xc103
testb %al, %al
jne 0x6fa41
leaq 0x38(%rsp), %r15
movq $0xa, (%r15)
pushq $0x32
popq %r12
movq %r12, 0x8(%r15)
movq $0x14, 0x18(%rsp)
movq %r12, 0x20(%rsp)
leaq 0x7b83b(%rip), %rdi     # 0xeaf70
callq 0x13da9
movq %rax, %r14
leaq 0x764da(%rip), %r13     # 0xe5c1e
pushq $0xa
popq %rdx
pushq $0x2
popq %rbx
movq %rax, %rdi
movq %r13, %rsi
movq %r12, %rcx
movl %ebx, %r8d
callq 0x18cbb
pushq $0x14
popq %rdx
movq %r14, 0x10(%rsp)
movq %r14, %rdi
movq %rax, %r14
movq %r13, %rsi
movq %r12, %rcx
movl %ebx, %r8d
callq 0x18cbb
movq %rax, %rbx
movq %r14, %rdi
callq 0x6f3d4
movq %rax, %r12
movq %r14, %rdi
callq 0x6f3d4
movq %rax, %r13
movq %rbx, %rdi
callq 0x6f3d4
movq %rax, 0x8(%rsp)
movq %r12, %rdi
callq 0x6f551
leaq 0x28(%rsp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %r15, %rdi
callq 0x5cec8
testl %eax, %eax
je 0x6f7e4
leaq 0x5c995(%rip), %rsi     # 0xcc159
leaq 0x704df(%rip), %rdx     # 0xdfcaa
leaq 0x704c3(%rip), %rcx     # 0xdfc95
leaq 0x703d8(%rip), %r8      # 0xdfbb1
movq %rbp, %rdi
movl $0x92, %r9d
jmp 0x6f863
leaq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x5cec8
cmpl $0x1, %eax
jne 0x6f83e
movq %r12, %rdi
callq 0x6f596
leaq 0x76417(%rip), %rdi     # 0xe5c1e
movq %rax, %rsi
callq 0xb880
testl %eax, %eax
je 0x6f8d2
leaq 0x5c93b(%rip), %rsi     # 0xcc159
leaq 0x704ab(%rip), %rdx     # 0xdfcd0
leaq 0x70469(%rip), %rcx     # 0xdfc95
leaq 0x7037e(%rip), %r8      # 0xdfbb1
movq %rbp, %rdi
movl $0x96, %r9d
jmp 0x6f863
leaq 0x5c914(%rip), %rsi     # 0xcc159
leaq 0x6fc22(%rip), %rdx     # 0xdf46e
leaq 0x70442(%rip), %rcx     # 0xdfc95
leaq 0x70357(%rip), %r8      # 0xdfbb1
movq %rbp, %rdi
movl $0x93, %r9d
xorl %eax, %eax
callq 0xc007
leaq 0x7048b(%rip), %rsi     # 0xdfcfc
movq %r12, %rdi
callq 0x6f488
leaq 0x7047c(%rip), %rsi     # 0xdfcfc
movq %r13, %rdi
callq 0x6f488
pushq $-0x1
popq %r15
movq %r12, %rdi
callq 0x6fad9
movq %r13, %rdi
callq 0x6fad9
movq 0x8(%rsp), %rdi
callq 0x6fad9
movq %r14, %rdi
callq 0x1d1e3
movq %rbx, %rdi
callq 0x1d1e3
movq 0x10(%rsp), %rdi
callq 0x152db
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x6f596
leaq 0x7041b(%rip), %rdi     # 0xdfcfc
movq %rax, %rsi
callq 0xb880
testl %eax, %eax
je 0x6f94d
movq %rbx, %r15
leaq 0x70405(%rip), %rbx     # 0xdfcfc
movq %r12, %rdi
movq %rbx, %rsi
callq 0x6f488
movq %r12, %rdi
callq 0x6f596
movq %rbx, %rdi
movq %rax, %rsi
callq 0xb880
testl %eax, %eax
je 0x6f977
leaq 0x5c839(%rip), %rsi     # 0xcc159
leaq 0x703dc(%rip), %rdx     # 0xdfd03
leaq 0x70367(%rip), %rcx     # 0xdfc95
leaq 0x7027c(%rip), %r8      # 0xdfbb1
movq %rbp, %rdi
movl $0x99, %r9d
xorl %eax, %eax
callq 0xc007
movq %r15, %rbx
jmp 0x6f879
leaq 0x5c805(%rip), %rsi     # 0xcc159
leaq 0x703a9(%rip), %rdx     # 0xdfd04
leaq 0x70333(%rip), %rcx     # 0xdfc95
leaq 0x70248(%rip), %r8      # 0xdfbb1
movq %rbp, %rdi
movl $0x97, %r9d
jmp 0x6f863
leaq 0x7037e(%rip), %rsi     # 0xdfcfc
movq %r13, %rdi
callq 0x6f488
movq %r12, %rdi
movq %r13, %rsi
callq 0x6fa77
testb %al, %al
movq %r15, %rbx
je 0x6f9d3
movq %r12, %rdi
movq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x6fa77
testb %al, %al
je 0x6fa04
leaq 0x5c7a6(%rip), %rsi     # 0xcc159
leaq 0x70391(%rip), %rdx     # 0xdfd4b
leaq 0x702d4(%rip), %rcx     # 0xdfc95
leaq 0x701e9(%rip), %r8      # 0xdfbb1
movq %rbp, %rdi
movl $0x9e, %r9d
jmp 0x6f9f8
leaq 0x5c77f(%rip), %rsi     # 0xcc159
leaq 0x70350(%rip), %rdx     # 0xdfd31
leaq 0x702ad(%rip), %rcx     # 0xdfc95
leaq 0x701c2(%rip), %r8      # 0xdfbb1
movq %rbp, %rdi
movl $0x9d, %r9d
xorl %eax, %eax
callq 0xc007
jmp 0x6f888
movq %r13, %rdi
movq %r15, %rsi
callq 0x6fa77
xorl %r15d, %r15d
testb %al, %al
je 0x6f88c
leaq 0x5c738(%rip), %rsi     # 0xcc159
leaq 0x7033e(%rip), %rdx     # 0xdfd66
leaq 0x70266(%rip), %rcx     # 0xdfc95
leaq 0x7017b(%rip), %r8      # 0xdfbb1
movq %rbp, %rdi
movl $0x9f, %r9d
jmp 0x6f9f8
movq 0xbe570(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x5a614(%rip), %rsi     # 0xca066
leaq 0x5ac00(%rip), %rdx     # 0xca659
leaq 0x70235(%rip), %rcx     # 0xdfc95
leaq 0x7014a(%rip), %r8      # 0xdfbb1
pushq $0x7f
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300