int buildVectorBthe(int nlev, double Ag, double Bg, double *ar_theComp1_c,
                    double *ar_theComp1_f, double *ar_theComp2_c,
                    double *ar_theComp2_f, double *cf, double *vectB) {
  int i;
  int j;
  vectB[0] = (1.0 - cf[0]) * ar_theComp1_f[0];
  vectB[1] = cf[0] * ar_theComp1_c[0];
  vectB[2] = 0.0;
  vectB[3] = 0.0;
  for (i = 1; i < (nlev - 1); i++) {
    j = 4 * i;
    vectB[j] = (1.0 - cf[i]) * ar_theComp1_f[i];
    vectB[j + 1] = cf[i] * ar_theComp1_c[i];
    vectB[j + 2] = (1.0 - cf[i - 1]) * ar_theComp2_f[i - 1];
    vectB[j + 3] = cf[i - 1] * ar_theComp2_c[i - 1];
  }
  j = 4 * (nlev - 1);
  vectB[j] = (1.0 - cf[nlev - 2]) * (1.0 - Ag) * 3.14159265358979323846 * Bg;
  vectB[j + 1] = cf[nlev - 2] * (1.0 - Ag) * 3.14159265358979323846 * Bg;
  vectB[j + 2] = (1.0 - cf[nlev - 2]) * ar_theComp2_f[nlev - 2];
  vectB[j + 3] = cf[nlev - 2] * ar_theComp2_c[nlev - 2];
  return 0;
}


x86 assembly (clang, -O0):
<buildVectorBthe>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movsd  0xecb(%rip),%xmm0
subsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
mulsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
mulsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x18(%rax)
movl   $0x1,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1278 <buildVectorBthe+0x178>
mov    -0x44(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0x48(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  0xe55(%rip),%xmm0
subsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x44(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
mov    -0x44(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xdf5(%rip),%xmm0
subsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x44(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
mov    -0x44(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x44(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1181 <buildVectorBthe+0x81>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
shl    $0x2,%eax
mov    %eax,-0x48(%rbp)
mov    -0x40(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  0xd67(%rip),%xmm0
subsd  (%rax,%rcx,8),%xmm0
movsd  0xd5a(%rip),%xmm1
subsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd51(%rip),%xmm1
mulsd  %xmm1,%xmm0
mulsd  -0x18(%rbp),%xmm0
mov    0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xd19(%rip),%xmm1
subsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd10(%rip),%xmm1
mulsd  %xmm1,%xmm0
mulsd  -0x18(%rbp),%xmm0
mov    0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  0xcd8(%rip),%xmm0
subsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<buildVectorBthe>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
movsd  0xeed(%rip),%xmm9
movapd %xmm9,%xmm3
subsd  (%r9),%xmm3
mov    0x38(%rsp),%r11
mulsd  (%rdx),%xmm3
movsd  %xmm3,(%r11)
movsd  (%r9),%xmm3
mulsd  (%rsi),%xmm3
movsd  %xmm3,0x8(%r11)
lea    -0x1(%rdi),%r10d
xorpd  %xmm3,%xmm3
movupd %xmm3,0x10(%r11)
cmp    $0x3,%edi
jl     136a <buildVectorBthe+0x26a>
mov    %r10d,%eax
lea    -0x1(%rax),%rbx
mov    $0x1,%r12d
cmp    $0x2,%rbx
jb     12d9 <buildVectorBthe+0x1d9>
mov    %rbx,-0x8(%rsp)
lea    0x20(%r11),%rbp
mov    %rax,%r13
shl    $0x5,%r13
add    %r11,%r13
lea    (%r9,%rax,8),%r14
lea    0x8(%rdx),%rbx
mov    %rbx,-0x18(%rsp)
lea    (%rdx,%rax,8),%r15
lea    0x8(%rsi),%rbx
mov    %rbx,-0x10(%rsp)
lea    (%rsi,%rax,8),%rbx
cmp    %r14,%rbp
setb   -0x19(%rsp)
cmp    %r9,%r13
seta   -0x1a(%rsp)
cmp    %r15,%rbp
setb   %r14b
cmp    %r13,-0x18(%rsp)
lea    -0x8(%r8,%rax,8),%r15
setb   -0x18(%rsp)
cmp    %rbx,%rbp
setb   -0x1b(%rsp)
cmp    %r13,-0x10(%rsp)
lea    -0x8(%rcx,%rax,8),%rbx
setb   -0x10(%rsp)
cmp    %r15,%rbp
setb   %r15b
cmp    %r8,%r13
seta   -0x1c(%rsp)
cmp    %rbx,%rbp
setb   %bpl
cmp    %rcx,%r13
seta   %r13b
mov    -0x1a(%rsp),%bl
test   %bl,-0x19(%rsp)
jne    12d9 <buildVectorBthe+0x1d9>
and    -0x18(%rsp),%r14b
jne    12d9 <buildVectorBthe+0x1d9>
mov    -0x10(%rsp),%bl
and    %bl,-0x1b(%rsp)
jne    12d9 <buildVectorBthe+0x1d9>
and    -0x1c(%rsp),%r15b
jne    12d9 <buildVectorBthe+0x1d9>
and    %r13b,%bpl
jne    12d9 <buildVectorBthe+0x1d9>
mov    -0x8(%rsp),%rbp
mov    %rbp,%r15
and    $0xfffffffffffffffe,%r15
mov    %rbp,%r12
or     $0x1,%r12
xor    %ebx,%ebx
movapd 0xdc4(%rip),%xmm8
mov    %r15,%r13
nop
movupd (%r9,%rbx,1),%xmm4
movupd 0x8(%r9,%rbx,1),%xmm5
movapd %xmm8,%xmm6
subpd  %xmm5,%xmm6
movupd 0x8(%rdx,%rbx,1),%xmm7
mulpd  %xmm6,%xmm7
movupd 0x8(%rsi,%rbx,1),%xmm6
mulpd  %xmm5,%xmm6
movapd %xmm8,%xmm5
subpd  %xmm4,%xmm5
movupd (%r8,%rbx,1),%xmm3
mulpd  %xmm5,%xmm3
movupd (%rcx,%rbx,1),%xmm5
mulpd  %xmm4,%xmm5
movapd %xmm7,%xmm4
unpcklpd %xmm6,%xmm4
movapd %xmm3,%xmm2
unpcklpd %xmm5,%xmm2
movhlps %xmm7,%xmm6
movhlps %xmm3,%xmm5
movups %xmm5,0x50(%r11,%rbx,4)
movups %xmm6,0x40(%r11,%rbx,4)
movupd %xmm2,0x30(%r11,%rbx,4)
movupd %xmm4,0x20(%r11,%rbx,4)
add    $0x10,%rbx
add    $0xfffffffffffffffe,%r13
jne    1250 <buildVectorBthe+0x150>
cmp    %r15,%rbp
je     136a <buildVectorBthe+0x26a>
mov    %r12,%rbx
shl    $0x5,%rbx
add    %r11,%rbx
add    $0x18,%rbx
lea    (%rsi,%r12,8),%r14
lea    (%rdx,%r12,8),%r15
lea    (%r9,%r12,8),%rsi
lea    (%r8,%r12,8),%r13
add    $0xfffffffffffffff8,%r13
lea    (%rcx,%r12,8),%rbp
add    $0xfffffffffffffff8,%rbp
sub    %r12,%rax
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
movapd %xmm9,%xmm2
subsd  (%rsi,%rdx,1),%xmm2
mulsd  (%r15,%rdx,1),%xmm2
movsd  %xmm2,-0x18(%rbx,%rdx,4)
movsd  (%rsi,%rdx,1),%xmm2
mulsd  (%r14,%rdx,1),%xmm2
movsd  %xmm2,-0x10(%rbx,%rdx,4)
movapd %xmm9,%xmm2
subsd  -0x8(%rsi,%rdx,1),%xmm2
mulsd  0x0(%r13,%rdx,1),%xmm2
movsd  %xmm2,-0x8(%rbx,%rdx,4)
movsd  -0x8(%rsi,%rdx,1),%xmm2
mulsd  0x0(%rbp,%rdx,1),%xmm2
movsd  %xmm2,(%rbx,%rdx,4)
add    $0x8,%rdx
add    $0xffffffffffffffff,%rax
jne    1310 <buildVectorBthe+0x210>
lea    0x0(,%r10,4),%edx
movslq %edi,%rax
movapd %xmm9,%xmm2
subsd  -0x10(%r9,%rax,8),%xmm2
movapd %xmm9,%xmm3
subsd  %xmm0,%xmm3
mulsd  %xmm3,%xmm2
movsd  0xc72(%rip),%xmm0
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
movslq %edx,%rdx
movsd  %xmm2,(%r11,%rdx,8)
mulsd  -0x10(%r9,%rax,8),%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm1,%xmm3
lea    0x1(,%r10,4),%edx
movslq %edx,%rdx
movsd  %xmm3,(%r11,%rdx,8)
subsd  -0x10(%r9,%rax,8),%xmm9
mulsd  -0x10(%r8,%rax,8),%xmm9
lea    0x2(,%r10,4),%edx
movslq %edx,%rdx
movsd  %xmm9,(%r11,%rdx,8)
movsd  -0x10(%r9,%rax,8),%xmm0
mulsd  -0x10(%rcx,%rax,8),%xmm0
lea    0x3(,%r10,4),%eax
cltq
movsd  %xmm0,(%r11,%rax,8)
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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