#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*/ free_vector(float *, int, int);
int /*<<< orphan*/ moment(float *, int, float *, float *, float *, float *,
                          float *, float *);
int /*<<< orphan*/ printf(char *, ...);
double sin(float);
float *vector(int, int);
int main(void) {
  int i = 0, k, nlim;
  float adev, ave, curt, sdev, skew, vrnce, x, *data;
  data = vector(1, (5000 + 100));
  for (x = 3.14159265 / 100; x <= 3.14159265; x += 3.14159265 / 100) {
    nlim = (int)(0.5 + sin(x) * 3.14159265 / 2.0 * 5000 / 100);
    for (k = 1; k <= nlim; k++)
      data[++i] = x;
  }
  printf("moments of a sinusoidal distribution\n\n");
  moment(data, i, &ave, &adev, &sdev, &vrnce, &skew, &curt);
  printf("%39s %11s\n\n", "calculated", "expected");
  printf("%s %17s %12.4f %12.4f\n", "Mean :", " ", ave, 3.14159265 / 2.0);
  printf("%s %4s %12.4f %12.4f\n", "Average Deviation :", " ", adev,
         (3.14159265 / 2.0) - 1.0);
  printf("%s %3s %12.4f %12.4f\n", "Standard Deviation :", " ", sdev, 0.683667);
  printf("%s %13s %12.4f %12.4f\n", "Variance :", " ", vrnce, 0.467401);
  printf("%s %13s %12.4f %12.4f\n", "Skewness :", " ", skew, 0.0);
  printf("%s %13s %12.4f %12.4f\n", "Kurtosis :", " ", curt, -0.806249);
  free_vector(data, 1, (5000 + 100));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    $0x1,%edi
mov    $0x13ec,%esi
call   1060 <vector@plt>
mov    %rax,-0x38(%rbp)
movss  0xe7f(%rip),%xmm0
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe71(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     1254 <main+0x104>
movss  -0x2c(%rbp),%xmm0
call   1050 <sin@plt>
movaps %xmm0,%xmm1
movsd  0xe52(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe8e(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xe7a(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe66(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xe52(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x10(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     122c <main+0xdc>
movss  -0x2c(%rbp),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11f8 <main+0xa8>
jmp    1231 <main+0xe1>
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe16(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
jmp    1186 <main+0x36>
lea    0xe05(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rdi
mov    -0x8(%rbp),%esi
lea    -0x18(%rbp),%rdx
lea    -0x14(%rbp),%rcx
lea    -0x20(%rbp),%r8
lea    -0x28(%rbp),%r9
lea    -0x24(%rbp),%r10
lea    -0x1c(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1070 <moment@plt>
lea    0xdf1(%rip),%rdi
lea    0xdf6(%rip),%rsi
lea    0xdfa(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdec(%rip),%rdi
lea    0xdfc(%rip),%rsi
lea    0xdfc(%rip),%rdx
movsd  0xd5f(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xddf(%rip),%rdi
lea    0xdee(%rip),%rsi
lea    0xdcf(%rip),%rdx
movsd  0xd2a(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xddc(%rip),%rdi
lea    0xdeb(%rip),%rsi
lea    0xda2(%rip),%rdx
movsd  0xcf5(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x28(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdda(%rip),%rdi
lea    0xdea(%rip),%rsi
lea    0xd75(%rip),%rdx
movsd  0xcc0(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdad(%rip),%rdi
lea    0xdc8(%rip),%rsi
lea    0xd48(%rip),%rdx
xorps  %xmm1,%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd85(%rip),%rdi
lea    0xdab(%rip),%rsi
lea    0xd20(%rip),%rdx
movsd  0xc63(%rip),%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rdi
mov    $0x1,%esi
mov    $0x13ec,%edx
call   1040 <free_vector@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    $0x1,%edi
mov    $0x13ec,%esi
call   1070 <vector@plt>
mov    %rax,%r14
lea    0x74(%rax),%r15
mov    %rax,%r12
add    $0x14,%r12
movss  0xe70(%rip),%xmm0
xor    %ebx,%ebx
movsd  0xe6e(%rip),%xmm2
jmp    11c2 <main+0x62>
nopl   0x0(%rax)
movsd  (%rsp),%xmm0
addsd  0xe83(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
ucomisd %xmm2,%xmm1
jb     1305 <main+0x1a5>
movsd  %xmm2,(%rsp)
movapd %xmm0,0x20(%rsp)
call   1060 <sin@plt>
movsd  0xe36(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe32(%rip),%xmm2
mulsd  %xmm2,%xmm0
mulsd  0xe2e(%rip),%xmm0
divsd  0xe2e(%rip),%xmm0
addsd  %xmm2,%xmm0
cvttsd2si %xmm0,%eax
test   %eax,%eax
jle    11a0 <main+0x40>
movslq %ebx,%rbx
lea    -0x1(%rax),%r8d
mov    $0x1,%r9d
cmp    $0x7,%r8d
jae    1230 <main+0xd0>
movsd  (%rsp),%xmm0
movaps 0x20(%rsp),%xmm2
jmp    12e7 <main+0x187>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r8
mov    %r8,%r9
and    $0xfffffffffffffff8,%r9
movaps 0x20(%rsp),%xmm2
movaps %xmm2,%xmm0
shufps $0x0,%xmm2,%xmm0
lea    -0x8(%r9),%rcx
mov    %rcx,%rdi
shr    $0x3,%rdi
add    $0x1,%rdi
mov    %edi,%esi
and    $0x3,%esi
cmp    $0x18,%rcx
jae    1265 <main+0x105>
xor    %edx,%edx
jmp    12a1 <main+0x141>
and    $0xfffffffffffffffc,%rdi
lea    (%r15,%rbx,4),%rcx
xor    %edx,%edx
nop
movups %xmm0,-0x70(%rcx,%rdx,4)
movups %xmm0,-0x60(%rcx,%rdx,4)
movups %xmm0,-0x50(%rcx,%rdx,4)
movups %xmm0,-0x40(%rcx,%rdx,4)
movups %xmm0,-0x30(%rcx,%rdx,4)
movups %xmm0,-0x20(%rcx,%rdx,4)
movups %xmm0,-0x10(%rcx,%rdx,4)
movups %xmm0,(%rcx,%rdx,4)
add    $0x20,%rdx
add    $0xfffffffffffffffc,%rdi
jne    1270 <main+0x110>
test   %rsi,%rsi
je     12d2 <main+0x172>
add    %rbx,%rdx
lea    (%r12,%rdx,4),%rcx
shl    $0x5,%rsi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups %xmm0,-0x10(%rcx,%rdx,1)
movups %xmm0,(%rcx,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%rsi
jne    12c0 <main+0x160>
add    %r9,%rbx
cmp    %r9,%r8
je     11a0 <main+0x40>
or     $0x1,%r9d
movsd  (%rsp),%xmm0
sub    %r9d,%eax
add    $0x1,%eax
nopl   (%rax)
movss  %xmm2,0x4(%r14,%rbx,4)
add    $0x1,%rbx
add    $0xffffffff,%eax
jne    12f0 <main+0x190>
jmp    11a5 <main+0x45>
lea    0xe21(%rip),%rdi
call   1030 <puts@plt>
lea    0x14(%rsp),%rax
lea    0xc(%rsp),%r10
lea    0x18(%rsp),%rdx
lea    0x1c(%rsp),%rcx
lea    0x10(%rsp),%r8
lea    0x8(%rsp),%r9
mov    %r14,%rdi
mov    %ebx,%esi
push   %rax
push   %r10
call   1080 <moment@plt>
add    $0x10,%rsp
lea    0xd19(%rip),%rdi
lea    0xd1e(%rip),%rsi
lea    0xd22(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd13(%rip),%rdi
lea    0xd23(%rip),%rsi
lea    0xd23(%rip),%r15
movsd  0xcb5(%rip),%xmm1
mov    %r15,%rdx
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x1c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd02(%rip),%rdi
lea    0xd11(%rip),%rsi
movsd  0xc93(%rip),%xmm1
mov    %r15,%rdx
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd02(%rip),%rdi
lea    0xd11(%rip),%rsi
movsd  0xc71(%rip),%xmm1
mov    %r15,%rdx
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd03(%rip),%rbx
lea    0xd13(%rip),%rsi
movsd  0xc4f(%rip),%xmm1
mov    %rbx,%rdi
mov    %r15,%rdx
mov    $0x2,%al
call   1040 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcf8(%rip),%rsi
xorps  %xmm1,%xmm1
mov    %rbx,%rdi
mov    %r15,%rdx
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x14(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xce2(%rip),%rsi
movsd  0xc10(%rip),%xmm1
mov    %rbx,%rdi
mov    %r15,%rdx
mov    $0x2,%al
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x13ec,%edx
call   1050 <free_vector@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [39 x i8] c"moments of a sinusoidal distribution\0A\0A\00"
@.str.1 = [12 x i8] c"%39s %11s\0A\0A\00"
@.str.2 = [11 x i8] c"calculated\00"
@.str.3 = [9 x i8] c"expected\00"
@.str.4 = [23 x i8] c"%s %17s %12.4f %12.4f\0A\00"
@.str.5 = [7 x i8] c"Mean :\00"
@.str.6 = [2 x i8] c" \00"
@.str.7 = [22 x i8] c"%s %4s %12.4f %12.4f\0A\00"
@.str.8 = [20 x i8] c"Average Deviation :\00"
@.str.9 = [22 x i8] c"%s %3s %12.4f %12.4f\0A\00"
@.str.10 = [21 x i8] c"Standard Deviation :\00"
@.str.11 = [23 x i8] c"%s %13s %12.4f %12.4f\0A\00"
@.str.12 = [11 x i8] c"Variance :\00"
@.str.13 = [11 x i8] c"Skewness :\00"
@.str.14 = [11 x i8] c"Kurtosis :\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float*
store i32 0, i32* %1
store i32 0, i32* %2
%13 = call float* @vector(i32 1, i32 5100)
store float* %13, float** %12
store float 0x3FA015BFA0000000, float* %11
br label %14
14: ; preds = %42, %0
%15 = load float, float* %11
%16 = fpext float %15 to double
%17 = fcmp ole double %16, 0x400921FB53C8D4F1
br i1 %17, label %18, label %47
18: ; preds = %14
%19 = load float, float* %11
%20 = call double @sin(float %19)
%21 = fmul double %20, 0x400921FB53C8D4F1
%22 = fdiv double %21, 2.000000e+00
%23 = fmul double %22, 5.000000e+03
%24 = fdiv double %23, 1.000000e+02
%25 = fadd double 5.000000e-01, %24
%26 = fptosi double %25 to i32
store i32 %26, i32* %4
store i32 1, i32* %3
br label %27
27: ; preds = %38, %18
%28 = load i32, i32* %3
%29 = load i32, i32* %4
%30 = icmp sle i32 %28, %29
br i1 %30, label %31, label %41
31: ; preds = %27
%32 = load float, float* %11
%33 = load float*, float** %12
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
store i32 %35, i32* %2
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds float, float* %33, i64 %36
store float %32, float* %37
br label %38
38: ; preds = %31
%39 = load i32, i32* %3
%40 = add nsw i32 %39, 1
store i32 %40, i32* %3
br label %27
41: ; preds = %27
br label %42
42: ; preds = %41
%43 = load float, float* %11
%44 = fpext float %43 to double
%45 = fadd double %44, 0x3FA015BF91C8365D
%46 = fptrunc double %45 to float
store float %46, float* %11
br label %14
47: ; preds = %14
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%49 = load float*, float** %12
%50 = load i32, i32* %2
%51 = call i32 @moment(float* %49, i32 %50, float* %6, float* %5, float* %8, float* %10, float* %9, float* %7)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%53 = load float, float* %6
%54 = fpext float %53 to double
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), double %54, double 0x3FF921FB53C8D4F1)
%56 = load float, float* %5
%57 = fpext float %56 to double
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), double %57, double 0x3FE243F6A791A9E2)
%59 = load float, float* %8
%60 = fpext float %59 to double
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), double %60, double 6.836670e-01)
%62 = load float, float* %10
%63 = fpext float %62 to double
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), double %63, double 4.674010e-01)
%65 = load float, float* %9
%66 = fpext float %65 to double
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), double %66, double 0.000000e+00)
%68 = load float, float* %7
%69 = fpext float %68 to double
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), double %69, double 0xBFE9CCCAB3EDD8B6)
%71 = load float*, float** %12
%72 = call i32 @free_vector(float* %71, i32 1, i32 5100)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [12 x i8] c"%39s %11s\0A\0A\00"
@.str.2 = [11 x i8] c"calculated\00"
@.str.3 = [9 x i8] c"expected\00"
@.str.4 = [23 x i8] c"%s %17s %12.4f %12.4f\0A\00"
@.str.5 = [7 x i8] c"Mean :\00"
@.str.6 = [2 x i8] c" \00"
@.str.7 = [22 x i8] c"%s %4s %12.4f %12.4f\0A\00"
@.str.8 = [20 x i8] c"Average Deviation :\00"
@.str.9 = [22 x i8] c"%s %3s %12.4f %12.4f\0A\00"
@.str.10 = [21 x i8] c"Standard Deviation :\00"
@.str.11 = [23 x i8] c"%s %13s %12.4f %12.4f\0A\00"
@.str.12 = [11 x i8] c"Variance :\00"
@.str.13 = [11 x i8] c"Skewness :\00"
@.str.14 = [11 x i8] c"Kurtosis :\00"
@str = [38 x i8] c"moments of a sinusoidal distribution\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = bitcast float* %1 to i8*
%8 = bitcast float* %2 to i8*
%9 = bitcast float* %3 to i8*
%10 = bitcast float* %4 to i8*
%11 = bitcast float* %5 to i8*
%12 = bitcast float* %6 to i8*
%13 = tail call float* @vector(i32 1, i32 5100)
br label %14
14: ; preds = %0, %111
%15 = phi double [ 0x3FA015BFA0000000, %0 ], [ %115, %111 ]
%16 = phi i32 [ 0, %0 ], [ %112, %111 ]
%17 = phi float [ 0x3FA015BFA0000000, %0 ], [ %114, %111 ]
%18 = tail call double @sin(float %17)
%19 = fmul double %18, 0x400921FB53C8D4F1
%20 = fmul double %19, 5.000000e-01
%21 = fmul double %20, 5.000000e+03
%22 = fdiv double %21, 1.000000e+02
%23 = fadd double %22, 5.000000e-01
%24 = fptosi double %23 to i32
%25 = icmp slt i32 %24, 1
br i1 %25, label %111, label %26
26: ; preds = %14
%27 = sext i32 %16 to i64
%28 = add i32 %24, -1
%29 = zext i32 %28 to i64
%30 = add nuw nsw i64 %29, 1
%31 = icmp ult i32 %28, 7
br i1 %31, label %98, label %32
32: ; preds = %26
%33 = and i64 %30, 8589934584
%34 = add nsw i64 %33, %27
%35 = trunc i64 %33 to i32
%36 = or i32 %35, 1
%37 = insertelement <4 x float> poison, float %17, i64 0
%38 = shufflevector <4 x float> %37, <4 x float> poison, <4 x i32> zeroinitializer
%39 = insertelement <4 x float> poison, float %17, i64 0
%40 = shufflevector <4 x float> %39, <4 x float> poison, <4 x i32> zeroinitializer
%41 = add nsw i64 %33, -8
%42 = lshr exact i64 %41, 3
%43 = add nuw nsw i64 %42, 1
%44 = and i64 %43, 3
%45 = icmp ult i64 %41, 24
br i1 %45, label %81, label %46
46: ; preds = %32
%47 = and i64 %43, 4611686018427387900
br label %48
48: ; preds = %48, %46
%49 = phi i64 [ 0, %46 ], [ %78, %48 ]
%50 = phi i64 [ 0, %46 ], [ %79, %48 ]
%51 = add i64 %49, %27
%52 = add nsw i64 %51, 1
%53 = getelementptr inbounds float, float* %13, i64 %52
%54 = bitcast float* %53 to <4 x float>*
store <4 x float> %38, <4 x float>* %54
%55 = getelementptr inbounds float, float* %53, i64 4
%56 = bitcast float* %55 to <4 x float>*
store <4 x float> %40, <4 x float>* %56
%57 = or i64 %49, 8
%58 = add i64 %57, %27
%59 = add nsw i64 %58, 1
%60 = getelementptr inbounds float, float* %13, i64 %59
%61 = bitcast float* %60 to <4 x float>*
store <4 x float> %38, <4 x float>* %61
%62 = getelementptr inbounds float, float* %60, i64 4
%63 = bitcast float* %62 to <4 x float>*
store <4 x float> %40, <4 x float>* %63
%64 = or i64 %49, 16
%65 = add i64 %64, %27
%66 = add nsw i64 %65, 1
%67 = getelementptr inbounds float, float* %13, i64 %66
%68 = bitcast float* %67 to <4 x float>*
store <4 x float> %38, <4 x float>* %68
%69 = getelementptr inbounds float, float* %67, i64 4
%70 = bitcast float* %69 to <4 x float>*
store <4 x float> %40, <4 x float>* %70
%71 = or i64 %49, 24
%72 = add i64 %71, %27
%73 = add nsw i64 %72, 1
%74 = getelementptr inbounds float, float* %13, i64 %73
%75 = bitcast float* %74 to <4 x float>*
store <4 x float> %38, <4 x float>* %75
%76 = getelementptr inbounds float, float* %74, i64 4
%77 = bitcast float* %76 to <4 x float>*
store <4 x float> %40, <4 x float>* %77
%78 = add nuw i64 %49, 32
%79 = add i64 %50, 4
%80 = icmp eq i64 %79, %47
br i1 %80, label %81, label %48
81: ; preds = %48, %32
%82 = phi i64 [ 0, %32 ], [ %78, %48 ]
%83 = icmp eq i64 %44, 0
br i1 %83, label %96, label %84
84: ; preds = %81, %84
%85 = phi i64 [ %93, %84 ], [ %82, %81 ]
%86 = phi i64 [ %94, %84 ], [ 0, %81 ]
%87 = add i64 %85, %27
%88 = add nsw i64 %87, 1
%89 = getelementptr inbounds float, float* %13, i64 %88
%90 = bitcast float* %89 to <4 x float>*
store <4 x float> %38, <4 x float>* %90
%91 = getelementptr inbounds float, float* %89, i64 4
%92 = bitcast float* %91 to <4 x float>*
store <4 x float> %40, <4 x float>* %92
%93 = add nuw i64 %85, 8
%94 = add i64 %86, 1
%95 = icmp eq i64 %94, %44
br i1 %95, label %96, label %84
96: ; preds = %84, %81
%97 = icmp eq i64 %30, %33
br i1 %97, label %108, label %98
98: ; preds = %26, %96
%99 = phi i64 [ %27, %26 ], [ %34, %96 ]
%100 = phi i32 [ 1, %26 ], [ %36, %96 ]
br label %101
101: ; preds = %98, %101
%102 = phi i64 [ %104, %101 ], [ %99, %98 ]
%103 = phi i32 [ %106, %101 ], [ %100, %98 ]
%104 = add nsw i64 %102, 1
%105 = getelementptr inbounds float, float* %13, i64 %104
store float %17, float* %105
%106 = add nuw i32 %103, 1
%107 = icmp eq i32 %103, %24
br i1 %107, label %108, label %101
108: ; preds = %101, %96
%109 = phi i64 [ %34, %96 ], [ %104, %101 ]
%110 = trunc i64 %109 to i32
br label %111
111: ; preds = %108, %14
%112 = phi i32 [ %16, %14 ], [ %110, %108 ]
%113 = fadd double %15, 0x3FA015BF91C8365D
%114 = fptrunc double %113 to float
%115 = fpext float %114 to double
%116 = fcmp ugt double %115, 0x400921FB53C8D4F1
br i1 %116, label %117, label %14
117: ; preds = %111
%118 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%119 = call i32 @moment(float* %13, i32 %112, float* %2, float* %1, float* %4, float* %6, float* %5, float* %3)
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%121 = load float, float* %2
%122 = fpext float %121 to double
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), double %122, double 0x3FF921FB53C8D4F1)
%124 = load float, float* %1
%125 = fpext float %124 to double
%126 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), double %125, double 0x3FE243F6A791A9E2)
%127 = load float, float* %4
%128 = fpext float %127 to double
%129 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), double %128, double 6.836670e-01)
%130 = load float, float* %6
%131 = fpext float %130 to double
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), double %131, double 4.674010e-01)
%133 = load float, float* %5
%134 = fpext float %133 to double
%135 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), double %134, double 0.000000e+00)
%136 = load float, float* %3
%137 = fpext float %136 to double
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), double %137, double 0xBFE9CCCAB3EDD8B6)
%139 = call i32 @free_vector(float* %13, i32 1, i32 5100)
ret i32 0
}