#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 *malloc(int);
double pow(double, double);
double integr_r3(double dR, int maxBin, double r[], double pn[]) {
  double *dpn;
  dpn = malloc(maxBin * sizeof(double));
  double integr;
  integr = 0.0;
  int bin;
  for (bin = 0; bin < maxBin; bin++) {
    if (bin < 3) {
      dpn[bin] = -49.0 / 20.0 * pn[bin] + 6.0 * pn[bin + 1] -
                 15.0 / 2.0 * pn[bin + 2] + 20.0 / 3.0 * pn[bin + 3] -
                 15.0 / 4.0 * pn[bin + 4] + 6.0 / 5.0 * pn[bin + 5] -
                 1.0 / 6.0 * pn[bin + 6];
      dpn[bin] /= dR;
    } else if (bin > maxBin - 4) {
      dpn[bin] = 49.0 / 20.0 * pn[bin] - 6.0 * pn[bin - 1] +
                 15.0 / 2.0 * pn[bin - 2] - 20.0 / 3.0 * pn[bin - 3] +
                 15.0 / 4.0 * pn[bin - 4] - 6.0 / 5.0 * pn[bin - 5] +
                 1.0 / 6.0 * pn[bin - 6];
      dpn[bin] /= dR;
    } else {
      dpn[bin] = -1.0 / 60.0 * pn[bin - 3] + 3.0 / 20.0 * pn[bin - 2] -
                 3.0 / 4.0 * pn[bin - 1] + 3.0 / 4.0 * pn[bin + 1] -
                 3.0 / 20.0 * pn[bin + 2] + 1.0 / 60.0 * pn[bin + 3];
      dpn[bin] /= dR;
    }
    integr += pow(r[bin], 3.0) * dpn[bin] * dR;
  }
  return integr;
}


x86 assembly (clang, -O0):
<integr_r3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movslq -0xc(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1030 <malloc@plt>
mov    %rax,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    14f1 <integr_r3+0x3d1>
cmpl   $0x3,-0x34(%rbp)
jge    127e <integr_r3+0x15e>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xece(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
movsd  0xef1(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xec7(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xe9d(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xe73(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x5,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xe49(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x6,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xe1f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x8(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    14a5 <integr_r3+0x385>
mov    -0x34(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x4,%ecx
cmp    %ecx,%eax
jle    13b4 <integr_r3+0x294>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xdaf(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xd83(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xd59(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xd2f(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x4,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xd05(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x5,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xcdb(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x6,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xcb1(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x8(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    14a0 <integr_r3+0x380>
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  0xc4d(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
movsd  0xc38(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xc0e(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xbe4(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xbba(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xb90(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x8(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    14a5 <integr_r3+0x385>
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xbde(%rip),%xmm1
call   1040 <pow@plt>
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  -0x8(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    115a <integr_r3+0x3a>
movsd  -0x30(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<integr_r3>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdx,%rbx
mov    %rsi,%r14
mov    %edi,%r12d
movsd  %xmm0,0x10(%rsp)
lea    0x0(,%r12,8),%edi
call   1030 <malloc@plt>
test   %r12d,%r12d
jle    13a2 <integr_r3+0x282>
mov    %rax,%r15
mov    $0xfffffffd,%r13d
lea    -0x4(%r12),%eax
cltq
mov    %rax,0x18(%rsp)
mov    %r12d,%r12d
xorpd  %xmm0,%xmm0
xor    %eax,%eax
movsd  0x10(%rsp),%xmm2
jmp    124a <integr_r3+0x12a>
nopl   0x0(%rax)
lea    0x1(%rax),%rbp
movsd  0x8(%rbx,%rax,8),%xmm0
mulsd  0xed6(%rip),%xmm0
movsd  (%rbx,%rax,8),%xmm1
mulsd  0xed1(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rbx,%rax,8),%xmm0
mulsd  0xec7(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0x18(%rbx,%rax,8),%xmm1
mulsd  0xebd(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x20(%rbx,%rax,8),%xmm0
mulsd  0xeb3(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0x28(%rbx,%rax,8),%xmm1
mulsd  0xea9(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0x30(%rbx,%rax,8),%xmm0
mulsd  0xe9f(%rip),%xmm0
addsd  %xmm1,%xmm0
divsd  %xmm2,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  %xmm0,(%r15,%rax,8)
movsd  (%r14,%rax,8),%xmm0
movsd  0xe85(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm2
mulsd  %xmm2,%xmm0
movsd  0x20(%rsp),%xmm1
addsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
mov    %rbp,%rax
cmp    %r12,%rbp
je     13a6 <integr_r3+0x286>
cmp    $0x2,%rax
movsd  %xmm0,0x20(%rsp)
jbe    1180 <integr_r3+0x60>
cmp    0x18(%rsp),%rax
jle    1310 <integr_r3+0x1f0>
lea    (%rax,%r13,1),%ecx
add    $0x2,%ecx
movsd  (%rbx,%rcx,8),%xmm0
mulsd  0xdb7(%rip),%xmm0
movsd  (%rbx,%rax,8),%xmm1
mulsd  0xdb2(%rip),%xmm1
addsd  %xmm0,%xmm1
lea    0x1(%rax,%r13,1),%ecx
movsd  (%rbx,%rcx,8),%xmm0
mulsd  0xda4(%rip),%xmm0
addsd  %xmm1,%xmm0
lea    (%rax,%r13,1),%ecx
movsd  (%rbx,%rcx,8),%xmm1
mulsd  0xd97(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  -0x20(%rbx,%rax,8),%xmm0
mulsd  0xd8d(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  -0x28(%rbx,%rax,8),%xmm1
mulsd  0xd83(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  -0x30(%rbx,%rax,8),%xmm0
mulsd  0xd79(%rip),%xmm0
addsd  %xmm1,%xmm0
divsd  %xmm2,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  %xmm0,(%r15,%rax,8)
lea    0x1(%rax),%rbp
jmp    120d <integr_r3+0xed>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    (%rax,%r13,1),%ecx
lea    (%rax,%r13,1),%edx
add    $0x1,%edx
movsd  (%rbx,%rdx,8),%xmm0
mulsd  0xcd8(%rip),%xmm0
movsd  (%rbx,%rcx,8),%xmm1
mulsd  0xcd3(%rip),%xmm1
addsd  %xmm0,%xmm1
lea    0x2(%r13,%rax,1),%ecx
movsd  (%rbx,%rcx,8),%xmm0
mulsd  0xcc5(%rip),%xmm0
addsd  %xmm1,%xmm0
lea    0x1(%rax),%rbp
movsd  0x8(%rbx,%rax,8),%xmm1
mulsd  0xcb7(%rip),%xmm1
addsd  %xmm0,%xmm1
lea    0x2(%rax),%ecx
movsd  (%rbx,%rcx,8),%xmm0
mulsd  0xcab(%rip),%xmm0
addsd  %xmm1,%xmm0
lea    0x3(%rax),%ecx
movsd  (%rbx,%rcx,8),%xmm1
mulsd  0xc9f(%rip),%xmm1
addsd  %xmm0,%xmm1
divsd  %xmm2,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  %xmm1,(%r15,%rax,8)
jmp    120d <integr_r3+0xed>
xorpd  %xmm0,%xmm0
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define double @integr_r3(double %0, i32 %1, double* %2, double* %3) {
%5 = alloca double
%6 = alloca i32
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double
%11 = alloca i32
store double %0, double* %5
store i32 %1, i32* %6
store double* %2, double** %7
store double* %3, double** %8
%12 = load i32, i32* %6
%13 = sext i32 %12 to i64
%14 = mul i64 %13, 8
%15 = trunc i64 %14 to i32
%16 = call double* @malloc(i32 %15)
store double* %16, double** %9
store double 0.000000e+00, double* %10
store i32 0, i32* %11
br label %17
17: ; preds = %221, %4
%18 = load i32, i32* %11
%19 = load i32, i32* %6
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %224
21: ; preds = %17
%22 = load i32, i32* %11
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %84
24: ; preds = %21
%25 = load double*, double** %8
%26 = load i32, i32* %11
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, double* %25, i64 %27
%29 = load double, double* %28
%30 = load double*, double** %8
%31 = load i32, i32* %11
%32 = add nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds double, double* %30, i64 %33
%35 = load double, double* %34
%36 = fmul double 6.000000e+00, %35
%37 = call double @llvm.fmuladd.f64(double -2.450000e+00, double %29, double %36)
%38 = load double*, double** %8
%39 = load i32, i32* %11
%40 = add nsw i32 %39, 2
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, double* %38, i64 %41
%43 = load double, double* %42
%44 = call double @llvm.fmuladd.f64(double -7.500000e+00, double %43, double %37)
%45 = load double*, double** %8
%46 = load i32, i32* %11
%47 = add nsw i32 %46, 3
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, double* %45, i64 %48
%50 = load double, double* %49
%51 = call double @llvm.fmuladd.f64(double 0x401AAAAAAAAAAAAB, double %50, double %44)
%52 = load double*, double** %8
%53 = load i32, i32* %11
%54 = add nsw i32 %53, 4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %52, i64 %55
%57 = load double, double* %56
%58 = call double @llvm.fmuladd.f64(double -3.750000e+00, double %57, double %51)
%59 = load double*, double** %8
%60 = load i32, i32* %11
%61 = add nsw i32 %60, 5
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, double* %59, i64 %62
%64 = load double, double* %63
%65 = call double @llvm.fmuladd.f64(double 1.200000e+00, double %64, double %58)
%66 = load double*, double** %8
%67 = load i32, i32* %11
%68 = add nsw i32 %67, 6
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, double* %66, i64 %69
%71 = load double, double* %70
%72 = call double @llvm.fmuladd.f64(double 0xBFC5555555555555, double %71, double %65)
%73 = load double*, double** %9
%74 = load i32, i32* %11
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, double* %73, i64 %75
store double %72, double* %76
%77 = load double, double* %5
%78 = load double*, double** %9
%79 = load i32, i32* %11
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, double* %78, i64 %80
%82 = load double, double* %81
%83 = fdiv double %82, %77
store double %83, double* %81
br label %205
84: ; preds = %21
%85 = load i32, i32* %11
%86 = load i32, i32* %6
%87 = sub nsw i32 %86, 4
%88 = icmp sgt i32 %85, %87
br i1 %88, label %89, label %150
89: ; preds = %84
%90 = load double*, double** %8
%91 = load i32, i32* %11
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, double* %90, i64 %92
%94 = load double, double* %93
%95 = load double*, double** %8
%96 = load i32, i32* %11
%97 = sub nsw i32 %96, 1
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, double* %95, i64 %98
%100 = load double, double* %99
%101 = fmul double 6.000000e+00, %100
%102 = fneg double %101
%103 = call double @llvm.fmuladd.f64(double 2.450000e+00, double %94, double %102)
%104 = load double*, double** %8
%105 = load i32, i32* %11
%106 = sub nsw i32 %105, 2
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds double, double* %104, i64 %107
%109 = load double, double* %108
%110 = call double @llvm.fmuladd.f64(double 7.500000e+00, double %109, double %103)
%111 = load double*, double** %8
%112 = load i32, i32* %11
%113 = sub nsw i32 %112, 3
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, double* %111, i64 %114
%116 = load double, double* %115
%117 = call double @llvm.fmuladd.f64(double 0xC01AAAAAAAAAAAAB, double %116, double %110)
%118 = load double*, double** %8
%119 = load i32, i32* %11
%120 = sub nsw i32 %119, 4
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, double* %118, i64 %121
%123 = load double, double* %122
%124 = call double @llvm.fmuladd.f64(double 3.750000e+00, double %123, double %117)
%125 = load double*, double** %8
%126 = load i32, i32* %11
%127 = sub nsw i32 %126, 5
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds double, double* %125, i64 %128
%130 = load double, double* %129
%131 = call double @llvm.fmuladd.f64(double -1.200000e+00, double %130, double %124)
%132 = load double*, double** %8
%133 = load i32, i32* %11
%134 = sub nsw i32 %133, 6
%135 = sext i32 %134 to i64
%136 = getelementptr inbounds double, double* %132, i64 %135
%137 = load double, double* %136
%138 = call double @llvm.fmuladd.f64(double 0x3FC5555555555555, double %137, double %131)
%139 = load double*, double** %9
%140 = load i32, i32* %11
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds double, double* %139, i64 %141
store double %138, double* %142
%143 = load double, double* %5
%144 = load double*, double** %9
%145 = load i32, i32* %11
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds double, double* %144, i64 %146
%148 = load double, double* %147
%149 = fdiv double %148, %143
store double %149, double* %147
br label %204
150: ; preds = %84
%151 = load double*, double** %8
%152 = load i32, i32* %11
%153 = sub nsw i32 %152, 3
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, double* %151, i64 %154
%156 = load double, double* %155
%157 = load double*, double** %8
%158 = load i32, i32* %11
%159 = sub nsw i32 %158, 2
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds double, double* %157, i64 %160
%162 = load double, double* %161
%163 = fmul double 1.500000e-01, %162
%164 = call double @llvm.fmuladd.f64(double 0xBF91111111111111, double %156, double %163)
%165 = load double*, double** %8
%166 = load i32, i32* %11
%167 = sub nsw i32 %166, 1
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds double, double* %165, i64 %168
%170 = load double, double* %169
%171 = call double @llvm.fmuladd.f64(double -7.500000e-01, double %170, double %164)
%172 = load double*, double** %8
%173 = load i32, i32* %11
%174 = add nsw i32 %173, 1
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, double* %172, i64 %175
%177 = load double, double* %176
%178 = call double @llvm.fmuladd.f64(double 7.500000e-01, double %177, double %171)
%179 = load double*, double** %8
%180 = load i32, i32* %11
%181 = add nsw i32 %180, 2
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds double, double* %179, i64 %182
%184 = load double, double* %183
%185 = call double @llvm.fmuladd.f64(double -1.500000e-01, double %184, double %178)
%186 = load double*, double** %8
%187 = load i32, i32* %11
%188 = add nsw i32 %187, 3
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds double, double* %186, i64 %189
%191 = load double, double* %190
%192 = call double @llvm.fmuladd.f64(double 0x3F91111111111111, double %191, double %185)
%193 = load double*, double** %9
%194 = load i32, i32* %11
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds double, double* %193, i64 %195
store double %192, double* %196
%197 = load double, double* %5
%198 = load double*, double** %9
%199 = load i32, i32* %11
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds double, double* %198, i64 %200
%202 = load double, double* %201
%203 = fdiv double %202, %197
store double %203, double* %201
br label %204
204: ; preds = %150, %89
br label %205
205: ; preds = %204, %24
%206 = load double*, double** %7
%207 = load i32, i32* %11
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds double, double* %206, i64 %208
%210 = load double, double* %209
%211 = call double @pow(double %210, double 3.000000e+00)
%212 = load double*, double** %9
%213 = load i32, i32* %11
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds double, double* %212, i64 %214
%216 = load double, double* %215
%217 = fmul double %211, %216
%218 = load double, double* %5
%219 = load double, double* %10
%220 = call double @llvm.fmuladd.f64(double %217, double %218, double %219)
store double %220, double* %10
br label %221
221: ; preds = %205
%222 = load i32, i32* %11
%223 = add nsw i32 %222, 1
store i32 %223, i32* %11
br label %17
224: ; preds = %17
%225 = load double, double* %10
ret double %225
}

LLVM IR (-O2):
define double @integr_r3(double %0, i32 %1, double* nocapture %2, double* nocapture %3) {
%5 = shl i32 %1, 3
%6 = tail call double* @malloc(i32 %5)
%7 = icmp sgt i32 %1, 0
br i1 %7, label %8, label %123
8: ; preds = %4
%9 = add nsw i32 %1, -4
%10 = sext i32 %9 to i64
%11 = zext i32 %1 to i64
br label %12
12: ; preds = %8, %114
%13 = phi i64 [ 0, %8 ], [ %115, %114 ]
%14 = phi double [ 0.000000e+00, %8 ], [ %121, %114 ]
%15 = icmp ult i64 %13, 3
br i1 %15, label %16, label %46
16: ; preds = %12
%17 = getelementptr inbounds double, double* %3, i64 %13
%18 = load double, double* %17
%19 = add nuw nsw i64 %13, 1
%20 = getelementptr inbounds double, double* %3, i64 %19
%21 = load double, double* %20
%22 = fmul double %21, 6.000000e+00
%23 = tail call double @llvm.fmuladd.f64(double %18, double -2.450000e+00, double %22)
%24 = add nuw nsw i64 %13, 2
%25 = getelementptr inbounds double, double* %3, i64 %24
%26 = load double, double* %25
%27 = tail call double @llvm.fmuladd.f64(double %26, double -7.500000e+00, double %23)
%28 = add nuw nsw i64 %13, 3
%29 = getelementptr inbounds double, double* %3, i64 %28
%30 = load double, double* %29
%31 = tail call double @llvm.fmuladd.f64(double %30, double 0x401AAAAAAAAAAAAB, double %27)
%32 = add nuw nsw i64 %13, 4
%33 = getelementptr inbounds double, double* %3, i64 %32
%34 = load double, double* %33
%35 = tail call double @llvm.fmuladd.f64(double %34, double -3.750000e+00, double %31)
%36 = add nuw nsw i64 %13, 5
%37 = getelementptr inbounds double, double* %3, i64 %36
%38 = load double, double* %37
%39 = tail call double @llvm.fmuladd.f64(double %38, double 1.200000e+00, double %35)
%40 = add nuw nsw i64 %13, 6
%41 = getelementptr inbounds double, double* %3, i64 %40
%42 = load double, double* %41
%43 = tail call double @llvm.fmuladd.f64(double %42, double 0xBFC5555555555555, double %39)
%44 = getelementptr inbounds double, double* %6, i64 %13
%45 = fdiv double %43, %0
store double %45, double* %44
br label %114
46: ; preds = %12
%47 = icmp sgt i64 %13, %10
br i1 %47, label %48, label %82
48: ; preds = %46
%49 = getelementptr inbounds double, double* %3, i64 %13
%50 = load double, double* %49
%51 = add i64 %13, 4294967295
%52 = and i64 %51, 4294967295
%53 = getelementptr inbounds double, double* %3, i64 %52
%54 = load double, double* %53
%55 = fmul double %54, -6.000000e+00
%56 = tail call double @llvm.fmuladd.f64(double %50, double 2.450000e+00, double %55)
%57 = add i64 %13, 4294967294
%58 = and i64 %57, 4294967295
%59 = getelementptr inbounds double, double* %3, i64 %58
%60 = load double, double* %59
%61 = tail call double @llvm.fmuladd.f64(double %60, double 7.500000e+00, double %56)
%62 = add i64 %13, 4294967293
%63 = and i64 %62, 4294967295
%64 = getelementptr inbounds double, double* %3, i64 %63
%65 = load double, double* %64
%66 = tail call double @llvm.fmuladd.f64(double %65, double 0xC01AAAAAAAAAAAAB, double %61)
%67 = add nsw i64 %13, -4
%68 = getelementptr inbounds double, double* %3, i64 %67
%69 = load double, double* %68
%70 = tail call double @llvm.fmuladd.f64(double %69, double 3.750000e+00, double %66)
%71 = add nsw i64 %13, -5
%72 = getelementptr inbounds double, double* %3, i64 %71
%73 = load double, double* %72
%74 = tail call double @llvm.fmuladd.f64(double %73, double -1.200000e+00, double %70)
%75 = add nsw i64 %13, -6
%76 = getelementptr inbounds double, double* %3, i64 %75
%77 = load double, double* %76
%78 = tail call double @llvm.fmuladd.f64(double %77, double 0x3FC5555555555555, double %74)
%79 = getelementptr inbounds double, double* %6, i64 %13
%80 = fdiv double %78, %0
store double %80, double* %79
%81 = add nuw nsw i64 %13, 1
br label %114
82: ; preds = %46
%83 = add i64 %13, 4294967293
%84 = and i64 %83, 4294967295
%85 = getelementptr inbounds double, double* %3, i64 %84
%86 = load double, double* %85
%87 = add i64 %13, 4294967294
%88 = and i64 %87, 4294967295
%89 = getelementptr inbounds double, double* %3, i64 %88
%90 = load double, double* %89
%91 = fmul double %90, 1.500000e-01
%92 = tail call double @llvm.fmuladd.f64(double %86, double 0xBF91111111111111, double %91)
%93 = add i64 %13, 4294967295
%94 = and i64 %93, 4294967295
%95 = getelementptr inbounds double, double* %3, i64 %94
%96 = load double, double* %95
%97 = tail call double @llvm.fmuladd.f64(double %96, double -7.500000e-01, double %92)
%98 = add nuw nsw i64 %13, 1
%99 = getelementptr inbounds double, double* %3, i64 %98
%100 = load double, double* %99
%101 = tail call double @llvm.fmuladd.f64(double %100, double 7.500000e-01, double %97)
%102 = add i64 %13, 2
%103 = and i64 %102, 4294967295
%104 = getelementptr inbounds double, double* %3, i64 %103
%105 = load double, double* %104
%106 = tail call double @llvm.fmuladd.f64(double %105, double -1.500000e-01, double %101)
%107 = add i64 %13, 3
%108 = and i64 %107, 4294967295
%109 = getelementptr inbounds double, double* %3, i64 %108
%110 = load double, double* %109
%111 = tail call double @llvm.fmuladd.f64(double %110, double 0x3F91111111111111, double %106)
%112 = getelementptr inbounds double, double* %6, i64 %13
%113 = fdiv double %111, %0
store double %113, double* %112
br label %114
114: ; preds = %48, %82, %16
%115 = phi i64 [ %81, %48 ], [ %98, %82 ], [ %19, %16 ]
%116 = phi double [ %80, %48 ], [ %113, %82 ], [ %45, %16 ]
%117 = getelementptr inbounds double, double* %2, i64 %13
%118 = load double, double* %117
%119 = tail call double @pow(double %118, double 3.000000e+00)
%120 = fmul double %119, %116
%121 = tail call double @llvm.fmuladd.f64(double %120, double %0, double %14)
%122 = icmp eq i64 %115, %11
br i1 %122, label %123, label %12
123: ; preds = %114, %4
%124 = phi double [ 0.000000e+00, %4 ], [ %121, %114 ]
ret double %124
}