void local_grad_3(double *U, double *ur, double *us, double *Dt, double *ut,
                  double *D) {
  int l, k, nelt, n, m, dummyLoop;
  for (dummyLoop = 0; dummyLoop < 1; dummyLoop++) {
    for (nelt = 0; nelt < 1000; nelt++) {
      for (n = 0; n < 10; n++) {
        for (m = 0; m < 10; m++) {
          for (k = 0; k < 10; k++) {
            for (l = 0; l < 10; l++) {
              ur[nelt * 10 * 10 * 10 + n * 10 * 10 + m * 10 + k] =
                  ur[nelt * 10 * 10 * 10 + n * 10 * 10 + m * 10 + k] +
                  (D[l * 10 + k] *
                   U[nelt * 10 * 10 * 10 + n * 10 * 10 + m * 10 + l]);
            }
          }
        }
      }
    }
    for (nelt = 0; nelt < 1000; nelt++) {
      for (n = 0; n < 10; n++) {
        for (m = 0; m < 10; m++) {
          for (k = 0; k < 10; k++) {
            for (l = 0; l < 10; l++) {
              us[nelt * 10 * 10 * 10 + n * 10 * 10 + m * 10 + k] =
                  us[nelt * 10 * 10 * 10 + n * 10 * 10 + m * 10 + k] +
                  (U[nelt * 10 * 10 * 10 + n * 10 * 10 + l * 10 + k] *
                   Dt[m * 10 + l]);
            }
          }
        }
      }
    }
    for (nelt = 0; nelt < 1000; nelt++) {
      for (n = 0; n < 10; n++) {
        for (m = 0; m < 10; m++) {
          for (k = 0; k < 10; k++) {
            for (l = 0; l < 10; l++) {
              ut[nelt * 10 * 10 * 10 + n * 10 * 10 + m * 10 + k] =
                  ut[nelt * 10 * 10 * 10 + n * 10 * 10 + m * 10 + k] +
                  (U[nelt * 10 * 10 * 10 + l * 10 * 10 + m * 10 + k] *
                   Dt[n * 10 + l]);
            }
          }
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<local_grad_3>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x48(%rbp)
cmpl   $0x1,-0x48(%rbp)
jge    150f <local_grad_3+0x40f>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x3e8,-0x3c(%rbp)
jge    1272 <local_grad_3+0x172>
movl   $0x0,-0x40(%rbp)
cmpl   $0xa,-0x40(%rbp)
jge    125f <local_grad_3+0x15f>
movl   $0x0,-0x44(%rbp)
cmpl   $0xa,-0x44(%rbp)
jge    124c <local_grad_3+0x14c>
movl   $0x0,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jge    1239 <local_grad_3+0x139>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    1226 <local_grad_3+0x126>
mov    -0x10(%rbp),%rax
imul   $0xa,-0x3c(%rbp),%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,-0x40(%rbp),%edx
imul   $0xa,%edx,%edx
add    %edx,%ecx
imul   $0xa,-0x44(%rbp),%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
imul   $0xa,-0x34(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
imul   $0xa,-0x3c(%rbp),%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,-0x40(%rbp),%edx
imul   $0xa,%edx,%edx
add    %edx,%ecx
imul   $0xa,-0x44(%rbp),%edx
add    %edx,%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
imul   $0xa,-0x3c(%rbp),%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,-0x40(%rbp),%edx
imul   $0xa,%edx,%edx
add    %edx,%ecx
imul   $0xa,-0x44(%rbp),%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    117b <local_grad_3+0x7b>
jmp    122b <local_grad_3+0x12b>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    116a <local_grad_3+0x6a>
jmp    123e <local_grad_3+0x13e>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1159 <local_grad_3+0x59>
jmp    1251 <local_grad_3+0x151>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1148 <local_grad_3+0x48>
jmp    1264 <local_grad_3+0x164>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1134 <local_grad_3+0x34>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x3e8,-0x3c(%rbp)
jge    13b7 <local_grad_3+0x2b7>
movl   $0x0,-0x40(%rbp)
cmpl   $0xa,-0x40(%rbp)
jge    13a4 <local_grad_3+0x2a4>
movl   $0x0,-0x44(%rbp)
cmpl   $0xa,-0x44(%rbp)
jge    1391 <local_grad_3+0x291>
movl   $0x0,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jge    137e <local_grad_3+0x27e>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    136b <local_grad_3+0x26b>
mov    -0x18(%rbp),%rax
imul   $0xa,-0x3c(%rbp),%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,-0x40(%rbp),%edx
imul   $0xa,%edx,%edx
add    %edx,%ecx
imul   $0xa,-0x44(%rbp),%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
imul   $0xa,-0x3c(%rbp),%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,-0x40(%rbp),%edx
imul   $0xa,%edx,%edx
add    %edx,%ecx
imul   $0xa,-0x34(%rbp),%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
imul   $0xa,-0x44(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
imul   $0xa,-0x3c(%rbp),%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,-0x40(%rbp),%edx
imul   $0xa,%edx,%edx
add    %edx,%ecx
imul   $0xa,-0x44(%rbp),%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12c0 <local_grad_3+0x1c0>
jmp    1370 <local_grad_3+0x270>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12af <local_grad_3+0x1af>
jmp    1383 <local_grad_3+0x283>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    129e <local_grad_3+0x19e>
jmp    1396 <local_grad_3+0x296>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    128d <local_grad_3+0x18d>
jmp    13a9 <local_grad_3+0x2a9>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1279 <local_grad_3+0x179>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x3e8,-0x3c(%rbp)
jge    14fc <local_grad_3+0x3fc>
movl   $0x0,-0x40(%rbp)
cmpl   $0xa,-0x40(%rbp)
jge    14e9 <local_grad_3+0x3e9>
movl   $0x0,-0x44(%rbp)
cmpl   $0xa,-0x44(%rbp)
jge    14d6 <local_grad_3+0x3d6>
movl   $0x0,-0x38(%rbp)
cmpl   $0xa,-0x38(%rbp)
jge    14c3 <local_grad_3+0x3c3>
movl   $0x0,-0x34(%rbp)
cmpl   $0xa,-0x34(%rbp)
jge    14b0 <local_grad_3+0x3b0>
mov    -0x28(%rbp),%rax
imul   $0xa,-0x3c(%rbp),%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,-0x40(%rbp),%edx
imul   $0xa,%edx,%edx
add    %edx,%ecx
imul   $0xa,-0x44(%rbp),%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x8(%rbp),%rax
imul   $0xa,-0x3c(%rbp),%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,-0x34(%rbp),%edx
imul   $0xa,%edx,%edx
add    %edx,%ecx
imul   $0xa,-0x44(%rbp),%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
imul   $0xa,-0x40(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
imul   $0xa,-0x3c(%rbp),%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,%ecx,%ecx
imul   $0xa,-0x40(%rbp),%edx
imul   $0xa,%edx,%edx
add    %edx,%ecx
imul   $0xa,-0x44(%rbp),%edx
add    %edx,%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1405 <local_grad_3+0x305>
jmp    14b5 <local_grad_3+0x3b5>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    13f4 <local_grad_3+0x2f4>
jmp    14c8 <local_grad_3+0x3c8>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    13e3 <local_grad_3+0x2e3>
jmp    14db <local_grad_3+0x3db>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    13d2 <local_grad_3+0x2d2>
jmp    14ee <local_grad_3+0x3ee>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13be <local_grad_3+0x2be>
jmp    1501 <local_grad_3+0x401>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1123 <local_grad_3+0x23>
pop    %rbp
ret

x86 assembly (clang, -O2):
<local_grad_3>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %r8,-0x8(%rsp)
xor    %r8d,%r8d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
imul   $0x3e8,%r8,%r11
mov    %rsi,%r14
xor    %r15d,%r15d
nopl   (%rax)
imul   $0x64,%r15,%r12
add    %r11,%r12
mov    %r14,%rbx
xor    %r13d,%r13d
nopl   (%rax)
lea    0x0(,%r13,4),%rax
add    %r13,%rax
lea    (%r12,%rax,2),%rax
mov    %rax,%rbp
or     $0x1,%rbp
xor    %r10d,%r10d
nopl   0x0(%rax)
movsd  (%r9,%r10,8),%xmm0
mulsd  (%rdi,%rax,8),%xmm0
addsd  (%rbx,%r10,8),%xmm0
movsd  %xmm0,(%rbx,%r10,8)
movsd  0x50(%r9,%r10,8),%xmm1
mulsd  (%rdi,%rbp,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%r10,8)
movsd  0xa0(%r9,%r10,8),%xmm0
mulsd  0x10(%rdi,%rax,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%r10,8)
movsd  0xf0(%r9,%r10,8),%xmm1
mulsd  0x18(%rdi,%rax,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%r10,8)
movsd  0x140(%r9,%r10,8),%xmm0
mulsd  0x20(%rdi,%rax,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%r10,8)
movsd  0x190(%r9,%r10,8),%xmm1
mulsd  0x28(%rdi,%rax,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%r10,8)
movsd  0x1e0(%r9,%r10,8),%xmm0
mulsd  0x30(%rdi,%rax,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%r10,8)
movsd  0x230(%r9,%r10,8),%xmm1
mulsd  0x38(%rdi,%rax,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%r10,8)
movsd  0x280(%r9,%r10,8),%xmm0
mulsd  0x40(%rdi,%rax,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%r10,8)
movsd  0x2d0(%r9,%r10,8),%xmm1
mulsd  0x48(%rdi,%rax,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%r10,8)
add    $0x1,%r10
cmp    $0xa,%r10
jne    1160 <local_grad_3+0x60>
add    $0x1,%r13
add    $0x50,%rbx
cmp    $0xa,%r13
jne    1140 <local_grad_3+0x40>
add    $0x1,%r15
add    $0x320,%r14
cmp    $0xa,%r15
jne    1130 <local_grad_3+0x30>
add    $0x1,%r8
add    $0x1f40,%rsi
cmp    $0x3e8,%r8
jne    1120 <local_grad_3+0x20>
lea    0x2d0(%rdi),%r10
xor    %r9d,%r9d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rdx,%r11
mov    %r10,%rax
xor    %r14d,%r14d
nopl   0x0(%rax)
mov    %r11,%rbx
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
lea    (%r15,%r15,1),%rsi
lea    (%rsi,%rsi,4),%rsi
mov    %rsi,%r8
or     $0x1,%r8
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  -0x2d0(%rax,%rbp,8),%xmm0
ff ff
mulsd  (%rcx,%rsi,8),%xmm0
addsd  (%rbx,%rbp,8),%xmm0
movsd  %xmm0,(%rbx,%rbp,8)
movsd  -0x280(%rax,%rbp,8),%xmm1
ff ff
mulsd  (%rcx,%r8,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rbp,8)
movsd  -0x230(%rax,%rbp,8),%xmm0
ff ff
mulsd  0x10(%rcx,%rsi,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%rbp,8)
movsd  -0x1e0(%rax,%rbp,8),%xmm1
ff ff
mulsd  0x18(%rcx,%rsi,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rbp,8)
movsd  -0x190(%rax,%rbp,8),%xmm0
ff ff
mulsd  0x20(%rcx,%rsi,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%rbp,8)
movsd  -0x140(%rax,%rbp,8),%xmm1
ff ff
mulsd  0x28(%rcx,%rsi,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rbp,8)
movsd  -0xf0(%rax,%rbp,8),%xmm0
ff ff
mulsd  0x30(%rcx,%rsi,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%rbp,8)
movsd  -0xa0(%rax,%rbp,8),%xmm1
ff ff
mulsd  0x38(%rcx,%rsi,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rbp,8)
movsd  -0x50(%rax,%rbp,8),%xmm0
mulsd  0x40(%rcx,%rsi,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rbx,%rbp,8)
movsd  (%rax,%rbp,8),%xmm1
mulsd  0x48(%rcx,%rsi,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rbx,%rbp,8)
add    $0x1,%rbp
cmp    $0xa,%rbp
jne    1300 <local_grad_3+0x200>
add    $0x1,%r15
add    $0x50,%rbx
cmp    $0xa,%r15
jne    12e0 <local_grad_3+0x1e0>
add    $0x1,%r14
add    $0x320,%rax
add    $0x320,%r11
cmp    $0xa,%r14
jne    12d0 <local_grad_3+0x1d0>
add    $0x1,%r9
add    $0x1f40,%r10
add    $0x1f40,%rdx
cmp    $0x3e8,%r9
jne    12c0 <local_grad_3+0x1c0>
add    $0x1c20,%rdi
xor    %r9d,%r9d
mov    -0x8(%rsp),%r8
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r8,%r10
xor    %r11d,%r11d
cs nopw 0x0(%rax,%rax,1)
lea    (%r11,%r11,1),%rax
lea    (%rax,%rax,4),%rbx
mov    %rbx,%rax
or     $0x1,%rax
mov    %rdi,%rdx
mov    %r10,%rsi
xor    %r14d,%r14d
nopl   0x0(%rax,%rax,1)
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  -0x1c20(%rdx,%rbp,8),%xmm0
ff ff
mulsd  (%rcx,%rbx,8),%xmm0
addsd  (%rsi,%rbp,8),%xmm0
movsd  %xmm0,(%rsi,%rbp,8)
movsd  -0x1900(%rdx,%rbp,8),%xmm1
ff ff
mulsd  (%rcx,%rax,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rsi,%rbp,8)
movsd  -0x15e0(%rdx,%rbp,8),%xmm0
ff ff
mulsd  0x10(%rcx,%rbx,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rsi,%rbp,8)
movsd  -0x12c0(%rdx,%rbp,8),%xmm1
ff ff
mulsd  0x18(%rcx,%rbx,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rsi,%rbp,8)
movsd  -0xfa0(%rdx,%rbp,8),%xmm0
ff ff
mulsd  0x20(%rcx,%rbx,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rsi,%rbp,8)
movsd  -0xc80(%rdx,%rbp,8),%xmm1
ff ff
mulsd  0x28(%rcx,%rbx,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rsi,%rbp,8)
movsd  -0x960(%rdx,%rbp,8),%xmm0
ff ff
mulsd  0x30(%rcx,%rbx,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rsi,%rbp,8)
movsd  -0x640(%rdx,%rbp,8),%xmm1
ff ff
mulsd  0x38(%rcx,%rbx,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rsi,%rbp,8)
movsd  -0x320(%rdx,%rbp,8),%xmm0
ff ff
mulsd  0x40(%rcx,%rbx,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rsi,%rbp,8)
movsd  (%rdx,%rbp,8),%xmm1
mulsd  0x48(%rcx,%rbx,8),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,(%rsi,%rbp,8)
add    $0x1,%rbp
cmp    $0xa,%rbp
jne    14a0 <local_grad_3+0x3a0>
add    $0x1,%r14
add    $0x50,%rsi
add    $0x50,%rdx
cmp    $0xa,%r14
jne    1490 <local_grad_3+0x390>
add    $0x1,%r11
add    $0x320,%r10
cmp    $0xa,%r11
jne    1470 <local_grad_3+0x370>
add    $0x1,%r9
add    $0x1f40,%r8
add    $0x1f40,%rdi
cmp    $0x3e8,%r9
jne    1460 <local_grad_3+0x360>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @local_grad_3(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5) {
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
store double* %0, double** %7
store double* %1, double** %8
store double* %2, double** %9
store double* %3, double** %10
store double* %4, double** %11
store double* %5, double** %12
store i32 0, i32* %18
br label %19
19: ; preds = %320, %6
%20 = load i32, i32* %18
%21 = icmp slt i32 %20, 1
br i1 %21, label %22, label %323
22: ; preds = %19
store i32 0, i32* %15
br label %23
23: ; preds = %118, %22
%24 = load i32, i32* %15
%25 = icmp slt i32 %24, 1000
br i1 %25, label %26, label %121
26: ; preds = %23
store i32 0, i32* %16
br label %27
27: ; preds = %114, %26
%28 = load i32, i32* %16
%29 = icmp slt i32 %28, 10
br i1 %29, label %30, label %117
30: ; preds = %27
store i32 0, i32* %17
br label %31
31: ; preds = %110, %30
%32 = load i32, i32* %17
%33 = icmp slt i32 %32, 10
br i1 %33, label %34, label %113
34: ; preds = %31
store i32 0, i32* %14
br label %35
35: ; preds = %106, %34
%36 = load i32, i32* %14
%37 = icmp slt i32 %36, 10
br i1 %37, label %38, label %109
38: ; preds = %35
store i32 0, i32* %13
br label %39
39: ; preds = %102, %38
%40 = load i32, i32* %13
%41 = icmp slt i32 %40, 10
br i1 %41, label %42, label %105
42: ; preds = %39
%43 = load double*, double** %8
%44 = load i32, i32* %15
%45 = mul nsw i32 %44, 10
%46 = mul nsw i32 %45, 10
%47 = mul nsw i32 %46, 10
%48 = load i32, i32* %16
%49 = mul nsw i32 %48, 10
%50 = mul nsw i32 %49, 10
%51 = add nsw i32 %47, %50
%52 = load i32, i32* %17
%53 = mul nsw i32 %52, 10
%54 = add nsw i32 %51, %53
%55 = load i32, i32* %14
%56 = add nsw i32 %54, %55
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds double, double* %43, i64 %57
%59 = load double, double* %58
%60 = load double*, double** %12
%61 = load i32, i32* %13
%62 = mul nsw i32 %61, 10
%63 = load i32, i32* %14
%64 = add nsw i32 %62, %63
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double, double* %60, i64 %65
%67 = load double, double* %66
%68 = load double*, double** %7
%69 = load i32, i32* %15
%70 = mul nsw i32 %69, 10
%71 = mul nsw i32 %70, 10
%72 = mul nsw i32 %71, 10
%73 = load i32, i32* %16
%74 = mul nsw i32 %73, 10
%75 = mul nsw i32 %74, 10
%76 = add nsw i32 %72, %75
%77 = load i32, i32* %17
%78 = mul nsw i32 %77, 10
%79 = add nsw i32 %76, %78
%80 = load i32, i32* %13
%81 = add nsw i32 %79, %80
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %68, i64 %82
%84 = load double, double* %83
%85 = call double @llvm.fmuladd.f64(double %67, double %84, double %59)
%86 = load double*, double** %8
%87 = load i32, i32* %15
%88 = mul nsw i32 %87, 10
%89 = mul nsw i32 %88, 10
%90 = mul nsw i32 %89, 10
%91 = load i32, i32* %16
%92 = mul nsw i32 %91, 10
%93 = mul nsw i32 %92, 10
%94 = add nsw i32 %90, %93
%95 = load i32, i32* %17
%96 = mul nsw i32 %95, 10
%97 = add nsw i32 %94, %96
%98 = load i32, i32* %14
%99 = add nsw i32 %97, %98
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, double* %86, i64 %100
store double %85, double* %101
br label %102
102: ; preds = %42
%103 = load i32, i32* %13
%104 = add nsw i32 %103, 1
store i32 %104, i32* %13
br label %39
105: ; preds = %39
br label %106
106: ; preds = %105
%107 = load i32, i32* %14
%108 = add nsw i32 %107, 1
store i32 %108, i32* %14
br label %35
109: ; preds = %35
br label %110
110: ; preds = %109
%111 = load i32, i32* %17
%112 = add nsw i32 %111, 1
store i32 %112, i32* %17
br label %31
113: ; preds = %31
br label %114
114: ; preds = %113
%115 = load i32, i32* %16
%116 = add nsw i32 %115, 1
store i32 %116, i32* %16
br label %27
117: ; preds = %27
br label %118
118: ; preds = %117
%119 = load i32, i32* %15
%120 = add nsw i32 %119, 1
store i32 %120, i32* %15
br label %23
121: ; preds = %23
store i32 0, i32* %15
br label %122
122: ; preds = %217, %121
%123 = load i32, i32* %15
%124 = icmp slt i32 %123, 1000
br i1 %124, label %125, label %220
125: ; preds = %122
store i32 0, i32* %16
br label %126
126: ; preds = %213, %125
%127 = load i32, i32* %16
%128 = icmp slt i32 %127, 10
br i1 %128, label %129, label %216
129: ; preds = %126
store i32 0, i32* %17
br label %130
130: ; preds = %209, %129
%131 = load i32, i32* %17
%132 = icmp slt i32 %131, 10
br i1 %132, label %133, label %212
133: ; preds = %130
store i32 0, i32* %14
br label %134
134: ; preds = %205, %133
%135 = load i32, i32* %14
%136 = icmp slt i32 %135, 10
br i1 %136, label %137, label %208
137: ; preds = %134
store i32 0, i32* %13
br label %138
138: ; preds = %201, %137
%139 = load i32, i32* %13
%140 = icmp slt i32 %139, 10
br i1 %140, label %141, label %204
141: ; preds = %138
%142 = load double*, double** %9
%143 = load i32, i32* %15
%144 = mul nsw i32 %143, 10
%145 = mul nsw i32 %144, 10
%146 = mul nsw i32 %145, 10
%147 = load i32, i32* %16
%148 = mul nsw i32 %147, 10
%149 = mul nsw i32 %148, 10
%150 = add nsw i32 %146, %149
%151 = load i32, i32* %17
%152 = mul nsw i32 %151, 10
%153 = add nsw i32 %150, %152
%154 = load i32, i32* %14
%155 = add nsw i32 %153, %154
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds double, double* %142, i64 %156
%158 = load double, double* %157
%159 = load double*, double** %7
%160 = load i32, i32* %15
%161 = mul nsw i32 %160, 10
%162 = mul nsw i32 %161, 10
%163 = mul nsw i32 %162, 10
%164 = load i32, i32* %16
%165 = mul nsw i32 %164, 10
%166 = mul nsw i32 %165, 10
%167 = add nsw i32 %163, %166
%168 = load i32, i32* %13
%169 = mul nsw i32 %168, 10
%170 = add nsw i32 %167, %169
%171 = load i32, i32* %14
%172 = add nsw i32 %170, %171
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, double* %159, i64 %173
%175 = load double, double* %174
%176 = load double*, double** %10
%177 = load i32, i32* %17
%178 = mul nsw i32 %177, 10
%179 = load i32, i32* %13
%180 = add nsw i32 %178, %179
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds double, double* %176, i64 %181
%183 = load double, double* %182
%184 = call double @llvm.fmuladd.f64(double %175, double %183, double %158)
%185 = load double*, double** %9
%186 = load i32, i32* %15
%187 = mul nsw i32 %186, 10
%188 = mul nsw i32 %187, 10
%189 = mul nsw i32 %188, 10
%190 = load i32, i32* %16
%191 = mul nsw i32 %190, 10
%192 = mul nsw i32 %191, 10
%193 = add nsw i32 %189, %192
%194 = load i32, i32* %17
%195 = mul nsw i32 %194, 10
%196 = add nsw i32 %193, %195
%197 = load i32, i32* %14
%198 = add nsw i32 %196, %197
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds double, double* %185, i64 %199
store double %184, double* %200
br label %201
201: ; preds = %141
%202 = load i32, i32* %13
%203 = add nsw i32 %202, 1
store i32 %203, i32* %13
br label %138
204: ; preds = %138
br label %205
205: ; preds = %204
%206 = load i32, i32* %14
%207 = add nsw i32 %206, 1
store i32 %207, i32* %14
br label %134
208: ; preds = %134
br label %209
209: ; preds = %208
%210 = load i32, i32* %17
%211 = add nsw i32 %210, 1
store i32 %211, i32* %17
br label %130
212: ; preds = %130
br label %213
213: ; preds = %212
%214 = load i32, i32* %16
%215 = add nsw i32 %214, 1
store i32 %215, i32* %16
br label %126
216: ; preds = %126
br label %217
217: ; preds = %216
%218 = load i32, i32* %15
%219 = add nsw i32 %218, 1
store i32 %219, i32* %15
br label %122
220: ; preds = %122
store i32 0, i32* %15
br label %221
221: ; preds = %316, %220
%222 = load i32, i32* %15
%223 = icmp slt i32 %222, 1000
br i1 %223, label %224, label %319
224: ; preds = %221
store i32 0, i32* %16
br label %225
225: ; preds = %312, %224
%226 = load i32, i32* %16
%227 = icmp slt i32 %226, 10
br i1 %227, label %228, label %315
228: ; preds = %225
store i32 0, i32* %17
br label %229
229: ; preds = %308, %228
%230 = load i32, i32* %17
%231 = icmp slt i32 %230, 10
br i1 %231, label %232, label %311
232: ; preds = %229
store i32 0, i32* %14
br label %233
233: ; preds = %304, %232
%234 = load i32, i32* %14
%235 = icmp slt i32 %234, 10
br i1 %235, label %236, label %307
236: ; preds = %233
store i32 0, i32* %13
br label %237
237: ; preds = %300, %236
%238 = load i32, i32* %13
%239 = icmp slt i32 %238, 10
br i1 %239, label %240, label %303
240: ; preds = %237
%241 = load double*, double** %11
%242 = load i32, i32* %15
%243 = mul nsw i32 %242, 10
%244 = mul nsw i32 %243, 10
%245 = mul nsw i32 %244, 10
%246 = load i32, i32* %16
%247 = mul nsw i32 %246, 10
%248 = mul nsw i32 %247, 10
%249 = add nsw i32 %245, %248
%250 = load i32, i32* %17
%251 = mul nsw i32 %250, 10
%252 = add nsw i32 %249, %251
%253 = load i32, i32* %14
%254 = add nsw i32 %252, %253
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds double, double* %241, i64 %255
%257 = load double, double* %256
%258 = load double*, double** %7
%259 = load i32, i32* %15
%260 = mul nsw i32 %259, 10
%261 = mul nsw i32 %260, 10
%262 = mul nsw i32 %261, 10
%263 = load i32, i32* %13
%264 = mul nsw i32 %263, 10
%265 = mul nsw i32 %264, 10
%266 = add nsw i32 %262, %265
%267 = load i32, i32* %17
%268 = mul nsw i32 %267, 10
%269 = add nsw i32 %266, %268
%270 = load i32, i32* %14
%271 = add nsw i32 %269, %270
%272 = sext i32 %271 to i64
%273 = getelementptr inbounds double, double* %258, i64 %272
%274 = load double, double* %273
%275 = load double*, double** %10
%276 = load i32, i32* %16
%277 = mul nsw i32 %276, 10
%278 = load i32, i32* %13
%279 = add nsw i32 %277, %278
%280 = sext i32 %279 to i64
%281 = getelementptr inbounds double, double* %275, i64 %280
%282 = load double, double* %281
%283 = call double @llvm.fmuladd.f64(double %274, double %282, double %257)
%284 = load double*, double** %11
%285 = load i32, i32* %15
%286 = mul nsw i32 %285, 10
%287 = mul nsw i32 %286, 10
%288 = mul nsw i32 %287, 10
%289 = load i32, i32* %16
%290 = mul nsw i32 %289, 10
%291 = mul nsw i32 %290, 10
%292 = add nsw i32 %288, %291
%293 = load i32, i32* %17
%294 = mul nsw i32 %293, 10
%295 = add nsw i32 %292, %294
%296 = load i32, i32* %14
%297 = add nsw i32 %295, %296
%298 = sext i32 %297 to i64
%299 = getelementptr inbounds double, double* %284, i64 %298
store double %283, double* %299
br label %300
300: ; preds = %240
%301 = load i32, i32* %13
%302 = add nsw i32 %301, 1
store i32 %302, i32* %13
br label %237
303: ; preds = %237
br label %304
304: ; preds = %303
%305 = load i32, i32* %14
%306 = add nsw i32 %305, 1
store i32 %306, i32* %14
br label %233
307: ; preds = %233
br label %308
308: ; preds = %307
%309 = load i32, i32* %17
%310 = add nsw i32 %309, 1
store i32 %310, i32* %17
br label %229
311: ; preds = %229
br label %312
312: ; preds = %311
%313 = load i32, i32* %16
%314 = add nsw i32 %313, 1
store i32 %314, i32* %16
br label %225
315: ; preds = %225
br label %316
316: ; preds = %315
%317 = load i32, i32* %15
%318 = add nsw i32 %317, 1
store i32 %318, i32* %15
br label %221
319: ; preds = %221
br label %320
320: ; preds = %319
%321 = load i32, i32* %18
%322 = add nsw i32 %321, 1
store i32 %322, i32* %18
br label %19
323: ; preds = %19
ret void
}

LLVM IR (-O2):
define void @local_grad_3(double* nocapture %0, double* nocapture %1, double* nocapture %2, double* nocapture %3, double* nocapture %4, double* nocapture %5) {
br label %7
7: ; preds = %6, %99
%8 = phi i64 [ 0, %6 ], [ %100, %99 ]
%9 = mul nuw nsw i64 %8, 1000
br label %10
10: ; preds = %7, %96
%11 = phi i64 [ 0, %7 ], [ %97, %96 ]
%12 = mul nuw nsw i64 %11, 100
%13 = add nuw nsw i64 %12, %9
br label %14
14: ; preds = %10, %93
%15 = phi i64 [ 0, %10 ], [ %94, %93 ]
%16 = mul nuw nsw i64 %15, 10
%17 = add nuw nsw i64 %13, %16
%18 = getelementptr inbounds double, double* %0, i64 %17
%19 = or i64 %17, 1
%20 = getelementptr inbounds double, double* %0, i64 %19
%21 = add nuw nsw i64 %17, 2
%22 = getelementptr inbounds double, double* %0, i64 %21
%23 = add nuw nsw i64 %17, 3
%24 = getelementptr inbounds double, double* %0, i64 %23
%25 = add nuw nsw i64 %17, 4
%26 = getelementptr inbounds double, double* %0, i64 %25
%27 = add nuw nsw i64 %17, 5
%28 = getelementptr inbounds double, double* %0, i64 %27
%29 = add nuw nsw i64 %17, 6
%30 = getelementptr inbounds double, double* %0, i64 %29
%31 = add nuw nsw i64 %17, 7
%32 = getelementptr inbounds double, double* %0, i64 %31
%33 = add nuw nsw i64 %17, 8
%34 = getelementptr inbounds double, double* %0, i64 %33
%35 = add nuw nsw i64 %17, 9
%36 = getelementptr inbounds double, double* %0, i64 %35
br label %37
37: ; preds = %14, %37
%38 = phi i64 [ 0, %14 ], [ %91, %37 ]
%39 = add nuw nsw i64 %38, %17
%40 = getelementptr inbounds double, double* %1, i64 %39
%41 = load double, double* %40
%42 = getelementptr inbounds double, double* %5, i64 %38
%43 = load double, double* %42
%44 = load double, double* %18
%45 = tail call double @llvm.fmuladd.f64(double %43, double %44, double %41)
store double %45, double* %40
%46 = add nuw nsw i64 %38, 10
%47 = getelementptr inbounds double, double* %5, i64 %46
%48 = load double, double* %47
%49 = load double, double* %20
%50 = tail call double @llvm.fmuladd.f64(double %48, double %49, double %45)
store double %50, double* %40
%51 = add nuw nsw i64 %38, 20
%52 = getelementptr inbounds double, double* %5, i64 %51
%53 = load double, double* %52
%54 = load double, double* %22
%55 = tail call double @llvm.fmuladd.f64(double %53, double %54, double %50)
store double %55, double* %40
%56 = add nuw nsw i64 %38, 30
%57 = getelementptr inbounds double, double* %5, i64 %56
%58 = load double, double* %57
%59 = load double, double* %24
%60 = tail call double @llvm.fmuladd.f64(double %58, double %59, double %55)
store double %60, double* %40
%61 = add nuw nsw i64 %38, 40
%62 = getelementptr inbounds double, double* %5, i64 %61
%63 = load double, double* %62
%64 = load double, double* %26
%65 = tail call double @llvm.fmuladd.f64(double %63, double %64, double %60)
store double %65, double* %40
%66 = add nuw nsw i64 %38, 50
%67 = getelementptr inbounds double, double* %5, i64 %66
%68 = load double, double* %67
%69 = load double, double* %28
%70 = tail call double @llvm.fmuladd.f64(double %68, double %69, double %65)
store double %70, double* %40
%71 = add nuw nsw i64 %38, 60
%72 = getelementptr inbounds double, double* %5, i64 %71
%73 = load double, double* %72
%74 = load double, double* %30
%75 = tail call double @llvm.fmuladd.f64(double %73, double %74, double %70)
store double %75, double* %40
%76 = add nuw nsw i64 %38, 70
%77 = getelementptr inbounds double, double* %5, i64 %76
%78 = load double, double* %77
%79 = load double, double* %32
%80 = tail call double @llvm.fmuladd.f64(double %78, double %79, double %75)
store double %80, double* %40
%81 = add nuw nsw i64 %38, 80
%82 = getelementptr inbounds double, double* %5, i64 %81
%83 = load double, double* %82
%84 = load double, double* %34
%85 = tail call double @llvm.fmuladd.f64(double %83, double %84, double %80)
store double %85, double* %40
%86 = add nuw nsw i64 %38, 90
%87 = getelementptr inbounds double, double* %5, i64 %86
%88 = load double, double* %87
%89 = load double, double* %36
%90 = tail call double @llvm.fmuladd.f64(double %88, double %89, double %85)
store double %90, double* %40
%91 = add nuw nsw i64 %38, 1
%92 = icmp eq i64 %91, 10
br i1 %92, label %93, label %37
93: ; preds = %37
%94 = add nuw nsw i64 %15, 1
%95 = icmp eq i64 %94, 10
br i1 %95, label %96, label %14
96: ; preds = %93
%97 = add nuw nsw i64 %11, 1
%98 = icmp eq i64 %97, 10
br i1 %98, label %99, label %10
99: ; preds = %96
%100 = add nuw nsw i64 %8, 1
%101 = icmp eq i64 %100, 1000
br i1 %101, label %102, label %7
102: ; preds = %99, %194
%103 = phi i64 [ %195, %194 ], [ 0, %99 ]
%104 = mul nuw nsw i64 %103, 1000
br label %105
105: ; preds = %102, %191
%106 = phi i64 [ 0, %102 ], [ %192, %191 ]
%107 = mul nuw nsw i64 %106, 100
%108 = add nuw nsw i64 %107, %104
br label %109
109: ; preds = %105, %188
%110 = phi i64 [ 0, %105 ], [ %189, %188 ]
%111 = mul nuw nsw i64 %110, 10
%112 = getelementptr inbounds double, double* %3, i64 %111
%113 = or i64 %111, 1
%114 = getelementptr inbounds double, double* %3, i64 %113
%115 = add nuw nsw i64 %111, 2
%116 = getelementptr inbounds double, double* %3, i64 %115
%117 = add nuw nsw i64 %111, 3
%118 = getelementptr inbounds double, double* %3, i64 %117
%119 = add nuw nsw i64 %111, 4
%120 = getelementptr inbounds double, double* %3, i64 %119
%121 = add nuw nsw i64 %111, 5
%122 = getelementptr inbounds double, double* %3, i64 %121
%123 = add nuw nsw i64 %111, 6
%124 = getelementptr inbounds double, double* %3, i64 %123
%125 = add nuw nsw i64 %111, 7
%126 = getelementptr inbounds double, double* %3, i64 %125
%127 = add nuw nsw i64 %111, 8
%128 = getelementptr inbounds double, double* %3, i64 %127
%129 = add nuw nsw i64 %111, 9
%130 = getelementptr inbounds double, double* %3, i64 %129
br label %131
131: ; preds = %109, %131
%132 = phi i64 [ 0, %109 ], [ %186, %131 ]
%133 = add nuw nsw i64 %132, %108
%134 = add nuw nsw i64 %133, %111
%135 = getelementptr inbounds double, double* %2, i64 %134
%136 = load double, double* %135
%137 = getelementptr inbounds double, double* %0, i64 %133
%138 = load double, double* %137
%139 = load double, double* %112
%140 = tail call double @llvm.fmuladd.f64(double %138, double %139, double %136)
store double %140, double* %135
%141 = add nuw nsw i64 %133, 10
%142 = getelementptr inbounds double, double* %0, i64 %141
%143 = load double, double* %142
%144 = load double, double* %114
%145 = tail call double @llvm.fmuladd.f64(double %143, double %144, double %140)
store double %145, double* %135
%146 = add nuw nsw i64 %133, 20
%147 = getelementptr inbounds double, double* %0, i64 %146
%148 = load double, double* %147
%149 = load double, double* %116
%150 = tail call double @llvm.fmuladd.f64(double %148, double %149, double %145)
store double %150, double* %135
%151 = add nuw nsw i64 %133, 30
%152 = getelementptr inbounds double, double* %0, i64 %151
%153 = load double, double* %152
%154 = load double, double* %118
%155 = tail call double @llvm.fmuladd.f64(double %153, double %154, double %150)
store double %155, double* %135
%156 = add nuw nsw i64 %133, 40
%157 = getelementptr inbounds double, double* %0, i64 %156
%158 = load double, double* %157
%159 = load double, double* %120
%160 = tail call double @llvm.fmuladd.f64(double %158, double %159, double %155)
store double %160, double* %135
%161 = add nuw nsw i64 %133, 50
%162 = getelementptr inbounds double, double* %0, i64 %161
%163 = load double, double* %162
%164 = load double, double* %122
%165 = tail call double @llvm.fmuladd.f64(double %163, double %164, double %160)
store double %165, double* %135
%166 = add nuw nsw i64 %133, 60
%167 = getelementptr inbounds double, double* %0, i64 %166
%168 = load double, double* %167
%169 = load double, double* %124
%170 = tail call double @llvm.fmuladd.f64(double %168, double %169, double %165)
store double %170, double* %135
%171 = add nuw nsw i64 %133, 70
%172 = getelementptr inbounds double, double* %0, i64 %171
%173 = load double, double* %172
%174 = load double, double* %126
%175 = tail call double @llvm.fmuladd.f64(double %173, double %174, double %170)
store double %175, double* %135
%176 = add nuw nsw i64 %133, 80
%177 = getelementptr inbounds double, double* %0, i64 %176
%178 = load double, double* %177
%179 = load double, double* %128
%180 = tail call double @llvm.fmuladd.f64(double %178, double %179, double %175)
store double %180, double* %135
%181 = add nuw nsw i64 %133, 90
%182 = getelementptr inbounds double, double* %0, i64 %181
%183 = load double, double* %182
%184 = load double, double* %130
%185 = tail call double @llvm.fmuladd.f64(double %183, double %184, double %180)
store double %185, double* %135
%186 = add nuw nsw i64 %132, 1
%187 = icmp eq i64 %186, 10
br i1 %187, label %188, label %131
188: ; preds = %131
%189 = add nuw nsw i64 %110, 1
%190 = icmp eq i64 %189, 10
br i1 %190, label %191, label %109
191: ; preds = %188
%192 = add nuw nsw i64 %106, 1
%193 = icmp eq i64 %192, 10
br i1 %193, label %194, label %105
194: ; preds = %191
%195 = add nuw nsw i64 %103, 1
%196 = icmp eq i64 %195, 1000
br i1 %196, label %197, label %102
197: ; preds = %194, %291
%198 = phi i64 [ %292, %291 ], [ 0, %194 ]
%199 = mul nuw nsw i64 %198, 1000
br label %200
200: ; preds = %197, %288
%201 = phi i64 [ 0, %197 ], [ %289, %288 ]
%202 = mul nuw nsw i64 %201, 10
%203 = mul nuw nsw i64 %201, 100
%204 = getelementptr inbounds double, double* %3, i64 %202
%205 = or i64 %202, 1
%206 = getelementptr inbounds double, double* %3, i64 %205
%207 = add nuw nsw i64 %202, 2
%208 = getelementptr inbounds double, double* %3, i64 %207
%209 = add nuw nsw i64 %202, 3
%210 = getelementptr inbounds double, double* %3, i64 %209
%211 = add nuw nsw i64 %202, 4
%212 = getelementptr inbounds double, double* %3, i64 %211
%213 = add nuw nsw i64 %202, 5
%214 = getelementptr inbounds double, double* %3, i64 %213
%215 = add nuw nsw i64 %202, 6
%216 = getelementptr inbounds double, double* %3, i64 %215
%217 = add nuw nsw i64 %202, 7
%218 = getelementptr inbounds double, double* %3, i64 %217
%219 = add nuw nsw i64 %202, 8
%220 = getelementptr inbounds double, double* %3, i64 %219
%221 = add nuw nsw i64 %202, 9
%222 = getelementptr inbounds double, double* %3, i64 %221
br label %223
223: ; preds = %200, %285
%224 = phi i64 [ 0, %200 ], [ %286, %285 ]
%225 = mul nuw nsw i64 %224, 10
%226 = add nuw nsw i64 %225, %199
%227 = add nuw nsw i64 %226, %203
br label %228
228: ; preds = %223, %228
%229 = phi i64 [ 0, %223 ], [ %283, %228 ]
%230 = add nuw nsw i64 %227, %229
%231 = getelementptr inbounds double, double* %4, i64 %230
%232 = add nuw nsw i64 %226, %229
%233 = load double, double* %231
%234 = getelementptr inbounds double, double* %0, i64 %232
%235 = load double, double* %234
%236 = load double, double* %204
%237 = tail call double @llvm.fmuladd.f64(double %235, double %236, double %233)
store double %237, double* %231
%238 = add nuw nsw i64 %232, 100
%239 = getelementptr inbounds double, double* %0, i64 %238
%240 = load double, double* %239
%241 = load double, double* %206
%242 = tail call double @llvm.fmuladd.f64(double %240, double %241, double %237)
store double %242, double* %231
%243 = add nuw nsw i64 %232, 200
%244 = getelementptr inbounds double, double* %0, i64 %243
%245 = load double, double* %244
%246 = load double, double* %208
%247 = tail call double @llvm.fmuladd.f64(double %245, double %246, double %242)
store double %247, double* %231
%248 = add nuw nsw i64 %232, 300
%249 = getelementptr inbounds double, double* %0, i64 %248
%250 = load double, double* %249
%251 = load double, double* %210
%252 = tail call double @llvm.fmuladd.f64(double %250, double %251, double %247)
store double %252, double* %231
%253 = add nuw nsw i64 %232, 400
%254 = getelementptr inbounds double, double* %0, i64 %253
%255 = load double, double* %254
%256 = load double, double* %212
%257 = tail call double @llvm.fmuladd.f64(double %255, double %256, double %252)
store double %257, double* %231
%258 = add nuw nsw i64 %232, 500
%259 = getelementptr inbounds double, double* %0, i64 %258
%260 = load double, double* %259
%261 = load double, double* %214
%262 = tail call double @llvm.fmuladd.f64(double %260, double %261, double %257)
store double %262, double* %231
%263 = add nuw nsw i64 %232, 600
%264 = getelementptr inbounds double, double* %0, i64 %263
%265 = load double, double* %264
%266 = load double, double* %216
%267 = tail call double @llvm.fmuladd.f64(double %265, double %266, double %262)
store double %267, double* %231
%268 = add nuw nsw i64 %232, 700
%269 = getelementptr inbounds double, double* %0, i64 %268
%270 = load double, double* %269
%271 = load double, double* %218
%272 = tail call double @llvm.fmuladd.f64(double %270, double %271, double %267)
store double %272, double* %231
%273 = add nuw nsw i64 %232, 800
%274 = getelementptr inbounds double, double* %0, i64 %273
%275 = load double, double* %274
%276 = load double, double* %220
%277 = tail call double @llvm.fmuladd.f64(double %275, double %276, double %272)
store double %277, double* %231
%278 = add nuw nsw i64 %232, 900
%279 = getelementptr inbounds double, double* %0, i64 %278
%280 = load double, double* %279
%281 = load double, double* %222
%282 = tail call double @llvm.fmuladd.f64(double %280, double %281, double %277)
store double %282, double* %231
%283 = add nuw nsw i64 %229, 1
%284 = icmp eq i64 %283, 10
br i1 %284, label %285, label %228
285: ; preds = %228
%286 = add nuw nsw i64 %224, 1
%287 = icmp eq i64 %286, 10
br i1 %287, label %288, label %223
288: ; preds = %285
%289 = add nuw nsw i64 %201, 1
%290 = icmp eq i64 %289, 10
br i1 %290, label %291, label %200
291: ; preds = %288
%292 = add nuw nsw i64 %198, 1
%293 = icmp eq i64 %292, 1000
br i1 %293, label %294, label %197
294: ; preds = %291
ret void
}