#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 count_perfect_matches(char *, char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, char **);
float maxf(float *, int);
float meanf(float *, int);
float minf(float *, int);
int /*<<< orphan*/ printf(char *, ...);
float stdf(float *, float, int);
void motif_stats(char *motif, float *expression, char *input_filename_upstream,
                 FILE *output_file, int n_transcripts) {
  int i;
  int index;
  int n_init, n_finit;
  int motif_length;
  int upstream_length;
  float curr_expression;
  int n;
  int total_occurrences = 0;
  int max_occurrences_per_transcript = 0;
  float mean_occurrences_per_transcript;
  int n_transcripts_present = 0;
  float mean_expression = 0;
  float min_expression = 0;
  float max_expression = 0;
  float expression_var = 0;
  float expression_std;
  float overall_mean_expression;
  float ptranscripts;
  float oa_std_expression;
  float oa_mean_expression;
  float oa_min_expression;
  float oa_max_expression;
  FILE *input_file_upstream;
  char upstream_sequence[2000];
  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");
  fprintf(output_file, "Overall expression stats\n");
  printf("\tmean expression=%.2f\n", oa_mean_expression);
  fprintf(output_file, "\tmean expression=%.2f\n", oa_mean_expression);
  printf("\ts.d. expression=%.2f\n", oa_std_expression);
  fprintf(output_file, "\ts.d. expression=%.2f\n", oa_std_expression);
  printf("\tmin expression=%.2f\n", oa_min_expression);
  fprintf(output_file, "\tmin expression=%.2f\n", oa_min_expression);
  printf("\tmax expression=%.2f\n", oa_max_expression);
  fprintf(output_file, "\tmax expression=%.2f\n", oa_max_expression);
  printf("\tOccurences of motif %s in %s\n", motif, input_filename_upstream);
  fprintf(output_file, "\tOccurences of motif %s in %s\n", motif,
          input_filename_upstream);
  input_file_upstream = fopen(input_filename_upstream, "r");
  i = 1;
  while (feof(input_file_upstream) != 1) {
    fscanf(input_file_upstream, "%s\n", &upstream_sequence);
    n = count_perfect_matches(upstream_sequence, motif);
    if (n > 0) {
      total_occurrences = total_occurrences + n;
      if (n > max_occurrences_per_transcript)
        max_occurrences_per_transcript = n;
      n_transcripts_present++;
      curr_expression = expression[i];
      mean_expression = mean_expression + curr_expression;
      expression_var = expression_var + curr_expression * curr_expression;
      if (curr_expression < min_expression)
        min_expression = curr_expression;
      if (curr_expression > max_expression)
        max_expression = curr_expression;
    }
    i++;
  }
  fclose(input_file_upstream);
  printf("***** Statistics for motif = %s *****\n", motif);
  printf("\tNumber of transcripts explored = %d\n", n_transcripts);
  ptranscripts = 100.0 * (float)n_transcripts_present / (float)n_transcripts;
  printf("\tNumber of transcripts motif is present in = %d (%.1f)\n",
         n_transcripts_present, ptranscripts);
  printf("\tTotal number of motif occurrences = %d\n", total_occurrences);
  mean_occurrences_per_transcript =
      (float)total_occurrences / (float)n_transcripts_present;
  printf("\t\tMean number of occurrences per transcript = %.2f\n",
         mean_occurrences_per_transcript);
  printf("\t\tMax number of occurrences per transcript = %d\n",
         max_occurrences_per_transcript);
  printf("\n\tExpression\n");
  mean_expression = mean_expression / (float)n_transcripts_present;
  printf("\tMean expression level of transcripts with motif = %.2f\n",
         mean_expression);
  printf("\tMin expression level of transcripts with motif = %.2f\n",
         min_expression);
  printf("\tMax expression level of transcripts with motif = %.2f\n",
         max_expression);
  expression_var = expression_var - mean_expression * mean_expression;
  expression_var = expression_var / (float)n_transcripts_present;
  printf("\tS.D. of expression level of transcripts with motif = %.2f\n",
         expression_var);
  fprintf(output_file, "***** Statistics for motif = %s *****\n", motif);
  fprintf(output_file, "\tNumber of transcripts explored = %d\n",
          n_transcripts);
  fprintf(output_file,
          "\tNumber of transcripts motif is present in = %d (%.1f)\n",
          n_transcripts_present, ptranscripts);
  fprintf(output_file, "\tTotal number of motif occurrences = %d\n",
          total_occurrences);
  fprintf(output_file, "\t\tMean number of occurrences per transcript = %.2f\n",
          mean_occurrences_per_transcript);
  fprintf(output_file, "\t\tMax number of occurrences per transcript = %d\n",
          max_occurrences_per_transcript);
  fprintf(output_file, "\n\tExpression\n");
  fprintf(output_file,
          "\tMean expression level of transcripts with motif = %.2f\n",
          mean_expression);
  fprintf(output_file,
          "\tMin expression level of transcripts with motif = %.2f\n",
          min_expression);
  fprintf(output_file,
          "\tMax expression level of transcripts with motif = %.2f\n",
          max_expression);
  fprintf(output_file,
          "\tS.D. of expression level of transcripts with motif = %.2f\n",
          expression_var);
}


x86 assembly (clang, -O0):
<motif_stats>:
push   %rbp
mov    %rsp,%rbp
sub    $0x860,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x54(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x5c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x64(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1030 <meanf@plt>
movss  %xmm0,-0x78(%rbp)
mov    -0x10(%rbp),%rdi
movss  -0x78(%rbp),%xmm0
mov    -0x24(%rbp),%esi
call   1060 <stdf@plt>
movss  %xmm0,-0x74(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   10c0 <minf@plt>
movss  %xmm0,-0x7c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1070 <maxf@plt>
movss  %xmm0,-0x80(%rbp)
lea    0xdb4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
lea    0xda2(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
movss  -0x78(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xda5(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x78(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd8a(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
movss  -0x74(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd8a(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x74(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd6f(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
movss  -0x7c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd6f(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x7c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd54(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
movss  -0x80(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd53(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x80(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd38(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    -0x8(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xd38(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0x18(%rbp),%rcx
lea    0xd1e(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xd2b(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x88(%rbp)
movl   $0x1,-0x28(%rbp)
mov    -0x88(%rbp),%rdi
call   10a0 <feof@plt>
cmp    $0x1,%eax
je     1479 <motif_stats+0x2c9>
mov    -0x88(%rbp),%rdi
lea    -0x860(%rbp),%rdx
lea    0xcea(%rip),%rsi
call   1080 <fscanf@plt>
lea    -0x860(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   10d0 <count_perfect_matches@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
jle    146b <motif_stats+0x2bb>
mov    -0x48(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jle    13ea <motif_stats+0x23a>
mov    -0x44(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x58(%rbp),%xmm0
addss  -0x40(%rbp),%xmm0
movss  %xmm0,-0x58(%rbp)
movss  -0x64(%rbp),%xmm1
movss  -0x40(%rbp),%xmm0
movss  -0x40(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x64(%rbp)
movss  -0x40(%rbp),%xmm1
movss  -0x5c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    144d <motif_stats+0x29d>
movss  -0x40(%rbp),%xmm0
movss  %xmm0,-0x5c(%rbp)
movss  -0x40(%rbp),%xmm0
ucomiss -0x60(%rbp),%xmm0
jbe    1466 <motif_stats+0x2b6>
movss  -0x40(%rbp),%xmm0
movss  %xmm0,-0x60(%rbp)
jmp    146b <motif_stats+0x2bb>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1383 <motif_stats+0x1d3>
mov    -0x88(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x8(%rbp),%rsi
lea    0xc0d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xc23(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cvtsi2ssl -0x54(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xb47(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsi2ssl -0x24(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x54(%rbp),%esi
movss  -0x70(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc04(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x48(%rbp),%esi
lea    0xc2b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cvtsi2ssl -0x48(%rbp),%xmm0
cvtsi2ssl -0x54(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x50(%rbp)
movss  -0x50(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc2a(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x4c(%rbp),%esi
lea    0xc4d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xc70(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movss  -0x58(%rbp),%xmm0
cvtsi2ssl -0x54(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x58(%rbp)
movss  -0x58(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc54(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc76(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x60(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc97(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  -0x64(%rbp),%xmm1
movss  -0x58(%rbp),%xmm0
movss  -0x58(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x64(%rbp)
movss  -0x64(%rbp),%xmm0
cvtsi2ssl -0x54(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x64(%rbp)
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc7c(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xa9c(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%edx
lea    0xaae(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x54(%rbp),%edx
movss  -0x70(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xab6(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x48(%rbp),%edx
lea    0xad9(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x50(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xae7(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x4c(%rbp),%edx
lea    0xb06(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xb25(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x58(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb18(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x5c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb36(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x60(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb53(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb70(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
add    $0x860,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<motif_stats>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x838,%rsp
mov    %r8d,%ebp
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,0x30(%rsp)
mov    %rsi,%rdi
mov    %r8d,%esi
call   1030 <meanf@plt>
movss  %xmm0,0x20(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
call   1070 <stdf@plt>
movss  %xmm0,0x8(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
call   10d0 <minf@plt>
movss  %xmm0,0x10(%rsp)
mov    %rbx,%rdi
mov    %ebp,0x3c(%rsp)
mov    %ebp,%esi
call   1080 <maxf@plt>
movss  %xmm0,0x18(%rsp)
lea    0x1065(%rip),%rdi
call   1040 <puts@plt>
lea    0xdbe(%rip),%rdi
mov    $0x19,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   10e0 <fwrite@plt>
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x20(%rsp)
lea    0xdaf(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r12,%rdi
mov    %r15,%rsi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   10a0 <fprintf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xd92(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r12,%rdi
mov    %r15,%rsi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   10a0 <fprintf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
lea    0xd75(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r12,%rdi
mov    %r15,%rsi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   10a0 <fprintf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0xd57(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r12,%rdi
mov    %r15,%rsi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   10a0 <fprintf@plt>
lea    0xd49(%rip),%r15
xor    %r14d,%r14d
mov    %r15,%rdi
mov    0x30(%rsp),%rbp
mov    %rbp,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r12,0x58(%rsp)
mov    %r12,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
mov    %r13,%rcx
xor    %eax,%eax
call   10a0 <fprintf@plt>
lea    0xd31(%rip),%rsi
mov    %r13,%rdi
call   10c0 <fopen@plt>
mov    %rax,%r15
mov    %rax,%rdi
call   10b0 <feof@plt>
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
xorps  %xmm0,%xmm0
movss  %xmm0,0x20(%rsp)
mov    $0x0,%ebp
mov    $0x0,%r13d
cmp    $0x1,%eax
jne    1629 <motif_stats+0x459>
movss  %xmm3,0x10(%rsp)
movss  %xmm2,0x8(%rsp)
movss  %xmm1,0x18(%rsp)
mov    %r15,%rdi
call   1050 <fclose@plt>
lea    0xcd9(%rip),%rdi
mov    0x30(%rsp),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xced(%rip),%rdi
mov    0x3c(%rsp),%r12d
mov    %r12d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %r14d,%xmm0
movss  %xmm0,0x2c(%rsp)
cvtss2sd %xmm0,%xmm0
mulsd  0xc00(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsi2ss %r12d,%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x50(%rsp)
lea    0xcc5(%rip),%rdi
mov    %r14d,%esi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xcec(%rip),%rdi
mov    %r13d,%ebx
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %r13d,%xmm0
divss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x40(%rsp)
lea    0xce9(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xd0f(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe3c(%rip),%rdi
call   1040 <puts@plt>
movss  0x20(%rsp),%xmm0
divss  0x2c(%rsp),%xmm0
movss  %xmm0,0x20(%rsp)
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x48(%rsp)
lea    0xd16(%rip),%r13
mov    %r13,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
lea    0xd2e(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xd48(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x20(%rsp),%xmm1
mulss  %xmm1,%xmm1
movss  0x18(%rsp),%xmm0
subss  %xmm1,%xmm0
divss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0xd4e(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    0x58(%rsp),%r15
mov    %r15,%rdi
lea    0xb6e(%rip),%rsi
mov    0x30(%rsp),%rdx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    %r15,%rdi
lea    0xb7f(%rip),%rsi
mov    %r12d,%edx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    %r15,%rdi
lea    0xb91(%rip),%rsi
mov    %r14d,%edx
movsd  0x50(%rsp),%xmm0
mov    $0x1,%al
call   10a0 <fprintf@plt>
mov    %r15,%rdi
lea    0xbaf(%rip),%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    %r15,%rdi
lea    0xbc5(%rip),%rsi
movsd  0x40(%rsp),%xmm0
mov    $0x1,%al
call   10a0 <fprintf@plt>
mov    %r15,%rdi
lea    0xbe2(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   10a0 <fprintf@plt>
lea    0xc03(%rip),%rdi
mov    $0xd,%esi
mov    $0x1,%edx
mov    %r15,%rcx
call   10e0 <fwrite@plt>
mov    %r15,%rdi
mov    %r13,%rsi
movsd  0x48(%rsp),%xmm0
mov    $0x1,%al
call   10a0 <fprintf@plt>
mov    %r15,%rdi
lea    0xc1b(%rip),%rsi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   10a0 <fprintf@plt>
mov    %r15,%rdi
lea    0xc3c(%rip),%rsi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   10a0 <fprintf@plt>
mov    %r15,%rdi
lea    0xc5d(%rip),%rsi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   10a0 <fprintf@plt>
add    $0x838,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0x4,%rbx
xorps  %xmm0,%xmm0
movss  %xmm0,0x20(%rsp)
xor    %r13d,%r13d
lea    0x60(%rsp),%r12
xor    %ebp,%ebp
xor    %r14d,%r14d
xorps  %xmm4,%xmm4
xorps  %xmm0,%xmm0
xorps  %xmm5,%xmm5
jmp    1686 <motif_stats+0x4b6>
xchg   %ax,%ax
movss  %xmm2,0x8(%rsp)
mov    %r15,%rdi
call   10b0 <feof@plt>
add    $0x4,%rbx
movss  0x10(%rsp),%xmm3
movaps %xmm3,%xmm4
movss  0x8(%rsp),%xmm2
movaps %xmm2,%xmm0
movss  0x18(%rsp),%xmm1
movaps %xmm1,%xmm5
cmp    $0x1,%eax
je     13a3 <motif_stats+0x1d3>
movss  %xmm5,0x18(%rsp)
movss  %xmm4,0x10(%rsp)
movss  %xmm0,0x8(%rsp)
mov    %r15,%rdi
lea    0x9f5(%rip),%rsi
mov    %r12,%rdx
call   1090 <fscanf@plt>
mov    %r12,%rdi
mov    0x30(%rsp),%rsi
call   10f0 <count_perfect_matches@plt>
test   %eax,%eax
jle    1656 <motif_stats+0x486>
add    %eax,%r13d
cmp    %ebp,%eax
cmovg  %eax,%ebp
add    $0x1,%r14d
movss  (%rbx),%xmm2
movss  0x20(%rsp),%xmm0
addss  %xmm2,%xmm0
movaps %xmm2,%xmm1
mulss  %xmm2,%xmm1
addss  0x18(%rsp),%xmm1
movaps %xmm2,%xmm3
minss  0x10(%rsp),%xmm3
movss  0x8(%rsp),%xmm4
ucomiss %xmm4,%xmm2
movss  %xmm0,0x20(%rsp)
movss  %xmm1,0x18(%rsp)
movss  %xmm3,0x10(%rsp)
ja     1650 <motif_stats+0x480>
movss  %xmm4,0x8(%rsp)
jmp    1656 <motif_stats+0x486>

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 = [23 x i8] c"\09s.d. expression=%.2f\0A\00"
@.str.3 = [22 x i8] c"\09min expression=%.2f\0A\00"
@.str.4 = [22 x i8] c"\09max expression=%.2f\0A\00"
@.str.5 = [31 x i8] c"\09Occurences of motif %s in %s\0A\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [4 x i8] c"%s\0A\00"
@.str.8 = [39 x i8] c"***** Statistics for motif = %s *****\0A\00"
@.str.9 = [38 x i8] c"\09Number of transcripts explored = %d\0A\00"
@.str.10 = [56 x i8] c"\09Number of transcripts motif is present in = %d (%.1f)\0A\00"
@.str.11 = [41 x i8] c"\09Total number of motif occurrences = %d\0A\00"
@.str.12 = [52 x i8] c"\09\09Mean number of occurrences per transcript = %.2f\0A\00"
@.str.13 = [49 x i8] c"\09\09Max number of occurrences per transcript = %d\0A\00"
@.str.14 = [14 x i8] c"\0A\09Expression\0A\00"
@.str.15 = [57 x i8] c"\09Mean expression level of transcripts with motif = %.2f\0A\00"
@.str.16 = [56 x i8] c"\09Min expression level of transcripts with motif = %.2f\0A\00"
@.str.17 = [56 x i8] c"\09Max expression level of transcripts with motif = %.2f\0A\00"
@.str.18 = [60 x i8] c"\09S.D. of expression level of transcripts with motif = %.2f\0A\00"
define void @motif_stats(i8* %0, float* %1, i8* %2, i32* %3, i32 %4) {
%6 = alloca i8*
%7 = alloca float*
%8 = alloca i8*
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca float
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca float
%22 = alloca i32
%23 = alloca float
%24 = alloca float
%25 = alloca float
%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 i32*
%35 = alloca [2000 x i8]
store i8* %0, i8** %6
store float* %1, float** %7
store i8* %2, i8** %8
store i32* %3, i32** %9
store i32 %4, i32* %10
store i32 0, i32* %19
store i32 0, i32* %20
store i32 0, i32* %22
store float 0.000000e+00, float* %23
store float 0.000000e+00, float* %24
store float 0.000000e+00, float* %25
store float 0.000000e+00, float* %26
%36 = load float*, float** %7
%37 = load i32, i32* %10
%38 = call float @meanf(float* %36, i32 %37)
store float %38, float* %31
%39 = load float*, float** %7
%40 = load float, float* %31
%41 = load i32, i32* %10
%42 = call float @stdf(float* %39, float %40, i32 %41)
store float %42, float* %30
%43 = load float*, float** %7
%44 = load i32, i32* %10
%45 = call float @minf(float* %43, i32 %44)
store float %45, float* %32
%46 = load float*, float** %7
%47 = load i32, i32* %10
%48 = call float @maxf(float* %46, i32 %47)
store float %48, float* %33
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%50 = load i32*, i32** %9
%51 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%52 = load float, float* %31
%53 = fpext float %52 to double
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), double %53)
%55 = load i32*, i32** %9
%56 = load float, float* %31
%57 = fpext float %56 to double
%58 = call i32 (i32*, i8*, ...) @fprintf(i32* %55, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), double %57)
%59 = load float, float* %30
%60 = fpext float %59 to double
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %60)
%62 = load i32*, i32** %9
%63 = load float, float* %30
%64 = fpext float %63 to double
%65 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %64)
%66 = load float, float* %32
%67 = fpext float %66 to double
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %67)
%69 = load i32*, i32** %9
%70 = load float, float* %32
%71 = fpext float %70 to double
%72 = call i32 (i32*, i8*, ...) @fprintf(i32* %69, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %71)
%73 = load float, float* %33
%74 = fpext float %73 to double
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %74)
%76 = load i32*, i32** %9
%77 = load float, float* %33
%78 = fpext float %77 to double
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %76, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %78)
%80 = load i8*, i8** %6
%81 = load i8*, i8** %8
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8* %80, i8* %81)
%83 = load i32*, i32** %9
%84 = load i8*, i8** %6
%85 = load i8*, i8** %8
%86 = call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8* %84, i8* %85)
%87 = load i8*, i8** %8
%88 = call i32* @fopen(i8* %87, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %88, i32** %34
store i32 1, i32* %11
br label %89
89: ; preds = %138, %5
%90 = load i32*, i32** %34
%91 = call i32 @feof(i32* %90)
%92 = icmp ne i32 %91, 1
br i1 %92, label %93, label %141
93: ; preds = %89
%94 = load i32*, i32** %34
%95 = bitcast [2000 x i8]* %35 to i8**
%96 = call i32 @fscanf(i32* %94, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8** %95)
%97 = getelementptr inbounds [2000 x i8], [2000 x i8]* %35, i64 0, i64 0
%98 = load i8*, i8** %6
%99 = call i32 @count_perfect_matches(i8* %97, i8* %98)
store i32 %99, i32* %18
%100 = load i32, i32* %18
%101 = icmp sgt i32 %100, 0
br i1 %101, label %102, label %138
102: ; preds = %93
%103 = load i32, i32* %19
%104 = load i32, i32* %18
%105 = add nsw i32 %103, %104
store i32 %105, i32* %19
%106 = load i32, i32* %18
%107 = load i32, i32* %20
%108 = icmp sgt i32 %106, %107
br i1 %108, label %109, label %111
109: ; preds = %102
%110 = load i32, i32* %18
store i32 %110, i32* %20
br label %111
111: ; preds = %109, %102
%112 = load i32, i32* %22
%113 = add nsw i32 %112, 1
store i32 %113, i32* %22
%114 = load float*, float** %7
%115 = load i32, i32* %11
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds float, float* %114, i64 %116
%118 = load float, float* %117
store float %118, float* %17
%119 = load float, float* %23
%120 = load float, float* %17
%121 = fadd float %119, %120
store float %121, float* %23
%122 = load float, float* %26
%123 = load float, float* %17
%124 = load float, float* %17
%125 = call float @llvm.fmuladd.f32(float %123, float %124, float %122)
store float %125, float* %26
%126 = load float, float* %17
%127 = load float, float* %24
%128 = fcmp olt float %126, %127
br i1 %128, label %129, label %131
129: ; preds = %111
%130 = load float, float* %17
store float %130, float* %24
br label %131
131: ; preds = %129, %111
%132 = load float, float* %17
%133 = load float, float* %25
%134 = fcmp ogt float %132, %133
br i1 %134, label %135, label %137
135: ; preds = %131
%136 = load float, float* %17
store float %136, float* %25
br label %137
137: ; preds = %135, %131
br label %138
138: ; preds = %137, %93
%139 = load i32, i32* %11
%140 = add nsw i32 %139, 1
store i32 %140, i32* %11
br label %89
141: ; preds = %89
%142 = load i32*, i32** %34
%143 = call i32 @fclose(i32* %142)
%144 = load i8*, i8** %6
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i8* %144)
%146 = load i32, i32* %10
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i32 %146)
%148 = load i32, i32* %22
%149 = sitofp i32 %148 to float
%150 = fpext float %149 to double
%151 = fmul double 1.000000e+02, %150
%152 = load i32, i32* %10
%153 = sitofp i32 %152 to float
%154 = fpext float %153 to double
%155 = fdiv double %151, %154
%156 = fptrunc double %155 to float
store float %156, float* %29
%157 = load i32, i32* %22
%158 = load float, float* %29
%159 = fpext float %158 to double
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0), i32 %157, double %159)
%161 = load i32, i32* %19
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0), i32 %161)
%163 = load i32, i32* %19
%164 = sitofp i32 %163 to float
%165 = load i32, i32* %22
%166 = sitofp i32 %165 to float
%167 = fdiv float %164, %166
store float %167, float* %21
%168 = load float, float* %21
%169 = fpext float %168 to double
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0), double %169)
%171 = load i32, i32* %20
%172 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0), i32 %171)
%173 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0))
%174 = load float, float* %23
%175 = load i32, i32* %22
%176 = sitofp i32 %175 to float
%177 = fdiv float %174, %176
store float %177, float* %23
%178 = load float, float* %23
%179 = fpext float %178 to double
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0), double %179)
%181 = load float, float* %24
%182 = fpext float %181 to double
%183 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.16, i64 0, i64 0), double %182)
%184 = load float, float* %25
%185 = fpext float %184 to double
%186 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.17, i64 0, i64 0), double %185)
%187 = load float, float* %26
%188 = load float, float* %23
%189 = load float, float* %23
%190 = fneg float %188
%191 = call float @llvm.fmuladd.f32(float %190, float %189, float %187)
store float %191, float* %26
%192 = load float, float* %26
%193 = load i32, i32* %22
%194 = sitofp i32 %193 to float
%195 = fdiv float %192, %194
store float %195, float* %26
%196 = load float, float* %26
%197 = fpext float %196 to double
%198 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.18, i64 0, i64 0), double %197)
%199 = load i32*, i32** %9
%200 = load i8*, i8** %6
%201 = call i32 (i32*, i8*, ...) @fprintf(i32* %199, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i8* %200)
%202 = load i32*, i32** %9
%203 = load i32, i32* %10
%204 = call i32 (i32*, i8*, ...) @fprintf(i32* %202, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i32 %203)
%205 = load i32*, i32** %9
%206 = load i32, i32* %22
%207 = load float, float* %29
%208 = fpext float %207 to double
%209 = call i32 (i32*, i8*, ...) @fprintf(i32* %205, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0), i32 %206, double %208)
%210 = load i32*, i32** %9
%211 = load i32, i32* %19
%212 = call i32 (i32*, i8*, ...) @fprintf(i32* %210, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0), i32 %211)
%213 = load i32*, i32** %9
%214 = load float, float* %21
%215 = fpext float %214 to double
%216 = call i32 (i32*, i8*, ...) @fprintf(i32* %213, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0), double %215)
%217 = load i32*, i32** %9
%218 = load i32, i32* %20
%219 = call i32 (i32*, i8*, ...) @fprintf(i32* %217, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0), i32 %218)
%220 = load i32*, i32** %9
%221 = call i32 (i32*, i8*, ...) @fprintf(i32* %220, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0))
%222 = load i32*, i32** %9
%223 = load float, float* %23
%224 = fpext float %223 to double
%225 = call i32 (i32*, i8*, ...) @fprintf(i32* %222, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0), double %224)
%226 = load i32*, i32** %9
%227 = load float, float* %24
%228 = fpext float %227 to double
%229 = call i32 (i32*, i8*, ...) @fprintf(i32* %226, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.16, i64 0, i64 0), double %228)
%230 = load i32*, i32** %9
%231 = load float, float* %25
%232 = fpext float %231 to double
%233 = call i32 (i32*, i8*, ...) @fprintf(i32* %230, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.17, i64 0, i64 0), double %232)
%234 = load i32*, i32** %9
%235 = load float, float* %26
%236 = fpext float %235 to double
%237 = call i32 (i32*, i8*, ...) @fprintf(i32* %234, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.18, i64 0, i64 0), double %236)
ret void
}

LLVM IR (-O2):
@.str = [26 x i8] c"Overall expression stats\0A\00"
@.str.1 = [23 x i8] c"\09mean expression=%.2f\0A\00"
@.str.2 = [23 x i8] c"\09s.d. expression=%.2f\0A\00"
@.str.3 = [22 x i8] c"\09min expression=%.2f\0A\00"
@.str.4 = [22 x i8] c"\09max expression=%.2f\0A\00"
@.str.5 = [31 x i8] c"\09Occurences of motif %s in %s\0A\00"
@.str.6 = [2 x i8] c"r\00"
@.str.7 = [4 x i8] c"%s\0A\00"
@.str.8 = [39 x i8] c"***** Statistics for motif = %s *****\0A\00"
@.str.9 = [38 x i8] c"\09Number of transcripts explored = %d\0A\00"
@.str.10 = [56 x i8] c"\09Number of transcripts motif is present in = %d (%.1f)\0A\00"
@.str.11 = [41 x i8] c"\09Total number of motif occurrences = %d\0A\00"
@.str.12 = [52 x i8] c"\09\09Mean number of occurrences per transcript = %.2f\0A\00"
@.str.13 = [49 x i8] c"\09\09Max number of occurrences per transcript = %d\0A\00"
@.str.14 = [14 x i8] c"\0A\09Expression\0A\00"
@.str.15 = [57 x i8] c"\09Mean expression level of transcripts with motif = %.2f\0A\00"
@.str.16 = [56 x i8] c"\09Min expression level of transcripts with motif = %.2f\0A\00"
@.str.17 = [56 x i8] c"\09Max expression level of transcripts with motif = %.2f\0A\00"
@.str.18 = [60 x i8] c"\09S.D. of expression level of transcripts with motif = %.2f\0A\00"
@str = [25 x i8] c"Overall expression stats\00"
@str.19 = [13 x i8] c"\0A\09Expression\00"
define void @motif_stats(i8* %0, float* %1, i8* %2, i32* nocapture %3, i32 %4) {
%6 = alloca [2000 x i8]
%7 = getelementptr inbounds [2000 x i8], [2000 x i8]* %6, i64 0, i64 0
%8 = tail call float @meanf(float* %1, i32 %4)
%9 = tail call float @stdf(float* %1, float %8, i32 %4)
%10 = tail call float @minf(float* %1, i32 %4)
%11 = tail call float @maxf(float* %1, i32 %4)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%13 = tail call i64 @fwrite(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i64 25, i64 1, i32* %3)
%14 = fpext float %8 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*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), double %14)
%17 = fpext float %9 to double
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %17)
%19 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %17)
%20 = fpext float %10 to double
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %20)
%22 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %20)
%23 = fpext float %11 to double
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %23)
%25 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %23)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8* %0, i8* %2)
%27 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i8* %0, i8* %2)
%28 = tail call i32* @fopen(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%29 = call i32 @feof(i32* %28)
%30 = icmp eq i32 %29, 1
br i1 %30, label %69, label %31
31: ; preds = %5
%32 = bitcast [2000 x i8]* %6 to i8**
br label %33
33: ; preds = %31, %58
%34 = phi i64 [ 1, %31 ], [ %66, %58 ]
%35 = phi i32 [ 0, %31 ], [ %65, %58 ]
%36 = phi i32 [ 0, %31 ], [ %64, %58 ]
%37 = phi i32 [ 0, %31 ], [ %63, %58 ]
%38 = phi float [ 0.000000e+00, %31 ], [ %62, %58 ]
%39 = phi float [ 0.000000e+00, %31 ], [ %61, %58 ]
%40 = phi float [ 0.000000e+00, %31 ], [ %60, %58 ]
%41 = phi float [ 0.000000e+00, %31 ], [ %59, %58 ]
%42 = call i32 @fscanf(i32* %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8** %32)
%43 = call i32 @count_perfect_matches(i8* %7, i8* %0)
%44 = icmp sgt i32 %43, 0
br i1 %44, label %45, label %58
45: ; preds = %33
%46 = add nsw i32 %43, %35
%47 = icmp sgt i32 %43, %36
%48 = select i1 %47, i32 %43, i32 %36
%49 = add nsw i32 %37, 1
%50 = getelementptr inbounds float, float* %1, i64 %34
%51 = load float, float* %50
%52 = fadd float %38, %51
%53 = call float @llvm.fmuladd.f32(float %51, float %51, float %41)
%54 = fcmp olt float %51, %39
%55 = select i1 %54, float %51, float %39
%56 = fcmp ogt float %51, %40
br i1 %56, label %57, label %58
57: ; preds = %45
br label %58
58: ; preds = %45, %57, %33
%59 = phi float [ %53, %57 ], [ %53, %45 ], [ %41, %33 ]
%60 = phi float [ %51, %57 ], [ %40, %45 ], [ %40, %33 ]
%61 = phi float [ %55, %57 ], [ %55, %45 ], [ %39, %33 ]
%62 = phi float [ %52, %57 ], [ %52, %45 ], [ %38, %33 ]
%63 = phi i32 [ %49, %57 ], [ %49, %45 ], [ %37, %33 ]
%64 = phi i32 [ %48, %57 ], [ %48, %45 ], [ %36, %33 ]
%65 = phi i32 [ %46, %57 ], [ %46, %45 ], [ %35, %33 ]
%66 = add nuw i64 %34, 1
%67 = call i32 @feof(i32* %28)
%68 = icmp eq i32 %67, 1
br i1 %68, label %69, label %33
69: ; preds = %58, %5
%70 = phi float [ 0.000000e+00, %5 ], [ %59, %58 ]
%71 = phi float [ 0.000000e+00, %5 ], [ %60, %58 ]
%72 = phi float [ 0.000000e+00, %5 ], [ %61, %58 ]
%73 = phi float [ 0.000000e+00, %5 ], [ %62, %58 ]
%74 = phi i32 [ 0, %5 ], [ %63, %58 ]
%75 = phi i32 [ 0, %5 ], [ %64, %58 ]
%76 = phi i32 [ 0, %5 ], [ %65, %58 ]
%77 = call i32 @fclose(i32* %28)
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i32 %4)
%80 = sitofp i32 %74 to float
%81 = fpext float %80 to double
%82 = fmul double %81, 1.000000e+02
%83 = sitofp i32 %4 to float
%84 = fpext float %83 to double
%85 = fdiv double %82, %84
%86 = fptrunc double %85 to float
%87 = fpext float %86 to double
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0), i32 %74, double %87)
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0), i32 %76)
%90 = sitofp i32 %76 to float
%91 = fdiv float %90, %80
%92 = fpext float %91 to double
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0), double %92)
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0), i32 %75)
%95 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.19, i64 0, i64 0))
%96 = fdiv float %73, %80
%97 = fpext float %96 to double
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0), double %97)
%99 = fpext float %72 to double
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.16, i64 0, i64 0), double %99)
%101 = fpext float %71 to double
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.17, i64 0, i64 0), double %101)
%103 = fneg float %96
%104 = call float @llvm.fmuladd.f32(float %103, float %96, float %70)
%105 = fdiv float %104, %80
%106 = fpext float %105 to double
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.18, i64 0, i64 0), double %106)
%108 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%109 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i32 %4)
%110 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0), i32 %74, double %87)
%111 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.11, i64 0, i64 0), i32 %76)
%112 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0), double %92)
%113 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0), i32 %75)
%114 = call i64 @fwrite(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.14, i64 0, i64 0), i64 13, i64 1, i32* %3)
%115 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0), double %97)
%116 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.16, i64 0, i64 0), double %99)
%117 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.17, i64 0, i64 0), double %101)
%118 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.18, i64 0, i64 0), double %106)
ret void
}