#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 */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
float sqrt(float);
scalar_t__ square(float);
int /*<<< orphan*/ system(char *);
int main() {
  float fValues[10] = {2.33,  32.9823, 2.723, 3.152, 6.273,
                       7.681, 6.73,    9.423, 4.093, 1.94};
  float fAverages[10 - 5], fStandardDeviations[10 - 5];
  float fAverage, fStandardDeviation, fTotal = 0, fSDTotal = 0;
  int i, j;
  for (i = 0; i < 10; i++) {
    fTotal += fValues[i];
  }
  fAverage = fTotal / 10;
  printf("The average for these numbers is: %3.4f\n", fAverage);
  for (i = 0; i < 10; i++) {
    fSDTotal += square((fValues[i] - fAverage));
  }
  fStandardDeviation = sqrt(fSDTotal / 10);
  printf("The standard deviation for these is: %3.4f\n", fStandardDeviation);
  printf("Calculating moving average and standard deviation\n");
  for (i = 0; i < 10 - 5; i++) {
    fTotal = 0;
    for (j = i; j < (i + 5); j++) {
      fTotal += fValues[j];
    }
    fAverage = (fTotal / 5);
    fAverages[i] = fAverage;
    printf("Average for index %d to %d is %2.2f\n", i, j, fAverages[i]);
    for (j = i; j < (i + 5); j++) {
      fSDTotal += square(fValues[j] - fAverage);
    }
    fStandardDeviation = sqrt(fSDTotal / 5);
    fStandardDeviations[i] = fStandardDeviation;
    printf("Standard deviation for index %d to %d is %5.2f\n", i, j,
           fStandardDeviations[i]);
  }
  system("PAUSE");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xea3(%rip),%rsi
mov    $0x28,%edx
call   1060 <memcpy@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x7c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x80(%rbp)
movl   $0x0,-0x84(%rbp)
cmpl   $0xa,-0x84(%rbp)
jge    11c9 <main+0x79>
movslq -0x84(%rbp),%rax
movss  -0x30(%rbp,%rax,4),%xmm0
addss  -0x7c(%rbp),%xmm0
movss  %xmm0,-0x7c(%rbp)
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1191 <main+0x41>
movss  -0x7c(%rbp),%xmm0
movss  0xe2a(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x74(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe49(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0xa,-0x84(%rbp)
jge    1247 <main+0xf7>
movslq -0x84(%rbp),%rax
movss  -0x30(%rbp,%rax,4),%xmm0
subss  -0x74(%rbp),%xmm0
call   1030 <square@plt>
cvtsi2ss %rax,%xmm0
addss  -0x80(%rbp),%xmm0
movss  %xmm0,-0x80(%rbp)
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1200 <main+0xb0>
movss  -0x80(%rbp),%xmm0
movss  0xdac(%rip),%xmm1
divss  %xmm1,%xmm0
call   1070 <sqrt@plt>
movss  %xmm0,-0x78(%rbp)
movss  -0x78(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdef(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xe0d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x84(%rbp)
cmpl   $0x5,-0x84(%rbp)
jge    1410 <main+0x2c0>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x7c(%rbp)
mov    -0x84(%rbp),%eax
mov    %eax,-0x88(%rbp)
mov    -0x88(%rbp),%eax
mov    -0x84(%rbp),%ecx
add    $0x5,%ecx
cmp    %ecx,%eax
jge    12f4 <main+0x1a4>
movslq -0x88(%rbp),%rax
movss  -0x30(%rbp,%rax,4),%xmm0
addss  -0x7c(%rbp),%xmm0
movss  %xmm0,-0x7c(%rbp)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    12b2 <main+0x162>
movss  -0x7c(%rbp),%xmm0
movss  0xd03(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x74(%rbp),%xmm0
movslq -0x84(%rbp),%rax
movss  %xmm0,-0x50(%rbp,%rax,4)
mov    -0x84(%rbp),%esi
mov    -0x88(%rbp),%edx
movslq -0x84(%rbp),%rax
movss  -0x50(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd80(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x84(%rbp),%eax
mov    %eax,-0x88(%rbp)
mov    -0x88(%rbp),%eax
mov    -0x84(%rbp),%ecx
add    $0x5,%ecx
cmp    %ecx,%eax
jge    13a4 <main+0x254>
movslq -0x88(%rbp),%rax
movss  -0x30(%rbp,%rax,4),%xmm0
subss  -0x74(%rbp),%xmm0
call   1030 <square@plt>
cvtsi2ss %rax,%xmm0
addss  -0x80(%rbp),%xmm0
movss  %xmm0,-0x80(%rbp)
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    1353 <main+0x203>
movss  -0x80(%rbp),%xmm0
movss  0xc53(%rip),%xmm1
divss  %xmm1,%xmm0
call   1070 <sqrt@plt>
movss  %xmm0,-0x78(%rbp)
movss  -0x78(%rbp),%xmm0
movslq -0x84(%rbp),%rax
movss  %xmm0,-0x70(%rbp,%rax,4)
mov    -0x84(%rbp),%esi
mov    -0x88(%rbp),%edx
movslq -0x84(%rbp),%rax
movss  -0x70(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcf0(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1291 <main+0x141>
lea    0xcfe(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xf03(%rip),%rdi
movsd  0xe93(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xe8c(%rip),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  %xmm0,0xc(%rsp)
movss  0xe75(%rip),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0xe58(%rip),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0xe3b(%rip),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0xe1e(%rip),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0xe01(%rip),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0xde4(%rip),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0xdc7(%rip),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0xdaa(%rip),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0xc(%rsp),%xmm0
movss  %xmm0,0xc(%rsp)
movss  0xd8d(%rip),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0xc(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
divss  0xd70(%rip),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     12ce <main+0x17e>
sqrtss %xmm0,%xmm0
jmp    12d3 <main+0x183>
call   1070 <sqrt@plt>
cvtss2sd %xmm0,%xmm0
lea    0xdb3(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xe2c(%rip),%rdi
call   1030 <puts@plt>
movss  0xd3b(%rip),%xmm0
xor    %ebx,%ebx
lea    0xd3e(%rip),%r13
lea    0xdb4(%rip),%r14
lea    0xdd2(%rip),%r15
jmp    134b <main+0x1fb>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
call   1070 <sqrt@plt>
cvtss2sd %xmm0,%xmm0
mov    %r15,%rdi
mov    %ebx,%esi
mov    %r12d,%edx
mov    $0x1,%al
call   1060 <printf@plt>
mov    %rbp,%rbx
cmp    $0x5,%rbp
movss  0x14(%rsp),%xmm0
je     14a9 <main+0x359>
movss  %xmm0,0x18(%rsp)
movaps %xmm0,%xmm1
xorps  %xmm0,%xmm0
addss  %xmm0,%xmm1
lea    0x1(%rbx),%rbp
movss  0x4(%r13,%rbx,4),%xmm2
movss  %xmm2,0x14(%rsp)
movss  0x8(%r13,%rbx,4),%xmm0
movss  %xmm0,0x1c(%rsp)
addss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  0xc(%r13,%rbx,4),%xmm0
movss  %xmm0,0x20(%rsp)
addss  %xmm0,%xmm1
movss  0x10(%r13,%rbx,4),%xmm0
movss  %xmm0,0x24(%rsp)
addss  %xmm0,%xmm1
lea    0x5(%rbx),%r12
movss  0xc89(%rip),%xmm0
divss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
mov    %r14,%rdi
mov    %ebx,%esi
mov    %r12d,%edx
mov    $0x1,%al
call   1060 <printf@plt>
movss  0x18(%rsp),%xmm0
subss  0xc(%rsp),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
movss  0x14(%rsp),%xmm0
subss  0xc(%rsp),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
movss  0x1c(%rsp),%xmm0
subss  0xc(%rsp),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
movss  0x20(%rsp),%xmm0
subss  0xc(%rsp),%xmm0
call   1040 <square@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
addss  0x10(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
movss  0x24(%rsp),%xmm0
subss  0xc(%rsp),%xmm0
call   1040 <square@plt>
xorps  %xmm1,%xmm1
cvtsi2ss %rax,%xmm1
addss  0x10(%rsp),%xmm1
movaps %xmm1,%xmm0
divss  0xbab(%rip),%xmm0
ucomiss 0xba8(%rip),%xmm0
movss  %xmm1,0x10(%rsp)
jb     1320 <main+0x1d0>
sqrtss %xmm0,%xmm0
jmp    1325 <main+0x1d5>
lea    0xc62(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.fValues = [10 x float] [float 0x4002A3D700000000, float 0x40407DBC00000000, float 0x4005C8B440000000, float 0x4009374BC0000000, float 0x4019178D40000000, float 0x401EB95820000000, float 0x401AEB8520000000, float 0x4022D89380000000, float 0x40105F3B60000000, float 0x3FFF0A3D80000000]
@.str = [41 x i8] c"The average for these numbers is: %3.4f\0A\00"
@.str.1 = [44 x i8] c"The standard deviation for these is: %3.4f\0A\00"
@.str.2 = [51 x i8] c"Calculating moving average and standard deviation\0A\00"
@.str.3 = [37 x i8] c"Average for index %d to %d is %2.2f\0A\00"
@.str.4 = [48 x i8] c"Standard deviation for index %d to %d is %5.2f\0A\00"
@.str.5 = [6 x i8] c"PAUSE\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x float]
%3 = alloca [5 x float]
%4 = alloca [5 x float]
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
%11 = bitcast [10 x float]* %2 to i8*
store float 0.000000e+00, float* %7
store float 0.000000e+00, float* %8
store i32 0, i32* %9
br label %12
12: ; preds = %22, %0
%13 = load i32, i32* %9
%14 = icmp slt i32 %13, 10
br i1 %14, label %15, label %25
15: ; preds = %12
%16 = load i32, i32* %9
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %17
%19 = load float, float* %18
%20 = load float, float* %7
%21 = fadd float %20, %19
store float %21, float* %7
br label %22
22: ; preds = %15
%23 = load i32, i32* %9
%24 = add nsw i32 %23, 1
store i32 %24, i32* %9
br label %12
25: ; preds = %12
%26 = load float, float* %7
%27 = fdiv float %26, 1.000000e+01
store float %27, float* %5
%28 = load float, float* %5
%29 = fpext float %28 to double
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), double %29)
store i32 0, i32* %9
br label %31
31: ; preds = %45, %25
%32 = load i32, i32* %9
%33 = icmp slt i32 %32, 10
br i1 %33, label %34, label %48
34: ; preds = %31
%35 = load i32, i32* %9
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %36
%38 = load float, float* %37
%39 = load float, float* %5
%40 = fsub float %38, %39
%41 = call i64 @square(float %40)
%42 = sitofp i64 %41 to float
%43 = load float, float* %8
%44 = fadd float %43, %42
store float %44, float* %8
br label %45
45: ; preds = %34
%46 = load i32, i32* %9
%47 = add nsw i32 %46, 1
store i32 %47, i32* %9
br label %31
48: ; preds = %31
%49 = load float, float* %8
%50 = fdiv float %49, 1.000000e+01
%51 = call float @sqrt(float %50)
store float %51, float* %6
%52 = load float, float* %6
%53 = fpext float %52 to double
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), double %53)
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %9
br label %56
56: ; preds = %127, %48
%57 = load i32, i32* %9
%58 = icmp slt i32 %57, 5
br i1 %58, label %59, label %130
59: ; preds = %56
store float 0.000000e+00, float* %7
%60 = load i32, i32* %9
store i32 %60, i32* %10
br label %61
61: ; preds = %73, %59
%62 = load i32, i32* %10
%63 = load i32, i32* %9
%64 = add nsw i32 %63, 5
%65 = icmp slt i32 %62, %64
br i1 %65, label %66, label %76
66: ; preds = %61
%67 = load i32, i32* %10
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %68
%70 = load float, float* %69
%71 = load float, float* %7
%72 = fadd float %71, %70
store float %72, float* %7
br label %73
73: ; preds = %66
%74 = load i32, i32* %10
%75 = add nsw i32 %74, 1
store i32 %75, i32* %10
br label %61
76: ; preds = %61
%77 = load float, float* %7
%78 = fdiv float %77, 5.000000e+00
store float %78, float* %5
%79 = load float, float* %5
%80 = load i32, i32* %9
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [5 x float], [5 x float]* %3, i64 0, i64 %81
store float %79, float* %82
%83 = load i32, i32* %9
%84 = load i32, i32* %10
%85 = load i32, i32* %9
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [5 x float], [5 x float]* %3, i64 0, i64 %86
%88 = load float, float* %87
%89 = fpext float %88 to double
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %83, i32 %84, double %89)
%91 = load i32, i32* %9
store i32 %91, i32* %10
br label %92
92: ; preds = %108, %76
%93 = load i32, i32* %10
%94 = load i32, i32* %9
%95 = add nsw i32 %94, 5
%96 = icmp slt i32 %93, %95
br i1 %96, label %97, label %111
97: ; preds = %92
%98 = load i32, i32* %10
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [10 x float], [10 x float]* %2, i64 0, i64 %99
%101 = load float, float* %100
%102 = load float, float* %5
%103 = fsub float %101, %102
%104 = call i64 @square(float %103)
%105 = sitofp i64 %104 to float
%106 = load float, float* %8
%107 = fadd float %106, %105
store float %107, float* %8
br label %108
108: ; preds = %97
%109 = load i32, i32* %10
%110 = add nsw i32 %109, 1
store i32 %110, i32* %10
br label %92
111: ; preds = %92
%112 = load float, float* %8
%113 = fdiv float %112, 5.000000e+00
%114 = call float @sqrt(float %113)
store float %114, float* %6
%115 = load float, float* %6
%116 = load i32, i32* %9
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [5 x float], [5 x float]* %4, i64 0, i64 %117
store float %115, float* %118
%119 = load i32, i32* %9
%120 = load i32, i32* %10
%121 = load i32, i32* %9
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds [5 x float], [5 x float]* %4, i64 0, i64 %122
%124 = load float, float* %123
%125 = fpext float %124 to double
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i32 %119, i32 %120, double %125)
br label %127
127: ; preds = %111
%128 = load i32, i32* %9
%129 = add nsw i32 %128, 1
store i32 %129, i32* %9
br label %56
130: ; preds = %56
%131 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@__const.main.fValues = [10 x float] [float 0x4002A3D700000000, float 0x40407DBC00000000, float 0x4005C8B440000000, float 0x4009374BC0000000, float 0x4019178D40000000, float 0x401EB95820000000, float 0x401AEB8520000000, float 0x4022D89380000000, float 0x40105F3B60000000, float 0x3FFF0A3D80000000]
@.str = [41 x i8] c"The average for these numbers is: %3.4f\0A\00"
@.str.1 = [44 x i8] c"The standard deviation for these is: %3.4f\0A\00"
@.str.3 = [37 x i8] c"Average for index %d to %d is %2.2f\0A\00"
@.str.4 = [48 x i8] c"Standard deviation for index %d to %d is %5.2f\0A\00"
@.str.5 = [6 x i8] c"PAUSE\00"
@str = [50 x i8] c"Calculating moving average and standard deviation\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0), double 0x401EEE50C0000000)
%2 = tail call i64 @square(float 0xC0159C6540000000)
%3 = sitofp i64 %2 to float
%4 = tail call i64 @square(float 0x40393FE3C0000000)
%5 = sitofp i64 %4 to float
%6 = fadd float %3, %5
%7 = tail call i64 @square(float 0xC01409F6A0000000)
%8 = sitofp i64 %7 to float
%9 = fadd float %6, %8
%10 = tail call i64 @square(float 0xC01252AAE0000000)
%11 = sitofp i64 %10 to float
%12 = fadd float %9, %11
%13 = tail call i64 @square(float 0xBFF75B0E00000000)
%14 = sitofp i64 %13 to float
%15 = fadd float %12, %14
%16 = tail call i64 @square(float 0xBFAA7C5000000000)
%17 = sitofp i64 %16 to float
%18 = fadd float %15, %17
%19 = tail call i64 @square(float 0xBFF00B2E80000000)
%20 = sitofp i64 %19 to float
%21 = fadd float %18, %20
%22 = tail call i64 @square(float 0x3FFB0B5900000000)
%23 = sitofp i64 %22 to float
%24 = fadd float %21, %23
%25 = tail call i64 @square(float 0xC00D1E2AC0000000)
%26 = sitofp i64 %25 to float
%27 = fadd float %24, %26
%28 = tail call i64 @square(float 0xC0172BC160000000)
%29 = sitofp i64 %28 to float
%30 = fadd float %27, %29
%31 = fdiv float %30, 1.000000e+01
%32 = tail call float @sqrt(float %31)
%33 = fpext float %32 to double
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0), double %33)
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str, i64 0, i64 0))
br label %36
36: ; preds = %0, %36
%37 = phi float [ 0x4002A3D700000000, %0 ], [ %45, %36 ]
%38 = phi i64 [ 5, %0 ], [ %89, %36 ]
%39 = phi i64 [ 0, %0 ], [ %43, %36 ]
%40 = phi float [ %30, %0 ], [ %82, %36 ]
%41 = trunc i64 %39 to i32
%42 = fadd float %37, 0.000000e+00
%43 = add nuw nsw i64 %39, 1
%44 = getelementptr inbounds [10 x float], [10 x float]* @__const.main.fValues, i64 0, i64 %43
%45 = load float, float* %44
%46 = fadd float %42, %45
%47 = add nuw nsw i64 %39, 2
%48 = getelementptr inbounds [10 x float], [10 x float]* @__const.main.fValues, i64 0, i64 %47
%49 = load float, float* %48
%50 = fadd float %46, %49
%51 = add nuw nsw i64 %39, 3
%52 = getelementptr inbounds [10 x float], [10 x float]* @__const.main.fValues, i64 0, i64 %51
%53 = load float, float* %52
%54 = fadd float %50, %53
%55 = add nuw nsw i64 %39, 4
%56 = getelementptr inbounds [10 x float], [10 x float]* @__const.main.fValues, i64 0, i64 %55
%57 = load float, float* %56
%58 = fadd float %54, %57
%59 = trunc i64 %38 to i32
%60 = fdiv float %58, 5.000000e+00
%61 = fpext float %60 to double
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 %41, i32 %59, double %61)
%63 = fsub float %37, %60
%64 = tail call i64 @square(float %63)
%65 = sitofp i64 %64 to float
%66 = fadd float %40, %65
%67 = fsub float %45, %60
%68 = tail call i64 @square(float %67)
%69 = sitofp i64 %68 to float
%70 = fadd float %66, %69
%71 = fsub float %49, %60
%72 = tail call i64 @square(float %71)
%73 = sitofp i64 %72 to float
%74 = fadd float %70, %73
%75 = fsub float %53, %60
%76 = tail call i64 @square(float %75)
%77 = sitofp i64 %76 to float
%78 = fadd float %74, %77
%79 = fsub float %57, %60
%80 = tail call i64 @square(float %79)
%81 = sitofp i64 %80 to float
%82 = fadd float %78, %81
%83 = trunc i64 %39 to i32
%84 = add i32 %83, 5
%85 = fdiv float %82, 5.000000e+00
%86 = tail call float @sqrt(float %85)
%87 = fpext float %86 to double
%88 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i32 %41, i32 %84, double %87)
%89 = add nuw nsw i64 %38, 1
%90 = icmp eq i64 %43, 5
br i1 %90, label %91, label %36
91: ; preds = %36
%92 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}