#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*/ fprintf(int /*<<< orphan*/ *, 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_withcounts(char *motif, float *expression, int *motif_count,
                            FILE *output_file, int n_transcripts) {
  int i;
  int index;
  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;
  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\n", motif);
  fprintf(output_file, "\tOccurences of motif %s\n", motif);
  for (i = 1; i <= n_transcripts; i++) {
    n = motif_count[i];
    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;
    }
  }
  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_withcounts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x44(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x54(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1030 <meanf@plt>
movss  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rdi
movss  -0x68(%rbp),%xmm0
mov    -0x24(%rbp),%esi
call   1050 <stdf@plt>
movss  %xmm0,-0x64(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1080 <minf@plt>
movss  %xmm0,-0x6c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1060 <maxf@plt>
movss  %xmm0,-0x70(%rbp)
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
lea    0xdf5(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movss  -0x68(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdf8(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x68(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xddd(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xddd(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x64(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdc2(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
movss  -0x6c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdc2(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x6c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xda7(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
movss  -0x70(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xda6(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x70(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd8b(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    -0x8(%rbp),%rsi
lea    0xd8f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xd79(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     13e4 <motif_stats_withcounts+0x284>
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jle    13d1 <motif_stats_withcounts+0x271>
mov    -0x38(%rbp),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jle    1350 <motif_stats_withcounts+0x1f0>
mov    -0x34(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
movss  %xmm0,-0x30(%rbp)
movss  -0x48(%rbp),%xmm0
addss  -0x30(%rbp),%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x54(%rbp),%xmm1
movss  -0x30(%rbp),%xmm0
movss  -0x30(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x30(%rbp),%xmm1
movss  -0x4c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    13b3 <motif_stats_withcounts+0x253>
movss  -0x30(%rbp),%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x30(%rbp),%xmm0
ucomiss -0x50(%rbp),%xmm0
jbe    13cc <motif_stats_withcounts+0x26c>
movss  -0x30(%rbp),%xmm0
movss  %xmm0,-0x50(%rbp)
jmp    13d1 <motif_stats_withcounts+0x271>
jmp    13d6 <motif_stats_withcounts+0x276>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1311 <motif_stats_withcounts+0x1b1>
mov    -0x8(%rbp),%rsi
lea    0xca6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xcbc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cvtsi2ssl -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xbe8(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsi2ssl -0x24(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x60(%rbp)
mov    -0x44(%rbp),%esi
movss  -0x60(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc9d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%esi
lea    0xcc4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cvtsi2ssl -0x38(%rbp),%xmm0
cvtsi2ssl -0x44(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x40(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcc3(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%esi
lea    0xce6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd09(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movss  -0x48(%rbp),%xmm0
cvtsi2ssl -0x44(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x48(%rbp)
movss  -0x48(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xced(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x4c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd0f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x50(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd30(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  -0x54(%rbp),%xmm1
movss  -0x48(%rbp),%xmm0
movss  -0x48(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x54(%rbp),%xmm0
cvtsi2ssl -0x44(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x54(%rbp)
movss  -0x54(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd15(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xb35(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x24(%rbp),%edx
lea    0xb47(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x44(%rbp),%edx
movss  -0x60(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb4f(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%edx
lea    0xb72(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x40(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb80(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x3c(%rbp),%edx
lea    0xb9f(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xbbe(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x48(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbb1(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x4c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbcf(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x50(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbec(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
movss  -0x54(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc09(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<motif_stats_withcounts>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r8d,%ebp
mov    %rbp,0x40(%rsp)
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,0x38(%rsp)
mov    %rsi,%rdi
mov    %r8d,%esi
call   1030 <meanf@plt>
movss  %xmm0,0x10(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
call   1060 <stdf@plt>
movss  %xmm0,0x18(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
call   1090 <minf@plt>
movss  %xmm0,0x8(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
call   1070 <maxf@plt>
movss  %xmm0,(%rsp)
lea    0x10b0(%rip),%rdi
call   1040 <puts@plt>
lea    0xe11(%rip),%rdi
mov    $0x1,%r12d
mov    $0x19,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10a0 <fwrite@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
lea    0xdfc(%rip),%rbp
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1080 <fprintf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x18(%rsp)
lea    0xddf(%rip),%rbp
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1080 <fprintf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xdc2(%rip),%rbp
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1080 <fprintf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,(%rsp)
lea    0xda6(%rip),%rbp
mov    %rbp,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbp,%rsi
movsd  (%rsp),%xmm0
mov    $0x1,%al
call   1080 <fprintf@plt>
lea    0xd99(%rip),%rdi
xor    %r13d,%r13d
mov    0x38(%rsp),%rbp
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,0x18(%rsp)
mov    %r14,%rdi
lea    0xd78(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x40(%rsp),%rax
test   %eax,%eax
jle    1385 <motif_stats_withcounts+0x205>
add    $0x1,%eax
xorps  %xmm3,%xmm3
xor    %r14d,%r14d
xor    %ebp,%ebp
xor    %r13d,%r13d
xorps  %xmm1,%xmm1
xorps  %xmm0,%xmm0
xorps  %xmm2,%xmm2
jmp    134b <motif_stats_withcounts+0x1cb>
movaps %xmm2,%xmm4
movaps %xmm0,%xmm5
movaps %xmm1,%xmm6
add    $0x1,%r12
movaps %xmm6,%xmm1
movaps %xmm5,%xmm0
movaps %xmm4,%xmm2
cmp    %r12,%rax
je     1396 <motif_stats_withcounts+0x216>
mov    (%r15,%r12,4),%ecx
test   %ecx,%ecx
jle    1330 <motif_stats_withcounts+0x1b0>
add    %ecx,%r14d
cmp    %ebp,%ecx
cmovg  %ecx,%ebp
add    $0x1,%r13d
movss  (%rbx,%r12,4),%xmm5
addss  %xmm5,%xmm3
movaps %xmm5,%xmm4
mulss  %xmm5,%xmm4
addss  %xmm2,%xmm4
movaps %xmm5,%xmm6
minss  %xmm1,%xmm6
ucomiss %xmm0,%xmm5
ja     1339 <motif_stats_withcounts+0x1b9>
movaps %xmm0,%xmm5
jmp    1339 <motif_stats_withcounts+0x1b9>
xorps  %xmm4,%xmm4
xorps  %xmm5,%xmm5
xorps  %xmm6,%xmm6
xorps  %xmm3,%xmm3
xor    %ebp,%ebp
xor    %r14d,%r14d
movss  %xmm3,0x8(%rsp)
movss  %xmm6,0x28(%rsp)
movss  %xmm5,0x20(%rsp)
movss  %xmm4,0x34(%rsp)
lea    0xce0(%rip),%rdi
mov    0x38(%rsp),%r12
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xcf1(%rip),%rdi
mov    0x40(%rsp),%r15
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %r13d,%xmm0
movss  %xmm0,(%rsp)
cvtss2sd %xmm0,%xmm0
mulsd  0xc0d(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsi2ss %r15d,%xmm1
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
lea    0xcca(%rip),%rdi
mov    %r13d,%esi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xcf1(%rip),%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %r14d,%xmm0
divss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x48(%rsp)
lea    0xcf2(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xd18(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe45(%rip),%rdi
call   1040 <puts@plt>
movss  0x8(%rsp),%xmm0
divss  (%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x50(%rsp)
lea    0xd20(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x28(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x28(%rsp)
lea    0xd3b(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x20(%rsp)
lea    0xd55(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movss  0x8(%rsp),%xmm1
mulss  %xmm1,%xmm1
movss  0x34(%rsp),%xmm0
subss  %xmm1,%xmm0
divss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,(%rsp)
lea    0xd5d(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0x18(%rsp),%rbx
mov    %rbx,%rdi
lea    0xb7d(%rip),%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %rbx,%rdi
lea    0xb90(%rip),%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %rbx,%rdi
lea    0xba2(%rip),%rsi
mov    %r13d,%edx
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    %rbx,%rdi
lea    0xbc0(%rip),%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %rbx,%rdi
lea    0xbd5(%rip),%rsi
movsd  0x48(%rsp),%xmm0
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    %rbx,%rdi
lea    0xbf2(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xc13(%rip),%rdi
mov    $0xd,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   10a0 <fwrite@plt>
mov    %rbx,%rdi
lea    0xc05(%rip),%rsi
movsd  0x50(%rsp),%xmm0
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    %rbx,%rdi
lea    0xc27(%rip),%rsi
movsd  0x28(%rsp),%xmm0
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    %rbx,%rdi
lea    0xc48(%rip),%rsi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1080 <fprintf@plt>
mov    %rbx,%rdi
lea    0xc69(%rip),%rsi
movsd  (%rsp),%xmm0
mov    $0x1,%al
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1080 <fprintf@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 = [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 = [25 x i8] c"\09Occurences of motif %s\0A\00"
@.str.6 = [39 x i8] c"***** Statistics for motif = %s *****\0A\00"
@.str.7 = [38 x i8] c"\09Number of transcripts explored = %d\0A\00"
@.str.8 = [56 x i8] c"\09Number of transcripts motif is present in = %d (%.1f)\0A\00"
@.str.9 = [41 x i8] c"\09Total number of motif occurrences = %d\0A\00"
@.str.10 = [52 x i8] c"\09\09Mean number of occurrences per transcript = %.2f\0A\00"
@.str.11 = [49 x i8] c"\09\09Max number of occurrences per transcript = %d\0A\00"
@.str.12 = [14 x i8] c"\0A\09Expression\0A\00"
@.str.13 = [57 x i8] c"\09Mean expression level of transcripts with motif = %.2f\0A\00"
@.str.14 = [56 x i8] c"\09Min expression level of transcripts with motif = %.2f\0A\00"
@.str.15 = [56 x i8] c"\09Max expression level of transcripts with motif = %.2f\0A\00"
@.str.16 = [60 x i8] c"\09S.D. of expression level of transcripts with motif = %.2f\0A\00"
define void @motif_stats_withcounts(i8* %0, float* %1, i32* %2, i32* %3, i32 %4) {
%6 = alloca i8*
%7 = alloca float*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca float
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca float
%18 = alloca i32
%19 = alloca float
%20 = alloca float
%21 = alloca float
%22 = alloca float
%23 = alloca float
%24 = alloca float
%25 = alloca float
%26 = alloca float
%27 = alloca float
%28 = alloca float
%29 = alloca float
store i8* %0, i8** %6
store float* %1, float** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
store i32 %4, i32* %10
store i32 0, i32* %15
store i32 0, i32* %16
store i32 0, i32* %18
store float 0.000000e+00, float* %19
store float 0.000000e+00, float* %20
store float 0.000000e+00, float* %21
store float 0.000000e+00, float* %22
%30 = load float*, float** %7
%31 = load i32, i32* %10
%32 = call float @meanf(float* %30, i32 %31)
store float %32, float* %27
%33 = load float*, float** %7
%34 = load float, float* %27
%35 = load i32, i32* %10
%36 = call float @stdf(float* %33, float %34, i32 %35)
store float %36, float* %26
%37 = load float*, float** %7
%38 = load i32, i32* %10
%39 = call float @minf(float* %37, i32 %38)
store float %39, float* %28
%40 = load float*, float** %7
%41 = load i32, i32* %10
%42 = call float @maxf(float* %40, i32 %41)
store float %42, float* %29
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%44 = load i32*, i32** %9
%45 = call i32 (i32*, i8*, ...) @fprintf(i32* %44, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%46 = load float, float* %27
%47 = fpext float %46 to double
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), double %47)
%49 = load i32*, i32** %9
%50 = load float, float* %27
%51 = fpext float %50 to double
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %49, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), double %51)
%53 = load float, float* %26
%54 = fpext float %53 to double
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %54)
%56 = load i32*, i32** %9
%57 = load float, float* %26
%58 = fpext float %57 to double
%59 = call i32 (i32*, i8*, ...) @fprintf(i32* %56, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %58)
%60 = load float, float* %28
%61 = fpext float %60 to double
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %61)
%63 = load i32*, i32** %9
%64 = load float, float* %28
%65 = fpext float %64 to double
%66 = call i32 (i32*, i8*, ...) @fprintf(i32* %63, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %65)
%67 = load float, float* %29
%68 = fpext float %67 to double
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %68)
%70 = load i32*, i32** %9
%71 = load float, float* %29
%72 = fpext float %71 to double
%73 = call i32 (i32*, i8*, ...) @fprintf(i32* %70, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %72)
%74 = load i8*, i8** %6
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %74)
%76 = load i32*, i32** %9
%77 = load i8*, i8** %6
%78 = call i32 (i32*, i8*, ...) @fprintf(i32* %76, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %77)
store i32 1, i32* %11
br label %79
79: ; preds = %128, %5
%80 = load i32, i32* %11
%81 = load i32, i32* %10
%82 = icmp sle i32 %80, %81
br i1 %82, label %83, label %131
83: ; preds = %79
%84 = load i32*, i32** %8
%85 = load i32, i32* %11
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds i32, i32* %84, i64 %86
%88 = load i32, i32* %87
store i32 %88, i32* %14
%89 = load i32, i32* %14
%90 = icmp sgt i32 %89, 0
br i1 %90, label %91, label %127
91: ; preds = %83
%92 = load i32, i32* %15
%93 = load i32, i32* %14
%94 = add nsw i32 %92, %93
store i32 %94, i32* %15
%95 = load i32, i32* %14
%96 = load i32, i32* %16
%97 = icmp sgt i32 %95, %96
br i1 %97, label %98, label %100
98: ; preds = %91
%99 = load i32, i32* %14
store i32 %99, i32* %16
br label %100
100: ; preds = %98, %91
%101 = load i32, i32* %18
%102 = add nsw i32 %101, 1
store i32 %102, i32* %18
%103 = load float*, float** %7
%104 = load i32, i32* %11
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds float, float* %103, i64 %105
%107 = load float, float* %106
store float %107, float* %13
%108 = load float, float* %19
%109 = load float, float* %13
%110 = fadd float %108, %109
store float %110, float* %19
%111 = load float, float* %22
%112 = load float, float* %13
%113 = load float, float* %13
%114 = call float @llvm.fmuladd.f32(float %112, float %113, float %111)
store float %114, float* %22
%115 = load float, float* %13
%116 = load float, float* %20
%117 = fcmp olt float %115, %116
br i1 %117, label %118, label %120
118: ; preds = %100
%119 = load float, float* %13
store float %119, float* %20
br label %120
120: ; preds = %118, %100
%121 = load float, float* %13
%122 = load float, float* %21
%123 = fcmp ogt float %121, %122
br i1 %123, label %124, label %126
124: ; preds = %120
%125 = load float, float* %13
store float %125, float* %21
br label %126
126: ; preds = %124, %120
br label %127
127: ; preds = %126, %83
br label %128
128: ; preds = %127
%129 = load i32, i32* %11
%130 = add nsw i32 %129, 1
store i32 %130, i32* %11
br label %79
131: ; preds = %79
%132 = load i8*, i8** %6
%133 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i8* %132)
%134 = load i32, i32* %10
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0), i32 %134)
%136 = load i32, i32* %18
%137 = sitofp i32 %136 to float
%138 = fpext float %137 to double
%139 = fmul double 1.000000e+02, %138
%140 = load i32, i32* %10
%141 = sitofp i32 %140 to float
%142 = fpext float %141 to double
%143 = fdiv double %139, %142
%144 = fptrunc double %143 to float
store float %144, float* %25
%145 = load i32, i32* %18
%146 = load float, float* %25
%147 = fpext float %146 to double
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0), i32 %145, double %147)
%149 = load i32, i32* %15
%150 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0), i32 %149)
%151 = load i32, i32* %15
%152 = sitofp i32 %151 to float
%153 = load i32, i32* %18
%154 = sitofp i32 %153 to float
%155 = fdiv float %152, %154
store float %155, float* %17
%156 = load float, float* %17
%157 = fpext float %156 to double
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0), double %157)
%159 = load i32, i32* %16
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.11, i64 0, i64 0), i32 %159)
%161 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
%162 = load float, float* %19
%163 = load i32, i32* %18
%164 = sitofp i32 %163 to float
%165 = fdiv float %162, %164
store float %165, float* %19
%166 = load float, float* %19
%167 = fpext float %166 to double
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), double %167)
%169 = load float, float* %20
%170 = fpext float %169 to double
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0), double %170)
%172 = load float, float* %21
%173 = fpext float %172 to double
%174 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.15, i64 0, i64 0), double %173)
%175 = load float, float* %22
%176 = load float, float* %19
%177 = load float, float* %19
%178 = fneg float %176
%179 = call float @llvm.fmuladd.f32(float %178, float %177, float %175)
store float %179, float* %22
%180 = load float, float* %22
%181 = load i32, i32* %18
%182 = sitofp i32 %181 to float
%183 = fdiv float %180, %182
store float %183, float* %22
%184 = load float, float* %22
%185 = fpext float %184 to double
%186 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.16, i64 0, i64 0), double %185)
%187 = load i32*, i32** %9
%188 = load i8*, i8** %6
%189 = call i32 (i32*, i8*, ...) @fprintf(i32* %187, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i8* %188)
%190 = load i32*, i32** %9
%191 = load i32, i32* %10
%192 = call i32 (i32*, i8*, ...) @fprintf(i32* %190, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0), i32 %191)
%193 = load i32*, i32** %9
%194 = load i32, i32* %18
%195 = load float, float* %25
%196 = fpext float %195 to double
%197 = call i32 (i32*, i8*, ...) @fprintf(i32* %193, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0), i32 %194, double %196)
%198 = load i32*, i32** %9
%199 = load i32, i32* %15
%200 = call i32 (i32*, i8*, ...) @fprintf(i32* %198, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0), i32 %199)
%201 = load i32*, i32** %9
%202 = load float, float* %17
%203 = fpext float %202 to double
%204 = call i32 (i32*, i8*, ...) @fprintf(i32* %201, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0), double %203)
%205 = load i32*, i32** %9
%206 = load i32, i32* %16
%207 = call i32 (i32*, i8*, ...) @fprintf(i32* %205, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.11, i64 0, i64 0), i32 %206)
%208 = load i32*, i32** %9
%209 = call i32 (i32*, i8*, ...) @fprintf(i32* %208, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
%210 = load i32*, i32** %9
%211 = load float, float* %19
%212 = fpext float %211 to double
%213 = call i32 (i32*, i8*, ...) @fprintf(i32* %210, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), double %212)
%214 = load i32*, i32** %9
%215 = load float, float* %20
%216 = fpext float %215 to double
%217 = call i32 (i32*, i8*, ...) @fprintf(i32* %214, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0), double %216)
%218 = load i32*, i32** %9
%219 = load float, float* %21
%220 = fpext float %219 to double
%221 = call i32 (i32*, i8*, ...) @fprintf(i32* %218, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.15, i64 0, i64 0), double %220)
%222 = load i32*, i32** %9
%223 = load float, float* %22
%224 = fpext float %223 to double
%225 = call i32 (i32*, i8*, ...) @fprintf(i32* %222, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.16, i64 0, i64 0), double %224)
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 = [25 x i8] c"\09Occurences of motif %s\0A\00"
@.str.6 = [39 x i8] c"***** Statistics for motif = %s *****\0A\00"
@.str.7 = [38 x i8] c"\09Number of transcripts explored = %d\0A\00"
@.str.8 = [56 x i8] c"\09Number of transcripts motif is present in = %d (%.1f)\0A\00"
@.str.9 = [41 x i8] c"\09Total number of motif occurrences = %d\0A\00"
@.str.10 = [52 x i8] c"\09\09Mean number of occurrences per transcript = %.2f\0A\00"
@.str.11 = [49 x i8] c"\09\09Max number of occurrences per transcript = %d\0A\00"
@.str.12 = [14 x i8] c"\0A\09Expression\0A\00"
@.str.13 = [57 x i8] c"\09Mean expression level of transcripts with motif = %.2f\0A\00"
@.str.14 = [56 x i8] c"\09Min expression level of transcripts with motif = %.2f\0A\00"
@.str.15 = [56 x i8] c"\09Max expression level of transcripts with motif = %.2f\0A\00"
@.str.16 = [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.17 = [13 x i8] c"\0A\09Expression\00"
define void @motif_stats_withcounts(i8* %0, float* %1, i32* nocapture %2, i32* nocapture %3, i32 %4) {
%6 = tail call float @meanf(float* %1, i32 %4)
%7 = tail call float @stdf(float* %1, float %6, i32 %4)
%8 = tail call float @minf(float* %1, i32 %4)
%9 = tail call float @maxf(float* %1, i32 %4)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i64 25, i64 1, i32* %3)
%12 = fpext float %6 to double
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), double %12)
%14 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), double %12)
%15 = fpext float %7 to double
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %15)
%17 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %15)
%18 = fpext float %8 to double
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %18)
%20 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %18)
%21 = fpext float %9 to double
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %21)
%23 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), double %21)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%25 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%26 = icmp slt i32 %4, 1
br i1 %26, label %65, label %27
27: ; preds = %5
%28 = add nuw i32 %4, 1
%29 = zext i32 %28 to i64
br label %30
30: ; preds = %27, %55
%31 = phi i64 [ 1, %27 ], [ %63, %55 ]
%32 = phi i32 [ 0, %27 ], [ %62, %55 ]
%33 = phi i32 [ 0, %27 ], [ %61, %55 ]
%34 = phi i32 [ 0, %27 ], [ %60, %55 ]
%35 = phi float [ 0.000000e+00, %27 ], [ %59, %55 ]
%36 = phi float [ 0.000000e+00, %27 ], [ %58, %55 ]
%37 = phi float [ 0.000000e+00, %27 ], [ %57, %55 ]
%38 = phi float [ 0.000000e+00, %27 ], [ %56, %55 ]
%39 = getelementptr inbounds i32, i32* %2, i64 %31
%40 = load i32, i32* %39
%41 = icmp sgt i32 %40, 0
br i1 %41, label %42, label %55
42: ; preds = %30
%43 = add nsw i32 %40, %32
%44 = icmp sgt i32 %40, %33
%45 = select i1 %44, i32 %40, i32 %33
%46 = add nsw i32 %34, 1
%47 = getelementptr inbounds float, float* %1, i64 %31
%48 = load float, float* %47
%49 = fadd float %35, %48
%50 = tail call float @llvm.fmuladd.f32(float %48, float %48, float %38)
%51 = fcmp olt float %48, %36
%52 = select i1 %51, float %48, float %36
%53 = fcmp ogt float %48, %37
br i1 %53, label %54, label %55
54: ; preds = %42
br label %55
55: ; preds = %30, %54, %42
%56 = phi float [ %50, %54 ], [ %50, %42 ], [ %38, %30 ]
%57 = phi float [ %48, %54 ], [ %37, %42 ], [ %37, %30 ]
%58 = phi float [ %52, %54 ], [ %52, %42 ], [ %36, %30 ]
%59 = phi float [ %49, %54 ], [ %49, %42 ], [ %35, %30 ]
%60 = phi i32 [ %46, %54 ], [ %46, %42 ], [ %34, %30 ]
%61 = phi i32 [ %45, %54 ], [ %45, %42 ], [ %33, %30 ]
%62 = phi i32 [ %43, %54 ], [ %43, %42 ], [ %32, %30 ]
%63 = add nuw nsw i64 %31, 1
%64 = icmp eq i64 %63, %29
br i1 %64, label %65, label %30
65: ; preds = %55, %5
%66 = phi float [ 0.000000e+00, %5 ], [ %56, %55 ]
%67 = phi float [ 0.000000e+00, %5 ], [ %57, %55 ]
%68 = phi float [ 0.000000e+00, %5 ], [ %58, %55 ]
%69 = phi float [ 0.000000e+00, %5 ], [ %59, %55 ]
%70 = phi i32 [ 0, %5 ], [ %60, %55 ]
%71 = phi i32 [ 0, %5 ], [ %61, %55 ]
%72 = phi i32 [ 0, %5 ], [ %62, %55 ]
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%74 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0), i32 %4)
%75 = sitofp i32 %70 to float
%76 = fpext float %75 to double
%77 = fmul double %76, 1.000000e+02
%78 = sitofp i32 %4 to float
%79 = fpext float %78 to double
%80 = fdiv double %77, %79
%81 = fptrunc double %80 to float
%82 = fpext float %81 to double
%83 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0), i32 %70, double %82)
%84 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0), i32 %72)
%85 = sitofp i32 %72 to float
%86 = fdiv float %85, %75
%87 = fpext float %86 to double
%88 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0), double %87)
%89 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.11, i64 0, i64 0), i32 %71)
%90 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.17, i64 0, i64 0))
%91 = fdiv float %69, %75
%92 = fpext float %91 to double
%93 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), double %92)
%94 = fpext float %68 to double
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0), double %94)
%96 = fpext float %67 to double
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.15, i64 0, i64 0), double %96)
%98 = fneg float %91
%99 = tail call float @llvm.fmuladd.f32(float %98, float %91, float %66)
%100 = fdiv float %99, %75
%101 = fpext float %100 to double
%102 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.16, i64 0, i64 0), double %101)
%103 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%104 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0), i32 %4)
%105 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0), i32 %70, double %82)
%106 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.9, i64 0, i64 0), i32 %72)
%107 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0), double %87)
%108 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.11, i64 0, i64 0), i32 %71)
%109 = tail call i64 @fwrite(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i64 13, i64 1, i32* %3)
%110 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), double %92)
%111 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0), double %94)
%112 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.15, i64 0, i64 0), double %96)
%113 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.16, i64 0, i64 0), double %101)
ret void
}