#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, float, ...);
int /*<<< orphan*/ fread(char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int, int /*<<< orphan*/);
float maxf(float *, int);
float meanf(float *, int);
float minf(float *, int);
int /*<<< orphan*/ printf(char *, ...);
float stdf(float *, float, int);
void motif_stats_bin(int motif_index, float *expression,
                     char *filename_motifcount_match,
                     char *filename_motifcount_mismatch, FILE *output_file,
                     int n_transcripts) {
  int i;
  int index;
  float curr_expression;
  char n_match;
  char n_mismatch;
  int total_occurrences_match = 0;
  int total_occurrences_mismatch = 0;
  int max_occurrences_per_transcript_match = 0;
  int max_occurrences_per_transcript_mismatch = 0;
  float mean_occurrences_per_transcript_match;
  float mean_occurrences_per_transcript_mismatch;
  int n_transcripts_present_match = 0;
  int n_transcripts_present_mismatch = 0;
  float mean_expression_match = 0;
  float min_expression_match = 0;
  float max_expression_match = 0;
  float expression_var_match = 0;
  float expression_std_match;
  float mean_expression_mismatch = 0;
  float min_expression_mismatch = 0;
  float max_expression_mismatch = 0;
  float expression_var_mismatch = 0;
  float expression_std_mismatch;
  float overall_mean_expression;
  float ptranscripts_match;
  float ptranscripts_mismatch;
  float oa_std_expression;
  float oa_mean_expression;
  float oa_min_expression;
  float oa_max_expression;
  FILE *file_motifcount_match;
  FILE *file_motifcount_mismatch;
  oa_mean_expression = meanf(expression, n_transcripts);
  oa_std_expression = stdf(expression, oa_mean_expression, n_transcripts);
  oa_min_expression = minf(expression, n_transcripts);
  oa_max_expression = maxf(expression, n_transcripts);
  printf("Overall expression stats\n");
  printf("\tmean expression=%.2f\n", oa_mean_expression);
  fprintf(output_file, "\t%.2f", oa_mean_expression);
  printf("\ts.d. expression=%.2f\n", oa_std_expression);
  fprintf(output_file, "\t%.2f", oa_std_expression);
  printf("\tmin expression=%.2f\n", oa_min_expression);
  fprintf(output_file, "\t%.2f", oa_min_expression);
  printf("\tmax expression=%.2f\n", oa_max_expression);
  fprintf(output_file, "\t%.2f", oa_max_expression);
  file_motifcount_match = fopen(filename_motifcount_match, "r");
  if (!file_motifcount_match) {
    printf("ERROR!!! I could not open the file %s for reading\n",
           filename_motifcount_match);
    exit(1);
  }
  file_motifcount_mismatch = fopen(filename_motifcount_mismatch, "r");
  if (!file_motifcount_mismatch) {
    printf("ERROR!!! I could not open the file %s for reading\n",
           filename_motifcount_mismatch);
    exit(1);
  }
  for (i = 1; i <= n_transcripts; i++) {
    index = n_transcripts * (motif_index - 1) + i - 1;
    fseek(file_motifcount_match, sizeof(char) * index, SEEK_SET);
    fread(&n_match, sizeof(char), 1, file_motifcount_match);
    fseek(file_motifcount_mismatch, sizeof(char) * index, SEEK_SET);
    fread(&n_mismatch, sizeof(char), 1, file_motifcount_mismatch);
    if (n_match > 0) {
      total_occurrences_match = total_occurrences_match + n_match;
      if (n_match > max_occurrences_per_transcript_match)
        max_occurrences_per_transcript_match = n_match;
      n_transcripts_present_match++;
      curr_expression = expression[i];
      mean_expression_match = mean_expression_match + curr_expression;
      expression_var_match =
          expression_var_match + curr_expression * curr_expression;
      if (curr_expression < min_expression_match)
        min_expression_match = curr_expression;
      if (curr_expression > max_expression_match)
        max_expression_match = curr_expression;
    }
    if (n_mismatch > 0) {
      total_occurrences_mismatch = total_occurrences_mismatch + n_mismatch;
      if (n_mismatch > max_occurrences_per_transcript_mismatch)
        max_occurrences_per_transcript_mismatch = n_mismatch;
      n_transcripts_present_mismatch++;
      curr_expression = expression[i];
      mean_expression_mismatch = mean_expression_mismatch + curr_expression;
      expression_var_mismatch =
          expression_var_mismatch + curr_expression * curr_expression;
      if (curr_expression < min_expression_mismatch)
        min_expression_mismatch = curr_expression;
      if (curr_expression > max_expression_mismatch)
        max_expression_mismatch = curr_expression;
    }
    i++;
  }
  printf("\tNumber of transcripts explored = %d\n", n_transcripts);
  ptranscripts_match =
      100.0 * (float)n_transcripts_present_match / (float)n_transcripts;
  ptranscripts_mismatch =
      100.0 * (float)n_transcripts_present_mismatch / (float)n_transcripts;
  printf("\tNumber of transcripts motif is present in (match)= %d (%.1f)\n",
         n_transcripts_present_match, ptranscripts_match);
  printf("\tNumber of transcripts motif is present in (mismatch)= %d (%.1f)\n",
         n_transcripts_present_mismatch, ptranscripts_mismatch);
  printf("\tTotal number of motif occurrences (match)= %d\n",
         total_occurrences_match);
  printf("\tTotal number of motif occurrences (mismatch)= %d\n",
         total_occurrences_mismatch);
  mean_occurrences_per_transcript_match =
      (float)total_occurrences_match / (float)n_transcripts_present_match;
  mean_occurrences_per_transcript_mismatch =
      (float)total_occurrences_mismatch / (float)n_transcripts_present_mismatch;
  printf("\t\tMean number of occurrences per transcript (match) = %.2f\n",
         mean_occurrences_per_transcript_match);
  printf("\t\tMean number of occurrences per transcript (mismatch) = %.2f\n",
         mean_occurrences_per_transcript_mismatch);
  printf("\t\tMax number of occurrences per transcript (match)= %d\n",
         max_occurrences_per_transcript_match);
  printf("\t\tMax number of occurrences per transcript (mismatch)= %d\n",
         max_occurrences_per_transcript_mismatch);
  printf("\n\tExpression\n");
  mean_expression_match =
      mean_expression_match / (float)n_transcripts_present_match;
  mean_expression_mismatch =
      mean_expression_mismatch / (float)n_transcripts_present_mismatch;
  printf("\tMean expression level of transcripts with motif (match)= %.2f\n",
         mean_expression_match);
  printf("\tMean expression level of transcripts with motif (mismatch)= %.2f\n",
         mean_expression_mismatch);
  printf("\tMin expression level of transcripts with motif (match) = %.2f\n",
         min_expression_match);
  printf("\tMin expression level of transcripts with motif (mismatch) = %.2f\n",
         min_expression_mismatch);
  printf("\tMax expression level of transcripts with motif (match)= %.2f\n",
         max_expression_match);
  printf("\tMax expression level of transcripts with motif (mismatch)= %.2f\n",
         max_expression_mismatch);
  expression_var_match =
      expression_var_match / (float)n_transcripts_present_match;
  expression_var_mismatch =
      expression_var_mismatch / (float)n_transcripts_present_mismatch;
  expression_var_match =
      expression_var_match - mean_expression_match * mean_expression_match;
  expression_var_mismatch = expression_var_mismatch -
                            mean_expression_mismatch * mean_expression_mismatch;
  printf("\tS.D. of expression level of transcripts with motif (match)= %.2f\n",
         expression_var_match);
  printf(
      "\tS.D. of expression level of transcripts with motif (mismatch)= %.2f\n",
      expression_var_mismatch);
  fprintf(output_file, "\t%d\t%.1f", n_transcripts_present_match,
          ptranscripts_match);
  fprintf(output_file, "\t%d", total_occurrences_match);
  fprintf(output_file, "\t%.2f", mean_occurrences_per_transcript_match);
  fprintf(output_file, "\t%d", max_occurrences_per_transcript_match);
  fprintf(output_file, "\t%.2f", mean_expression_match);
  fprintf(output_file, "\t%.2f", min_expression_match);
  fprintf(output_file, "\t%.2f", max_expression_match);
  fprintf(output_file, "\t%.2f", expression_var_match);
  fprintf(output_file, "\t%d\t%.1f", n_transcripts_present_mismatch,
          ptranscripts_mismatch);
  fprintf(output_file, "\t%d", total_occurrences_mismatch);
  fprintf(output_file, "\t%.2f", mean_occurrences_per_transcript_mismatch);
  fprintf(output_file, "\t%d", max_occurrences_per_transcript_mismatch);
  fprintf(output_file, "\t%.2f", mean_expression_mismatch);
  fprintf(output_file, "\t%.2f", min_expression_mismatch);
  fprintf(output_file, "\t%.2f", max_expression_mismatch);
  fprintf(output_file, "\t%.2f", expression_var_mismatch);
}


x86 assembly (clang, -O0):
<motif_stats_bin>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x64(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x6c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x74(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x78(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x7c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x80(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x2c(%rbp),%esi
call   1030 <meanf@plt>
movss  %xmm0,-0x98(%rbp)
ff
mov    -0x10(%rbp),%rdi
movss  -0x98(%rbp),%xmm0
ff
mov    -0x2c(%rbp),%esi
call   1060 <stdf@plt>
movss  %xmm0,-0x94(%rbp)
ff
mov    -0x10(%rbp),%rdi
mov    -0x2c(%rbp),%esi
call   10b0 <minf@plt>
movss  %xmm0,-0x9c(%rbp)
ff
mov    -0x10(%rbp),%rdi
mov    -0x2c(%rbp),%esi
call   1070 <maxf@plt>
movss  %xmm0,-0xa0(%rbp)
ff
lea    0xd7d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movss  -0x98(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xd7d(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x98(%rbp),%xmm0
ff
lea    0xd7a(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
movss  -0x94(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xd66(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x94(%rbp),%xmm0
ff
lea    0xd46(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
movss  -0x9c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xd49(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x9c(%rbp),%xmm0
ff
lea    0xd12(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
movss  -0xa0(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xd2b(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x28(%rbp),%rdi
movss  -0xa0(%rbp),%xmm0
ff
lea    0xcde(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xd15(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0xa8(%rbp)
cmpq   $0x0,-0xa8(%rbp)
jne    13a3 <motif_stats_bin+0x203>
mov    -0x18(%rbp),%rsi
lea    0xcf2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    -0x20(%rbp),%rdi
lea    0xcd4(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0xb0(%rbp)
cmpq   $0x0,-0xb0(%rbp)
jne    13e4 <motif_stats_bin+0x244>
mov    -0x20(%rbp),%rsi
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jg     15eb <motif_stats_bin+0x44b>
mov    -0x2c(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
imul   %ecx,%eax
add    -0x30(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0xa8(%rbp),%rdi
movslq -0x34(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%esi
mov    0x2bbc(%rip),%rax
mov    (%rax),%edx
call   1090 <fseek@plt>
mov    -0xa8(%rbp),%rcx
lea    -0x39(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1040 <fread@plt>
mov    -0xb0(%rbp),%rdi
movslq -0x34(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%esi
mov    0x2b86(%rip),%rax
mov    (%rax),%edx
call   1090 <fseek@plt>
mov    -0xb0(%rbp),%rcx
lea    -0x3a(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   1040 <fread@plt>
movsbl -0x39(%rbp),%eax
cmp    $0x0,%eax
jle    1526 <motif_stats_bin+0x386>
mov    -0x40(%rbp),%eax
movsbl -0x39(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x40(%rbp)
movsbl -0x39(%rbp),%eax
cmp    -0x48(%rbp),%eax
jle    14a5 <motif_stats_bin+0x305>
movsbl -0x39(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x60(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x60(%rbp)
movss  -0x6c(%rbp),%xmm1
movss  -0x38(%rbp),%xmm0
movss  -0x38(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x6c(%rbp)
movss  -0x38(%rbp),%xmm1
movss  -0x64(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1508 <motif_stats_bin+0x368>
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x64(%rbp)
movss  -0x38(%rbp),%xmm0
ucomiss -0x68(%rbp),%xmm0
jbe    1521 <motif_stats_bin+0x381>
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x68(%rbp)
jmp    1526 <motif_stats_bin+0x386>
movsbl -0x3a(%rbp),%eax
cmp    $0x0,%eax
jle    15d4 <motif_stats_bin+0x434>
mov    -0x44(%rbp),%eax
movsbl -0x3a(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x44(%rbp)
movsbl -0x3a(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jle    1553 <motif_stats_bin+0x3b3>
movsbl -0x3a(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x74(%rbp),%xmm0
addss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x80(%rbp),%xmm1
movss  -0x38(%rbp),%xmm0
movss  -0x38(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x80(%rbp)
movss  -0x38(%rbp),%xmm1
movss  -0x78(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    15b6 <motif_stats_bin+0x416>
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x78(%rbp)
movss  -0x38(%rbp),%xmm0
ucomiss -0x7c(%rbp),%xmm0
jbe    15cf <motif_stats_bin+0x42f>
movss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x7c(%rbp)
jmp    15d4 <motif_stats_bin+0x434>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    13eb <motif_stats_bin+0x24b>
mov    -0x2c(%rbp),%esi
lea    0xac2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cvtsi2ssl -0x58(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0x9f3(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsi2ssl -0x2c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8c(%rbp)
ff
cvtsi2ssl -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0x9c5(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsi2ssl -0x2c(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x90(%rbp)
ff
mov    -0x58(%rbp),%esi
movss  -0x8c(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa6f(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x5c(%rbp),%esi
movss  -0x90(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xa91(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x40(%rbp),%esi
lea    0xac2(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x44(%rbp),%esi
lea    0xae1(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cvtsi2ssl -0x40(%rbp),%xmm0
cvtsi2ssl -0x58(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
cvtsi2ssl -0x44(%rbp),%xmm0
cvtsi2ssl -0x5c(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x50(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xad7(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x54(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xafc(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x48(%rbp),%esi
lea    0xb2a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x4c(%rbp),%esi
lea    0xb51(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xb7e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movss  -0x60(%rbp),%xmm0
cvtsi2ssl -0x58(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x60(%rbp)
movss  -0x74(%rbp),%xmm0
cvtsi2ssl -0x5c(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x60(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb4f(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x74(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb78(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xba4(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x78(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbcd(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x68(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbf9(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x7c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc21(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x6c(%rbp),%xmm0
cvtsi2ssl -0x58(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x6c(%rbp)
movss  -0x80(%rbp),%xmm0
cvtsi2ssl -0x5c(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x80(%rbp)
movss  -0x6c(%rbp),%xmm1
movss  -0x60(%rbp),%xmm0
movss  -0x60(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x6c(%rbp)
movss  -0x80(%rbp),%xmm1
movss  -0x74(%rbp),%xmm0
movss  -0x74(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x80(%rbp)
movss  -0x6c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbd4(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x80(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc00(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x28(%rbp),%rdi
cvtsi2ssl -0x58(%rbp),%xmm0
movss  -0x8c(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
lea    0xc23(%rip),%rsi
mov    $0x2,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
cvtsi2ssl -0x40(%rbp),%xmm0
lea    0xc15(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x50(%rbp),%xmm0
lea    0x761(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
cvtsi2ssl -0x48(%rbp),%xmm0
lea    0xbe7(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x60(%rbp),%xmm0
lea    0x733(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x64(%rbp),%xmm0
lea    0x71c(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x68(%rbp),%xmm0
lea    0x705(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x6c(%rbp),%xmm0
lea    0x6ee(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
cvtsi2ssl -0x5c(%rbp),%xmm0
movss  -0x90(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
lea    0xb5f(%rip),%rsi
mov    $0x2,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
cvtsi2ssl -0x44(%rbp),%xmm0
lea    0xb51(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x54(%rbp),%xmm0
lea    0x69d(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
cvtsi2ssl -0x4c(%rbp),%xmm0
lea    0xb23(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x74(%rbp),%xmm0
lea    0x66f(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x78(%rbp),%xmm0
lea    0x658(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x7c(%rbp),%xmm0
lea    0x641(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    -0x28(%rbp),%rdi
movss  -0x80(%rbp),%xmm0
lea    0x62a(%rip),%rsi
mov    $0x1,%al
call   1080 <fprintf@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<motif_stats_bin>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %r9d,%r12d
mov    %r8,%r15
mov    %rcx,%r14
mov    %rdx,%rbx
mov    %rsi,%rbp
mov    %edi,%r13d
mov    %rsi,%rdi
mov    %r9d,%esi
call   1030 <meanf@plt>
movss  %xmm0,0x4(%rsp)
mov    %rbp,%rdi
mov    %r12d,%esi
call   1070 <stdf@plt>
movss  %xmm0,0x8(%rsp)
mov    %rbp,%rdi
mov    %r12d,%esi
call   10c0 <minf@plt>
movss  %xmm0,0xc(%rsp)
mov    %rbp,0x40(%rsp)
mov    %rbp,%rdi
mov    %r12d,%esi
call   1080 <maxf@plt>
movss  %xmm0,0x10(%rsp)
lea    0x1292(%rip),%rdi
call   1040 <puts@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdd2(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xddb(%rip),%rbp
mov    %r15,%rdi
mov    %rbp,%rsi
movss  0x4(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdbd(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
movss  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xda9(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
movss  0xc(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd94(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
movss  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
lea    0xd89(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <fopen@plt>
test   %rax,%rax
je     1973 <motif_stats_bin+0x7c3>
mov    %rax,%rbp
lea    0xd6e(%rip),%rsi
mov    %r14,%rdi
call   10b0 <fopen@plt>
test   %rax,%rax
je     197f <motif_stats_bin+0x7cf>
mov    %r15,0x60(%rsp)
test   %r12d,%r12d
mov    %r12d,0x14(%rsp)
jle    1511 <motif_stats_bin+0x361>
mov    %rax,%rbx
add    $0xffffffff,%r13d
imul   %r12d,%r13d
mov    %r13,0x48(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x18(%rsp)
xor    %r13d,%r13d
movl   $0x0,0x2c(%rsp)
movl   $0x0,0x30(%rsp)
movl   $0x0,0x38(%rsp)
movl   $0x0,0x3c(%rsp)
xor    %r12d,%r12d
movl   $0x0,0x28(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x20(%rsp)
xorps  %xmm5,%xmm5
xorps  %xmm4,%xmm4
xorps  %xmm6,%xmm6
xorps  %xmm0,%xmm0
movss  %xmm0,0x4(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x34(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x24(%rsp)
jmp    13c4 <motif_stats_bin+0x214>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movaps %xmm6,%xmm3
movaps %xmm4,%xmm2
movaps %xmm5,%xmm1
add    $0x2,%r13
lea    0x1(%r13),%eax
movaps %xmm1,%xmm5
movaps %xmm2,%xmm4
movaps %xmm3,%xmm6
cmp    0x14(%rsp),%eax
jg     1572 <motif_stats_bin+0x3c2>
movss  %xmm6,0x8(%rsp)
movss  %xmm5,0xc(%rsp)
movss  %xmm4,0x10(%rsp)
mov    0x48(%rsp),%rax
lea    (%rax,%r13,1),%r14d
mov    0x2bfa(%rip),%r15
mov    (%r15),%edx
mov    %rbp,%rdi
mov    %r14d,%esi
call   10a0 <fseek@plt>
lea    0x1f(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1050 <fread@plt>
mov    (%r15),%edx
mov    %rbx,%rdi
mov    %r14d,%esi
call   10a0 <fseek@plt>
lea    0x1e(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fread@plt>
movsbl 0x1f(%rsp),%eax
test   %eax,%eax
jle    149d <motif_stats_bin+0x2ed>
add    %eax,0x2c(%rsp)
mov    0x38(%rsp),%ecx
cmp    %eax,%ecx
cmovl  %eax,%ecx
mov    %ecx,0x38(%rsp)
add    $0x1,%r12d
mov    0x40(%rsp),%rax
movss  0x4(%rax,%r13,4),%xmm0
movss  0x18(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x18(%rsp)
movaps %xmm0,%xmm1
mulss  %xmm0,%xmm1
movss  0x24(%rsp),%xmm2
addss  %xmm1,%xmm2
movss  %xmm2,0x24(%rsp)
movaps %xmm0,%xmm1
minss  0x20(%rsp),%xmm1
ucomiss 0x34(%rsp),%xmm0
jbe    1497 <motif_stats_bin+0x2e7>
movss  %xmm0,0x34(%rsp)
movss  %xmm1,0x20(%rsp)
movss  0x10(%rsp),%xmm4
movss  0xc(%rsp),%xmm5
movss  0x8(%rsp),%xmm6
movsbl 0x1e(%rsp),%eax
test   %eax,%eax
jle    13a0 <motif_stats_bin+0x1f0>
add    %eax,0x30(%rsp)
mov    0x3c(%rsp),%ecx
cmp    %eax,%ecx
cmovl  %eax,%ecx
mov    %ecx,0x3c(%rsp)
addl   $0x1,0x28(%rsp)
mov    0x40(%rsp),%rax
movss  0x4(%rax,%r13,4),%xmm2
movss  0x4(%rsp),%xmm0
addss  %xmm2,%xmm0
movss  %xmm0,0x4(%rsp)
movaps %xmm2,%xmm1
mulss  %xmm2,%xmm1
addss  %xmm5,%xmm1
movaps %xmm2,%xmm3
minss  %xmm6,%xmm3
ucomiss %xmm4,%xmm2
ja     13a9 <motif_stats_bin+0x1f9>
movaps %xmm4,%xmm2
jmp    13a9 <motif_stats_bin+0x1f9>
movl   $0x0,0x28(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x24(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x34(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x4(%rsp)
xorps  %xmm3,%xmm3
xorps  %xmm2,%xmm2
xorps  %xmm1,%xmm1
xorps  %xmm0,%xmm0
movss  %xmm0,0x20(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x18(%rsp)
xor    %r12d,%r12d
movl   $0x0,0x3c(%rsp)
movl   $0x0,0x38(%rsp)
movl   $0x0,0x30(%rsp)
movl   $0x0,0x2c(%rsp)
movss  %xmm1,0x8(%rsp)
movss  %xmm3,0x48(%rsp)
movss  %xmm2,0x40(%rsp)
lea    0xb12(%rip),%rdi
mov    0x14(%rsp),%ebx
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %r12d,%xmm0
movss  %xmm0,0xc(%rsp)
cvtss2sd %xmm0,%xmm0
movsd  0xa4e(%rip),%xmm1
mulsd  %xmm1,%xmm0
xorps  %xmm2,%xmm2
cvtsi2ss %ebx,%xmm2
cvtss2sd %xmm2,%xmm2
divsd  %xmm2,%xmm0
mov    0x28(%rsp),%ebx
xorps  %xmm3,%xmm3
cvtsi2ss %ebx,%xmm3
movss  %xmm3,0x10(%rsp)
cvtsd2ss %xmm0,%xmm0
cvtss2sd %xmm3,%xmm3
mulsd  %xmm1,%xmm3
divsd  %xmm2,%xmm3
xorps  %xmm1,%xmm1
cvtsd2ss %xmm3,%xmm1
movss  %xmm1,0x14(%rsp)
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x50(%rsp)
lea    0xabf(%rip),%rdi
mov    %r12d,%esi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x58(%rsp)
lea    0xadd(%rip),%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xb0f(%rip),%rdi
mov    0x2c(%rsp),%ebp
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xb2b(%rip),%rdi
mov    0x30(%rsp),%ebx
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xorps  %xmm1,%xmm1
cvtsi2ss %ebp,%xmm1
movss  %xmm1,0x28(%rsp)
xorps  %xmm0,%xmm0
cvtsi2ss %ebx,%xmm0
movss  %xmm0,0x30(%rsp)
divss  0xc(%rsp),%xmm1
movss  %xmm1,0x2c(%rsp)
divss  0x10(%rsp),%xmm0
movss  %xmm0,0x14(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xb11(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb35(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xb66(%rip),%rdi
mov    0x38(%rsp),%r13d
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xb88(%rip),%rdi
mov    0x3c(%rsp),%r12d
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xde3(%rip),%rdi
call   1040 <puts@plt>
movss  0x18(%rsp),%xmm1
divss  0xc(%rsp),%xmm1
movss  %xmm1,0x18(%rsp)
movss  0x4(%rsp),%xmm0
divss  0x10(%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xb76(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb9e(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbc9(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x48(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbf1(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x34(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc1c(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x40(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc43(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x24(%rsp),%xmm2
divss  0xc(%rsp),%xmm2
movss  0x8(%rsp),%xmm1
divss  0x10(%rsp),%xmm1
movss  0x18(%rsp),%xmm0
mulss  %xmm0,%xmm0
subss  %xmm0,%xmm2
movss  %xmm2,0x24(%rsp)
movss  0x4(%rsp),%xmm0
mulss  %xmm0,%xmm0
subss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
lea    0xc30(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc5b(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xc93(%rip),%r14
mov    0x60(%rsp),%rbp
mov    %rbp,%rdi
mov    %r14,%rsi
movss  0xc(%rsp),%xmm0
movsd  0x50(%rsp),%xmm1
mov    $0x2,%al
call   1090 <fprintf@plt>
lea    0xc77(%rip),%r15
mov    %rbp,%rdi
mov    %r15,%rsi
movss  0x28(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
lea    0x7ce(%rip),%rbx
mov    %rbp,%rdi
mov    %rbx,%rsi
movss  0x2c(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %r13d,%xmm0
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
movss  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
movss  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
movss  0x34(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
movss  0x24(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
movss  0x10(%rsp),%xmm0
movsd  0x58(%rsp),%xmm1
mov    $0x2,%al
call   1090 <fprintf@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
movss  0x30(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
movss  0x14(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %r12d,%xmm0
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
movss  0x4(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
movss  0x48(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
movss  0x40(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
movss  0x8(%rsp),%xmm0
mov    $0x1,%al
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1090 <fprintf@plt>
lea    0x6f0(%rip),%rdi
mov    %rbx,%rsi
jmp    1989 <motif_stats_bin+0x7d9>
lea    0x6e4(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"Overall expression stats\0A\00"
@.str.1 = [23 x i8] c"\09mean expression=%.2f\0A\00"
@.str.2 = [6 x i8] c"\09%.2f\00"
@.str.3 = [23 x i8] c"\09s.d. expression=%.2f\0A\00"
@.str.4 = [22 x i8] c"\09min expression=%.2f\0A\00"
@.str.5 = [22 x i8] c"\09max expression=%.2f\0A\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [51 x i8] c"ERROR!!! I could not open the file %s for reading\0A\00"
@SEEK_SET = global i32 0
@.str.8 = [38 x i8] c"\09Number of transcripts explored = %d\0A\00"
@.str.9 = [63 x i8] c"\09Number of transcripts motif is present in (match)= %d (%.1f)\0A\00"
@.str.10 = [66 x i8] c"\09Number of transcripts motif is present in (mismatch)= %d (%.1f)\0A\00"
@.str.11 = [48 x i8] c"\09Total number of motif occurrences (match)= %d\0A\00"
@.str.12 = [51 x i8] c"\09Total number of motif occurrences (mismatch)= %d\0A\00"
@.str.13 = [60 x i8] c"\09\09Mean number of occurrences per transcript (match) = %.2f\0A\00"
@.str.14 = [63 x i8] c"\09\09Mean number of occurrences per transcript (mismatch) = %.2f\0A\00"
@.str.15 = [56 x i8] c"\09\09Max number of occurrences per transcript (match)= %d\0A\00"
@.str.16 = [59 x i8] c"\09\09Max number of occurrences per transcript (mismatch)= %d\0A\00"
@.str.17 = [14 x i8] c"\0A\09Expression\0A\00"
@.str.18 = [64 x i8] c"\09Mean expression level of transcripts with motif (match)= %.2f\0A\00"
@.str.19 = [67 x i8] c"\09Mean expression level of transcripts with motif (mismatch)= %.2f\0A\00"
@.str.20 = [64 x i8] c"\09Min expression level of transcripts with motif (match) = %.2f\0A\00"
@.str.21 = [67 x i8] c"\09Min expression level of transcripts with motif (mismatch) = %.2f\0A\00"
@.str.22 = [63 x i8] c"\09Max expression level of transcripts with motif (match)= %.2f\0A\00"
@.str.23 = [66 x i8] c"\09Max expression level of transcripts with motif (mismatch)= %.2f\0A\00"
@.str.24 = [67 x i8] c"\09S.D. of expression level of transcripts with motif (match)= %.2f\0A\00"
@.str.25 = [70 x i8] c"\09S.D. of expression level of transcripts with motif (mismatch)= %.2f\0A\00"
@.str.26 = [9 x i8] c"\09%d\09%.1f\00"
@.str.27 = [4 x i8] c"\09%d\00"
define void @motif_stats_bin(i32 %0, float* %1, i8* %2, i8* %3, i32* %4, i32 %5) {
%7 = alloca i32
%8 = alloca float*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca float
%16 = alloca i8
%17 = alloca i8
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca float
%23 = alloca float
%24 = alloca i32
%25 = alloca i32
%26 = alloca float
%27 = alloca float
%28 = alloca float
%29 = alloca float
%30 = alloca float
%31 = alloca float
%32 = alloca float
%33 = alloca float
%34 = alloca float
%35 = alloca float
%36 = alloca float
%37 = alloca float
%38 = alloca float
%39 = alloca float
%40 = alloca float
%41 = alloca float
%42 = alloca float
%43 = alloca i32*
%44 = alloca i32*
store i32 %0, i32* %7
store float* %1, float** %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i32* %4, i32** %11
store i32 %5, i32* %12
store i32 0, i32* %18
store i32 0, i32* %19
store i32 0, i32* %20
store i32 0, i32* %21
store i32 0, i32* %24
store i32 0, i32* %25
store float 0.000000e+00, float* %26
store float 0.000000e+00, float* %27
store float 0.000000e+00, float* %28
store float 0.000000e+00, float* %29
store float 0.000000e+00, float* %31
store float 0.000000e+00, float* %32
store float 0.000000e+00, float* %33
store float 0.000000e+00, float* %34
%45 = load float*, float** %8
%46 = load i32, i32* %12
%47 = call float @meanf(float* %45, i32 %46)
store float %47, float* %40
%48 = load float*, float** %8
%49 = load float, float* %40
%50 = load i32, i32* %12
%51 = call float @stdf(float* %48, float %49, i32 %50)
store float %51, float* %39
%52 = load float*, float** %8
%53 = load i32, i32* %12
%54 = call float @minf(float* %52, i32 %53)
store float %54, float* %41
%55 = load float*, float** %8
%56 = load i32, i32* %12
%57 = call float @maxf(float* %55, i32 %56)
store float %57, float* %42
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%59 = load float, float* %40
%60 = fpext float %59 to double
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), double %60)
%62 = load i32*, i32** %11
%63 = load float, float* %40
%64 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %63)
%65 = load float, float* %39
%66 = fpext float %65 to double
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), double %66)
%68 = load i32*, i32** %11
%69 = load float, float* %39
%70 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %68, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %69)
%71 = load float, float* %41
%72 = fpext float %71 to double
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %72)
%74 = load i32*, i32** %11
%75 = load float, float* %41
%76 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %74, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %75)
%77 = load float, float* %42
%78 = fpext float %77 to double
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), double %78)
%80 = load i32*, i32** %11
%81 = load float, float* %42
%82 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %80, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %81)
%83 = load i8*, i8** %9
%84 = call i32* @fopen(i8* %83, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %84, i32** %43
%85 = load i32*, i32** %43
%86 = icmp ne i32* %85, null
br i1 %86, label %91, label %87
87: ; preds = %6
%88 = load i8*, i8** %9
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0), i8* %88)
%90 = call i32 @exit(i32 1)
unreachable
91: ; preds = %6
%92 = load i8*, i8** %10
%93 = call i32* @fopen(i8* %92, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %93, i32** %44
%94 = load i32*, i32** %44
%95 = icmp ne i32* %94, null
br i1 %95, label %100, label %96
96: ; preds = %91
%97 = load i8*, i8** %10
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0), i8* %97)
%99 = call i32 @exit(i32 1)
unreachable
100: ; preds = %91
store i32 1, i32* %13
br label %101
101: ; preds = %219, %100
%102 = load i32, i32* %13
%103 = load i32, i32* %12
%104 = icmp sle i32 %102, %103
br i1 %104, label %105, label %222
105: ; preds = %101
%106 = load i32, i32* %12
%107 = load i32, i32* %7
%108 = sub nsw i32 %107, 1
%109 = mul nsw i32 %106, %108
%110 = load i32, i32* %13
%111 = add nsw i32 %109, %110
%112 = sub nsw i32 %111, 1
store i32 %112, i32* %14
%113 = load i32*, i32** %43
%114 = load i32, i32* %14
%115 = sext i32 %114 to i64
%116 = mul i64 1, %115
%117 = trunc i64 %116 to i32
%118 = load i32, i32* @SEEK_SET
%119 = call i32 @fseek(i32* %113, i32 %117, i32 %118)
%120 = load i32*, i32** %43
%121 = call i32 @fread(i8* %16, i32 1, i32 1, i32* %120)
%122 = load i32*, i32** %44
%123 = load i32, i32* %14
%124 = sext i32 %123 to i64
%125 = mul i64 1, %124
%126 = trunc i64 %125 to i32
%127 = load i32, i32* @SEEK_SET
%128 = call i32 @fseek(i32* %122, i32 %126, i32 %127)
%129 = load i32*, i32** %44
%130 = call i32 @fread(i8* %17, i32 1, i32 1, i32* %129)
%131 = load i8, i8* %16
%132 = sext i8 %131 to i32
%133 = icmp sgt i32 %132, 0
br i1 %133, label %134, label %173
134: ; preds = %105
%135 = load i32, i32* %18
%136 = load i8, i8* %16
%137 = sext i8 %136 to i32
%138 = add nsw i32 %135, %137
store i32 %138, i32* %18
%139 = load i8, i8* %16
%140 = sext i8 %139 to i32
%141 = load i32, i32* %20
%142 = icmp sgt i32 %140, %141
br i1 %142, label %143, label %146
143: ; preds = %134
%144 = load i8, i8* %16
%145 = sext i8 %144 to i32
store i32 %145, i32* %20
br label %146
146: ; preds = %143, %134
%147 = load i32, i32* %24
%148 = add nsw i32 %147, 1
store i32 %148, i32* %24
%149 = load float*, float** %8
%150 = load i32, i32* %13
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds float, float* %149, i64 %151
%153 = load float, float* %152
store float %153, float* %15
%154 = load float, float* %26
%155 = load float, float* %15
%156 = fadd float %154, %155
store float %156, float* %26
%157 = load float, float* %29
%158 = load float, float* %15
%159 = load float, float* %15
%160 = call float @llvm.fmuladd.f32(float %158, float %159, float %157)
store float %160, float* %29
%161 = load float, float* %15
%162 = load float, float* %27
%163 = fcmp olt float %161, %162
br i1 %163, label %164, label %166
164: ; preds = %146
%165 = load float, float* %15
store float %165, float* %27
br label %166
166: ; preds = %164, %146
%167 = load float, float* %15
%168 = load float, float* %28
%169 = fcmp ogt float %167, %168
br i1 %169, label %170, label %172
170: ; preds = %166
%171 = load float, float* %15
store float %171, float* %28
br label %172
172: ; preds = %170, %166
br label %173
173: ; preds = %172, %105
%174 = load i8, i8* %17
%175 = sext i8 %174 to i32
%176 = icmp sgt i32 %175, 0
br i1 %176, label %177, label %216
177: ; preds = %173
%178 = load i32, i32* %19
%179 = load i8, i8* %17
%180 = sext i8 %179 to i32
%181 = add nsw i32 %178, %180
store i32 %181, i32* %19
%182 = load i8, i8* %17
%183 = sext i8 %182 to i32
%184 = load i32, i32* %21
%185 = icmp sgt i32 %183, %184
br i1 %185, label %186, label %189
186: ; preds = %177
%187 = load i8, i8* %17
%188 = sext i8 %187 to i32
store i32 %188, i32* %21
br label %189
189: ; preds = %186, %177
%190 = load i32, i32* %25
%191 = add nsw i32 %190, 1
store i32 %191, i32* %25
%192 = load float*, float** %8
%193 = load i32, i32* %13
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds float, float* %192, i64 %194
%196 = load float, float* %195
store float %196, float* %15
%197 = load float, float* %31
%198 = load float, float* %15
%199 = fadd float %197, %198
store float %199, float* %31
%200 = load float, float* %34
%201 = load float, float* %15
%202 = load float, float* %15
%203 = call float @llvm.fmuladd.f32(float %201, float %202, float %200)
store float %203, float* %34
%204 = load float, float* %15
%205 = load float, float* %32
%206 = fcmp olt float %204, %205
br i1 %206, label %207, label %209
207: ; preds = %189
%208 = load float, float* %15
store float %208, float* %32
br label %209
209: ; preds = %207, %189
%210 = load float, float* %15
%211 = load float, float* %33
%212 = fcmp ogt float %210, %211
br i1 %212, label %213, label %215
213: ; preds = %209
%214 = load float, float* %15
store float %214, float* %33
br label %215
215: ; preds = %213, %209
br label %216
216: ; preds = %215, %173
%217 = load i32, i32* %13
%218 = add nsw i32 %217, 1
store i32 %218, i32* %13
br label %219
219: ; preds = %216
%220 = load i32, i32* %13
%221 = add nsw i32 %220, 1
store i32 %221, i32* %13
br label %101
222: ; preds = %101
%223 = load i32, i32* %12
%224 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 %223)
%225 = load i32, i32* %24
%226 = sitofp i32 %225 to float
%227 = fpext float %226 to double
%228 = fmul double 1.000000e+02, %227
%229 = load i32, i32* %12
%230 = sitofp i32 %229 to float
%231 = fpext float %230 to double
%232 = fdiv double %228, %231
%233 = fptrunc double %232 to float
store float %233, float* %37
%234 = load i32, i32* %25
%235 = sitofp i32 %234 to float
%236 = fpext float %235 to double
%237 = fmul double 1.000000e+02, %236
%238 = load i32, i32* %12
%239 = sitofp i32 %238 to float
%240 = fpext float %239 to double
%241 = fdiv double %237, %240
%242 = fptrunc double %241 to float
store float %242, float* %38
%243 = load i32, i32* %24
%244 = load float, float* %37
%245 = fpext float %244 to double
%246 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.9, i64 0, i64 0), i32 %243, double %245)
%247 = load i32, i32* %25
%248 = load float, float* %38
%249 = fpext float %248 to double
%250 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i64 0, i64 0), i32 %247, double %249)
%251 = load i32, i32* %18
%252 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0), i32 %251)
%253 = load i32, i32* %19
%254 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0), i32 %253)
%255 = load i32, i32* %18
%256 = sitofp i32 %255 to float
%257 = load i32, i32* %24
%258 = sitofp i32 %257 to float
%259 = fdiv float %256, %258
store float %259, float* %22
%260 = load i32, i32* %19
%261 = sitofp i32 %260 to float
%262 = load i32, i32* %25
%263 = sitofp i32 %262 to float
%264 = fdiv float %261, %263
store float %264, float* %23
%265 = load float, float* %22
%266 = fpext float %265 to double
%267 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.13, i64 0, i64 0), double %266)
%268 = load float, float* %23
%269 = fpext float %268 to double
%270 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.14, i64 0, i64 0), double %269)
%271 = load i32, i32* %20
%272 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.15, i64 0, i64 0), i32 %271)
%273 = load i32, i32* %21
%274 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.16, i64 0, i64 0), i32 %273)
%275 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.17, i64 0, i64 0))
%276 = load float, float* %26
%277 = load i32, i32* %24
%278 = sitofp i32 %277 to float
%279 = fdiv float %276, %278
store float %279, float* %26
%280 = load float, float* %31
%281 = load i32, i32* %25
%282 = sitofp i32 %281 to float
%283 = fdiv float %280, %282
store float %283, float* %31
%284 = load float, float* %26
%285 = fpext float %284 to double
%286 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.18, i64 0, i64 0), double %285)
%287 = load float, float* %31
%288 = fpext float %287 to double
%289 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.19, i64 0, i64 0), double %288)
%290 = load float, float* %27
%291 = fpext float %290 to double
%292 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.20, i64 0, i64 0), double %291)
%293 = load float, float* %32
%294 = fpext float %293 to double
%295 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.21, i64 0, i64 0), double %294)
%296 = load float, float* %28
%297 = fpext float %296 to double
%298 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.22, i64 0, i64 0), double %297)
%299 = load float, float* %33
%300 = fpext float %299 to double
%301 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.23, i64 0, i64 0), double %300)
%302 = load float, float* %29
%303 = load i32, i32* %24
%304 = sitofp i32 %303 to float
%305 = fdiv float %302, %304
store float %305, float* %29
%306 = load float, float* %34
%307 = load i32, i32* %25
%308 = sitofp i32 %307 to float
%309 = fdiv float %306, %308
store float %309, float* %34
%310 = load float, float* %29
%311 = load float, float* %26
%312 = load float, float* %26
%313 = fneg float %311
%314 = call float @llvm.fmuladd.f32(float %313, float %312, float %310)
store float %314, float* %29
%315 = load float, float* %34
%316 = load float, float* %31
%317 = load float, float* %31
%318 = fneg float %316
%319 = call float @llvm.fmuladd.f32(float %318, float %317, float %315)
store float %319, float* %34
%320 = load float, float* %29
%321 = fpext float %320 to double
%322 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.24, i64 0, i64 0), double %321)
%323 = load float, float* %34
%324 = fpext float %323 to double
%325 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.25, i64 0, i64 0), double %324)
%326 = load i32*, i32** %11
%327 = load i32, i32* %24
%328 = sitofp i32 %327 to float
%329 = load float, float* %37
%330 = fpext float %329 to double
%331 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %326, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.26, i64 0, i64 0), float %328, double %330)
%332 = load i32*, i32** %11
%333 = load i32, i32* %18
%334 = sitofp i32 %333 to float
%335 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %332, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), float %334)
%336 = load i32*, i32** %11
%337 = load float, float* %22
%338 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %336, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %337)
%339 = load i32*, i32** %11
%340 = load i32, i32* %20
%341 = sitofp i32 %340 to float
%342 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %339, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), float %341)
%343 = load i32*, i32** %11
%344 = load float, float* %26
%345 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %343, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %344)
%346 = load i32*, i32** %11
%347 = load float, float* %27
%348 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %346, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %347)
%349 = load i32*, i32** %11
%350 = load float, float* %28
%351 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %349, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %350)
%352 = load i32*, i32** %11
%353 = load float, float* %29
%354 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %352, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %353)
%355 = load i32*, i32** %11
%356 = load i32, i32* %25
%357 = sitofp i32 %356 to float
%358 = load float, float* %38
%359 = fpext float %358 to double
%360 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %355, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.26, i64 0, i64 0), float %357, double %359)
%361 = load i32*, i32** %11
%362 = load i32, i32* %19
%363 = sitofp i32 %362 to float
%364 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %361, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), float %363)
%365 = load i32*, i32** %11
%366 = load float, float* %23
%367 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %365, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %366)
%368 = load i32*, i32** %11
%369 = load i32, i32* %21
%370 = sitofp i32 %369 to float
%371 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %368, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), float %370)
%372 = load i32*, i32** %11
%373 = load float, float* %31
%374 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %372, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %373)
%375 = load i32*, i32** %11
%376 = load float, float* %32
%377 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %375, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %376)
%378 = load i32*, i32** %11
%379 = load float, float* %33
%380 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %378, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %379)
%381 = load i32*, i32** %11
%382 = load float, float* %34
%383 = call i32 (i32*, i8*, float, ...) @fprintf(i32* %381, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %382)
ret void
}

LLVM IR (-O2):
@.str.1 = [23 x i8] c"\09mean expression=%.2f\0A\00"
@.str.2 = [6 x i8] c"\09%.2f\00"
@.str.3 = [23 x i8] c"\09s.d. expression=%.2f\0A\00"
@.str.4 = [22 x i8] c"\09min expression=%.2f\0A\00"
@.str.5 = [22 x i8] c"\09max expression=%.2f\0A\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [51 x i8] c"ERROR!!! I could not open the file %s for reading\0A\00"
@SEEK_SET = global i32 0
@.str.8 = [38 x i8] c"\09Number of transcripts explored = %d\0A\00"
@.str.9 = [63 x i8] c"\09Number of transcripts motif is present in (match)= %d (%.1f)\0A\00"
@.str.10 = [66 x i8] c"\09Number of transcripts motif is present in (mismatch)= %d (%.1f)\0A\00"
@.str.11 = [48 x i8] c"\09Total number of motif occurrences (match)= %d\0A\00"
@.str.12 = [51 x i8] c"\09Total number of motif occurrences (mismatch)= %d\0A\00"
@.str.13 = [60 x i8] c"\09\09Mean number of occurrences per transcript (match) = %.2f\0A\00"
@.str.14 = [63 x i8] c"\09\09Mean number of occurrences per transcript (mismatch) = %.2f\0A\00"
@.str.15 = [56 x i8] c"\09\09Max number of occurrences per transcript (match)= %d\0A\00"
@.str.16 = [59 x i8] c"\09\09Max number of occurrences per transcript (mismatch)= %d\0A\00"
@.str.18 = [64 x i8] c"\09Mean expression level of transcripts with motif (match)= %.2f\0A\00"
@.str.19 = [67 x i8] c"\09Mean expression level of transcripts with motif (mismatch)= %.2f\0A\00"
@.str.20 = [64 x i8] c"\09Min expression level of transcripts with motif (match) = %.2f\0A\00"
@.str.21 = [67 x i8] c"\09Min expression level of transcripts with motif (mismatch) = %.2f\0A\00"
@.str.22 = [63 x i8] c"\09Max expression level of transcripts with motif (match)= %.2f\0A\00"
@.str.23 = [66 x i8] c"\09Max expression level of transcripts with motif (mismatch)= %.2f\0A\00"
@.str.24 = [67 x i8] c"\09S.D. of expression level of transcripts with motif (match)= %.2f\0A\00"
@.str.25 = [70 x i8] c"\09S.D. of expression level of transcripts with motif (mismatch)= %.2f\0A\00"
@.str.26 = [9 x i8] c"\09%d\09%.1f\00"
@.str.27 = [4 x i8] c"\09%d\00"
@str = [25 x i8] c"Overall expression stats\00"
@str.28 = [13 x i8] c"\0A\09Expression\00"
define void @motif_stats_bin(i32 %0, float* %1, i8* %2, i8* %3, i32* nocapture %4, i32 %5) {
%7 = alloca i8
%8 = alloca i8
%9 = tail call float @meanf(float* %1, i32 %5)
%10 = tail call float @stdf(float* %1, float %9, i32 %5)
%11 = tail call float @minf(float* %1, i32 %5)
%12 = tail call float @maxf(float* %1, i32 %5)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%14 = fpext float %9 to double
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), double %14)
%16 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %9)
%17 = fpext float %10 to double
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), double %17)
%19 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %10)
%20 = fpext float %11 to double
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %20)
%22 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %11)
%23 = fpext float %12 to double
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), double %23)
%25 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %12)
%26 = tail call i32* @fopen(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%27 = icmp eq i32* %26, null
br i1 %27, label %28, label %31
28: ; preds = %6
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0), i8* %2)
%30 = tail call i32 @exit(i32 1)
unreachable
31: ; preds = %6
%32 = tail call i32* @fopen(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%33 = icmp eq i32* %32, null
br i1 %33, label %40, label %34
34: ; preds = %31
%35 = icmp slt i32 %5, 1
br i1 %35, label %118, label %36
36: ; preds = %34
%37 = add nsw i32 %0, -1
%38 = mul nsw i32 %37, %5
%39 = add i32 %38, -1
br label %43
40: ; preds = %31
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0), i8* %3)
%42 = tail call i32 @exit(i32 1)
unreachable
43: ; preds = %36, %107
%44 = phi i64 [ 1, %36 ], [ %115, %107 ]
%45 = phi i32 [ 0, %36 ], [ %90, %107 ]
%46 = phi i32 [ 0, %36 ], [ %114, %107 ]
%47 = phi i32 [ 0, %36 ], [ %89, %107 ]
%48 = phi i32 [ 0, %36 ], [ %113, %107 ]
%49 = phi i32 [ 0, %36 ], [ %88, %107 ]
%50 = phi i32 [ 0, %36 ], [ %112, %107 ]
%51 = phi float [ 0.000000e+00, %36 ], [ %87, %107 ]
%52 = phi float [ 0.000000e+00, %36 ], [ %86, %107 ]
%53 = phi float [ 0.000000e+00, %36 ], [ %111, %107 ]
%54 = phi float [ 0.000000e+00, %36 ], [ %110, %107 ]
%55 = phi float [ 0.000000e+00, %36 ], [ %109, %107 ]
%56 = phi float [ 0.000000e+00, %36 ], [ %108, %107 ]
%57 = phi float [ 0.000000e+00, %36 ], [ %85, %107 ]
%58 = phi float [ 0.000000e+00, %36 ], [ %84, %107 ]
%59 = trunc i64 %44 to i32
%60 = add i32 %39, %59
%61 = load i32, i32* @SEEK_SET
%62 = tail call i32 @fseek(i32* %26, i32 %60, i32 %61)
%63 = call i32 @fread(i8* %7, i32 1, i32 1, i32* %26)
%64 = load i32, i32* @SEEK_SET
%65 = tail call i32 @fseek(i32* %32, i32 %60, i32 %64)
%66 = call i32 @fread(i8* %8, i32 1, i32 1, i32* %32)
%67 = load i8, i8* %7
%68 = sext i8 %67 to i32
%69 = icmp sgt i8 %67, 0
br i1 %69, label %70, label %83
70: ; preds = %43
%71 = add nsw i32 %45, %68
%72 = icmp slt i32 %47, %68
%73 = select i1 %72, i32 %68, i32 %47
%74 = add nsw i32 %49, 1
%75 = getelementptr inbounds float, float* %1, i64 %44
%76 = load float, float* %75
%77 = fadd float %51, %76
%78 = tail call float @llvm.fmuladd.f32(float %76, float %76, float %58)
%79 = fcmp olt float %76, %52
%80 = select i1 %79, float %76, float %52
%81 = fcmp ogt float %76, %57
br i1 %81, label %82, label %83
82: ; preds = %70
br label %83
83: ; preds = %70, %82, %43
%84 = phi float [ %78, %82 ], [ %78, %70 ], [ %58, %43 ]
%85 = phi float [ %76, %82 ], [ %57, %70 ], [ %57, %43 ]
%86 = phi float [ %80, %82 ], [ %80, %70 ], [ %52, %43 ]
%87 = phi float [ %77, %82 ], [ %77, %70 ], [ %51, %43 ]
%88 = phi i32 [ %74, %82 ], [ %74, %70 ], [ %49, %43 ]
%89 = phi i32 [ %73, %82 ], [ %73, %70 ], [ %47, %43 ]
%90 = phi i32 [ %71, %82 ], [ %71, %70 ], [ %45, %43 ]
%91 = load i8, i8* %8
%92 = sext i8 %91 to i32
%93 = icmp sgt i8 %91, 0
br i1 %93, label %94, label %107
94: ; preds = %83
%95 = add nsw i32 %46, %92
%96 = icmp slt i32 %48, %92
%97 = select i1 %96, i32 %92, i32 %48
%98 = add nsw i32 %50, 1
%99 = getelementptr inbounds float, float* %1, i64 %44
%100 = load float, float* %99
%101 = fadd float %56, %100
%102 = tail call float @llvm.fmuladd.f32(float %100, float %100, float %53)
%103 = fcmp olt float %100, %55
%104 = select i1 %103, float %100, float %55
%105 = fcmp ogt float %100, %54
br i1 %105, label %106, label %107
106: ; preds = %94
br label %107
107: ; preds = %94, %106, %83
%108 = phi float [ %101, %106 ], [ %101, %94 ], [ %56, %83 ]
%109 = phi float [ %104, %106 ], [ %104, %94 ], [ %55, %83 ]
%110 = phi float [ %100, %106 ], [ %54, %94 ], [ %54, %83 ]
%111 = phi float [ %102, %106 ], [ %102, %94 ], [ %53, %83 ]
%112 = phi i32 [ %98, %106 ], [ %98, %94 ], [ %50, %83 ]
%113 = phi i32 [ %97, %106 ], [ %97, %94 ], [ %48, %83 ]
%114 = phi i32 [ %95, %106 ], [ %95, %94 ], [ %46, %83 ]
%115 = add nuw i64 %44, 2
%116 = trunc i64 %115 to i32
%117 = icmp sgt i32 %116, %5
br i1 %117, label %118, label %43
118: ; preds = %107, %34
%119 = phi float [ 0.000000e+00, %34 ], [ %84, %107 ]
%120 = phi float [ 0.000000e+00, %34 ], [ %85, %107 ]
%121 = phi float [ 0.000000e+00, %34 ], [ %108, %107 ]
%122 = phi float [ 0.000000e+00, %34 ], [ %109, %107 ]
%123 = phi float [ 0.000000e+00, %34 ], [ %110, %107 ]
%124 = phi float [ 0.000000e+00, %34 ], [ %111, %107 ]
%125 = phi float [ 0.000000e+00, %34 ], [ %86, %107 ]
%126 = phi float [ 0.000000e+00, %34 ], [ %87, %107 ]
%127 = phi i32 [ 0, %34 ], [ %112, %107 ]
%128 = phi i32 [ 0, %34 ], [ %88, %107 ]
%129 = phi i32 [ 0, %34 ], [ %113, %107 ]
%130 = phi i32 [ 0, %34 ], [ %89, %107 ]
%131 = phi i32 [ 0, %34 ], [ %114, %107 ]
%132 = phi i32 [ 0, %34 ], [ %90, %107 ]
%133 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 %5)
%134 = sitofp i32 %128 to float
%135 = fpext float %134 to double
%136 = fmul double %135, 1.000000e+02
%137 = sitofp i32 %5 to float
%138 = fpext float %137 to double
%139 = fdiv double %136, %138
%140 = fptrunc double %139 to float
%141 = sitofp i32 %127 to float
%142 = fpext float %141 to double
%143 = fmul double %142, 1.000000e+02
%144 = fdiv double %143, %138
%145 = fptrunc double %144 to float
%146 = fpext float %140 to double
%147 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.9, i64 0, i64 0), i32 %128, double %146)
%148 = fpext float %145 to double
%149 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i64 0, i64 0), i32 %127, double %148)
%150 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0), i32 %132)
%151 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0), i32 %131)
%152 = sitofp i32 %132 to float
%153 = fdiv float %152, %134
%154 = sitofp i32 %131 to float
%155 = fdiv float %154, %141
%156 = fpext float %153 to double
%157 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.13, i64 0, i64 0), double %156)
%158 = fpext float %155 to double
%159 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.14, i64 0, i64 0), double %158)
%160 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.15, i64 0, i64 0), i32 %130)
%161 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.16, i64 0, i64 0), i32 %129)
%162 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.28, i64 0, i64 0))
%163 = fdiv float %126, %134
%164 = fdiv float %121, %141
%165 = fpext float %163 to double
%166 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.18, i64 0, i64 0), double %165)
%167 = fpext float %164 to double
%168 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.19, i64 0, i64 0), double %167)
%169 = fpext float %125 to double
%170 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @.str.20, i64 0, i64 0), double %169)
%171 = fpext float %122 to double
%172 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.21, i64 0, i64 0), double %171)
%173 = fpext float %120 to double
%174 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.22, i64 0, i64 0), double %173)
%175 = fpext float %123 to double
%176 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @.str.23, i64 0, i64 0), double %175)
%177 = fdiv float %119, %134
%178 = fdiv float %124, %141
%179 = fneg float %163
%180 = tail call float @llvm.fmuladd.f32(float %179, float %163, float %177)
%181 = fneg float %164
%182 = tail call float @llvm.fmuladd.f32(float %181, float %164, float %178)
%183 = fpext float %180 to double
%184 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @.str.24, i64 0, i64 0), double %183)
%185 = fpext float %182 to double
%186 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str.25, i64 0, i64 0), double %185)
%187 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.26, i64 0, i64 0), float %134, double %146)
%188 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), float %152)
%189 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %153)
%190 = sitofp i32 %130 to float
%191 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), float %190)
%192 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %163)
%193 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %125)
%194 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %120)
%195 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %180)
%196 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.26, i64 0, i64 0), float %141, double %148)
%197 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), float %154)
%198 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %155)
%199 = sitofp i32 %129 to float
%200 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0), float %199)
%201 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %164)
%202 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %122)
%203 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %123)
%204 = tail call i32 (i32*, i8*, float, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %182)
ret void
}