// File: /workspace/github_c_makefile_star2_O1/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 0x8e712
movq %rbp, %rdi
callq 0x3566a
testb %al, %al
jne 0x8ea5a
leaq 0x38(%rsp), %r15
movq $0xa, (%r15)
movl $0x32, %eax
movq %rax, 0x8(%r15)
movq $0x14, (%rsp)
movq %rax, 0x8(%rsp)
leaq 0x73645(%rip), %rdi     # 0x101d80
callq 0x3c03d
movq %rax, %rbx
movq (%r15), %rdx
movq 0x8(%r15), %rcx
leaq 0x6e231(%rip), %r12     # 0xfc982
movq %rax, %rdi
movq %r12, %rsi
movl $0x2, %r8d
callq 0x3fbf0
movq %rax, %r14
movq (%rsp), %rdx
movq 0x8(%rsp), %rcx
movq %rbx, 0x18(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
movl $0x2, %r8d
callq 0x3fbf0
movq %rax, %r13
movq %r14, %rdi
callq 0x8e5a8
movq %rax, %r12
movq %r14, 0x10(%rsp)
movq %r14, %rdi
callq 0x8e5a8
movq %rax, %rbx
movq %r13, 0x20(%rsp)
movq %r13, %rdi
callq 0x8e5a8
movq %rax, %r14
movq %r12, %rdi
callq 0x8e67d
leaq 0x28(%rsp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %r15, %rdi
callq 0x7df58
testl %eax, %eax
je 0x8e7fc
leaq 0x549a0(%rip), %rsi     # 0xe3179
leaq 0x681f5(%rip), %rdx     # 0xf69d5
leaq 0x681d9(%rip), %rcx     # 0xf69c0
leaq 0x680ee(%rip), %r8      # 0xf68dc
movq %rbp, %rdi
movl $0x92, %r9d
jmp 0x8e883
movq %rsp, %rdi
leaq 0x28(%rsp), %rsi
callq 0x7df58
cmpl $0x1, %eax
jne 0x8e85e
movq %r12, %rdi
callq 0x8e691
leaq 0x6e165(%rip), %rdi     # 0xfc982
movq %rax, %rsi
callq 0xb890
testl %eax, %eax
movq %rbx, %r13
je 0x8e8f9
leaq 0x54942(%rip), %rsi     # 0xe3179
leaq 0x681bd(%rip), %rdx     # 0xf69fb
leaq 0x6817b(%rip), %rcx     # 0xf69c0
leaq 0x68090(%rip), %r8      # 0xf68dc
movq %rbp, %rdi
movl $0x96, %r9d
xorl %eax, %eax
callq 0x3559f
jmp 0x8e88d
leaq 0x54914(%rip), %rsi     # 0xe3179
leaq 0x67902(%rip), %rdx     # 0xf616e
leaq 0x6814d(%rip), %rcx     # 0xf69c0
leaq 0x68062(%rip), %r8      # 0xf68dc
movq %rbp, %rdi
movl $0x93, %r9d
xorl %eax, %eax
callq 0x3559f
movq %rbx, %r13
leaq 0x68193(%rip), %rsi     # 0xf6a27
movq %r12, %rdi
callq 0x8e647
leaq 0x68184(%rip), %rsi     # 0xf6a27
movq %r13, %rdi
callq 0x8e647
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq %r12, %rdi
callq 0x8ea90
movq %r13, %rdi
callq 0x8ea90
movq %r14, %rdi
callq 0x8ea90
movq 0x10(%rsp), %rdi
callq 0x42ade
movq 0x20(%rsp), %rdi
callq 0x42ade
movq 0x18(%rsp), %rdi
callq 0x3d1eb
movl %r15d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x8e691
leaq 0x6811f(%rip), %rdi     # 0xf6a27
movq %rax, %rsi
callq 0xb890
testl %eax, %eax
je 0x8e96e
leaq 0x6810c(%rip), %r15     # 0xf6a27
movq %r12, %rdi
movq %r15, %rsi
callq 0x8e647
movq %r12, %rdi
callq 0x8e691
movq %r15, %rdi
movq %rax, %rsi
callq 0xb890
testl %eax, %eax
je 0x8e998
leaq 0x54835(%rip), %rsi     # 0xe3179
leaq 0x680e3(%rip), %rdx     # 0xf6a2e
leaq 0x6806e(%rip), %rcx     # 0xf69c0
leaq 0x67f83(%rip), %r8      # 0xf68dc
movq %rbp, %rdi
movl $0x99, %r9d
xorl %eax, %eax
callq 0x3559f
jmp 0x8e89c
leaq 0x54804(%rip), %rsi     # 0xe3179
leaq 0x680b3(%rip), %rdx     # 0xf6a2f
leaq 0x6803d(%rip), %rcx     # 0xf69c0
leaq 0x67f52(%rip), %r8      # 0xf68dc
movq %rbp, %rdi
movl $0x97, %r9d
jmp 0x8e855
leaq 0x68088(%rip), %rsi     # 0xf6a27
movq %r13, %rdi
callq 0x8e647
movq %r12, %rdi
movq %r13, %rsi
callq 0x8ea5f
testb %al, %al
je 0x8e9ec
movq %r12, %rdi
movq %r14, %rsi
callq 0x8ea5f
testb %al, %al
je 0x8ea1d
leaq 0x547ad(%rip), %rsi     # 0xe3179
leaq 0x680a3(%rip), %rdx     # 0xf6a76
leaq 0x67fe6(%rip), %rcx     # 0xf69c0
leaq 0x67efb(%rip), %r8      # 0xf68dc
movq %rbp, %rdi
movl $0x9e, %r9d
jmp 0x8ea11
leaq 0x54786(%rip), %rsi     # 0xe3179
leaq 0x68062(%rip), %rdx     # 0xf6a5c
leaq 0x67fbf(%rip), %rcx     # 0xf69c0
leaq 0x67ed4(%rip), %r8      # 0xf68dc
movq %rbp, %rdi
movl $0x9d, %r9d
xorl %eax, %eax
callq 0x3559f
jmp 0x8e8ab
movq %r13, %rdi
movq %r14, %rsi
callq 0x8ea5f
xorl %r15d, %r15d
testb %al, %al
je 0x8e8b1
leaq 0x5473f(%rip), %rsi     # 0xe3179
leaq 0x68050(%rip), %rdx     # 0xf6a91
leaq 0x67f78(%rip), %rcx     # 0xf69c0
leaq 0x67e8d(%rip), %r8      # 0xf68dc
movq %rbp, %rdi
movl $0x9f, %r9d
jmp 0x8ea11
callq 0x21b70