void formMDD(double ***d, double abi, double ax, double bx, int l1, int l2) {
  register int n, ipj;
  int i, j;
  double *dx;
  const double *dm1;
  const int ltot = l1 + l2;
  if (ltot == 0) {
    d[0][0][0] = 1.0;
    return;
  }
  for (i = 0; i <= l1; i++) {
    for (j = 0; j <= l2; j++) {
      for (n = 0; n <= ltot; n++)
        d[i][j][n] = 0.0;
    }
  }
  d[0][0][0] = 1.0;
  for (i = 1; i <= l2; i++) {
    dm1 = d[0][i - 1];
    dx = d[0][i];
    dx[0] = bx * dm1[0] + dm1[1];
    for (n = 1; n < i; n++) {
      dx[n] = abi * dm1[n - 1] + bx * dm1[n] + (n + 1) * dm1[n + 1];
    }
    dx[i] = abi * dm1[i - 1];
  }
  for (j = 1; j <= l1; j++) {
    for (i = 0; i <= l2; i++) {
      dm1 = d[j - 1][i];
      dx = d[j][i];
      ipj = i + j;
      dx[0] = ax * dm1[0] + dm1[1];
      for (n = 1; n < ipj; n++) {
        dx[n] = abi * dm1[n - 1] + ax * dm1[n] + (n + 1) * dm1[n + 1];
      }
      dx[ipj] = abi * dm1[ipj - 1];
    }
  }
}


x86 assembly (clang, -O0):
<formMDD>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
mov    %esi,-0x24(%rbp)
mov    %edx,-0x28(%rbp)
mov    -0x24(%rbp),%eax
add    -0x28(%rbp),%eax
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
jne    114b <formMDD+0x4b>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
movsd  0xebe(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    1459 <formMDD+0x359>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     11d8 <formMDD+0xd8>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x28(%rbp),%eax
jg     11c5 <formMDD+0xc5>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jg     11b2 <formMDD+0xb2>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1178 <formMDD+0x78>
jmp    11b7 <formMDD+0xb7>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1165 <formMDD+0x65>
jmp    11ca <formMDD+0xca>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1152 <formMDD+0x52>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rax
movsd  0xe16(%rip),%xmm0
movsd  %xmm0,(%rax)
movl   $0x1,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x28(%rbp),%eax
jg     1307 <formMDD+0x207>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x48(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    12d5 <formMDD+0x1d5>
movsd  -0x10(%rbp),%xmm1
mov    -0x48(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x20(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
mov    -0x48(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1259 <formMDD+0x159>
movsd  -0x10(%rbp),%xmm0
mov    -0x48(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11f5 <formMDD+0xf5>
movl   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     1459 <formMDD+0x359>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x28(%rbp),%eax
jg     1446 <formMDD+0x346>
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x40(%rbp)
mov    -0x34(%rbp),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm2
mov    -0x48(%rbp),%rax
movsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    1414 <formMDD+0x314>
movsd  -0x10(%rbp),%xmm1
mov    -0x48(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x18(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
mov    -0x48(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x40(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1398 <formMDD+0x298>
movsd  -0x10(%rbp),%xmm0
mov    -0x48(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1321 <formMDD+0x221>
jmp    144b <formMDD+0x34b>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    130e <formMDD+0x20e>
pop    %rbp
ret

x86 assembly (clang, -O2):
<formMDD>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rdx,%rax
mov    %rdx,0x8(%rsp)
mov    %edx,%r12d
movabs $0x3ff0000000000000,%rcx
add    %esi,%r12d
je     1781 <formMDD+0x671>
mov    %rdi,0x18(%rsp)
mov    %rsi,0x10(%rsp)
test   %esi,%esi
js     1291 <formMDD+0x181>
lea    0x1(%r12),%ebx
shl    $0x3,%rbx
mov    0x8(%rsp),%rax
lea    0x1(%rax),%r13d
mov    0x10(%rsp),%rax
add    $0x1,%eax
mov    %rax,0x70(%rsp)
lea    -0x1(%r13),%rax
mov    %rax,0x68(%rsp)
mov    %r13d,%eax
and    $0x3,%eax
mov    %rax,0x38(%rsp)
and    $0xfffffffc,%r13d
xor    %r14d,%r14d
movapd %xmm1,0x20(%rsp)
movapd %xmm0,0x50(%rsp)
movapd %xmm2,0x40(%rsp)
jmp    11af <formMDD+0x9f>
nopl   0x0(%rax)
add    $0x1,%r14
cmp    0x70(%rsp),%r14
je     1291 <formMDD+0x181>
cmpl   $0x0,0x8(%rsp)
js     11a0 <formMDD+0x90>
cmpq   $0x3,0x68(%rsp)
jae    1210 <formMDD+0x100>
xor    %r15d,%r15d
cmpq   $0x0,0x38(%rsp)
je     11a0 <formMDD+0x90>
mov    0x38(%rsp),%rbp
jmp    11da <formMDD+0xca>
add    $0x1,%r15
add    $0xffffffffffffffff,%rbp
je     11a0 <formMDD+0x90>
test   %r12d,%r12d
js     11d0 <formMDD+0xc0>
mov    0x18(%rsp),%rax
mov    (%rax,%r14,8),%rax
mov    (%rax,%r15,8),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1030 <memset@plt>
movapd 0x40(%rsp),%xmm2
movapd 0x50(%rsp),%xmm0
movapd 0x20(%rsp),%xmm1
jmp    11d0 <formMDD+0xc0>
nopw   0x0(%rax,%rax,1)
xor    %r15d,%r15d
mov    0x18(%rsp),%rbp
jmp    1229 <formMDD+0x119>
nopw   0x0(%rax,%rax,1)
add    $0x4,%r15
cmp    %r15,%r13
je     11c1 <formMDD+0xb1>
test   %r12d,%r12d
js     1220 <formMDD+0x110>
mov    0x0(%rbp,%r14,8),%rax
mov    (%rax,%r15,8),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1030 <memset@plt>
mov    0x0(%rbp,%r14,8),%rax
mov    0x8(%rax,%r15,8),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1030 <memset@plt>
mov    0x0(%rbp,%r14,8),%rax
mov    0x10(%rax,%r15,8),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1030 <memset@plt>
mov    0x0(%rbp,%r14,8),%rax
mov    0x18(%rax,%r15,8),%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1030 <memset@plt>
movapd 0x40(%rsp),%xmm2
movapd 0x50(%rsp),%xmm0
movapd 0x20(%rsp),%xmm1
jmp    1220 <formMDD+0x110>
mov    0x18(%rsp),%rax
mov    (%rax),%r8
mov    (%r8),%rbx
movabs $0x3ff0000000000000,%rax
mov    %rax,(%rbx)
cmpl   $0x0,0x8(%rsp)
jle    14f4 <formMDD+0x3e4>
mov    0x8(%rsp),%rax
lea    0x1(%rax),%r10d
movapd %xmm2,%xmm9
unpcklpd %xmm2,%xmm9
movapd %xmm0,%xmm7
unpcklpd %xmm0,%xmm7
mov    $0x1,%esi
movsd  0xd24(%rip),%xmm3
xor    %edx,%edx
movdqa 0xd29(%rip),%xmm8
mov    %r10,0x20(%rsp)
jmp    1310 <formMDD+0x200>
xchg   %ax,%ax
movsd  -0x8(%rcx,%rsi,8),%xmm4
mulsd  %xmm0,%xmm4
movsd  %xmm4,(%rbx,%rsi,8)
add    $0x1,%rsi
add    $0x1,%rdx
cmp    %r10,%rsi
je     14f4 <formMDD+0x3e4>
mov    %rbx,%rcx
mov    (%r8,%rsi,8),%rbx
mulsd  %xmm2,%xmm3
addsd  0x8(%rcx),%xmm3
movsd  %xmm3,(%rbx)
cmp    $0x2,%rsi
jb     12f0 <formMDD+0x1e0>
mov    $0x1,%r9d
cmp    $0x2,%rdx
jae    1400 <formMDD+0x2f0>
mov    %r9,%rbp
test   $0x1,%sil
jne    1378 <formMDD+0x268>
movsd  (%rcx,%r9,8),%xmm4
mulsd  %xmm2,%xmm4
movsd  -0x8(%rcx,%r9,8),%xmm5
mulsd  %xmm0,%xmm5
addsd  %xmm4,%xmm5
lea    0x1(%r9),%rbp
xorps  %xmm4,%xmm4
cvtsi2sd %ebp,%xmm4
mulsd  0x8(%rcx,%r9,8),%xmm4
addsd  %xmm5,%xmm4
movsd  %xmm4,(%rbx,%r9,8)
cmp    %r9,%rdx
je     12f0 <formMDD+0x1e0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rcx,%rbp,8),%xmm4
mulsd  %xmm2,%xmm4
movsd  -0x8(%rcx,%rbp,8),%xmm5
mulsd  %xmm0,%xmm5
lea    0x1(%rbp),%eax
xorps  %xmm6,%xmm6
cvtsi2sd %eax,%xmm6
mulsd  0x8(%rcx,%rbp,8),%xmm6
addsd  %xmm4,%xmm5
addsd  %xmm5,%xmm6
movsd  %xmm6,(%rbx,%rbp,8)
movsd  0x8(%rcx,%rbp,8),%xmm4
mulsd  %xmm2,%xmm4
movsd  (%rcx,%rbp,8),%xmm5
mulsd  %xmm0,%xmm5
lea    0x2(%rbp),%rax
xorps  %xmm6,%xmm6
cvtsi2sd %eax,%xmm6
mulsd  0x10(%rcx,%rbp,8),%xmm6
addsd  %xmm4,%xmm5
addsd  %xmm5,%xmm6
movsd  %xmm6,0x8(%rbx,%rbp,8)
mov    %rax,%rbp
cmp    %rax,%rsi
jne    1390 <formMDD+0x280>
jmp    12f0 <formMDD+0x1e0>
nop
mov    %r8,%rax
lea    0x2(%rdx),%r10
lea    0x8(%rbx),%rbp
lea    (%rbx,%rsi,8),%rdi
lea    (%rcx,%rdx,8),%r11
lea    0x8(%rcx),%r15
lea    (%rcx,%rsi,8),%r14
lea    0x10(%rcx),%r12
lea    (%rcx,%r10,8),%r10
cmp    %r11,%rbp
setb   %r13b
cmp    %rdi,%rcx
setb   %r8b
cmp    %r14,%rbp
setb   %r14b
cmp    %rdi,%r15
setb   %r11b
cmp    %r10,%rbp
setb   %r10b
cmp    %rdi,%r12
setb   %bpl
test   %r8b,%r13b
jne    14e7 <formMDD+0x3d7>
and    %r11b,%r14b
mov    %rax,%r8
jne    14ea <formMDD+0x3da>
and    %bpl,%r10b
mov    0x20(%rsp),%r10
jne    133a <formMDD+0x22a>
mov    %rdx,%rdi
and    $0xfffffffffffffffe,%rdi
mov    %rdx,%r9
or     $0x1,%r9
xor    %ebp,%ebp
movupd (%rcx,%rbp,8),%xmm4
mulpd  %xmm7,%xmm4
movupd 0x8(%rcx,%rbp,8),%xmm5
mulpd  %xmm9,%xmm5
addpd  %xmm4,%xmm5
movq   %rbp,%xmm4
pshufd $0x44,%xmm4,%xmm4
paddq  %xmm8,%xmm4
pshufd $0xfa,%xmm4,%xmm6
movq   %xmm4,%rax
movd   %eax,%xmm4
movss  %xmm4,%xmm6
cvtdq2pd %xmm6,%xmm4
movupd (%rcx,%rax,8),%xmm6
mulpd  %xmm4,%xmm6
addpd  %xmm5,%xmm6
movupd %xmm6,0x8(%rbx,%rbp,8)
add    $0x2,%rbp
cmp    %rbp,%rdi
jne    1480 <formMDD+0x370>
cmp    %rdi,%rdx
je     12f0 <formMDD+0x1e0>
jmp    133a <formMDD+0x22a>
mov    %rax,%r8
mov    0x20(%rsp),%r10
jmp    133a <formMDD+0x22a>
mov    0x10(%rsp),%rcx
test   %ecx,%ecx
jle    178a <formMDD+0x67a>
mov    0x8(%rsp),%rax
lea    0x1(%rax),%r10d
add    $0x1,%ecx
movapd %xmm1,%xmm7
unpcklpd %xmm1,%xmm7
movapd %xmm0,%xmm6
unpcklpd %xmm0,%xmm6
mov    $0x1,%r14d
xor    %r12d,%r12d
movdqa 0xae2(%rip),%xmm2
mov    %rcx,0x10(%rsp)
mov    %r10,0x40(%rsp)
jmp    1556 <formMDD+0x446>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r14
add    $0x1,%r12
mov    0x10(%rsp),%rcx
cmp    %rcx,%r14
je     178a <formMDD+0x67a>
cmpl   $0x0,0x8(%rsp)
js     1540 <formMDD+0x430>
lea    0x2(%r12),%rax
mov    %rax,0x20(%rsp)
mov    0x18(%rsp),%rax
mov    -0x8(%rax,%r14,8),%r9
mov    (%rax,%r14,8),%r13
mov    %r12,%rdx
xor    %esi,%esi
mov    %r14,%rcx
mov    %r12,0x50(%rsp)
jmp    15b4 <formMDD+0x4a4>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  -0x8(%rbp,%r11,8),%xmm3
mulsd  %xmm0,%xmm3
mov    %r11d,%eax
movsd  %xmm3,(%rdi,%rax,8)
add    $0x1,%rsi
add    $0x1,%rcx
add    $0x1,%rdx
cmp    %r10,%rsi
je     1540 <formMDD+0x430>
lea    (%r14,%rsi,1),%r11
mov    (%r9,%rsi,8),%rbp
mov    0x0(%r13,%rsi,8),%rdi
movsd  0x0(%rbp),%xmm3
mulsd  %xmm1,%xmm3
addsd  0x8(%rbp),%xmm3
movsd  %xmm3,(%rdi)
cmp    $0x2,%r11
jb     1590 <formMDD+0x480>
lea    (%r12,%rsi,1),%r8
mov    $0x1,%r15d
cmp    $0x2,%r8
jb     16c0 <formMDD+0x5b0>
mov    0x20(%rsp),%rax
add    %rsi,%rax
mov    %r9,%rbx
lea    0x8(%rdi),%r9
lea    0x0(,%rax,8),%rax
add    %rbp,%rax
cmp    %rax,%r9
jae    161c <formMDD+0x50c>
mov    %rbx,%r9
lea    (%rdi,%r11,8),%rax
cmp    %rax,%rbp
jb     16c0 <formMDD+0x5b0>
mov    %rdx,%rax
and    $0xfffffffffffffffe,%rax
mov    %r8,%r12
and    $0xfffffffffffffffe,%r12
mov    %r8,%r15
or     $0x1,%r15
xor    %r9d,%r9d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd 0x0(%rbp,%r9,8),%xmm3
mulpd  %xmm6,%xmm3
movupd 0x8(%rbp,%r9,8),%xmm4
mulpd  %xmm7,%xmm4
addpd  %xmm3,%xmm4
movq   %r9,%xmm3
pshufd $0x44,%xmm3,%xmm3
paddq  %xmm2,%xmm3
pshufd $0xfa,%xmm3,%xmm5
movq   %xmm3,%r10
movd   %r10d,%xmm3
movss  %xmm3,%xmm5
cvtdq2pd %xmm5,%xmm3
movupd 0x0(%rbp,%r10,8),%xmm5
mulpd  %xmm3,%xmm5
addpd  %xmm4,%xmm5
movupd %xmm5,0x8(%rdi,%r9,8)
add    $0x2,%r9
cmp    %r9,%rax
jne    1640 <formMDD+0x530>
cmp    %r12,%r8
mov    0x40(%rsp),%r10
mov    0x50(%rsp),%r12
mov    %rbx,%r9
je     1590 <formMDD+0x480>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r15,%rax
test   $0x1,%cl
jne    16fe <formMDD+0x5ee>
movsd  0x0(%rbp,%r15,8),%xmm3
mulsd  %xmm1,%xmm3
movsd  -0x8(%rbp,%r15,8),%xmm4
mulsd  %xmm0,%xmm4
addsd  %xmm3,%xmm4
lea    0x1(%r15),%rax
xorps  %xmm3,%xmm3
cvtsi2sd %eax,%xmm3
mulsd  0x8(%rbp,%r15,8),%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,(%rdi,%r15,8)
cmp    %r15,%r8
je     1590 <formMDD+0x480>
nopw   0x0(%rax,%rax,1)
movsd  0x0(%rbp,%rax,8),%xmm3
mulsd  %xmm1,%xmm3
movsd  -0x8(%rbp,%rax,8),%xmm4
mulsd  %xmm0,%xmm4
lea    0x1(%rax),%ebx
xorps  %xmm5,%xmm5
cvtsi2sd %ebx,%xmm5
mulsd  0x8(%rbp,%rax,8),%xmm5
addsd  %xmm3,%xmm4
addsd  %xmm4,%xmm5
movsd  %xmm5,(%rdi,%rax,8)
movsd  0x8(%rbp,%rax,8),%xmm3
mulsd  %xmm1,%xmm3
movsd  0x0(%rbp,%rax,8),%xmm4
mulsd  %xmm0,%xmm4
lea    0x2(%rax),%rbx
xorps  %xmm5,%xmm5
cvtsi2sd %ebx,%xmm5
mulsd  0x10(%rbp,%rax,8),%xmm5
addsd  %xmm3,%xmm4
addsd  %xmm4,%xmm5
movsd  %xmm5,0x8(%rdi,%rax,8)
mov    %rbx,%rax
cmp    %rbx,%rcx
jne    1710 <formMDD+0x600>
jmp    1590 <formMDD+0x480>
mov    (%rdi),%rax
mov    (%rax),%rax
mov    %rcx,(%rax)
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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