#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 */
double pow(double, double);
double sqrt(double);
void mom(double x[], int n, double *x1, double *x2, double *x3, double *x4,
         double *min, double *max) {
  int i;
  double s1, s2, s3, s4, an, an1, dx, dx2, xi, var;
  s1 = x[0];
  s2 = 0.0;
  s3 = 0.0;
  s4 = 0.0;
  *min = s1;
  *max = s1;
  for (i = 1; i < n; ++i) {
    xi = x[i];
    an = i + 1;
    an1 = i;
    dx = (xi - s1) / an;
    dx2 = dx * dx;
    s4 -= dx * (4.0 * s3 - dx * (6.0 * s2 + an1 * (1.0 + pow(an1, 3.0)) * dx2));
    s3 -= dx * (3.0 * s2 - an * an1 * (an - 2.0) * dx2);
    s2 += an * an1 * dx2;
    s1 += dx;
    if (xi < *min)
      *min = xi;
    if (xi > *max)
      *max = xi;
  }
  *x1 = s1;
  var = n > 1 ? s2 / (n - 1) : 0.0;
  *x2 = sqrt(var);
  *x3 = var > 0.0 ? 1.0 / (n - 1) * s3 / pow(var, 1.5) : 0.0;
  *x4 = var > 0.0 ? 1.0 / (n - 1) * s4 / pow(var, 2.0) - 3.0 : 0.0;
}


x86 assembly (clang, -O0):
<mom>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x40(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm0
mov    0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    13e6 <mom+0x2c6>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x60(%rbp)
cvtsi2sdl -0x34(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x80(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movsd  0xdd8(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0xb0(%rbp),%xmm4
ff
movsd  -0xa8(%rbp),%xmm3
ff
movsd  -0xa0(%rbp),%xmm1
ff
movsd  -0x98(%rbp),%xmm2
ff
movaps %xmm0,%xmm6
movsd  -0x90(%rbp),%xmm0
ff
movsd  0xd98(%rip),%xmm5
addsd  %xmm6,%xmm5
mulsd  %xmm5,%xmm4
mulsd  -0x78(%rbp),%xmm4
movsd  0xda3(%rip),%xmm5
mulsd  %xmm5,%xmm3
addsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xd70(%rip),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x58(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  -0x68(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm3
movsd  0xd16(%rip),%xmm4
subsd  %xmm4,%xmm3
mulsd  %xmm3,%xmm1
mulsd  -0x78(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xce2(%rip),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x50(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x60(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x70(%rbp),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x80(%rbp),%xmm1
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
ucomisd %xmm1,%xmm0
jbe    13b3 <mom+0x293>
movsd  -0x80(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x80(%rbp),%xmm0
mov    0x18(%rbp),%rax
ucomisd (%rax),%xmm0
jbe    13d3 <mom+0x2b3>
movsd  -0x80(%rbp),%xmm0
mov    0x18(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    13d8 <mom+0x2b8>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1190 <mom+0x70>
movsd  -0x40(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
cmpl   $0x1,-0xc(%rbp)
jle    141d <mom+0x2fd>
movsd  -0x48(%rbp),%xmm0
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
jmp    142d <mom+0x30d>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
jmp    142d <mom+0x30d>
movsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
call   1040 <sqrt@plt>
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x88(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    14bb <mom+0x39b>
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xb8f(%rip),%xmm0
divsd  %xmm1,%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  0xb66(%rip),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xc8(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
jmp    14cb <mom+0x3ab>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
jmp    14cb <mom+0x3ab>
movsd  -0xc0(%rbp),%xmm0
ff
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x88(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1550 <mom+0x430>
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm1
movsd  0xb06(%rip),%xmm0
divsd  %xmm1,%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  0xaf5(%rip),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  0xad1(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
jmp    1560 <mom+0x440>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
jmp    1560 <mom+0x440>
movsd  -0xd0(%rbp),%xmm0
ff
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mom>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %r9,%r12
mov    %r8,%r13
mov    %rcx,%rbp
mov    0xc8(%rsp),%r14
mov    0xc0(%rsp),%r15
movsd  (%rdi),%xmm11
movsd  %xmm11,(%r15)
movsd  %xmm11,(%r14)
cmp    $0x1,%esi
jle    12e4 <mom+0x1c4>
mov    %rdi,%rbx
mov    %rdx,0x48(%rsp)
mov    %rbp,0x50(%rsp)
mov    %r13,0x58(%rsp)
mov    %r12,0x60(%rsp)
mov    %esi,0xc(%rsp)
mov    %esi,%r12d
xorpd  %xmm8,%xmm8
xorpd  %xmm10,%xmm10
mov    $0x1,%r13d
mov    $0x2,%ebp
jmp    121f <mom+0xff>
nopw   0x0(%rax,%rax,1)
subsd  %xmm11,%xmm7
divsd  %xmm12,%xmm7
movapd %xmm7,%xmm4
mulsd  %xmm7,%xmm4
movapd 0x30(%rsp),%xmm6
mulsd  %xmm6,%xmm0
mulsd  %xmm4,%xmm0
addsd  %xmm0,%xmm3
movapd %xmm7,%xmm0
movapd 0xe5f(%rip),%xmm9
xorpd  %xmm9,%xmm0
mulsd  %xmm12,%xmm6
movapd %xmm6,%xmm5
xorpd  %xmm9,%xmm5
mulsd  %xmm5,%xmm2
unpcklpd %xmm3,%xmm2
mulsd  %xmm4,%xmm6
unpcklpd %xmm0,%xmm4
mulpd  %xmm2,%xmm4
addpd  %xmm4,%xmm1
addsd  %xmm7,%xmm11
unpcklpd %xmm7,%xmm7
mulpd  %xmm1,%xmm7
subpd  %xmm7,%xmm8
addsd  %xmm6,%xmm10
add    $0x1,%ebp
cmp    %r13,%r12
je     12eb <mom+0x1cb>
movsd  %xmm11,(%rsp)
movapd %xmm10,0x10(%rsp)
movapd %xmm8,0x20(%rsp)
movsd  (%rbx,%r13,8),%xmm0
movaps %xmm0,0x70(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
movsd  %xmm0,0x68(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %r13d,%xmm0
movapd %xmm0,0x30(%rsp)
movsd  0xd9f(%rip),%xmm1
call   1030 <pow@plt>
movsd  0x68(%rsp),%xmm12
movapd 0x70(%rsp),%xmm7
movapd 0x10(%rsp),%xmm10
movapd 0x20(%rsp),%xmm8
addsd  0xd7f(%rip),%xmm0
movapd %xmm10,%xmm3
mulsd  0xd7a(%rip),%xmm3
movapd %xmm12,%xmm2
addsd  0xd75(%rip),%xmm2
movapd %xmm10,%xmm1
unpcklpd %xmm8,%xmm1
mulpd  0xd8b(%rip),%xmm1
movsd  (%r15),%xmm4
ucomisd %xmm7,%xmm4
jbe    12c5 <mom+0x1a5>
movsd  %xmm7,(%r15)
add    $0x1,%r13
ucomisd (%r14),%xmm7
movsd  (%rsp),%xmm11
jbe    11a0 <mom+0x80>
movsd  %xmm7,(%r14)
jmp    11a0 <mom+0x80>
movsd  %xmm11,(%rdx)
jmp    133f <mom+0x21f>
mov    0x48(%rsp),%rax
movsd  %xmm11,(%rax)
mov    0xc(%rsp),%eax
cmp    $0x1,%eax
mov    0x60(%rsp),%r12
mov    0x58(%rsp),%r13
mov    0x50(%rsp),%rbp
jle    133f <mom+0x21f>
add    $0xffffffff,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm10
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm10
movapd %xmm8,0x20(%rsp)
movapd %xmm10,0x10(%rsp)
jb     136b <mom+0x24b>
xorps  %xmm0,%xmm0
sqrtsd %xmm10,%xmm0
jmp    1391 <mom+0x271>
movq   $0x0,0x0(%rbp)
movq   $0x0,0x0(%r13)
xorpd  %xmm1,%xmm1
movsd  %xmm1,(%r12)
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movapd %xmm10,%xmm0
movsd  %xmm1,(%rsp)
call   1040 <sqrt@plt>
xorpd  %xmm2,%xmm2
movsd  (%rsp),%xmm1
movapd 0x10(%rsp),%xmm10
movapd 0x20(%rsp),%xmm8
movsd  %xmm0,0x0(%rbp)
ucomisd %xmm2,%xmm10
jbe    1347 <mom+0x227>
movsd  0xc63(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
mulsd  %xmm8,%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0xc5f(%rip),%xmm1
movapd %xmm10,%xmm0
call   1030 <pow@plt>
movapd 0x20(%rsp),%xmm1
movsd  0x30(%rsp),%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,0x0(%r13)
unpckhpd %xmm1,%xmm1
mulsd  (%rsp),%xmm1
movapd 0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm0
divsd  %xmm0,%xmm1
addsd  0xc28(%rip),%xmm1
jmp    1353 <mom+0x233>

LLVM IR (-O0):
define void @mom(double* %0, i32 %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7) {
%9 = alloca double*
%10 = alloca i32
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca i32
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
%27 = alloca double
store double* %0, double** %9
store i32 %1, i32* %10
store double* %2, double** %11
store double* %3, double** %12
store double* %4, double** %13
store double* %5, double** %14
store double* %6, double** %15
store double* %7, double** %16
%28 = load double*, double** %9
%29 = getelementptr inbounds double, double* %28, i64 0
%30 = load double, double* %29
store double %30, double* %18
store double 0.000000e+00, double* %19
store double 0.000000e+00, double* %20
store double 0.000000e+00, double* %21
%31 = load double, double* %18
%32 = load double*, double** %15
store double %31, double* %32
%33 = load double, double* %18
%34 = load double*, double** %16
store double %33, double* %34
store i32 1, i32* %17
br label %35
35: ; preds = %116, %8
%36 = load i32, i32* %17
%37 = load i32, i32* %10
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %119
39: ; preds = %35
%40 = load double*, double** %9
%41 = load i32, i32* %17
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %40, i64 %42
%44 = load double, double* %43
store double %44, double* %26
%45 = load i32, i32* %17
%46 = add nsw i32 %45, 1
%47 = sitofp i32 %46 to double
store double %47, double* %22
%48 = load i32, i32* %17
%49 = sitofp i32 %48 to double
store double %49, double* %23
%50 = load double, double* %26
%51 = load double, double* %18
%52 = fsub double %50, %51
%53 = load double, double* %22
%54 = fdiv double %52, %53
store double %54, double* %24
%55 = load double, double* %24
%56 = load double, double* %24
%57 = fmul double %55, %56
store double %57, double* %25
%58 = load double, double* %24
%59 = load double, double* %20
%60 = load double, double* %24
%61 = load double, double* %19
%62 = load double, double* %23
%63 = load double, double* %23
%64 = call double @pow(double %63, double 3.000000e+00)
%65 = fadd double 1.000000e+00, %64
%66 = fmul double %62, %65
%67 = load double, double* %25
%68 = fmul double %66, %67
%69 = call double @llvm.fmuladd.f64(double 6.000000e+00, double %61, double %68)
%70 = fmul double %60, %69
%71 = fneg double %70
%72 = call double @llvm.fmuladd.f64(double 4.000000e+00, double %59, double %71)
%73 = load double, double* %21
%74 = fneg double %58
%75 = call double @llvm.fmuladd.f64(double %74, double %72, double %73)
store double %75, double* %21
%76 = load double, double* %24
%77 = load double, double* %19
%78 = load double, double* %22
%79 = load double, double* %23
%80 = fmul double %78, %79
%81 = load double, double* %22
%82 = fsub double %81, 2.000000e+00
%83 = fmul double %80, %82
%84 = load double, double* %25
%85 = fmul double %83, %84
%86 = fneg double %85
%87 = call double @llvm.fmuladd.f64(double 3.000000e+00, double %77, double %86)
%88 = load double, double* %20
%89 = fneg double %76
%90 = call double @llvm.fmuladd.f64(double %89, double %87, double %88)
store double %90, double* %20
%91 = load double, double* %22
%92 = load double, double* %23
%93 = fmul double %91, %92
%94 = load double, double* %25
%95 = load double, double* %19
%96 = call double @llvm.fmuladd.f64(double %93, double %94, double %95)
store double %96, double* %19
%97 = load double, double* %24
%98 = load double, double* %18
%99 = fadd double %98, %97
store double %99, double* %18
%100 = load double, double* %26
%101 = load double*, double** %15
%102 = load double, double* %101
%103 = fcmp olt double %100, %102
br i1 %103, label %104, label %107
104: ; preds = %39
%105 = load double, double* %26
%106 = load double*, double** %15
store double %105, double* %106
br label %107
107: ; preds = %104, %39
%108 = load double, double* %26
%109 = load double*, double** %16
%110 = load double, double* %109
%111 = fcmp ogt double %108, %110
br i1 %111, label %112, label %115
112: ; preds = %107
%113 = load double, double* %26
%114 = load double*, double** %16
store double %113, double* %114
br label %115
115: ; preds = %112, %107
br label %116
116: ; preds = %115
%117 = load i32, i32* %17
%118 = add nsw i32 %117, 1
store i32 %118, i32* %17
br label %35
119: ; preds = %35
%120 = load double, double* %18
%121 = load double*, double** %11
store double %120, double* %121
%122 = load i32, i32* %10
%123 = icmp sgt i32 %122, 1
br i1 %123, label %124, label %130
124: ; preds = %119
%125 = load double, double* %19
%126 = load i32, i32* %10
%127 = sub nsw i32 %126, 1
%128 = sitofp i32 %127 to double
%129 = fdiv double %125, %128
br label %131
130: ; preds = %119
br label %131
131: ; preds = %130, %124
%132 = phi double [ %129, %124 ], [ 0.000000e+00, %130 ]
store double %132, double* %27
%133 = load double, double* %27
%134 = call double @sqrt(double %133)
%135 = load double*, double** %12
store double %134, double* %135
%136 = load double, double* %27
%137 = fcmp ogt double %136, 0.000000e+00
br i1 %137, label %138, label %148
138: ; preds = %131
%139 = load i32, i32* %10
%140 = sub nsw i32 %139, 1
%141 = sitofp i32 %140 to double
%142 = fdiv double 1.000000e+00, %141
%143 = load double, double* %20
%144 = fmul double %142, %143
%145 = load double, double* %27
%146 = call double @pow(double %145, double 1.500000e+00)
%147 = fdiv double %144, %146
br label %149
148: ; preds = %131
br label %149
149: ; preds = %148, %138
%150 = phi double [ %147, %138 ], [ 0.000000e+00, %148 ]
%151 = load double*, double** %13
store double %150, double* %151
%152 = load double, double* %27
%153 = fcmp ogt double %152, 0.000000e+00
br i1 %153, label %154, label %165
154: ; preds = %149
%155 = load i32, i32* %10
%156 = sub nsw i32 %155, 1
%157 = sitofp i32 %156 to double
%158 = fdiv double 1.000000e+00, %157
%159 = load double, double* %21
%160 = fmul double %158, %159
%161 = load double, double* %27
%162 = call double @pow(double %161, double 2.000000e+00)
%163 = fdiv double %160, %162
%164 = fsub double %163, 3.000000e+00
br label %166
165: ; preds = %149
br label %166
166: ; preds = %165, %154
%167 = phi double [ %164, %154 ], [ 0.000000e+00, %165 ]
%168 = load double*, double** %14
store double %167, double* %168
ret void
}

LLVM IR (-O2):
define void @mom(double* nocapture %0, i32 %1, double* nocapture writeonly %2, double* nocapture writeonly %3, double* nocapture writeonly %4, double* nocapture writeonly %5, double* nocapture %6, double* nocapture %7) {
%9 = load double, double* %0
store double %9, double* %6
store double %9, double* %7
%10 = icmp sgt i32 %1, 1
br i1 %10, label %12, label %11
11: ; preds = %8
store double %9, double* %2
br label %62
12: ; preds = %8
%13 = zext i32 %1 to i64
br label %14
14: ; preds = %12, %59
%15 = phi i64 [ 1, %12 ], [ %21, %59 ]
%16 = phi double [ %9, %12 ], [ %51, %59 ]
%17 = phi double [ 0.000000e+00, %12 ], [ %50, %59 ]
%18 = phi <2 x double> [ zeroinitializer, %12 ], [ %49, %59 ]
%19 = getelementptr inbounds double, double* %0, i64 %15
%20 = load double, double* %19
%21 = add nuw nsw i64 %15, 1
%22 = trunc i64 %21 to i32
%23 = sitofp i32 %22 to double
%24 = trunc i64 %15 to i32
%25 = sitofp i32 %24 to double
%26 = fsub double %20, %16
%27 = fdiv double %26, %23
%28 = fmul double %27, %27
%29 = tail call double @pow(double %25, double 3.000000e+00)
%30 = fadd double %29, 1.000000e+00
%31 = fmul double %30, %25
%32 = fmul double %31, %28
%33 = tail call double @llvm.fmuladd.f64(double %17, double 6.000000e+00, double %32)
%34 = fneg double %27
%35 = fmul double %25, %23
%36 = fadd double %23, -2.000000e+00
%37 = fneg double %35
%38 = fmul double %36, %37
%39 = insertelement <2 x double> poison, double %38, i64 0
%40 = insertelement <2 x double> %39, double %33, i64 1
%41 = insertelement <2 x double> poison, double %28, i64 0
%42 = insertelement <2 x double> %41, double %34, i64 1
%43 = fmul <2 x double> %40, %42
%44 = insertelement <2 x double> poison, double %17, i64 0
%45 = shufflevector <2 x double> %44, <2 x double> %18, <2 x i32> <i32 0, i32 2>
%46 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %45, <2 x double> <double 3.000000e+00, double 4.000000e+00>, <2 x double> %43)
%47 = insertelement <2 x double> poison, double %34, i64 0
%48 = shufflevector <2 x double> %47, <2 x double> poison, <2 x i32> zeroinitializer
%49 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %48, <2 x double> %46, <2 x double> %18)
%50 = tail call double @llvm.fmuladd.f64(double %35, double %28, double %17)
%51 = fadd double %16, %27
%52 = load double, double* %6
%53 = fcmp olt double %20, %52
br i1 %53, label %54, label %55
54: ; preds = %14
store double %20, double* %6
br label %55
55: ; preds = %54, %14
%56 = load double, double* %7
%57 = fcmp ogt double %20, %56
br i1 %57, label %58, label %59
58: ; preds = %55
store double %20, double* %7
br label %59
59: ; preds = %55, %58
%60 = icmp eq i64 %21, %13
br i1 %60, label %61, label %14
61: ; preds = %59
store double %51, double* %2
br i1 %10, label %63, label %62
62: ; preds = %11, %61
store double 0.000000e+00, double* %3
br label %80
63: ; preds = %61
%64 = add nsw i32 %1, -1
%65 = sitofp i32 %64 to double
%66 = fdiv double %50, %65
%67 = tail call double @sqrt(double %66)
store double %67, double* %3
%68 = fcmp ogt double %66, 0.000000e+00
br i1 %68, label %69, label %80
69: ; preds = %63
%70 = fdiv double 1.000000e+00, %65
%71 = extractelement <2 x double> %49, i64 0
%72 = fmul double %70, %71
%73 = tail call double @pow(double %66, double 1.500000e+00)
%74 = fdiv double %72, %73
store double %74, double* %4
%75 = extractelement <2 x double> %49, i64 1
%76 = fmul double %70, %75
%77 = fmul double %66, %66
%78 = fdiv double %76, %77
%79 = fadd double %78, -3.000000e+00
br label %81
80: ; preds = %62, %63
store double 0.000000e+00, double* %4
br label %81
81: ; preds = %80, %69
%82 = phi double [ %79, %69 ], [ 0.000000e+00, %80 ]
store double %82, double* %5
ret void
}