#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 */
double average(double, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int fscanf(int /*<<< orphan*/ *, char *, double *);
double max(double, double);
double min(double, double);
int /*<<< orphan*/ printf(char *);
double stdDev(double);
void ShowHeader(FILE *file1, FILE *file2, char inum[], char onum[],
                double val) {
  file1 = fopen(inum, "r");
  file2 = fopen(onum, "w");
  if (file1 == NULL || file2 == NULL) {
    printf("Unable to open\n");
    exit(-1);
  } else {
    int count = 0;
    double sum = 0;
    double vari[100];
    double final;
    double secValMax = -(1.0 / 0.0);
    double secValMin = (1.0 / 0.0);
    while (!feof(file1)) {
      if (fscanf(file1, "%lf", &val) != 1)
        break;
      secValMax = max(val, secValMax);
      secValMin = min(val, secValMin);
      vari[count] = val;
      sum += val;
      count++;
    }
    double result = 0;
    int i = 0;
    int count2 = 0;
    while (i < count) {
      result += ((vari[count2] - average(sum, count)) *
                 (vari[count2] - average(sum, count)));
      i++;
      count2++;
    }
    final = (result / (count - 1));
    fprintf(file2, "Program by Jonathan Buch\nFile Name: %s\n\n", onum);
    fprintf(file2, "Average: %lf\n", average(sum, count));
    fprintf(file2, "Maximum: %lf\n", secValMax);
    fprintf(file2, "Minimum: %lf\n", secValMin);
    fprintf(file2, "Standard Deviation: %lf\n", stdDev(final));
  }
  fclose(file1);
  fclose(file2);
}


x86 assembly (clang, -O0):
<ShowHeader>:
push   %rbp
mov    %rsp,%rbp
sub    $0x3b0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movsd  %xmm0,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe35(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x8(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xe23(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     120e <ShowHeader+0x5e>
cmpq   $0x0,-0x10(%rbp)
jne    1224 <ShowHeader+0x74>
lea    0xdff(%rip),%rdi
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
movl   $0x0,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xdcd(%rip),%xmm0
movsd  %xmm0,-0x370(%rbp)
ff
movsd  0xdb5(%rip),%xmm0
movsd  %xmm0,-0x378(%rbp)
ff
mov    -0x8(%rbp),%rdi
call   10a0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1271 <ShowHeader+0xc1>
jmp    12f6 <ShowHeader+0x146>
mov    -0x8(%rbp),%rdi
lea    0xda8(%rip),%rsi
lea    -0x28(%rbp),%rdx
call   1080 <fscanf@plt>
cmp    $0x1,%eax
je     1293 <ShowHeader+0xe3>
jmp    12f6 <ShowHeader+0x146>
movsd  -0x28(%rbp),%xmm0
movsd  -0x370(%rbp),%xmm1
ff
call   1070 <max@plt>
movsd  %xmm0,-0x370(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movsd  -0x378(%rbp),%xmm1
ff
call   1060 <min@plt>
movsd  %xmm0,-0x378(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
movslq -0x2c(%rbp),%rax
movsd  %xmm0,-0x360(%rbp,%rax,8)
ff ff
movsd  -0x28(%rbp),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1253 <ShowHeader+0xa3>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x380(%rbp)
movl   $0x0,-0x384(%rbp)
movl   $0x0,-0x388(%rbp)
mov    -0x384(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    13d7 <ShowHeader+0x227>
movslq -0x388(%rbp),%rax
movsd  -0x360(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x3a0(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
mov    -0x2c(%rbp),%edi
call   10b0 <average@plt>
movaps %xmm0,%xmm1
movsd  -0x3a0(%rbp),%xmm0
ff
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x390(%rbp)
ff
movslq -0x388(%rbp),%rax
movsd  -0x360(%rbp,%rax,8),%xmm0
ff ff
movsd  %xmm0,-0x398(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
mov    -0x2c(%rbp),%edi
call   10b0 <average@plt>
movsd  -0x398(%rbp),%xmm2
ff
movaps %xmm0,%xmm1
movsd  -0x390(%rbp),%xmm0
ff
subsd  %xmm1,%xmm2
movsd  -0x380(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x380(%rbp)
ff
mov    -0x384(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x384(%rbp)
mov    -0x388(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x388(%rbp)
jmp    1315 <ShowHeader+0x165>
movsd  -0x380(%rbp),%xmm0
ff
mov    -0x2c(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x368(%rbp)
ff
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xc24(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x3b0(%rbp)
movsd  -0x38(%rbp),%xmm0
mov    -0x2c(%rbp),%edi
call   10b0 <average@plt>
mov    -0x3b0(%rbp),%rdi
lea    0xc20(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    -0x10(%rbp),%rdi
movsd  -0x370(%rbp),%xmm0
ff
lea    0xc14(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    -0x10(%rbp),%rdi
movsd  -0x378(%rbp),%xmm0
ff
lea    0xc08(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x3a8(%rbp)
movsd  -0x368(%rbp),%xmm0
ff
call   1040 <stdDev@plt>
mov    -0x3a8(%rbp),%rdi
lea    0xbe9(%rip),%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    -0x8(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
add    $0x3b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ShowHeader>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x368,%rsp
mov    %rcx,%r15
mov    %rdx,%rdi
movsd  %xmm0,0x20(%rsp)
lea    0xe3c(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,%r12
lea    0xe2f(%rip),%rsi
mov    %r15,%rdi
call   10c0 <fopen@plt>
test   %r12,%r12
je     1409 <ShowHeader+0x259>
mov    %rax,%r14
test   %rax,%rax
je     1409 <ShowHeader+0x259>
mov    %r12,%rdi
call   10a0 <feof@plt>
test   %eax,%eax
je     123c <ShowHeader+0x8c>
xor    %ebx,%ebx
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xde1(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xddb(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
xorpd  %xmm1,%xmm1
jmp    1357 <ShowHeader+0x1a7>
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xdb3(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xdad(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
xor    %ebx,%ebx
lea    0xdaa(%rip),%r13
lea    0x20(%rsp),%rbp
nop
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
call   1080 <fscanf@plt>
cmp    $0x1,%eax
jne    12dd <ShowHeader+0x12d>
movsd  0x20(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
call   1070 <max@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x20(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
call   1060 <min@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x40(%rsp,%rbx,8)
movsd  0x8(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
add    $0x1,%rbx
mov    %r12,%rdi
call   10a0 <feof@plt>
test   %eax,%eax
je     1270 <ShowHeader+0xc0>
test   %ebx,%ebx
je     1351 <ShowHeader+0x1a1>
mov    %ebx,%r13d
xorpd  %xmm1,%xmm1
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movsd  %xmm1,0x28(%rsp)
movsd  0x40(%rsp,%rbp,8),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
mov    %ebx,%edi
call   10b0 <average@plt>
movsd  0x30(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x38(%rsp)
movsd  0x8(%rsp),%xmm0
mov    %ebx,%edi
call   10b0 <average@plt>
movsd  0x28(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
subsd  %xmm0,%xmm2
mulsd  0x38(%rsp),%xmm2
addsd  %xmm2,%xmm1
add    $0x1,%rbp
cmp    %rbp,%r13
jne    12f0 <ShowHeader+0x140>
jmp    1357 <ShowHeader+0x1a7>
xorpd  %xmm1,%xmm1
xor    %ebx,%ebx
lea    -0x1(%rbx),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,0x28(%rsp)
lea    0xca6(%rip),%rsi
mov    %r14,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1090 <fprintf@plt>
movsd  0x8(%rsp),%xmm0
mov    %ebx,%edi
call   10b0 <average@plt>
lea    0xcae(%rip),%rsi
mov    %r14,%rdi
mov    $0x1,%al
call   1090 <fprintf@plt>
lea    0xcab(%rip),%rsi
mov    %r14,%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
lea    0xca2(%rip),%rsi
mov    %r14,%rdi
movsd  0x18(%rsp),%xmm0
mov    $0x1,%al
call   1090 <fprintf@plt>
movsd  0x28(%rsp),%xmm0
call   1050 <stdDev@plt>
lea    0xc8e(%rip),%rsi
mov    %r14,%rdi
mov    $0x1,%al
call   1090 <fprintf@plt>
mov    %r12,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
add    $0x368,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc74(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [16 x i8] c"Unable to open\0A\00"
@.str.3 = [4 x i8] c"%lf\00"
@.str.4 = [41 x i8] c"Program by Jonathan Buch\0AFile Name: %s\0A\0A\00"
@.str.5 = [14 x i8] c"Average: %lf\0A\00"
@.str.6 = [14 x i8] c"Maximum: %lf\0A\00"
@.str.7 = [14 x i8] c"Minimum: %lf\0A\00"
@.str.8 = [25 x i8] c"Standard Deviation: %lf\0A\00"
define void @ShowHeader(i32* %0, i32* %1, i8* %2, i8* %3, double %4) {
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca double
%11 = alloca i32
%12 = alloca double
%13 = alloca [100 x double]
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca i32
%19 = alloca i32
store i32* %0, i32** %6
store i32* %1, i32** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store double %4, double* %10
%20 = load i8*, i8** %8
%21 = call i32* @fopen(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %21, i32** %6
%22 = load i8*, i8** %9
%23 = call i32* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %23, i32** %7
%24 = load i32*, i32** %6
%25 = icmp eq i32* %24, null
br i1 %25, label %29, label %26
26: ; preds = %5
%27 = load i32*, i32** %7
%28 = icmp eq i32* %27, null
br i1 %28, label %29, label %32
29: ; preds = %26, %5
%30 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%31 = call i32 @exit(i32 -1)
unreachable
32: ; preds = %26
store i32 0, i32* %11
store double 0.000000e+00, double* %12
store double 0xFFF0000000000000, double* %15
store double 0x7FF0000000000000, double* %16
br label %33
33: ; preds = %43, %32
%34 = load i32*, i32** %6
%35 = call i32 @feof(i32* %34)
%36 = icmp ne i32 %35, 0
%37 = xor i1 %36, true
br i1 %37, label %38, label %59
38: ; preds = %33
%39 = load i32*, i32** %6
%40 = call i32 @fscanf(i32* %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %10)
%41 = icmp ne i32 %40, 1
br i1 %41, label %42, label %43
42: ; preds = %38
br label %59
43: ; preds = %38
%44 = load double, double* %10
%45 = load double, double* %15
%46 = call double @max(double %44, double %45)
store double %46, double* %15
%47 = load double, double* %10
%48 = load double, double* %16
%49 = call double @min(double %47, double %48)
store double %49, double* %16
%50 = load double, double* %10
%51 = load i32, i32* %11
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 %52
store double %50, double* %53
%54 = load double, double* %10
%55 = load double, double* %12
%56 = fadd double %55, %54
store double %56, double* %12
%57 = load i32, i32* %11
%58 = add nsw i32 %57, 1
store i32 %58, i32* %11
br label %33
59: ; preds = %42, %33
store double 0.000000e+00, double* %17
store i32 0, i32* %18
store i32 0, i32* %19
br label %60
60: ; preds = %64, %59
%61 = load i32, i32* %18
%62 = load i32, i32* %11
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %87
64: ; preds = %60
%65 = load i32, i32* %19
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 %66
%68 = load double, double* %67
%69 = load double, double* %12
%70 = load i32, i32* %11
%71 = call double @average(double %69, i32 %70)
%72 = fsub double %68, %71
%73 = load i32, i32* %19
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds [100 x double], [100 x double]* %13, i64 0, i64 %74
%76 = load double, double* %75
%77 = load double, double* %12
%78 = load i32, i32* %11
%79 = call double @average(double %77, i32 %78)
%80 = fsub double %76, %79
%81 = load double, double* %17
%82 = call double @llvm.fmuladd.f64(double %72, double %80, double %81)
store double %82, double* %17
%83 = load i32, i32* %18
%84 = add nsw i32 %83, 1
store i32 %84, i32* %18
%85 = load i32, i32* %19
%86 = add nsw i32 %85, 1
store i32 %86, i32* %19
br label %60
87: ; preds = %60
%88 = load double, double* %17
%89 = load i32, i32* %11
%90 = sub nsw i32 %89, 1
%91 = sitofp i32 %90 to double
%92 = fdiv double %88, %91
store double %92, double* %14
%93 = load i32*, i32** %7
%94 = load i8*, i8** %9
%95 = call i32 (i32*, i8*, ...) @fprintf(i32* %93, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), i8* %94)
%96 = load i32*, i32** %7
%97 = load double, double* %12
%98 = load i32, i32* %11
%99 = call double @average(double %97, i32 %98)
%100 = call i32 (i32*, i8*, ...) @fprintf(i32* %96, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), double %99)
%101 = load i32*, i32** %7
%102 = load double, double* %15
%103 = call i32 (i32*, i8*, ...) @fprintf(i32* %101, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), double %102)
%104 = load i32*, i32** %7
%105 = load double, double* %16
%106 = call i32 (i32*, i8*, ...) @fprintf(i32* %104, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), double %105)
%107 = load i32*, i32** %7
%108 = load double, double* %14
%109 = call double @stdDev(double %108)
%110 = call i32 (i32*, i8*, ...) @fprintf(i32* %107, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), double %109)
br label %111
111: ; preds = %87
%112 = load i32*, i32** %6
%113 = call i32 @fclose(i32* %112)
%114 = load i32*, i32** %7
%115 = call i32 @fclose(i32* %114)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [2 x i8] c"w\00"
@.str.3 = [4 x i8] c"%lf\00"
@.str.4 = [41 x i8] c"Program by Jonathan Buch\0AFile Name: %s\0A\0A\00"
@.str.5 = [14 x i8] c"Average: %lf\0A\00"
@.str.6 = [14 x i8] c"Maximum: %lf\0A\00"
@.str.7 = [14 x i8] c"Minimum: %lf\0A\00"
@.str.8 = [25 x i8] c"Standard Deviation: %lf\0A\00"
@str = [15 x i8] c"Unable to open\00"
define void @ShowHeader(i32* nocapture readnone %0, i32* nocapture readnone %1, i8* nocapture %2, i8* %3, double %4) {
%6 = alloca double
%7 = alloca [100 x double]
store double %4, double* %6
%8 = tail call i32* @fopen(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32* @fopen(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i32* %8, null
%11 = icmp eq i32* %9, null
%12 = or i1 %10, %11
br i1 %12, label %13, label %16
13: ; preds = %5
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str, i64 0, i64 0))
%15 = tail call i32 @exit(i32 -1)
unreachable
16: ; preds = %5
%17 = bitcast [100 x double]* %7 to i8*
%18 = call i32 @feof(i32* %8)
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %59
20: ; preds = %16, %27
%21 = phi i64 [ %35, %27 ], [ 0, %16 ]
%22 = phi double [ %31, %27 ], [ 0x7FF0000000000000, %16 ]
%23 = phi double [ %29, %27 ], [ 0xFFF0000000000000, %16 ]
%24 = phi double [ %34, %27 ], [ 0.000000e+00, %16 ]
%25 = call i32 @fscanf(i32* %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double* %6)
%26 = icmp eq i32 %25, 1
br i1 %26, label %27, label %38
27: ; preds = %20
%28 = load double, double* %6
%29 = call double @max(double %28, double %23)
%30 = load double, double* %6
%31 = call double @min(double %30, double %22)
%32 = load double, double* %6
%33 = getelementptr inbounds [100 x double], [100 x double]* %7, i64 0, i64 %21
store double %32, double* %33
%34 = fadd double %24, %32
%35 = add nuw i64 %21, 1
%36 = call i32 @feof(i32* %8)
%37 = icmp eq i32 %36, 0
br i1 %37, label %20, label %38
38: ; preds = %27, %20
%39 = phi i64 [ %35, %27 ], [ %21, %20 ]
%40 = phi double [ %34, %27 ], [ %24, %20 ]
%41 = phi double [ %29, %27 ], [ %23, %20 ]
%42 = phi double [ %31, %27 ], [ %22, %20 ]
%43 = trunc i64 %39 to i32
%44 = icmp eq i32 %43, 0
br i1 %44, label %59, label %45
45: ; preds = %38
%46 = and i64 %39, 4294967295
br label %47
47: ; preds = %45, %47
%48 = phi i64 [ 0, %45 ], [ %57, %47 ]
%49 = phi double [ 0.000000e+00, %45 ], [ %56, %47 ]
%50 = getelementptr inbounds [100 x double], [100 x double]* %7, i64 0, i64 %48
%51 = load double, double* %50
%52 = call double @average(double %40, i32 %43)
%53 = fsub double %51, %52
%54 = call double @average(double %40, i32 %43)
%55 = fsub double %51, %54
%56 = call double @llvm.fmuladd.f64(double %53, double %55, double %49)
%57 = add nuw nsw i64 %48, 1
%58 = icmp eq i64 %57, %46
br i1 %58, label %59, label %47
59: ; preds = %47, %16, %38
%60 = phi double [ %42, %38 ], [ 0x7FF0000000000000, %16 ], [ %42, %47 ]
%61 = phi double [ %41, %38 ], [ 0xFFF0000000000000, %16 ], [ %41, %47 ]
%62 = phi double [ %40, %38 ], [ 0.000000e+00, %16 ], [ %40, %47 ]
%63 = phi i32 [ 0, %38 ], [ 0, %16 ], [ %43, %47 ]
%64 = phi double [ 0.000000e+00, %38 ], [ 0.000000e+00, %16 ], [ %56, %47 ]
%65 = add nsw i32 %63, -1
%66 = sitofp i32 %65 to double
%67 = fdiv double %64, %66
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), i8* %3)
%69 = call double @average(double %62, i32 %63)
%70 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), double %69)
%71 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), double %61)
%72 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), double %60)
%73 = call double @stdDev(double %67)
%74 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), double %73)
%75 = call i32 @fclose(i32* %8)
%76 = call i32 @fclose(i32* %9)
ret void
}