// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/stream_evaluator.c
// Function: gt_stream_evaluator_evaluate
int gt_stream_evaluator_evaluate(GtStreamEvaluator *se, bool verbose,
                                 bool exondiff, bool exondiffcollapsed,
                                 GtNodeVisitor *nv, GtError *err)
{
  GtGenomeNode *gn;
  GtFeatureNode *fn;
  Slot *slot;
  ProcessRealFeatureInfo real_info;
  ProcessPredictedFeatureInfo predicted_info;
  int had_err;

  gt_error_check(err);
  gt_assert(se);

  /* init */
  real_info.nuceval = se->nuceval;
  real_info.verbose = verbose;
  predicted_info.nuceval = se->nuceval;
  predicted_info.verbose = verbose;
  predicted_info.exondiff = exondiff;
  predicted_info.exondiffcollapsed = exondiffcollapsed;
  predicted_info.LTRdelta = se->LTRdelta;
  predicted_info.mRNA_gene_evaluator = se->mRNA_gene_evaluator;
  predicted_info.CDS_gene_evaluator = se->CDS_gene_evaluator;
  predicted_info.mRNA_mRNA_evaluator = se->mRNA_mRNA_evaluator;
  predicted_info.CDS_mRNA_evaluator = se->CDS_mRNA_evaluator;
  predicted_info.LTR_evaluator  = se->LTR_evaluator;
  predicted_info.mRNA_exon_evaluators = se->mRNA_exon_evaluators;
  predicted_info.mRNA_exon_evaluators_collapsed =
    se->mRNA_exon_evaluators_collapsed;
  predicted_info.CDS_exon_evaluators = se->CDS_exon_evaluators;
  predicted_info.CDS_exon_evaluators_collapsed =
    se->CDS_exon_evaluators_collapsed;
  predicted_info.wrong_genes = &se->wrong_genes;
  predicted_info.wrong_mRNAs = &se->wrong_mRNAs;
  predicted_info.wrong_LTRs  = &se->wrong_LTRs;

  /* process the reference stream completely */
  while (!(had_err = gt_node_stream_next(se->reference, &gn, err)) && gn) {
    if (gt_region_node_try_cast(gn)) {
      /* each sequence region gets its own ``slot'' */
      if (!(slot = gt_hashmap_get(se->slots,
                                  gt_str_get(gt_genome_node_get_seqid(gn))))) {
        slot = slot_new(se->nuceval, gt_genome_node_get_range(gn));
        gt_hashmap_add(se->slots,
                       gt_cstr_dup(gt_str_get(gt_genome_node_get_seqid(gn))),
                       slot);
      }
      gt_assert(slot);
    }
    /* we consider only genome features */
    if ((fn = gt_feature_node_try_cast(gn))) {
      /* each sequence must have its own ``slot'' at this point */
      slot = gt_hashmap_get(se->slots,
                            gt_str_get(gt_genome_node_get_seqid(gn)));
      gt_assert(slot);
      /* store the exons */
      real_info.slot = slot;
      gt_feature_node_determine_transcripttypes(fn);
      had_err = gt_feature_node_traverse_children(fn, &real_info,
                                                  process_real_feature, false,
                                                  NULL);
      gt_assert(!had_err); /* cannot happen, process_real_feature() is sane */
    }
    if (nv)
      gt_genome_node_accept(gn, nv, err);
    gt_genome_node_delete(gn);
  }

  /* set the actuals and sort them */
  if (!had_err) {
    had_err = gt_hashmap_foreach(se->slots, set_actuals_and_sort_them, se,
                                 NULL);
    gt_assert(!had_err); /* set_actuals_and_sort_them() is sane */
  }

  /* process the prediction stream */
  if (!had_err) {
    while (!had_err &&
             !(had_err = gt_node_stream_next(se->prediction, &gn, err)) &&
                gn) {
      /* we consider only genome features */
      if ((fn = gt_feature_node_try_cast(gn))) {
        /* get (real) slot */
        slot = gt_hashmap_get(se->slots,
                              gt_str_get(gt_genome_node_get_seqid(gn)));
        if (slot) {
          predicted_info.slot = slot;
          gt_feature_node_determine_transcripttypes(fn);
          had_err = gt_feature_node_traverse_children(fn, &predicted_info,
                                                      process_predicted_feature,
                                                      false, NULL);
          gt_assert(!had_err); /* cannot happen, process_predicted_feature() is
                               sane */
        }
        else {
          /* we got no (real) slot */
          gt_warning("sequence id \"%s\" (with predictions) not given in "
                     "reference", gt_str_get(gt_genome_node_get_seqid(gn)));
        }
      }
      if (nv)
        had_err = gt_genome_node_accept(gn, nv, err);
      gt_genome_node_delete(gn);
    }
  }

  /* determine the missing mRNAs */
  if (!had_err) {
    had_err = gt_hashmap_foreach(se->slots, determine_missing_features, se,
                                 NULL);
    gt_assert(!had_err); /* determine_missing_features() is sane */
  }

  /* compute the nucleotides values */
  if (!had_err && se->nuceval) {
    had_err = gt_hashmap_foreach(se->slots, compute_nucleotides_values, se,
                                 NULL);
    gt_assert(!had_err); /* compute_nucleotides_values() is sane */
  }

  return had_err;
}

// Assembly:
subq $0x118, %rsp            # imm = 0x118
movb %cl, %al
movb %dl, %cl
movb %sil, %dl
movq %rdi, 0x110(%rsp)
andb $0x1, %dl
movb %dl, 0x10f(%rsp)
andb $0x1, %cl
movb %cl, 0x10e(%rsp)
andb $0x1, %al
movb %al, 0x10d(%rsp)
movq %r8, 0x100(%rsp)
movq %r9, 0xf8(%rsp)
cmpq $0x0, 0xf8(%rsp)
je 0xec699
movq 0xf8(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0xec661
jmp 0xec699
movq 0xc7970(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x719f4(%rip), %rsi     # 0x15e066
leaq 0x71fcf(%rip), %rdx     # 0x15e648
leaq 0x8df48(%rip), %rcx     # 0x17a5c8
leaq 0x8df21(%rip), %r8      # 0x17a5a8
movl $0x54c, %r9d            # imm = 0x54C
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xec69b
jmp 0xec69d
cmpq $0x0, 0x110(%rsp)
jne 0xec6e0
movq 0xc7929(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x719ad(%rip), %rsi     # 0x15e066
leaq 0x762e2(%rip), %rdx     # 0x1629a2
leaq 0x8df01(%rip), %rcx     # 0x17a5c8
leaq 0x8deda(%rip), %r8      # 0x17a5a8
movl $0x54d, %r9d            # imm = 0x54D
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xec6e2
movq 0x110(%rsp), %rax
movb 0x10(%rax), %al
andb $0x1, %al
movb %al, 0xd8(%rsp)
movb 0x10f(%rsp), %al
andb $0x1, %al
movb %al, 0xd9(%rsp)
movq 0x110(%rsp), %rax
movb 0x10(%rax), %al
andb $0x1, %al
movb %al, 0x60(%rsp)
movb 0x10f(%rsp), %al
andb $0x1, %al
movb %al, 0x61(%rsp)
movb 0x10e(%rsp), %al
andb $0x1, %al
movb %al, 0x62(%rsp)
movb 0x10d(%rsp), %al
andb $0x1, %al
movb %al, 0x63(%rsp)
movq 0x110(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x110(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x110(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x78(%rsp)
movq 0x110(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x80(%rsp)
movq 0x110(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, 0x88(%rsp)
movq 0x110(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x90(%rsp)
movq 0x110(%rsp), %rax
movq 0x50(%rax), %rax
movq %rax, 0x98(%rsp)
movq 0x110(%rsp), %rax
movq 0x58(%rax), %rax
movq %rax, 0xa0(%rsp)
movq 0x110(%rsp), %rax
movq 0x60(%rax), %rax
movq %rax, 0xa8(%rsp)
movq 0x110(%rsp), %rax
movq 0x68(%rax), %rax
movq %rax, 0xb0(%rsp)
movq 0x110(%rsp), %rax
addq $0x78, %rax
movq %rax, 0xb8(%rsp)
movq 0x110(%rsp), %rax
addq $0x88, %rax
movq %rax, 0xc0(%rsp)
movq 0x110(%rsp), %rax
addq $0x98, %rax
movq %rax, 0xc8(%rsp)
movq 0x110(%rsp), %rax
movq (%rax), %rdi
movq 0xf8(%rsp), %rdx
leaq 0xf0(%rsp), %rsi
callq 0x34790
movl %eax, %ecx
movl %ecx, 0x54(%rsp)
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x3f(%rsp)
jne 0xec87e
cmpq $0x0, 0xf0(%rsp)
setne %al
movb %al, 0x3f(%rsp)
movb 0x3f(%rsp), %al
testb $0x1, %al
jne 0xec88b
jmp 0xecb1c
movq 0xf0(%rsp), %rdi
callq 0x35ee0
cmpq $0x0, %rax
je 0xec9bc
movq 0x110(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0xf0(%rsp), %rdi
callq 0x258a0
movq %rax, %rdi
callq 0x19940
movq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x86470
movq %rax, 0xe0(%rsp)
cmpq $0x0, %rax
jne 0xec973
movq 0x110(%rsp), %rax
movb 0x10(%rax), %al
movb %al, 0x27(%rsp)
movq 0xf0(%rsp), %rdi
callq 0x259f0
movq %rax, %rcx
movb 0x27(%rsp), %al
movq %rcx, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
andb $0x1, %al
movzbl %al, %edi
callq 0xece50
movq %rax, 0xe0(%rsp)
movq 0x110(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0xf0(%rsp), %rdi
callq 0x258a0
movq %rax, %rdi
callq 0x19940
movq %rax, %rdi
callq 0x7c400
movq 0x28(%rsp), %rdi
movq %rax, %rsi
movq 0xe0(%rsp), %rdx
callq 0x86510
jmp 0xec975
cmpq $0x0, 0xe0(%rsp)
jne 0xec9b8
movq 0xc7651(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x716d5(%rip), %rsi     # 0x15e066
leaq 0x8dc4d(%rip), %rdx     # 0x17a5e5
leaq 0x8dc29(%rip), %rcx     # 0x17a5c8
leaq 0x8dc02(%rip), %r8      # 0x17a5a8
movl $0x571, %r9d            # imm = 0x571
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xec9ba
jmp 0xec9bc
movq 0xf0(%rsp), %rdi
callq 0x241f0
movq %rax, 0xe8(%rsp)
cmpq $0x0, %rax
je 0xecae2
movq 0x110(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0xf0(%rsp), %rdi
callq 0x258a0
movq %rax, %rdi
callq 0x19940
movq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x86470
movq %rax, 0xe0(%rsp)
cmpq $0x0, 0xe0(%rsp)
jne 0xeca59
movq 0xc75b0(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x71634(%rip), %rsi     # 0x15e066
leaq 0x8dbac(%rip), %rdx     # 0x17a5e5
leaq 0x8db88(%rip), %rcx     # 0x17a5c8
leaq 0x8db61(%rip), %r8      # 0x17a5a8
movl $0x578, %r9d            # imm = 0x578
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xeca5b
movq 0xe0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0xe8(%rsp), %rdi
callq 0x22610
movq 0xe8(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x5f1(%rip), %rdx       # 0xed080
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %r8d
callq 0x22090
movl %eax, 0x54(%rsp)
cmpl $0x0, 0x54(%rsp)
je 0xecade
movq 0xc752b(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x715af(%rip), %rsi     # 0x15e066
leaq 0x7a500(%rip), %rdx     # 0x166fbe
leaq 0x8db03(%rip), %rcx     # 0x17a5c8
leaq 0x8dadc(%rip), %r8      # 0x17a5a8
movl $0x57f, %r9d            # imm = 0x57F
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xecae0
jmp 0xecae2
cmpq $0x0, 0x100(%rsp)
je 0xecb0a
movq 0xf0(%rsp), %rdi
movq 0x100(%rsp), %rsi
movq 0xf8(%rsp), %rdx
callq 0x25cc0
movq 0xf0(%rsp), %rdi
callq 0x26eb0
jmp 0xec83d
cmpl $0x0, 0x54(%rsp)
jne 0xecb8e
movq 0x110(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x110(%rsp), %rdx
leaq 0xb22(%rip), %rsi       # 0xed660
xorl %eax, %eax
movl %eax, %ecx
callq 0x866f0
movl %eax, 0x54(%rsp)
cmpl $0x0, 0x54(%rsp)
je 0xecb8a
movq 0xc747f(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x71503(%rip), %rsi     # 0x15e066
leaq 0x7a454(%rip), %rdx     # 0x166fbe
leaq 0x8da57(%rip), %rcx     # 0x17a5c8
leaq 0x8da30(%rip), %r8      # 0x17a5a8
movl $0x58a, %r9d            # imm = 0x58A
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xecb8c
jmp 0xecb8e
cmpl $0x0, 0x54(%rsp)
jne 0xecd49
jmp 0xecb9b
xorl %eax, %eax
cmpl $0x0, 0x54(%rsp)
movb %al, 0x17(%rsp)
jne 0xecbea
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0xf8(%rsp), %rdx
leaq 0xf0(%rsp), %rsi
callq 0x34790
movl %eax, %ecx
movl %ecx, 0x54(%rsp)
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0x17(%rsp)
jne 0xecbea
cmpq $0x0, 0xf0(%rsp)
setne %al
movb %al, 0x17(%rsp)
movb 0x17(%rsp), %al
testb $0x1, %al
jne 0xecbf7
jmp 0xecd47
movq 0xf0(%rsp), %rdi
callq 0x241f0
movq %rax, 0xe8(%rsp)
cmpq $0x0, %rax
je 0xecd09
movq 0x110(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0xf0(%rsp), %rdi
callq 0x258a0
movq %rax, %rdi
callq 0x19940
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x86470
movq %rax, 0xe0(%rsp)
cmpq $0x0, 0xe0(%rsp)
je 0xecce1
movq 0xe0(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0xe8(%rsp), %rdi
callq 0x22610
movq 0xe8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
leaq 0x16a2(%rip), %rdx      # 0xee330
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %r8d
callq 0x22090
movl %eax, 0x54(%rsp)
cmpl $0x0, 0x54(%rsp)
je 0xeccdd
movq 0xc732c(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x713b0(%rip), %rsi     # 0x15e066
leaq 0x7a301(%rip), %rdx     # 0x166fbe
leaq 0x8d904(%rip), %rcx     # 0x17a5c8
leaq 0x8d8dd(%rip), %r8      # 0x17a5a8
movl $0x59d, %r9d            # imm = 0x59D
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xeccdf
jmp 0xecd07
movq 0xf0(%rsp), %rdi
callq 0x258a0
movq %rax, %rdi
callq 0x19940
movq %rax, %rsi
leaq 0x8d8ea(%rip), %rdi     # 0x17a5ea
movb $0x0, %al
callq 0x1c550
jmp 0xecd09
cmpq $0x0, 0x100(%rsp)
je 0xecd35
movq 0xf0(%rsp), %rdi
movq 0x100(%rsp), %rsi
movq 0xf8(%rsp), %rdx
callq 0x25cc0
movl %eax, 0x54(%rsp)
movq 0xf0(%rsp), %rdi
callq 0x26eb0
jmp 0xecb9b
jmp 0xecd49
cmpl $0x0, 0x54(%rsp)
jne 0xecdbb
movq 0x110(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x110(%rsp), %rdx
leaq 0x2675(%rip), %rsi      # 0xef3e0
xorl %eax, %eax
movl %eax, %ecx
callq 0x866f0
movl %eax, 0x54(%rsp)
cmpl $0x0, 0x54(%rsp)
je 0xecdb7
movq 0xc7252(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x712d6(%rip), %rsi     # 0x15e066
leaq 0x7a227(%rip), %rdx     # 0x166fbe
leaq 0x8d82a(%rip), %rcx     # 0x17a5c8
leaq 0x8d803(%rip), %r8      # 0x17a5a8
movl $0x5b0, %r9d            # imm = 0x5B0
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xecdb9
jmp 0xecdbb
cmpl $0x0, 0x54(%rsp)
jne 0xece3b
movq 0x110(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0xece3b
movq 0x110(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x110(%rsp), %rdx
leaq 0x2855(%rip), %rsi      # 0xef640
xorl %eax, %eax
movl %eax, %ecx
callq 0x866f0
movl %eax, 0x54(%rsp)
cmpl $0x0, 0x54(%rsp)
je 0xece37
movq 0xc71d2(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x71256(%rip), %rsi     # 0x15e066
leaq 0x7a1a7(%rip), %rdx     # 0x166fbe
leaq 0x8d7aa(%rip), %rcx     # 0x17a5c8
leaq 0x8d783(%rip), %r8      # 0x17a5a8
movl $0x5b7, %r9d            # imm = 0x5B7
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xece39
jmp 0xece3b
movl 0x54(%rsp), %eax
addq $0x118, %rsp            # imm = 0x118
retq
nopw (%rax,%rax)