// File: /workspace/github_c_makefile_star2_O3/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 0x8e1ee
movq %rbp, %rdi
callq 0x34fea
testb %al, %al
jne 0x8e53b
leaq 0x38(%rsp), %r15
movq $0xa, (%r15)
movl $0x32, %eax
movq %rax, 0x8(%r15)
movq $0x14, 0x18(%rsp)
movq %rax, 0x20(%rsp)
leaq 0x73adc(%rip), %rdi     # 0x101cf4
callq 0x3b785
movq %rax, %rbx
leaq 0x6e6cb(%rip), %r12     # 0xfc8f2
movl $0xa, %edx
movl $0x32, %ecx
movq %rax, %rdi
movq %r12, %rsi
movl $0x2, %r8d
callq 0x3f280
movq %rax, %r14
movl $0x14, %edx
movl $0x32, %ecx
movq %rbx, 0x8(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movl $0x2, %r8d
callq 0x3f280
movq %rax, %r13
movq %r14, %rdi
callq 0x8e084
movq %rax, %r12
movq %r14, (%rsp)
movq %r14, %rdi
callq 0x8e084
movq %rax, %rbx
movq %r13, 0x10(%rsp)
movq %r13, %rdi
callq 0x8e084
movq %rax, %r14
movq %r12, %rdi
callq 0x8e159
leaq 0x28(%rsp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %r15, %rdi
callq 0x7e09c
testl %eax, %eax
je 0x8e2dc
leaq 0x54ea0(%rip), %rsi     # 0xe3159
leaq 0x6869a(%rip), %rdx     # 0xf695a
leaq 0x6867e(%rip), %rcx     # 0xf6945
leaq 0x68593(%rip), %r8      # 0xf6861
movq %rbp, %rdi
movl $0x92, %r9d
jmp 0x8e365
leaq 0x18(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x7e09c
cmpl $0x1, %eax
jne 0x8e340
movq %r12, %rdi
callq 0x8e16d
leaq 0x6e5f3(%rip), %rdi     # 0xfc8f2
movq %rax, %rsi
callq 0xb890
testl %eax, %eax
movq %rbx, %r13
je 0x8e3da
leaq 0x54e40(%rip), %rsi     # 0xe3159
leaq 0x68660(%rip), %rdx     # 0xf6980
leaq 0x6861e(%rip), %rcx     # 0xf6945
leaq 0x68533(%rip), %r8      # 0xf6861
movq %rbp, %rdi
movl $0x96, %r9d
xorl %eax, %eax
callq 0x34f1f
jmp 0x8e36f
leaq 0x54e12(%rip), %rsi     # 0xe3159
leaq 0x67dc0(%rip), %rdx     # 0xf610e
leaq 0x685f0(%rip), %rcx     # 0xf6945
leaq 0x68505(%rip), %r8      # 0xf6861
movq %rbp, %rdi
movl $0x93, %r9d
xorl %eax, %eax
callq 0x34f1f
movq %rbx, %r13
leaq 0x68636(%rip), %rsi     # 0xf69ac
movq %r12, %rdi
callq 0x8e123
leaq 0x68627(%rip), %rsi     # 0xf69ac
movq %r13, %rdi
callq 0x8e123
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq %r12, %rdi
callq 0x8e571
movq %r13, %rdi
callq 0x8e571
movq %r14, %rdi
callq 0x8e571
movq (%rsp), %rdi
callq 0x4210c
movq 0x10(%rsp), %rdi
callq 0x4210c
movq 0x8(%rsp), %rdi
callq 0x3c87b
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x8e16d
leaq 0x685c3(%rip), %rdi     # 0xf69ac
movq %rax, %rsi
callq 0xb890
testl %eax, %eax
je 0x8e44f
leaq 0x685b0(%rip), %r15     # 0xf69ac
movq %r12, %rdi
movq %r15, %rsi
callq 0x8e123
movq %r12, %rdi
callq 0x8e16d
movq %r15, %rdi
movq %rax, %rsi
callq 0xb890
testl %eax, %eax
je 0x8e479
leaq 0x54d34(%rip), %rsi     # 0xe3159
leaq 0x68587(%rip), %rdx     # 0xf69b3
leaq 0x68512(%rip), %rcx     # 0xf6945
leaq 0x68427(%rip), %r8      # 0xf6861
movq %rbp, %rdi
movl $0x99, %r9d
xorl %eax, %eax
callq 0x34f1f
jmp 0x8e37e
leaq 0x54d03(%rip), %rsi     # 0xe3159
leaq 0x68557(%rip), %rdx     # 0xf69b4
leaq 0x684e1(%rip), %rcx     # 0xf6945
leaq 0x683f6(%rip), %r8      # 0xf6861
movq %rbp, %rdi
movl $0x97, %r9d
jmp 0x8e337
leaq 0x6852c(%rip), %rsi     # 0xf69ac
movq %r13, %rdi
callq 0x8e123
movq %r12, %rdi
movq %r13, %rsi
callq 0x8e540
testb %al, %al
je 0x8e4cd
movq %r12, %rdi
movq %r14, %rsi
callq 0x8e540
testb %al, %al
je 0x8e4fe
leaq 0x54cac(%rip), %rsi     # 0xe3159
leaq 0x68547(%rip), %rdx     # 0xf69fb
leaq 0x6848a(%rip), %rcx     # 0xf6945
leaq 0x6839f(%rip), %r8      # 0xf6861
movq %rbp, %rdi
movl $0x9e, %r9d
jmp 0x8e4f2
leaq 0x54c85(%rip), %rsi     # 0xe3159
leaq 0x68506(%rip), %rdx     # 0xf69e1
leaq 0x68463(%rip), %rcx     # 0xf6945
leaq 0x68378(%rip), %r8      # 0xf6861
movq %rbp, %rdi
movl $0x9d, %r9d
xorl %eax, %eax
callq 0x34f1f
jmp 0x8e38d
movq %r13, %rdi
movq %r14, %rsi
callq 0x8e540
xorl %r15d, %r15d
testb %al, %al
je 0x8e393
leaq 0x54c3e(%rip), %rsi     # 0xe3159
leaq 0x684f4(%rip), %rdx     # 0xf6a16
leaq 0x6841c(%rip), %rcx     # 0xf6945
leaq 0x68331(%rip), %r8      # 0xf6861
movq %rbp, %rdi
movl $0x9f, %r9d
jmp 0x8e4f2
callq 0x21a98