int buildMatrixA(int nlev, double Ag, double *ar_a11_c, double *ar_a11_f,
                 double *ar_a12_c, double *ar_a12_f, double *ar_p1,
                 double *ar_p2, double *ar_p3, double *ar_p4,
                 double **matrixA) {
  int i;
  int iRow;
  int nextColEup;
  int nextColEdw;
  matrixA[0][2] = ar_a12_f[0] * ar_p1[0];
  matrixA[0][3] = ar_a12_f[0] * (1.0 - ar_p3[0]);
  matrixA[0][4] = ar_a11_f[0] * ar_p2[0];
  matrixA[0][5] = ar_a11_f[0] * (1.0 - ar_p4[0]);
  matrixA[1][2] = ar_a12_c[0] * (1.0 - ar_p1[0]);
  matrixA[1][3] = ar_a12_c[0] * ar_p3[0];
  matrixA[1][4] = ar_a11_c[0] * (1.0 - ar_p2[0]);
  matrixA[1][5] = ar_a11_c[0] * ar_p4[0];
  nextColEup = 6;
  nextColEdw = 2;
  for (i = 1; i < nlev; i++) {
    iRow = 4 * i;
    if (i == (nlev - 1)) {
      matrixA[iRow][nextColEup] = Ag;
      matrixA[iRow + 1][nextColEup + 1] = Ag;
    } else {
      matrixA[iRow][nextColEup] = ar_a12_f[i] * ar_p1[i];
      matrixA[iRow][nextColEup + 1] = ar_a12_f[i] * (1.0 - ar_p3[i]);
      matrixA[iRow][nextColEup + 2] = ar_a11_f[i] * ar_p2[i];
      matrixA[iRow][nextColEup + 3] = ar_a11_f[i] * (1.0 - ar_p4[i]);
      matrixA[iRow + 1][nextColEup] = ar_a12_c[i] * (1.0 - ar_p1[i]);
      matrixA[iRow + 1][nextColEup + 1] = ar_a12_c[i] * ar_p3[i];
      matrixA[iRow + 1][nextColEup + 2] = ar_a11_c[i] * (1.0 - ar_p2[i]);
      matrixA[iRow + 1][nextColEup + 3] = ar_a11_c[i] * ar_p4[i];
    }
    nextColEup += 4;
    matrixA[iRow + 2][nextColEdw] = ar_a11_f[i - 1] * ar_p1[i - 1];
    matrixA[iRow + 2][nextColEdw + 1] = ar_a11_f[i - 1] * (1.0 - ar_p3[i - 1]);
    matrixA[iRow + 2][nextColEdw + 2] = ar_a12_f[i - 1] * ar_p2[i - 1];
    matrixA[iRow + 2][nextColEdw + 3] = ar_a12_f[i - 1] * (1.0 - ar_p4[i - 1]);
    matrixA[iRow + 3][nextColEdw] = ar_a11_c[i - 1] * (1.0 - ar_p1[i - 1]);
    matrixA[iRow + 3][nextColEdw + 1] = ar_a11_c[i - 1] * ar_p3[i - 1];
    matrixA[iRow + 3][nextColEdw + 2] = ar_a12_c[i - 1] * (1.0 - ar_p2[i - 1]);
    matrixA[iRow + 3][nextColEdw + 3] = ar_a12_c[i - 1] * ar_p4[i - 1];
    nextColEdw += 4;
  }
  return 0;
}


x86 assembly (clang, -O0):
<buildMatrixA>:
push   %rbp
mov    %rsp,%rbp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
mulsd  (%rax),%xmm0
mov    0x28(%rbp),%rax
mov    (%rax),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x18(%rbp),%rax
movsd  0xea0(%rip),%xmm1
subsd  (%rax),%xmm1
mulsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
mov    (%rax),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
mulsd  (%rax),%xmm0
mov    0x28(%rbp),%rax
mov    (%rax),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x20(%rbp),%rax
movsd  0xe5c(%rip),%xmm1
subsd  (%rax),%xmm1
mulsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
mov    (%rax),%rax
movsd  %xmm0,0x28(%rax)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
movsd  0xe34(%rip),%xmm1
subsd  (%rax),%xmm1
mulsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
mov    0x8(%rax),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x18(%rbp),%rax
mulsd  (%rax),%xmm0
mov    0x28(%rbp),%rax
mov    0x8(%rax),%rax
movsd  %xmm0,0x18(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
movsd  0xdee(%rip),%xmm1
subsd  (%rax),%xmm1
mulsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
mov    0x8(%rax),%rax
movsd  %xmm0,0x20(%rax)
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x20(%rbp),%rax
mulsd  (%rax),%xmm0
mov    0x28(%rbp),%rax
mov    0x8(%rax),%rax
movsd  %xmm0,0x28(%rax)
movl   $0x6,-0x44(%rbp)
movl   $0x2,-0x48(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    16fa <buildMatrixA+0x5fa>
mov    -0x3c(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0x40(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jne    12c2 <buildMatrixA+0x1c2>
movsd  -0x10(%rbp),%xmm0
mov    0x28(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x10(%rbp),%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    149c <buildMatrixA+0x39c>
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  0xcf2(%rip),%xmm1
subsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x44(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  0xc7e(%rip),%xmm1
subsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x44(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  0xc3e(%rip),%xmm1
subsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x44(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  0xbc5(%rip),%xmm1
subsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x44(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x44(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x44(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xaf6(%rip),%xmm1
subsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x48(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x48(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xa64(%rip),%xmm1
subsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x48(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xa15(%rip),%xmm1
subsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x48(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x48(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0x988(%rip),%xmm1
subsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x48(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x48(%rbp),%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x48(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1259 <buildMatrixA+0x159>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<buildMatrixA>:
push   %r15
push   %r14
push   %r12
push   %rbx
mov    0x40(%rsp),%rax
mov    0x38(%rsp),%r10
mov    0x30(%rsp),%r11
movsd  (%r8),%xmm1
mulsd  (%r9),%xmm1
mov    (%rax),%r14
movsd  %xmm1,0x10(%r14)
movsd  0xecf(%rip),%xmm1
movapd %xmm1,%xmm2
subsd  (%r11),%xmm2
mov    0x28(%rsp),%r12
mulsd  (%r8),%xmm2
movsd  %xmm2,0x18(%r14)
movsd  (%rdx),%xmm2
mulsd  (%r12),%xmm2
movsd  %xmm2,0x20(%r14)
movapd %xmm1,%xmm2
subsd  (%r10),%xmm2
mulsd  (%rdx),%xmm2
movsd  %xmm2,0x28(%r14)
movapd %xmm1,%xmm2
subsd  (%r9),%xmm2
mulsd  (%rcx),%xmm2
mov    0x8(%rax),%r14
movsd  %xmm2,0x10(%r14)
movsd  (%rcx),%xmm2
mulsd  (%r11),%xmm2
movsd  %xmm2,0x18(%r14)
movapd %xmm1,%xmm2
subsd  (%r12),%xmm2
mulsd  (%rsi),%xmm2
movsd  %xmm2,0x20(%r14)
movsd  (%rsi),%xmm2
mulsd  (%r10),%xmm2
movsd  %xmm2,0x28(%r14)
cmp    $0x2,%edi
jl     136b <buildMatrixA+0x26b>
lea    -0x1(%rdi),%r14d
mov    %edi,%r15d
shl    $0x2,%r14
shl    $0x2,%r15
mov    $0x4,%edi
jmp    1343 <buildMatrixA+0x243>
nopl   0x0(%rax,%rax,1)
movsd  (%r8,%rdi,2),%xmm2
mulsd  (%r9,%rdi,2),%xmm2
mov    (%rax,%rdi,8),%rbx
movsd  %xmm2,0x10(%rbx,%rdi,8)
movapd %xmm1,%xmm2
subsd  (%r11,%rdi,2),%xmm2
mulsd  (%r8,%rdi,2),%xmm2
movsd  %xmm2,0x18(%rbx,%rdi,8)
movsd  (%rdx,%rdi,2),%xmm2
mulsd  (%r12,%rdi,2),%xmm2
movsd  %xmm2,0x20(%rbx,%rdi,8)
movapd %xmm1,%xmm2
subsd  (%r10,%rdi,2),%xmm2
mulsd  (%rdx,%rdi,2),%xmm2
movsd  %xmm2,0x28(%rbx,%rdi,8)
movapd %xmm1,%xmm2
subsd  (%r9,%rdi,2),%xmm2
mulsd  (%rcx,%rdi,2),%xmm2
mov    %edi,%ebx
and    $0xfffffffc,%ebx
mov    0x8(%rax,%rbx,8),%rbx
movsd  %xmm2,0x10(%rbx,%rdi,8)
movsd  (%rcx,%rdi,2),%xmm2
mulsd  (%r11,%rdi,2),%xmm2
movsd  %xmm2,0x18(%rbx,%rdi,8)
movapd %xmm1,%xmm2
subsd  (%r12,%rdi,2),%xmm2
mulsd  (%rsi,%rdi,2),%xmm2
movsd  %xmm2,0x20(%rbx,%rdi,8)
movsd  (%rsi,%rdi,2),%xmm2
mulsd  (%r10,%rdi,2),%xmm2
movsd  %xmm2,0x28(%rbx,%rdi,8)
movsd  -0x8(%rdx,%rdi,2),%xmm2
mulsd  -0x8(%r9,%rdi,2),%xmm2
mov    0x10(%rax,%rdi,8),%rbx
movsd  %xmm2,-0x10(%rbx,%rdi,8)
movapd %xmm1,%xmm2
subsd  -0x8(%r11,%rdi,2),%xmm2
mulsd  -0x8(%rdx,%rdi,2),%xmm2
movsd  %xmm2,-0x8(%rbx,%rdi,8)
movsd  -0x8(%r8,%rdi,2),%xmm2
mulsd  -0x8(%r12,%rdi,2),%xmm2
movsd  %xmm2,(%rbx,%rdi,8)
movapd %xmm1,%xmm2
subsd  -0x8(%r10,%rdi,2),%xmm2
mulsd  -0x8(%r8,%rdi,2),%xmm2
movsd  %xmm2,0x8(%rbx,%rdi,8)
movapd %xmm1,%xmm2
subsd  -0x8(%r9,%rdi,2),%xmm2
mulsd  -0x8(%rsi,%rdi,2),%xmm2
mov    0x18(%rax,%rdi,8),%rbx
movsd  %xmm2,-0x10(%rbx,%rdi,8)
movsd  -0x8(%rsi,%rdi,2),%xmm2
mulsd  -0x8(%r11,%rdi,2),%xmm2
movsd  %xmm2,-0x8(%rbx,%rdi,8)
movapd %xmm1,%xmm2
subsd  -0x8(%r12,%rdi,2),%xmm2
mulsd  -0x8(%rcx,%rdi,2),%xmm2
movsd  %xmm2,(%rbx,%rdi,8)
movsd  -0x8(%rcx,%rdi,2),%xmm2
mulsd  -0x8(%r10,%rdi,2),%xmm2
movsd  %xmm2,0x8(%rbx,%rdi,8)
add    $0x4,%rdi
cmp    %rdi,%r15
je     136b <buildMatrixA+0x26b>
cmp    %rdi,%r14
jne    11e0 <buildMatrixA+0xe0>
mov    (%rax,%rdi,8),%rbx
movsd  %xmm0,0x10(%rbx,%rdi,8)
mov    %edi,%ebx
and    $0xfffffffc,%ebx
mov    0x8(%rax,%rbx,8),%rbx
movsd  %xmm0,0x18(%rbx,%rdi,8)
jmp    1288 <buildMatrixA+0x188>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @buildMatrixA(i32 %0, double %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8, double* %9, double** %10) {
%12 = alloca i32
%13 = alloca double
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca double*
%18 = alloca double*
%19 = alloca double*
%20 = alloca double*
%21 = alloca double*
%22 = alloca double**
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
store i32 %0, i32* %12
store double %1, double* %13
store double* %2, double** %14
store double* %3, double** %15
store double* %4, double** %16
store double* %5, double** %17
store double* %6, double** %18
store double* %7, double** %19
store double* %8, double** %20
store double* %9, double** %21
store double** %10, double*** %22
%27 = load double*, double** %17
%28 = getelementptr inbounds double, double* %27, i64 0
%29 = load double, double* %28
%30 = load double*, double** %18
%31 = getelementptr inbounds double, double* %30, i64 0
%32 = load double, double* %31
%33 = fmul double %29, %32
%34 = load double**, double*** %22
%35 = getelementptr inbounds double*, double** %34, i64 0
%36 = load double*, double** %35
%37 = getelementptr inbounds double, double* %36, i64 2
store double %33, double* %37
%38 = load double*, double** %17
%39 = getelementptr inbounds double, double* %38, i64 0
%40 = load double, double* %39
%41 = load double*, double** %20
%42 = getelementptr inbounds double, double* %41, i64 0
%43 = load double, double* %42
%44 = fsub double 1.000000e+00, %43
%45 = fmul double %40, %44
%46 = load double**, double*** %22
%47 = getelementptr inbounds double*, double** %46, i64 0
%48 = load double*, double** %47
%49 = getelementptr inbounds double, double* %48, i64 3
store double %45, double* %49
%50 = load double*, double** %15
%51 = getelementptr inbounds double, double* %50, i64 0
%52 = load double, double* %51
%53 = load double*, double** %19
%54 = getelementptr inbounds double, double* %53, i64 0
%55 = load double, double* %54
%56 = fmul double %52, %55
%57 = load double**, double*** %22
%58 = getelementptr inbounds double*, double** %57, i64 0
%59 = load double*, double** %58
%60 = getelementptr inbounds double, double* %59, i64 4
store double %56, double* %60
%61 = load double*, double** %15
%62 = getelementptr inbounds double, double* %61, i64 0
%63 = load double, double* %62
%64 = load double*, double** %21
%65 = getelementptr inbounds double, double* %64, i64 0
%66 = load double, double* %65
%67 = fsub double 1.000000e+00, %66
%68 = fmul double %63, %67
%69 = load double**, double*** %22
%70 = getelementptr inbounds double*, double** %69, i64 0
%71 = load double*, double** %70
%72 = getelementptr inbounds double, double* %71, i64 5
store double %68, double* %72
%73 = load double*, double** %16
%74 = getelementptr inbounds double, double* %73, i64 0
%75 = load double, double* %74
%76 = load double*, double** %18
%77 = getelementptr inbounds double, double* %76, i64 0
%78 = load double, double* %77
%79 = fsub double 1.000000e+00, %78
%80 = fmul double %75, %79
%81 = load double**, double*** %22
%82 = getelementptr inbounds double*, double** %81, i64 1
%83 = load double*, double** %82
%84 = getelementptr inbounds double, double* %83, i64 2
store double %80, double* %84
%85 = load double*, double** %16
%86 = getelementptr inbounds double, double* %85, i64 0
%87 = load double, double* %86
%88 = load double*, double** %20
%89 = getelementptr inbounds double, double* %88, i64 0
%90 = load double, double* %89
%91 = fmul double %87, %90
%92 = load double**, double*** %22
%93 = getelementptr inbounds double*, double** %92, i64 1
%94 = load double*, double** %93
%95 = getelementptr inbounds double, double* %94, i64 3
store double %91, double* %95
%96 = load double*, double** %14
%97 = getelementptr inbounds double, double* %96, i64 0
%98 = load double, double* %97
%99 = load double*, double** %19
%100 = getelementptr inbounds double, double* %99, i64 0
%101 = load double, double* %100
%102 = fsub double 1.000000e+00, %101
%103 = fmul double %98, %102
%104 = load double**, double*** %22
%105 = getelementptr inbounds double*, double** %104, i64 1
%106 = load double*, double** %105
%107 = getelementptr inbounds double, double* %106, i64 4
store double %103, double* %107
%108 = load double*, double** %14
%109 = getelementptr inbounds double, double* %108, i64 0
%110 = load double, double* %109
%111 = load double*, double** %21
%112 = getelementptr inbounds double, double* %111, i64 0
%113 = load double, double* %112
%114 = fmul double %110, %113
%115 = load double**, double*** %22
%116 = getelementptr inbounds double*, double** %115, i64 1
%117 = load double*, double** %116
%118 = getelementptr inbounds double, double* %117, i64 5
store double %114, double* %118
store i32 6, i32* %25
store i32 2, i32* %26
store i32 1, i32* %23
br label %119
119: ; preds = %509, %11
%120 = load i32, i32* %23
%121 = load i32, i32* %12
%122 = icmp slt i32 %120, %121
br i1 %122, label %123, label %512
123: ; preds = %119
%124 = load i32, i32* %23
%125 = mul nsw i32 4, %124
store i32 %125, i32* %24
%126 = load i32, i32* %23
%127 = load i32, i32* %12
%128 = sub nsw i32 %127, 1
%129 = icmp eq i32 %126, %128
br i1 %129, label %130, label %151
130: ; preds = %123
%131 = load double, double* %13
%132 = load double**, double*** %22
%133 = load i32, i32* %24
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds double*, double** %132, i64 %134
%136 = load double*, double** %135
%137 = load i32, i32* %25
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds double, double* %136, i64 %138
store double %131, double* %139
%140 = load double, double* %13
%141 = load double**, double*** %22
%142 = load i32, i32* %24
%143 = add nsw i32 %142, 1
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds double*, double** %141, i64 %144
%146 = load double*, double** %145
%147 = load i32, i32* %25
%148 = add nsw i32 %147, 1
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds double, double* %146, i64 %149
store double %140, double* %150
br label %318
151: ; preds = %123
%152 = load double*, double** %17
%153 = load i32, i32* %23
%154 = sext i32 %153 to i64
%155 = getelementptr inbounds double, double* %152, i64 %154
%156 = load double, double* %155
%157 = load double*, double** %18
%158 = load i32, i32* %23
%159 = sext i32 %158 to i64
%160 = getelementptr inbounds double, double* %157, i64 %159
%161 = load double, double* %160
%162 = fmul double %156, %161
%163 = load double**, double*** %22
%164 = load i32, i32* %24
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds double*, double** %163, i64 %165
%167 = load double*, double** %166
%168 = load i32, i32* %25
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds double, double* %167, i64 %169
store double %162, double* %170
%171 = load double*, double** %17
%172 = load i32, i32* %23
%173 = sext i32 %172 to i64
%174 = getelementptr inbounds double, double* %171, i64 %173
%175 = load double, double* %174
%176 = load double*, double** %20
%177 = load i32, i32* %23
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double, double* %176, i64 %178
%180 = load double, double* %179
%181 = fsub double 1.000000e+00, %180
%182 = fmul double %175, %181
%183 = load double**, double*** %22
%184 = load i32, i32* %24
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds double*, double** %183, i64 %185
%187 = load double*, double** %186
%188 = load i32, i32* %25
%189 = add nsw i32 %188, 1
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds double, double* %187, i64 %190
store double %182, double* %191
%192 = load double*, double** %15
%193 = load i32, i32* %23
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds double, double* %192, i64 %194
%196 = load double, double* %195
%197 = load double*, double** %19
%198 = load i32, i32* %23
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds double, double* %197, i64 %199
%201 = load double, double* %200
%202 = fmul double %196, %201
%203 = load double**, double*** %22
%204 = load i32, i32* %24
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds double*, double** %203, i64 %205
%207 = load double*, double** %206
%208 = load i32, i32* %25
%209 = add nsw i32 %208, 2
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds double, double* %207, i64 %210
store double %202, double* %211
%212 = load double*, double** %15
%213 = load i32, i32* %23
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds double, double* %212, i64 %214
%216 = load double, double* %215
%217 = load double*, double** %21
%218 = load i32, i32* %23
%219 = sext i32 %218 to i64
%220 = getelementptr inbounds double, double* %217, i64 %219
%221 = load double, double* %220
%222 = fsub double 1.000000e+00, %221
%223 = fmul double %216, %222
%224 = load double**, double*** %22
%225 = load i32, i32* %24
%226 = sext i32 %225 to i64
%227 = getelementptr inbounds double*, double** %224, i64 %226
%228 = load double*, double** %227
%229 = load i32, i32* %25
%230 = add nsw i32 %229, 3
%231 = sext i32 %230 to i64
%232 = getelementptr inbounds double, double* %228, i64 %231
store double %223, double* %232
%233 = load double*, double** %16
%234 = load i32, i32* %23
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds double, double* %233, i64 %235
%237 = load double, double* %236
%238 = load double*, double** %18
%239 = load i32, i32* %23
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds double, double* %238, i64 %240
%242 = load double, double* %241
%243 = fsub double 1.000000e+00, %242
%244 = fmul double %237, %243
%245 = load double**, double*** %22
%246 = load i32, i32* %24
%247 = add nsw i32 %246, 1
%248 = sext i32 %247 to i64
%249 = getelementptr inbounds double*, double** %245, i64 %248
%250 = load double*, double** %249
%251 = load i32, i32* %25
%252 = sext i32 %251 to i64
%253 = getelementptr inbounds double, double* %250, i64 %252
store double %244, double* %253
%254 = load double*, double** %16
%255 = load i32, i32* %23
%256 = sext i32 %255 to i64
%257 = getelementptr inbounds double, double* %254, i64 %256
%258 = load double, double* %257
%259 = load double*, double** %20
%260 = load i32, i32* %23
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds double, double* %259, i64 %261
%263 = load double, double* %262
%264 = fmul double %258, %263
%265 = load double**, double*** %22
%266 = load i32, i32* %24
%267 = add nsw i32 %266, 1
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds double*, double** %265, i64 %268
%270 = load double*, double** %269
%271 = load i32, i32* %25
%272 = add nsw i32 %271, 1
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds double, double* %270, i64 %273
store double %264, double* %274
%275 = load double*, double** %14
%276 = load i32, i32* %23
%277 = sext i32 %276 to i64
%278 = getelementptr inbounds double, double* %275, i64 %277
%279 = load double, double* %278
%280 = load double*, double** %19
%281 = load i32, i32* %23
%282 = sext i32 %281 to i64
%283 = getelementptr inbounds double, double* %280, i64 %282
%284 = load double, double* %283
%285 = fsub double 1.000000e+00, %284
%286 = fmul double %279, %285
%287 = load double**, double*** %22
%288 = load i32, i32* %24
%289 = add nsw i32 %288, 1
%290 = sext i32 %289 to i64
%291 = getelementptr inbounds double*, double** %287, i64 %290
%292 = load double*, double** %291
%293 = load i32, i32* %25
%294 = add nsw i32 %293, 2
%295 = sext i32 %294 to i64
%296 = getelementptr inbounds double, double* %292, i64 %295
store double %286, double* %296
%297 = load double*, double** %14
%298 = load i32, i32* %23
%299 = sext i32 %298 to i64
%300 = getelementptr inbounds double, double* %297, i64 %299
%301 = load double, double* %300
%302 = load double*, double** %21
%303 = load i32, i32* %23
%304 = sext i32 %303 to i64
%305 = getelementptr inbounds double, double* %302, i64 %304
%306 = load double, double* %305
%307 = fmul double %301, %306
%308 = load double**, double*** %22
%309 = load i32, i32* %24
%310 = add nsw i32 %309, 1
%311 = sext i32 %310 to i64
%312 = getelementptr inbounds double*, double** %308, i64 %311
%313 = load double*, double** %312
%314 = load i32, i32* %25
%315 = add nsw i32 %314, 3
%316 = sext i32 %315 to i64
%317 = getelementptr inbounds double, double* %313, i64 %316
store double %307, double* %317
br label %318
318: ; preds = %151, %130
%319 = load i32, i32* %25
%320 = add nsw i32 %319, 4
store i32 %320, i32* %25
%321 = load double*, double** %15
%322 = load i32, i32* %23
%323 = sub nsw i32 %322, 1
%324 = sext i32 %323 to i64
%325 = getelementptr inbounds double, double* %321, i64 %324
%326 = load double, double* %325
%327 = load double*, double** %18
%328 = load i32, i32* %23
%329 = sub nsw i32 %328, 1
%330 = sext i32 %329 to i64
%331 = getelementptr inbounds double, double* %327, i64 %330
%332 = load double, double* %331
%333 = fmul double %326, %332
%334 = load double**, double*** %22
%335 = load i32, i32* %24
%336 = add nsw i32 %335, 2
%337 = sext i32 %336 to i64
%338 = getelementptr inbounds double*, double** %334, i64 %337
%339 = load double*, double** %338
%340 = load i32, i32* %26
%341 = sext i32 %340 to i64
%342 = getelementptr inbounds double, double* %339, i64 %341
store double %333, double* %342
%343 = load double*, double** %15
%344 = load i32, i32* %23
%345 = sub nsw i32 %344, 1
%346 = sext i32 %345 to i64
%347 = getelementptr inbounds double, double* %343, i64 %346
%348 = load double, double* %347
%349 = load double*, double** %20
%350 = load i32, i32* %23
%351 = sub nsw i32 %350, 1
%352 = sext i32 %351 to i64
%353 = getelementptr inbounds double, double* %349, i64 %352
%354 = load double, double* %353
%355 = fsub double 1.000000e+00, %354
%356 = fmul double %348, %355
%357 = load double**, double*** %22
%358 = load i32, i32* %24
%359 = add nsw i32 %358, 2
%360 = sext i32 %359 to i64
%361 = getelementptr inbounds double*, double** %357, i64 %360
%362 = load double*, double** %361
%363 = load i32, i32* %26
%364 = add nsw i32 %363, 1
%365 = sext i32 %364 to i64
%366 = getelementptr inbounds double, double* %362, i64 %365
store double %356, double* %366
%367 = load double*, double** %17
%368 = load i32, i32* %23
%369 = sub nsw i32 %368, 1
%370 = sext i32 %369 to i64
%371 = getelementptr inbounds double, double* %367, i64 %370
%372 = load double, double* %371
%373 = load double*, double** %19
%374 = load i32, i32* %23
%375 = sub nsw i32 %374, 1
%376 = sext i32 %375 to i64
%377 = getelementptr inbounds double, double* %373, i64 %376
%378 = load double, double* %377
%379 = fmul double %372, %378
%380 = load double**, double*** %22
%381 = load i32, i32* %24
%382 = add nsw i32 %381, 2
%383 = sext i32 %382 to i64
%384 = getelementptr inbounds double*, double** %380, i64 %383
%385 = load double*, double** %384
%386 = load i32, i32* %26
%387 = add nsw i32 %386, 2
%388 = sext i32 %387 to i64
%389 = getelementptr inbounds double, double* %385, i64 %388
store double %379, double* %389
%390 = load double*, double** %17
%391 = load i32, i32* %23
%392 = sub nsw i32 %391, 1
%393 = sext i32 %392 to i64
%394 = getelementptr inbounds double, double* %390, i64 %393
%395 = load double, double* %394
%396 = load double*, double** %21
%397 = load i32, i32* %23
%398 = sub nsw i32 %397, 1
%399 = sext i32 %398 to i64
%400 = getelementptr inbounds double, double* %396, i64 %399
%401 = load double, double* %400
%402 = fsub double 1.000000e+00, %401
%403 = fmul double %395, %402
%404 = load double**, double*** %22
%405 = load i32, i32* %24
%406 = add nsw i32 %405, 2
%407 = sext i32 %406 to i64
%408 = getelementptr inbounds double*, double** %404, i64 %407
%409 = load double*, double** %408
%410 = load i32, i32* %26
%411 = add nsw i32 %410, 3
%412 = sext i32 %411 to i64
%413 = getelementptr inbounds double, double* %409, i64 %412
store double %403, double* %413
%414 = load double*, double** %14
%415 = load i32, i32* %23
%416 = sub nsw i32 %415, 1
%417 = sext i32 %416 to i64
%418 = getelementptr inbounds double, double* %414, i64 %417
%419 = load double, double* %418
%420 = load double*, double** %18
%421 = load i32, i32* %23
%422 = sub nsw i32 %421, 1
%423 = sext i32 %422 to i64
%424 = getelementptr inbounds double, double* %420, i64 %423
%425 = load double, double* %424
%426 = fsub double 1.000000e+00, %425
%427 = fmul double %419, %426
%428 = load double**, double*** %22
%429 = load i32, i32* %24
%430 = add nsw i32 %429, 3
%431 = sext i32 %430 to i64
%432 = getelementptr inbounds double*, double** %428, i64 %431
%433 = load double*, double** %432
%434 = load i32, i32* %26
%435 = sext i32 %434 to i64
%436 = getelementptr inbounds double, double* %433, i64 %435
store double %427, double* %436
%437 = load double*, double** %14
%438 = load i32, i32* %23
%439 = sub nsw i32 %438, 1
%440 = sext i32 %439 to i64
%441 = getelementptr inbounds double, double* %437, i64 %440
%442 = load double, double* %441
%443 = load double*, double** %20
%444 = load i32, i32* %23
%445 = sub nsw i32 %444, 1
%446 = sext i32 %445 to i64
%447 = getelementptr inbounds double, double* %443, i64 %446
%448 = load double, double* %447
%449 = fmul double %442, %448
%450 = load double**, double*** %22
%451 = load i32, i32* %24
%452 = add nsw i32 %451, 3
%453 = sext i32 %452 to i64
%454 = getelementptr inbounds double*, double** %450, i64 %453
%455 = load double*, double** %454
%456 = load i32, i32* %26
%457 = add nsw i32 %456, 1
%458 = sext i32 %457 to i64
%459 = getelementptr inbounds double, double* %455, i64 %458
store double %449, double* %459
%460 = load double*, double** %16
%461 = load i32, i32* %23
%462 = sub nsw i32 %461, 1
%463 = sext i32 %462 to i64
%464 = getelementptr inbounds double, double* %460, i64 %463
%465 = load double, double* %464
%466 = load double*, double** %19
%467 = load i32, i32* %23
%468 = sub nsw i32 %467, 1
%469 = sext i32 %468 to i64
%470 = getelementptr inbounds double, double* %466, i64 %469
%471 = load double, double* %470
%472 = fsub double 1.000000e+00, %471
%473 = fmul double %465, %472
%474 = load double**, double*** %22
%475 = load i32, i32* %24
%476 = add nsw i32 %475, 3
%477 = sext i32 %476 to i64
%478 = getelementptr inbounds double*, double** %474, i64 %477
%479 = load double*, double** %478
%480 = load i32, i32* %26
%481 = add nsw i32 %480, 2
%482 = sext i32 %481 to i64
%483 = getelementptr inbounds double, double* %479, i64 %482
store double %473, double* %483
%484 = load double*, double** %16
%485 = load i32, i32* %23
%486 = sub nsw i32 %485, 1
%487 = sext i32 %486 to i64
%488 = getelementptr inbounds double, double* %484, i64 %487
%489 = load double, double* %488
%490 = load double*, double** %21
%491 = load i32, i32* %23
%492 = sub nsw i32 %491, 1
%493 = sext i32 %492 to i64
%494 = getelementptr inbounds double, double* %490, i64 %493
%495 = load double, double* %494
%496 = fmul double %489, %495
%497 = load double**, double*** %22
%498 = load i32, i32* %24
%499 = add nsw i32 %498, 3
%500 = sext i32 %499 to i64
%501 = getelementptr inbounds double*, double** %497, i64 %500
%502 = load double*, double** %501
%503 = load i32, i32* %26
%504 = add nsw i32 %503, 3
%505 = sext i32 %504 to i64
%506 = getelementptr inbounds double, double* %502, i64 %505
store double %496, double* %506
%507 = load i32, i32* %26
%508 = add nsw i32 %507, 4
store i32 %508, i32* %26
br label %509
509: ; preds = %318
%510 = load i32, i32* %23
%511 = add nsw i32 %510, 1
store i32 %511, i32* %23
br label %119
512: ; preds = %119
ret i32 0
}

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