#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*/ memset(double *, int /*<<< orphan*/, int);
double sqrt(double const);
void evaluateBuckleyLeverettLiuExample(int nPoints, int nSpace, const double *x,
                                       const double *u, double *m, double *dm,
                                       double *f, double *df, double *a) {
  double vx, vy, r, drdx, drdy, frac, dfrac, denom, ddenom;
  int k;
  const int nSpace2 = nSpace * nSpace;
  const double eps = 1.0e-3;
  memset(a, 0, nPoints * nSpace2 * sizeof(double));
  for (k = 0; k < nPoints; k++) {
    r = sqrt(x[k * 3 + 0] * x[k * 3 + 0] + x[k * 3 + 1] * x[k * 3 + 1] + eps);
    drdx = x[k * 3 + 0] / r;
    drdy = x[k * 3 + 1] / r;
    vx = 0.01 * drdx / r;
    vy = 0.01 * drdy / r;
    denom = (0.2 - 0.4 * u[k] + 1.2 * u[k] * u[k]);
    ddenom = 2.4 * u[k] - 0.4;
    frac = u[k] * u[k] / denom;
    dfrac = 2.0 * u[k] / denom - u[k] * u[k] * ddenom / (denom * denom);
    m[k] = u[k];
    dm[k] = 1.0;
    f[k * nSpace + 0] = vx * frac;
    f[k * nSpace + 1] = vy * frac;
    df[k * nSpace + 0] = vx * dfrac;
    df[k * nSpace + 1] = vy * dfrac;
  }
}


x86 assembly (clang, -O0):
<evaluateBuckleyLeverettLiuExample>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x8(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0x78(%rbp)
movsd  0xea1(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    0x20(%rbp),%rdi
mov    -0x4(%rbp),%eax
imul   -0x78(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edx
xor    %esi,%esi
call   1030 <memset@plt>
movl   $0x0,-0x74(%rbp)
mov    -0x74(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1412 <evaluateBuckleyLeverettLiuExample+0x2f2>
mov    -0x10(%rbp),%rax
imul   $0x3,-0x74(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
imul   $0x3,-0x74(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x10(%rbp),%rax
imul   $0x3,-0x74(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
imul   $0x3,-0x74(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe13(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1040 <sqrt@plt>
movsd  %xmm0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
imul   $0x3,-0x74(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
imul   $0x3,-0x74(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xdfb(%rip),%xmm0
mulsd  -0x48(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xde4(%rip),%xmm0
mulsd  -0x50(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  0xda8(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xdac(%rip),%xmm0
addsd  %xmm0,%xmm1
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
movsd  0xd90(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xd4c(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd48(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
divsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
movsd  0xcfb(%rip),%xmm0
mulsd  (%rax,%rcx,8),%xmm0
divsd  -0x68(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  -0x70(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm2
mulsd  -0x68(%rbp),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x74(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x74(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x74(%rbp),%rcx
movsd  0xc89(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    0x10(%rbp),%rax
mov    -0x74(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    0x10(%rbp),%rax
mov    -0x74(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mov    0x18(%rbp),%rax
mov    -0x74(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mov    0x18(%rbp),%rax
mov    -0x74(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    1185 <evaluateBuckleyLeverettLiuExample+0x65>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<evaluateBuckleyLeverettLiuExample>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,0x10(%rsp)
mov    %r8,0x8(%rsp)
mov    %rcx,%rbp
mov    %rdx,%rbx
mov    %esi,%r15d
mov    %edi,%r14d
mov    0x60(%rsp),%rdi
mov    %r14d,%edx
imul   %esi,%edx
imul   %esi,%edx
shl    $0x3,%edx
xor    %esi,%esi
call   1030 <memset@plt>
test   %r14d,%r14d
jle    1305 <evaluateBuckleyLeverettLiuExample+0x1e5>
mov    0x58(%rsp),%rcx
mov    0x50(%rsp),%r13
movslq %r15d,%rsi
mov    %r14d,%r12d
xor    %r14d,%r14d
movsd  0xe80(%rip),%xmm6
xorpd  %xmm8,%xmm8
movapd 0xea3(%rip),%xmm7
movsd  0xe72(%rip),%xmm9
movsd  0xe71(%rip),%xmm10
movsd  0xe70(%rip),%xmm11
movsd  0xe6f(%rip),%xmm12
movabs $0x3ff0000000000000,%rdx
xor    %r15d,%r15d
mov    %rbp,(%rsp)
jmp    12d8 <evaluateBuckleyLeverettLiuExample+0x1b8>
nopw   0x0(%rax,%rax,1)
mov    %rsi,%rbp
call   1040 <sqrt@plt>
movabs $0x3ff0000000000000,%rdx
movsd  0xe35(%rip),%xmm12
movsd  0xe24(%rip),%xmm11
movsd  0xe13(%rip),%xmm10
movsd  0xe02(%rip),%xmm9
movapd 0xe22(%rip),%xmm7
xorpd  %xmm8,%xmm8
movsd  0xde5(%rip),%xmm6
mov    %rbp,%rsi
mov    0x58(%rsp),%rcx
mov    (%rsp),%rbp
movupd (%rbx),%xmm1
unpcklpd %xmm0,%xmm0
divpd  %xmm0,%xmm1
mulpd  %xmm7,%xmm1
divpd  %xmm0,%xmm1
movsd  0x0(%rbp,%r15,8),%xmm2
movapd %xmm2,%xmm0
mulsd  %xmm11,%xmm0
mulsd  %xmm2,%xmm0
movapd %xmm2,%xmm3
movapd %xmm2,%xmm4
movapd %xmm2,%xmm5
mov    0x8(%rsp),%rax
movsd  %xmm2,(%rax,%r15,8)
mulsd  %xmm9,%xmm2
addsd  %xmm10,%xmm2
addsd  %xmm2,%xmm0
mulsd  %xmm12,%xmm3
addsd  %xmm9,%xmm3
mulsd  %xmm4,%xmm4
movapd %xmm4,%xmm2
divsd  %xmm0,%xmm2
addsd  %xmm5,%xmm5
divsd  %xmm0,%xmm5
mulsd  %xmm3,%xmm4
mulsd  %xmm0,%xmm0
divsd  %xmm0,%xmm4
subsd  %xmm4,%xmm5
mov    0x10(%rsp),%rax
mov    %rdx,(%rax,%r15,8)
unpcklpd %xmm2,%xmm2
mulpd  %xmm1,%xmm2
movupd %xmm2,0x0(%r13,%r14,8)
unpcklpd %xmm5,%xmm5
mulpd  %xmm1,%xmm5
movupd %xmm5,(%rcx,%r14,8)
add    $0x1,%r15
add    %rsi,%r14
add    $0x18,%rbx
cmp    %r15,%r12
je     1305 <evaluateBuckleyLeverettLiuExample+0x1e5>
movsd  (%rbx),%xmm0
movsd  0x8(%rbx),%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
addsd  %xmm6,%xmm0
ucomisd %xmm8,%xmm0
jb     11d0 <evaluateBuckleyLeverettLiuExample+0xb0>
sqrtsd %xmm0,%xmm0
jmp    1227 <evaluateBuckleyLeverettLiuExample+0x107>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @evaluateBuckleyLeverettLiuExample(i32 %0, i32 %1, double* nocapture %2, double* nocapture %3, double* nocapture writeonly %4, double* nocapture writeonly %5, double* nocapture writeonly %6, double* nocapture writeonly %7, double* %8) {
%10 = shl i32 %0, 3
%11 = mul i32 %10, %1
%12 = mul i32 %11, %1
%13 = tail call i32 @memset(double* %8, i32 0, i32 %12)
%14 = icmp sgt i32 %0, 0
br i1 %14, label %15, label %66
15: ; preds = %9
%16 = sext i32 %1 to i64
%17 = zext i32 %0 to i64
br label %18
18: ; preds = %15, %18
%19 = phi i64 [ 0, %15 ], [ %64, %18 ]
%20 = mul nuw nsw i64 %19, 3
%21 = getelementptr inbounds double, double* %2, i64 %20
%22 = load double, double* %21
%23 = add nuw nsw i64 %20, 1
%24 = getelementptr inbounds double, double* %2, i64 %23
%25 = load double, double* %24
%26 = fmul double %25, %25
%27 = tail call double @llvm.fmuladd.f64(double %22, double %22, double %26)
%28 = fadd double %27, 1.000000e-03
%29 = tail call double @sqrt(double %28)
%30 = bitcast double* %21 to <2 x double>*
%31 = load <2 x double>, <2 x double>* %30
%32 = insertelement <2 x double> poison, double %29, i64 0
%33 = shufflevector <2 x double> %32, <2 x double> poison, <2 x i32> zeroinitializer
%34 = fdiv <2 x double> %31, %33
%35 = fmul <2 x double> %34, <double 1.000000e-02, double 1.000000e-02>
%36 = fdiv <2 x double> %35, %33
%37 = getelementptr inbounds double, double* %3, i64 %19
%38 = load double, double* %37
%39 = tail call double @llvm.fmuladd.f64(double %38, double -4.000000e-01, double 2.000000e-01)
%40 = fmul double %38, 1.200000e+00
%41 = tail call double @llvm.fmuladd.f64(double %40, double %38, double %39)
%42 = tail call double @llvm.fmuladd.f64(double %38, double 2.400000e+00, double -4.000000e-01)
%43 = fmul double %38, %38
%44 = fdiv double %43, %41
%45 = fmul double %38, 2.000000e+00
%46 = fdiv double %45, %41
%47 = fmul double %43, %42
%48 = fmul double %41, %41
%49 = fdiv double %47, %48
%50 = fsub double %46, %49
%51 = getelementptr inbounds double, double* %4, i64 %19
store double %38, double* %51
%52 = getelementptr inbounds double, double* %5, i64 %19
store double 1.000000e+00, double* %52
%53 = mul nsw i64 %19, %16
%54 = getelementptr inbounds double, double* %6, i64 %53
%55 = insertelement <2 x double> poison, double %44, i64 0
%56 = shufflevector <2 x double> %55, <2 x double> poison, <2 x i32> zeroinitializer
%57 = fmul <2 x double> %36, %56
%58 = bitcast double* %54 to <2 x double>*
store <2 x double> %57, <2 x double>* %58
%59 = getelementptr inbounds double, double* %7, i64 %53
%60 = insertelement <2 x double> poison, double %50, i64 0
%61 = shufflevector <2 x double> %60, <2 x double> poison, <2 x i32> zeroinitializer
%62 = fmul <2 x double> %36, %61
%63 = bitcast double* %59 to <2 x double>*
store <2 x double> %62, <2 x double>* %63
%64 = add nuw nsw i64 %19, 1
%65 = icmp eq i64 %64, %17
br i1 %65, label %66, label %18
66: ; preds = %18, %9
ret void
}