void lob_bnd_fst(double *restrict b, const double *restrict z,
                 const double *restrict Q, const double *restrict h,
                 const double *restrict lb, unsigned n, unsigned m,
                 const double *restrict u) {
  unsigned i, j;
  double a0 = 0, a1 = 0;
  for (i = 0; i < n; ++i)
    a0 += Q[2 * i] * u[i], a1 += Q[2 * i + 1] * u[i];
  for (j = 0; j < m; ++j)
    b[2 * j + 1] = b[2 * j + 0] = a0 + a1 * h[j];
  for (i = 0; i < n; ++i) {
    double w = u[i] - (a0 + a1 * z[i]);
    if (w >= 0)
      for (j = 0; j < m; ++j)
        b[2 * j + 0] += w * lb[0], b[2 * j + 1] += w * lb[1], lb += 2;
    else
      for (j = 0; j < m; ++j)
        b[2 * j + 0] += w * lb[1], b[2 * j + 1] += w * lb[0], lb += 2;
  }
}


x86 assembly (clang, -O0):
<lob_bnd_fst>:
push   %rbp
mov    %rsp,%rbp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jae    11b5 <lob_bnd_fst+0xb5>
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
shl    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    113a <lob_bnd_fst+0x3a>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x10(%rbp),%eax
jae    121c <lob_bnd_fst+0x11c>
movsd  -0x40(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x34(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x1,%ecx
add    $0x0,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
mov    %ecx,%ecx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11bc <lob_bnd_fst+0xbc>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jae    13a5 <lob_bnd_fst+0x2a5>
mov    0x18(%rbp),%rax
mov    -0x30(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x40(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1303 <lob_bnd_fst+0x203>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x10(%rbp),%eax
jae    12fe <lob_bnd_fst+0x1fe>
movsd  -0x50(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x1,%ecx
add    $0x0,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x28(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    127b <lob_bnd_fst+0x17b>
jmp    1392 <lob_bnd_fst+0x292>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x10(%rbp),%eax
jae    138d <lob_bnd_fst+0x28d>
movsd  -0x50(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  0x8(%rax),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x1,%ecx
add    $0x0,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
mov    %ecx,%ecx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x28(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    130a <lob_bnd_fst+0x20a>
jmp    1392 <lob_bnd_fst+0x292>
jmp    1397 <lob_bnd_fst+0x297>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1223 <lob_bnd_fst+0x123>
pop    %rbp
ret

x86 assembly (clang, -O2):
<lob_bnd_fst>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    0x40(%rsp),%r10
mov    0x38(%rsp),%r11d
mov    %r9d,%r14d
test   %r9d,%r9d
je     1134 <lob_bnd_fst+0x34>
cmp    $0x1,%r9d
jne    113d <lob_bnd_fst+0x3d>
xorpd  %xmm1,%xmm1
xor    %r12d,%r12d
test   $0x1,%r14b
jne    11a5 <lob_bnd_fst+0xa5>
jmp    11c0 <lob_bnd_fst+0xc0>
xorpd  %xmm0,%xmm0
jmp    11c0 <lob_bnd_fst+0xc0>
mov    %r14d,%r15d
and    $0xfffffffe,%r15d
xorpd  %xmm1,%xmm1
mov    $0x2,%eax
xor    %r12d,%r12d
lea    -0x2(%rax),%ebp
and    $0xfffffffc,%ebp
movupd (%rdx,%rbp,8),%xmm3
movsd  -0x8(%r10,%rax,4),%xmm2
movsd  (%r10,%rax,4),%xmm0
unpcklpd %xmm2,%xmm2
mulpd  %xmm3,%xmm2
addpd  %xmm1,%xmm2
mov    %eax,%ebx
and    $0xfffffffe,%ebx
movupd (%rdx,%rbx,8),%xmm1
unpcklpd %xmm0,%xmm0
mulpd  %xmm1,%xmm0
movapd %xmm0,%xmm1
addpd  %xmm2,%xmm1
add    $0x2,%r12
add    $0x4,%rax
cmp    %r12,%r15
jne    1150 <lob_bnd_fst+0x50>
addpd  %xmm2,%xmm0
test   $0x1,%r14b
je     11c0 <lob_bnd_fst+0xc0>
lea    (%r12,%r12,1),%ebx
movupd (%rdx,%rbx,8),%xmm2
movsd  (%r10,%r12,8),%xmm0
unpcklpd %xmm0,%xmm0
mulpd  %xmm2,%xmm0
addpd  %xmm1,%xmm0
mov    %r11d,%r15d
test   %r11d,%r11d
je     1358 <lob_bnd_fst+0x258>
cmp    $0x4,%r11d
jae    11da <lob_bnd_fst+0xda>
xor    %r12d,%r12d
jmp    12b1 <lob_bnd_fst+0x1b1>
lea    -0x1(%r15),%rax
mov    %rax,%rbp
shr    $0x20,%rbp
mov    $0x10,%edx
mul    %rdx
seto   %bl
xor    %r12d,%r12d
test   %rbp,%rbp
jne    12b1 <lob_bnd_fst+0x1b1>
lea    (%rdi,%rax,1),%rbp
cmp    %rdi,%rbp
jb     12b1 <lob_bnd_fst+0x1b1>
test   %bl,%bl
jne    12b1 <lob_bnd_fst+0x1b1>
lea    0x8(%rdi),%rbp
add    %rdi,%rax
add    $0x8,%rax
cmp    %rbp,%rax
jb     12b1 <lob_bnd_fst+0x1b1>
test   %bl,%bl
jne    12b1 <lob_bnd_fst+0x1b1>
mov    %r15d,%r12d
and    $0xfffffffc,%r12d
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
lea    (%r15,%r15,1),%rax
and    $0xfffffffffffffff8,%rax
xor    %ebp,%ebp
xchg   %ax,%ax
movupd (%rcx,%rbp,4),%xmm3
movupd 0x10(%rcx,%rbp,4),%xmm4
mulpd  %xmm1,%xmm3
addpd  %xmm2,%xmm3
mulpd  %xmm1,%xmm4
addpd  %xmm2,%xmm4
mov    %ebp,%ebx
and    $0xfffffff8,%ebx
movapd %xmm3,%xmm5
unpcklpd %xmm3,%xmm5
unpckhpd %xmm3,%xmm3
movupd %xmm3,0x10(%rdi,%rbx,8)
movupd %xmm5,(%rdi,%rbx,8)
movapd %xmm4,%xmm3
unpckhpd %xmm4,%xmm3
unpcklpd %xmm4,%xmm4
movupd %xmm4,0x20(%rdi,%rbx,8)
movupd %xmm3,0x30(%rdi,%rbx,8)
add    $0x8,%rbp
cmp    %rbp,%rax
jne    1250 <lob_bnd_fst+0x150>
cmp    %r15,%r12
je     1358 <lob_bnd_fst+0x258>
mov    %r12,%rax
not    %rax
test   $0x1,%r15b
je     12e8 <lob_bnd_fst+0x1e8>
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
mulsd  (%rcx,%r12,8),%xmm1
addsd  %xmm0,%xmm1
lea    (%r12,%r12,1),%ebx
movsd  %xmm1,(%rdi,%rbx,8)
lea    (%r12,%r12,1),%ebx
add    $0x1,%ebx
movsd  %xmm1,(%rdi,%rbx,8)
or     $0x1,%r12
add    %r15,%rax
je     1358 <lob_bnd_fst+0x258>
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
mov    %r15,%rax
sub    %r12,%rax
lea    (%rcx,%r12,8),%rcx
add    $0x8,%rcx
and    $0x7fffffff,%r12d
add    %r12,%r12
xor    %ebx,%ebx
nop
movsd  -0x8(%rcx,%rbx,4),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
lea    (%r12,%rbx,1),%rbp
mov    %ebp,%edx
movsd  %xmm2,(%rdi,%rdx,8)
lea    0x1(%rbp),%edx
movsd  %xmm2,(%rdi,%rdx,8)
movsd  (%rcx,%rbx,4),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
lea    0x2(%rbp),%edx
movsd  %xmm2,(%rdi,%rdx,8)
add    $0x3,%ebp
movsd  %xmm2,(%rdi,%rbp,8)
add    $0x4,%rbx
add    $0xfffffffffffffffe,%rax
jne    1310 <lob_bnd_fst+0x210>
test   %r9d,%r9d
je     165f <lob_bnd_fst+0x55f>
lea    -0x1(%r15),%rax
lea    0x8(%rdi),%rcx
lea    (%r15,%r15,1),%r12
mov    %r15,%r13
shl    $0x4,%r13
add    %rdi,%r13
movapd %xmm0,%xmm9
mov    %rax,%rdx
shr    $0x20,%rdx
setne  %r9b
mov    $0x10,%edx
mul    %rdx
unpckhpd %xmm0,%xmm9
seto   %dl
lea    (%rdi,%rax,1),%rbx
add    $0x8,%rbx
cmp    %rcx,%rbx
setb   %cl
add    %rdi,%rax
cmp    %rdi,%rax
setb   %al
or     %dl,%al
or     %dl,%r9b
or     %cl,%r9b
or     %al,%r9b
mov    %r15d,%eax
and    $0xfffffffe,%eax
mov    %rax,-0x18(%rsp)
add    %rax,%rax
mov    %rax,-0x10(%rsp)
xor    %edx,%edx
xorpd  %xmm8,%xmm8
mov    %r13,-0x8(%rsp)
jmp    13f3 <lob_bnd_fst+0x2f3>
nopw   0x0(%rax,%rax,1)
mov    %r8,%rbx
add    $0x1,%rdx
mov    %rbx,%r8
cmp    %r14,%rdx
je     165f <lob_bnd_fst+0x55f>
movsd  (%r10,%rdx,8),%xmm3
movsd  (%rsi,%rdx,8),%xmm4
mulsd  %xmm9,%xmm4
addsd  %xmm0,%xmm4
subsd  %xmm4,%xmm3
ucomisd %xmm8,%xmm3
jae    1490 <lob_bnd_fst+0x390>
test   %r11d,%r11d
je     13e0 <lob_bnd_fst+0x2e0>
cmp    $0x1,%r11d
sete   %al
or     %r9b,%al
jne    1439 <lob_bnd_fst+0x339>
cmp    %r13,%r8
jae    150c <lob_bnd_fst+0x40c>
lea    (%r8,%r12,8),%rax
cmp    %rdi,%rax
jbe    150c <lob_bnd_fst+0x40c>
xor    %ecx,%ecx
mov    %r8,%rbx
lea    (%rcx,%rcx,1),%eax
mov    %r15,%rbp
sub    %rcx,%rbp
nopw   0x0(%rax,%rax,1)
mov    %eax,%ecx
movsd  0x8(%rbx),%xmm1
mulsd  %xmm3,%xmm1
addsd  (%rdi,%rcx,8),%xmm1
movsd  %xmm1,(%rdi,%rcx,8)
lea    0x1(%rax),%ecx
movsd  (%rbx),%xmm1
mulsd  %xmm3,%xmm1
addsd  (%rdi,%rcx,8),%xmm1
movsd  %xmm1,(%rdi,%rcx,8)
add    $0x10,%rbx
add    $0x2,%eax
add    $0xffffffffffffffff,%rbp
jne    1450 <lob_bnd_fst+0x350>
jmp    13e3 <lob_bnd_fst+0x2e3>
nopl   0x0(%rax)
test   %r11d,%r11d
je     13e0 <lob_bnd_fst+0x2e0>
cmp    $0x1,%r11d
sete   %al
or     %r9b,%al
jne    14bb <lob_bnd_fst+0x3bb>
cmp    %r13,%r8
jae    15ab <lob_bnd_fst+0x4ab>
lea    (%r8,%r12,8),%rax
cmp    %rdi,%rax
jbe    15ab <lob_bnd_fst+0x4ab>
xor    %ecx,%ecx
mov    %r8,%rbx
lea    (%rcx,%rcx,1),%eax
mov    %r15,%rbp
sub    %rcx,%rbp
nopl   0x0(%rax)
mov    %eax,%ecx
movsd  (%rbx),%xmm1
mulsd  %xmm3,%xmm1
addsd  (%rdi,%rcx,8),%xmm1
movsd  %xmm1,(%rdi,%rcx,8)
lea    0x1(%rax),%ecx
movsd  0x8(%rbx),%xmm1
mulsd  %xmm3,%xmm1
addsd  (%rdi,%rcx,8),%xmm1
movsd  %xmm1,(%rdi,%rcx,8)
add    $0x10,%rbx
add    $0x2,%eax
add    $0xffffffffffffffff,%rbp
jne    14d0 <lob_bnd_fst+0x3d0>
jmp    13e3 <lob_bnd_fst+0x2e3>
mov    -0x10(%rsp),%rax
lea    (%r8,%rax,8),%rbx
movapd %xmm3,%xmm4
unpcklpd %xmm3,%xmm4
mov    -0x18(%rsp),%rbp
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd (%r8,%rax,8),%xmm1
movupd 0x10(%r8,%rax,8),%xmm2
movapd %xmm1,%xmm5
unpcklpd %xmm2,%xmm5
unpckhpd %xmm2,%xmm1
mov    %eax,%ecx
movupd (%rdi,%rcx,8),%xmm2
movupd 0x10(%rdi,%rcx,8),%xmm6
movapd %xmm2,%xmm7
unpcklpd %xmm6,%xmm7
unpckhpd %xmm6,%xmm2
mulpd  %xmm4,%xmm1
addpd  %xmm7,%xmm1
lea    0x1(%rax),%ecx
mulpd  %xmm4,%xmm5
addpd  %xmm2,%xmm5
movapd %xmm1,%xmm2
unpcklpd %xmm5,%xmm2
movhlps %xmm1,%xmm5
movups %xmm5,0x8(%rdi,%rcx,8)
movupd %xmm2,-0x8(%rdi,%rcx,8)
add    $0x4,%rax
add    $0xfffffffffffffffe,%rbp
jne    1530 <lob_bnd_fst+0x430>
mov    -0x18(%rsp),%rax
mov    %rax,%rcx
cmp    %r15,%rax
je     13e3 <lob_bnd_fst+0x2e3>
jmp    143e <lob_bnd_fst+0x33e>
mov    %r14,%r13
mov    %r10,%r14
mov    %r11d,%r10d
mov    %r12,%r11
mov    -0x10(%rsp),%rax
lea    (%r8,%rax,8),%rbx
movapd %xmm3,%xmm4
unpcklpd %xmm3,%xmm4
mov    -0x18(%rsp),%rbp
xor    %r12d,%r12d
movupd (%r8,%r12,8),%xmm5
movupd 0x10(%r8,%r12,8),%xmm6
movapd %xmm5,%xmm7
unpcklpd %xmm6,%xmm7
unpckhpd %xmm6,%xmm5
mov    %r12d,%eax
movupd (%rdi,%rax,8),%xmm1
movupd 0x10(%rdi,%rax,8),%xmm2
movapd %xmm1,%xmm6
unpcklpd %xmm2,%xmm6
unpckhpd %xmm2,%xmm1
mulpd  %xmm4,%xmm7
addpd  %xmm6,%xmm7
lea    0x1(%r12),%eax
mulpd  %xmm4,%xmm5
addpd  %xmm1,%xmm5
movapd %xmm7,%xmm1
unpcklpd %xmm5,%xmm1
movhlps %xmm7,%xmm5
movups %xmm5,0x8(%rdi,%rax,8)
movupd %xmm1,-0x8(%rdi,%rax,8)
add    $0x4,%r12
add    $0xfffffffffffffffe,%rbp
jne    15d0 <lob_bnd_fst+0x4d0>
mov    -0x18(%rsp),%rax
mov    %rax,%rcx
cmp    %r15,%rax
mov    %r11,%r12
mov    %r10d,%r11d
mov    %r14,%r10
mov    %r13,%r14
mov    -0x8(%rsp),%r13
je     13e3 <lob_bnd_fst+0x2e3>
jmp    14c0 <lob_bnd_fst+0x3c0>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @lob_bnd_fst(double* noalias nocapture %0, double* noalias nocapture %1, double* noalias nocapture %2, double* noalias nocapture %3, double* noalias nocapture %4, i32 %5, i32 %6, double* noalias nocapture %7) {
%9 = bitcast double* %0 to i8*
%10 = icmp eq i32 %5, 0
br i1 %10, label %35, label %11
11: ; preds = %8
%12 = zext i32 %5 to i64
%13 = and i64 %12, 1
%14 = icmp eq i32 %5, 1
br i1 %14, label %19, label %15
15: ; preds = %11
%16 = and i64 %12, 4294967294
br label %122
17: ; preds = %122
%18 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %143, <2 x double> %145, <2 x double> %135)
br label %19
19: ; preds = %17, %11
%20 = phi <2 x double> [ undef, %11 ], [ %18, %17 ]
%21 = phi i64 [ 0, %11 ], [ %147, %17 ]
%22 = phi <2 x double> [ zeroinitializer, %11 ], [ %146, %17 ]
%23 = icmp eq i64 %13, 0
br i1 %23, label %35, label %24
24: ; preds = %19
%25 = shl nuw i64 %21, 1
%26 = and i64 %25, 4294967294
%27 = getelementptr inbounds double, double* %2, i64 %26
%28 = getelementptr inbounds double, double* %7, i64 %21
%29 = load double, double* %28
%30 = bitcast double* %27 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 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %31, <2 x double> %33, <2 x double> %22)
br label %35
35: ; preds = %24, %19, %8
%36 = phi <2 x double> [ zeroinitializer, %8 ], [ %20, %19 ], [ %34, %24 ]
%37 = icmp eq i32 %6, 0
br i1 %37, label %150, label %38
38: ; preds = %35
%39 = zext i32 %6 to i64
%40 = icmp ult i32 %6, 4
br i1 %40, label %94, label %41
41: ; preds = %38
%42 = add nsw i64 %39, -1
%43 = icmp ugt i64 %42, 4294967295
%44 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %42, i64 16)
%45 = extractvalue { i64, i1 } %44, 0
%46 = extractvalue { i64, i1 } %44, 1
%47 = getelementptr i8, i8* %9, i64 %45
%48 = icmp ult i8* %47, %9
%49 = or i1 %48, %46
%50 = getelementptr double, double* %0, i64 1
%51 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %42, i64 16)
%52 = extractvalue { i64, i1 } %51, 0
%53 = extractvalue { i64, i1 } %51, 1
%54 = bitcast double* %50 to i8*
%55 = getelementptr i8, i8* %54, i64 %52
%56 = icmp ult i8* %55, %54
%57 = or i1 %56, %53
%58 = or i1 %43, %49
%59 = or i1 %58, %57
br i1 %59, label %94, label %60
60: ; preds = %41
%61 = and i64 %39, 4294967292
%62 = shufflevector <2 x double> %36, <2 x double> undef, <2 x i32> <i32 1, i32 1>
%63 = shufflevector <2 x double> %36, <2 x double> poison, <2 x i32> zeroinitializer
%64 = getelementptr inbounds double, double* %0, i64 -1
%65 = getelementptr inbounds double, double* %0, i64 -1
br label %66
66: ; preds = %66, %60
%67 = phi i64 [ 0, %60 ], [ %90, %66 ]
%68 = getelementptr inbounds double, double* %3, i64 %67
%69 = bitcast double* %68 to <2 x double>*
%70 = load <2 x double>, <2 x double>* %69
%71 = getelementptr inbounds double, double* %68, i64 2
%72 = bitcast double* %71 to <2 x double>*
%73 = load <2 x double>, <2 x double>* %72
%74 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %62, <2 x double> %70, <2 x double> %63)
%75 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %62, <2 x double> %73, <2 x double> %63)
%76 = shl i64 %67, 1
%77 = shl i64 %67, 1
%78 = and i64 %76, 4294967288
%79 = or i64 %78, 1
%80 = and i64 %77, 4294967288
%81 = or i64 %80, 5
%82 = getelementptr inbounds double, double* %64, i64 %79
%83 = bitcast double* %82 to <4 x double>*
%84 = getelementptr inbounds double, double* %65, i64 %81
%85 = bitcast double* %84 to <4 x double>*
%86 = shufflevector <2 x double> %74, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
%87 = shufflevector <4 x double> %86, <4 x double> poison, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %87, <4 x double>* %83
%88 = shufflevector <2 x double> %75, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
%89 = shufflevector <4 x double> %88, <4 x double> poison, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %89, <4 x double>* %85
%90 = add nuw i64 %67, 4
%91 = icmp eq i64 %90, %61
br i1 %91, label %92, label %66
92: ; preds = %66
%93 = icmp eq i64 %61, %39
br i1 %93, label %150, label %94
94: ; preds = %41, %38, %92
%95 = phi i64 [ 0, %41 ], [ 0, %38 ], [ %61, %92 ]
%96 = xor i64 %95, -1
%97 = and i64 %39, 1
%98 = icmp eq i64 %97, 0
br i1 %98, label %113, label %99
99: ; preds = %94
%100 = getelementptr inbounds double, double* %3, i64 %95
%101 = load double, double* %100
%102 = extractelement <2 x double> %36, i64 0
%103 = extractelement <2 x double> %36, i64 1
%104 = tail call double @llvm.fmuladd.f64(double %103, double %101, double %102)
%105 = trunc i64 %95 to i32
%106 = shl i32 %105, 1
%107 = zext i32 %106 to i64
%108 = getelementptr inbounds double, double* %0, i64 %107
store double %104, double* %108
%109 = or i32 %106, 1
%110 = zext i32 %109 to i64
%111 = getelementptr inbounds double, double* %0, i64 %110
store double %104, double* %111
%112 = or i64 %95, 1
br label %113
113: ; preds = %99, %94
%114 = phi i64 [ %95, %94 ], [ %112, %99 ]
%115 = sub nsw i64 0, %39
%116 = icmp eq i64 %96, %115
br i1 %116, label %150, label %117
117: ; preds = %113
%118 = extractelement <2 x double> %36, i64 0
%119 = extractelement <2 x double> %36, i64 1
%120 = extractelement <2 x double> %36, i64 0
%121 = extractelement <2 x double> %36, i64 1
br label %207
122: ; preds = %122, %15
%123 = phi i64 [ 0, %15 ], [ %147, %122 ]
%124 = phi <2 x double> [ zeroinitializer, %15 ], [ %146, %122 ]
%125 = phi i64 [ 0, %15 ], [ %148, %122 ]
%126 = shl nuw i64 %123, 1
%127 = and i64 %126, 4294967292
%128 = getelementptr inbounds double, double* %2, i64 %127
%129 = getelementptr inbounds double, double* %7, i64 %123
%130 = load double, double* %129
%131 = bitcast double* %128 to <2 x double>*
%132 = load <2 x double>, <2 x double>* %131
%133 = insertelement <2 x double> poison, double %130, i64 0
%134 = shufflevector <2 x double> %133, <2 x double> poison, <2 x i32> zeroinitializer
%135 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %132, <2 x double> %134, <2 x double> %124)
%136 = or i64 %123, 1
%137 = shl nuw i64 %136, 1
%138 = and i64 %137, 4294967294
%139 = getelementptr inbounds double, double* %2, i64 %138
%140 = getelementptr inbounds double, double* %7, i64 %136
%141 = load double, double* %140
%142 = bitcast double* %139 to <2 x double>*
%143 = load <2 x double>, <2 x double>* %142
%144 = insertelement <2 x double> poison, double %141, i64 0
%145 = shufflevector <2 x double> %144, <2 x double> poison, <2 x i32> zeroinitializer
%146 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %143, <2 x double> %145, <2 x double> %135)
%147 = add nuw nsw i64 %123, 2
%148 = add i64 %125, 2
%149 = icmp eq i64 %148, %16
br i1 %149, label %17, label %122
150: ; preds = %113, %207, %92, %35
br i1 %10, label %368, label %151
151: ; preds = %150
%152 = zext i32 %5 to i64
%153 = zext i32 %6 to i64
%154 = zext i32 %6 to i64
%155 = add nsw i64 %153, -1
%156 = getelementptr double, double* %0, i64 1
%157 = bitcast double* %156 to i8*
%158 = shl nuw nsw i64 %153, 1
%159 = getelementptr double, double* %0, i64 %158
%160 = add nsw i64 %153, -1
%161 = getelementptr double, double* %0, i64 1
%162 = bitcast double* %161 to i8*
%163 = shl nuw nsw i64 %153, 1
%164 = getelementptr double, double* %0, i64 %163
%165 = extractelement <2 x double> %36, i64 0
%166 = extractelement <2 x double> %36, i64 1
%167 = icmp eq i32 %6, 1
%168 = icmp ugt i64 %160, 4294967295
%169 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %160, i64 16)
%170 = extractvalue { i64, i1 } %169, 0
%171 = extractvalue { i64, i1 } %169, 1
%172 = getelementptr i8, i8* %162, i64 %170
%173 = icmp ult i8* %172, %162
%174 = or i1 %173, %171
%175 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %160, i64 16)
%176 = extractvalue { i64, i1 } %175, 0
%177 = extractvalue { i64, i1 } %175, 1
%178 = getelementptr i8, i8* %9, i64 %176
%179 = icmp ult i8* %178, %9
%180 = or i1 %179, %177
%181 = or i1 %168, %174
%182 = or i1 %181, %180
%183 = and i64 %153, 4294967294
%184 = shl nuw nsw i64 %183, 1
%185 = getelementptr inbounds double, double* %0, i64 -1
%186 = icmp eq i64 %183, %153
%187 = icmp eq i32 %6, 1
%188 = icmp ugt i64 %155, 4294967295
%189 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %155, i64 16)
%190 = extractvalue { i64, i1 } %189, 0
%191 = extractvalue { i64, i1 } %189, 1
%192 = getelementptr i8, i8* %157, i64 %190
%193 = icmp ult i8* %192, %157
%194 = or i1 %193, %191
%195 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %155, i64 16)
%196 = extractvalue { i64, i1 } %195, 0
%197 = extractvalue { i64, i1 } %195, 1
%198 = getelementptr i8, i8* %9, i64 %196
%199 = icmp ult i8* %198, %9
%200 = or i1 %199, %197
%201 = or i1 %188, %194
%202 = or i1 %201, %200
%203 = and i64 %153, 4294967294
%204 = shl nuw nsw i64 %203, 1
%205 = getelementptr inbounds double, double* %0, i64 -1
%206 = icmp eq i64 %203, %153
br label %232
207: ; preds = %207, %117
%208 = phi i64 [ %114, %117 ], [ %230, %207 ]
%209 = getelementptr inbounds double, double* %3, i64 %208
%210 = load double, double* %209
%211 = tail call double @llvm.fmuladd.f64(double %119, double %210, double %118)
%212 = trunc i64 %208 to i32
%213 = shl i32 %212, 1
%214 = zext i32 %213 to i64
%215 = getelementptr inbounds double, double* %0, i64 %214
store double %211, double* %215
%216 = or i32 %213, 1
%217 = zext i32 %216 to i64
%218 = getelementptr inbounds double, double* %0, i64 %217
store double %211, double* %218
%219 = add nuw nsw i64 %208, 1
%220 = getelementptr inbounds double, double* %3, i64 %219
%221 = load double, double* %220
%222 = tail call double @llvm.fmuladd.f64(double %121, double %221, double %120)
%223 = trunc i64 %219 to i32
%224 = shl i32 %223, 1
%225 = zext i32 %224 to i64
%226 = getelementptr inbounds double, double* %0, i64 %225
store double %222, double* %226
%227 = or i32 %224, 1
%228 = zext i32 %227 to i64
%229 = getelementptr inbounds double, double* %0, i64 %228
store double %222, double* %229
%230 = add nuw nsw i64 %208, 2
%231 = icmp eq i64 %230, %39
br i1 %231, label %150, label %207
232: ; preds = %151, %364
%233 = phi i64 [ 0, %151 ], [ %366, %364 ]
%234 = phi double* [ %4, %151 ], [ %365, %364 ]
%235 = getelementptr inbounds double, double* %7, i64 %233
%236 = load double, double* %235
%237 = getelementptr inbounds double, double* %1, i64 %233
%238 = load double, double* %237
%239 = tail call double @llvm.fmuladd.f64(double %166, double %238, double %165)
%240 = fsub double %236, %239
%241 = fcmp ult double %240, 0.000000e+00
br i1 %241, label %283, label %242
242: ; preds = %232
br i1 %37, label %364, label %243
243: ; preds = %242
%244 = select i1 %167, i1 true, i1 %182
br i1 %244, label %280, label %245
245: ; preds = %243
%246 = getelementptr double, double* %234, i64 %163
%247 = icmp ult double* %234, %164
%248 = icmp ugt double* %246, %0
%249 = and i1 %247, %248
br i1 %249, label %280, label %250
250: ; preds = %245
%251 = getelementptr double, double* %234, i64 %184
%252 = insertelement <2 x double> poison, double %240, i64 0
%253 = shufflevector <2 x double> %252, <2 x double> poison, <2 x i32> zeroinitializer
br label %254
254: ; preds = %254, %250
%255 = phi i64 [ 0, %250 ], [ %277, %254 ]
%256 = shl i64 %255, 1
%257 = getelementptr double, double* %234, i64 %256
%258 = trunc i64 %255 to i32
%259 = bitcast double* %257 to <4 x double>*
%260 = load <4 x double>, <4 x double>* %259
%261 = shufflevector <4 x double> %260, <4 x double> poison, <2 x i32> <i32 0, i32 2>
%262 = shufflevector <4 x double> %260, <4 x double> poison, <2 x i32> <i32 1, i32 3>
%263 = shl i32 %258, 1
%264 = zext i32 %263 to i64
%265 = getelementptr inbounds double, double* %0, i64 %264
%266 = bitcast double* %265 to <4 x double>*
%267 = load <4 x double>, <4 x double>* %266
%268 = shufflevector <4 x double> %267, <4 x double> poison, <2 x i32> <i32 0, i32 2>
%269 = shufflevector <4 x double> %267, <4 x double> poison, <2 x i32> <i32 1, i32 3>
%270 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %253, <2 x double> %261, <2 x double> %268)
%271 = or i32 %263, 1
%272 = zext i32 %271 to i64
%273 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %253, <2 x double> %262, <2 x double> %269)
%274 = getelementptr inbounds double, double* %185, i64 %272
%275 = bitcast double* %274 to <4 x double>*
%276 = shufflevector <2 x double> %270, <2 x double> %273, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %276, <4 x double>* %275
%277 = add nuw i64 %255, 2
%278 = icmp eq i64 %277, %183
br i1 %278, label %279, label %254
279: ; preds = %254
br i1 %186, label %364, label %280
280: ; preds = %243, %245, %279
%281 = phi i64 [ 0, %245 ], [ 0, %243 ], [ %183, %279 ]
%282 = phi double* [ %234, %245 ], [ %234, %243 ], [ %251, %279 ]
br label %324
283: ; preds = %232
br i1 %37, label %364, label %284
284: ; preds = %283
%285 = select i1 %187, i1 true, i1 %202
br i1 %285, label %321, label %286
286: ; preds = %284
%287 = getelementptr double, double* %234, i64 %158
%288 = icmp ult double* %234, %159
%289 = icmp ugt double* %287, %0
%290 = and i1 %288, %289
br i1 %290, label %321, label %291
291: ; preds = %286
%292 = getelementptr double, double* %234, i64 %204
%293 = insertelement <2 x double> poison, double %240, i64 0
%294 = shufflevector <2 x double> %293, <2 x double> poison, <2 x i32> zeroinitializer
br label %295
295: ; preds = %295, %291
%296 = phi i64 [ 0, %291 ], [ %318, %295 ]
%297 = shl i64 %296, 1
%298 = trunc i64 %296 to i32
%299 = getelementptr inbounds double, double* %234, i64 %297
%300 = bitcast double* %299 to <4 x double>*
%301 = load <4 x double>, <4 x double>* %300
%302 = shufflevector <4 x double> %301, <4 x double> poison, <2 x i32> <i32 0, i32 2>
%303 = shufflevector <4 x double> %301, <4 x double> poison, <2 x i32> <i32 1, i32 3>
%304 = shl i32 %298, 1
%305 = zext i32 %304 to i64
%306 = getelementptr inbounds double, double* %0, i64 %305
%307 = bitcast double* %306 to <4 x double>*
%308 = load <4 x double>, <4 x double>* %307
%309 = shufflevector <4 x double> %308, <4 x double> poison, <2 x i32> <i32 0, i32 2>
%310 = shufflevector <4 x double> %308, <4 x double> poison, <2 x i32> <i32 1, i32 3>
%311 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %294, <2 x double> %303, <2 x double> %309)
%312 = or i32 %304, 1
%313 = zext i32 %312 to i64
%314 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %294, <2 x double> %302, <2 x double> %310)
%315 = getelementptr inbounds double, double* %205, i64 %313
%316 = bitcast double* %315 to <4 x double>*
%317 = shufflevector <2 x double> %311, <2 x double> %314, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
store <4 x double> %317, <4 x double>* %316
%318 = add nuw i64 %296, 2
%319 = icmp eq i64 %318, %203
br i1 %319, label %320, label %295
320: ; preds = %295
br i1 %206, label %364, label %321
321: ; preds = %284, %286, %320
%322 = phi i64 [ 0, %286 ], [ 0, %284 ], [ %203, %320 ]
%323 = phi double* [ %234, %286 ], [ %234, %284 ], [ %292, %320 ]
br label %344
324: ; preds = %280, %324
%325 = phi i64 [ %342, %324 ], [ %281, %280 ]
%326 = phi double* [ %341, %324 ], [ %282, %280 ]
%327 = load double, double* %326
%328 = trunc i64 %325 to i32
%329 = shl i32 %328, 1
%330 = zext i32 %329 to i64
%331 = getelementptr inbounds double, double* %0, i64 %330
%332 = load double, double* %331
%333 = tail call double @llvm.fmuladd.f64(double %240, double %327, double %332)
store double %333, double* %331
%334 = getelementptr inbounds double, double* %326, i64 1
%335 = load double, double* %334
%336 = or i32 %329, 1
%337 = zext i32 %336 to i64
%338 = getelementptr inbounds double, double* %0, i64 %337
%339 = load double, double* %338
%340 = tail call double @llvm.fmuladd.f64(double %240, double %335, double %339)
store double %340, double* %338
%341 = getelementptr inbounds double, double* %326, i64 2
%342 = add nuw nsw i64 %325, 1
%343 = icmp eq i64 %342, %153
br i1 %343, label %364, label %324
344: ; preds = %321, %344
%345 = phi i64 [ %362, %344 ], [ %322, %321 ]
%346 = phi double* [ %361, %344 ], [ %323, %321 ]
%347 = getelementptr inbounds double, double* %346, i64 1
%348 = load double, double* %347
%349 = trunc i64 %345 to i32
%350 = shl i32 %349, 1
%351 = zext i32 %350 to i64
%352 = getelementptr inbounds double, double* %0, i64 %351
%353 = load double, double* %352
%354 = tail call double @llvm.fmuladd.f64(double %240, double %348, double %353)
store double %354, double* %352
%355 = load double, double* %346
%356 = or i32 %350, 1
%357 = zext i32 %356 to i64
%358 = getelementptr inbounds double, double* %0, i64 %357
%359 = load double, double* %358
%360 = tail call double @llvm.fmuladd.f64(double %240, double %355, double %359)
store double %360, double* %358
%361 = getelementptr inbounds double, double* %346, i64 2
%362 = add nuw nsw i64 %345, 1
%363 = icmp eq i64 %362, %154
br i1 %363, label %364, label %344
364: ; preds = %324, %344, %279, %320, %242, %283
%365 = phi double* [ %234, %283 ], [ %234, %242 ], [ %292, %320 ], [ %251, %279 ], [ %361, %344 ], [ %341, %324 ]
%366 = add nuw nsw i64 %233, 1
%367 = icmp eq i64 %366, %152
br i1 %367, label %368, label %232
368: ; preds = %364, %150
ret void
}