void SetUp2(npatch, loop, coeff, place, size) int npatch, loop[][2];
double coeff[][8192], place[][8192], size[][8192];
{
  int i, j, k, m, n, iface, ipatch, jface, jpatch;
  double r[2][2], r2[2][2], s[2][2], tmp2, tmp3, tmp4, tmp5, tmp6, tmp7, tmp8;
  for (iface = 0; iface < 6; iface++) {
    for (m = 0; m < 2; m++) {
      jface = (iface + m + 1) % 6;
      for (ipatch = loop[iface][0]; ipatch <= loop[iface][1]; ipatch++) {
        for (jpatch = loop[jface][0]; jpatch <= loop[jface][1]; jpatch++) {
          r[0][0] = place[m][jpatch] - place[1 - m][ipatch];
          r[1][0] = r[0][0] + size[m][jpatch];
          r[0][1] = r[0][0] - size[1 - m][ipatch];
          r[1][1] = r[1][0] - size[1 - m][ipatch];
          s[0][0] = place[m][ipatch] - place[2][jpatch];
          s[1][0] = s[0][0] + size[m][ipatch];
          s[0][1] = place[1 - m][jpatch] - place[2][ipatch];
          s[1][1] = s[0][1] + size[1 - m][jpatch];
          for (i = 0; i < 2; i++) {
            for (j = 0; j < 2; j++) {
              s[i][j] = s[i][j] * s[i][j];
              r2[i][j] = r[i][j] * r[i][j];
            }
            s[i][1] = s[i][1] + 1e-35;
          }
          tmp2 = 0.0;
          for (i = 0; i < 2; i++) {
            for (j = 0; j < 2; j++) {
              tmp3 = s[i][0] + s[j][1];
              tmp4 = sqrt(tmp3);
              tmp5 = 1.0 / tmp4;
              tmp8 = 0.0;
              for (k = 0; k < 2; k++) {
                for (n = 0; n < 2; n++) {
                  tmp6 = r2[k][n];
                  tmp7 = r[k][n];
                  tmp2 = (tmp3 - tmp6) * log(tmp6 + tmp3) - tmp2;
                  tmp8 = -tmp7 * atan(tmp7 * tmp5) - tmp8;
                }
                tmp2 = -tmp2;
                tmp8 = -tmp8;
              }
              tmp2 = -4.0 * tmp4 * tmp8 - tmp2;
            }
            tmp2 = -tmp2;
          }
          tmp2 = fabs(tmp2);
          coeff[ipatch][jpatch] = tmp2;
          coeff[jpatch][ipatch] = tmp2;
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<SetUp2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
movl   $0x0,-0x40(%rbp)
cmpl   $0x6,-0x40(%rbp)
jge    17bc <SetUp2+0x68c>
movl   $0x0,-0x38(%rbp)
cmpl   $0x2,-0x38(%rbp)
jge    17a9 <SetUp2+0x679>
mov    -0x40(%rbp),%eax
add    -0x38(%rbp),%eax
add    $0x1,%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
mov    %edx,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    -0x10(%rbp),%rcx
movslq -0x40(%rbp),%rdx
cmp    0x4(%rcx,%rdx,8),%eax
jg     1796 <SetUp2+0x666>
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    -0x10(%rbp),%rcx
movslq -0x48(%rbp),%rdx
cmp    0x4(%rcx,%rdx,8),%eax
jg     1783 <SetUp2+0x653>
mov    -0x20(%rbp),%rax
movslq -0x38(%rbp),%rcx
shl    $0x10,%rcx
add    %rcx,%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    $0x1,%ecx
sub    -0x38(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x10,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
shl    $0x10,%rcx
add    %rcx,%rax
movslq -0x4c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x70(%rbp),%xmm0
mov    -0x28(%rbp),%rax
mov    $0x1,%ecx
sub    -0x38(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x10,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
mov    -0x28(%rbp),%rax
mov    $0x1,%ecx
sub    -0x38(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x10,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x38(%rbp),%rcx
shl    $0x10,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x4c(%rbp),%rcx
subsd  0x20000(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
mov    -0x28(%rbp),%rax
movslq -0x38(%rbp),%rcx
shl    $0x10,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x20(%rbp),%rax
mov    $0x1,%ecx
sub    -0x38(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x10,%rcx
add    %rcx,%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
subsd  0x20000(%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x28(%rbp),%rax
mov    $0x1,%ecx
sub    -0x38(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x10,%rcx
add    %rcx,%rax
movslq -0x4c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movl   $0x0,-0x2c(%rbp)
cmpl   $0x2,-0x2c(%rbp)
jge    144a <SetUp2+0x31a>
movl   $0x0,-0x30(%rbp)
cmpl   $0x2,-0x30(%rbp)
jge    1406 <SetUp2+0x2d6>
movslq -0x2c(%rbp),%rcx
lea    -0xb0(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x2c(%rbp),%rcx
lea    -0xb0(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movslq -0x2c(%rbp),%rcx
lea    -0xb0(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movslq -0x2c(%rbp),%rcx
lea    -0x70(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x2c(%rbp),%rcx
lea    -0x70(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movslq -0x2c(%rbp),%rcx
lea    -0x90(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1352 <SetUp2+0x222>
movslq -0x2c(%rbp),%rcx
lea    -0xb0(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movsd  0xc00(%rip),%xmm0
addsd  0x8(%rax),%xmm0
movslq -0x2c(%rbp),%rcx
lea    -0xb0(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movsd  %xmm0,0x8(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1341 <SetUp2+0x211>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movl   $0x0,-0x2c(%rbp)
cmpl   $0x2,-0x2c(%rbp)
jge    171a <SetUp2+0x5ea>
movl   $0x0,-0x30(%rbp)
cmpl   $0x2,-0x30(%rbp)
jge    16e5 <SetUp2+0x5b5>
movslq -0x2c(%rbp),%rcx
lea    -0xb0(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movsd  (%rax),%xmm0
movslq -0x30(%rbp),%rcx
lea    -0xb0(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
addsd  0x8(%rax),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
call   1050 <sqrt@plt>
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  0xb47(%rip),%xmm0
divsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movl   $0x0,-0x34(%rbp)
cmpl   $0x2,-0x34(%rbp)
jge    1690 <SetUp2+0x560>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x2,-0x3c(%rbp)
jge    1634 <SetUp2+0x504>
movslq -0x34(%rbp),%rcx
lea    -0x90(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movslq -0x34(%rbp),%rcx
lea    -0x70(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
subsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
addsd  -0xc0(%rbp),%xmm0
ff
call   1040 <log@plt>
movaps %xmm0,%xmm2
movsd  -0xf8(%rbp),%xmm0
ff
movsd  -0xb8(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xe0(%rbp),%xmm0
ff
mulsd  -0xd0(%rbp),%xmm0
ff
call   1030 <atan@plt>
movaps %xmm0,%xmm2
movsd  -0xf0(%rbp),%xmm0
ff
movsd  -0xe8(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    14fc <SetUp2+0x3cc>
movsd  -0xb8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xe8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    14eb <SetUp2+0x3bb>
movsd  0x980(%rip),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  -0xe8(%rbp),%xmm2
ff
movsd  -0xb8(%rbp),%xmm1
ff
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    146d <SetUp2+0x33d>
movsd  -0xb8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    145c <SetUp2+0x32c>
movsd  -0xb8(%rbp),%xmm0
ff
movaps 0x8d7(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movslq -0x44(%rbp),%rcx
shl    $0x10,%rcx
add    %rcx,%rax
movslq -0x4c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb8(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movslq -0x4c(%rbp),%rcx
shl    $0x10,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    11b5 <SetUp2+0x85>
jmp    1788 <SetUp2+0x658>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1192 <SetUp2+0x62>
jmp    179b <SetUp2+0x66b>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1166 <SetUp2+0x36>
jmp    17ae <SetUp2+0x67e>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1155 <SetUp2+0x25>
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SetUp2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x198,%rsp
mov    %r8,0x70(%rsp)
mov    %rcx,%rbx
mov    %rdx,0x88(%rsp)
mov    %rsi,%r15
xor    %r8d,%r8d
jmp    1172 <SetUp2+0x42>
nopl   0x0(%rax)
mov    0x58(%rsp),%rax
mov    %rax,%r8
cmp    $0x6,%rax
je     1860 <SetUp2+0x730>
lea    0x1(%r8),%rax
mov    %rax,0x58(%rsp)
mov    0x4(%r15,%r8,8),%eax
mov    $0x1,%cl
xor    %edx,%edx
mov    %rdx,0x48(%rsp)
mov    %r8,0x78(%rsp)
jmp    11a6 <SetUp2+0x76>
mov    $0x1,%ecx
mov    %rcx,0x48(%rsp)
testb  $0x1,0x54(%rsp)
mov    $0x0,%ecx
je     1160 <SetUp2+0x30>
movslq (%r15,%r8,8),%rbp
cmp    %eax,%ebp
mov    %ecx,0x54(%rsp)
jg     1190 <SetUp2+0x60>
mov    0x58(%rsp),%rcx
mov    0x48(%rsp),%r9
lea    (%rcx,%r9,1),%rdi
mov    %edi,%ecx
mov    $0xaaaaaaab,%edx
imul   %rdx,%rcx
shr    $0x22,%rcx
add    %ecx,%ecx
lea    (%rcx,%rcx,2),%ecx
sub    %ecx,%edi
xor    $0x1,%r9
mov    %r9,0x80(%rsp)
mov    %rdi,0x60(%rsp)
mov    0x4(%r15,%rdi,8),%ecx
jmp    1209 <SetUp2+0xd9>
xchg   %ax,%ax
mov    0x78(%rsp),%r8
mov    0x4(%r15,%r8,8),%eax
lea    0x1(%rbp),%rdx
movslq %eax,%rdi
cmp    %rdi,%rbp
mov    %rdx,%rbp
jge    1190 <SetUp2+0x60>
mov    0x60(%rsp),%rdx
movslq (%r15,%rdx,8),%r14
cmp    %ecx,%r14d
jg     11fa <SetUp2+0xca>
mov    0x80(%rsp),%rcx
shl    $0x10,%rcx
lea    (%rbx,%rcx,1),%rax
mov    %rax,0xc0(%rsp)
lea    (%rax,%rbp,8),%rax
mov    %rax,0xb8(%rsp)
mov    0x70(%rsp),%rax
add    %rax,%rcx
mov    %rcx,0xc8(%rsp)
lea    (%rcx,%rbp,8),%rcx
mov    %rcx,0xb0(%rsp)
mov    0x48(%rsp),%rcx
shl    $0x10,%rcx
lea    (%rbx,%rcx,1),%rdx
mov    %rdx,0xa0(%rsp)
lea    (%rdx,%rbp,8),%rdx
mov    %rdx,0x98(%rsp)
add    %rax,%rcx
mov    %rcx,0xa8(%rsp)
lea    (%rcx,%rbp,8),%rax
mov    %rax,0x90(%rsp)
jmp    12e9 <SetUp2+0x1b9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
andpd  0xd88(%rip),%xmm1
mov    %rbp,%rax
shl    $0x10,%rax
mov    0x88(%rsp),%rcx
add    %rcx,%rax
movlpd %xmm1,(%rax,%r14,8)
mov    %r14,%rax
shl    $0x10,%rax
add    %rcx,%rax
movlpd %xmm1,(%rax,%rbp,8)
lea    0x1(%r14),%rax
mov    0x60(%rsp),%rcx
movslq 0x4(%r15,%rcx,8),%rcx
cmp    %rcx,%r14
mov    %rax,%r14
jge    11f0 <SetUp2+0xc0>
mov    0xa0(%rsp),%rax
movsd  (%rax,%r14,8),%xmm1
mov    0xb8(%rsp),%rax
subsd  (%rax),%xmm1
mov    0xa8(%rsp),%rax
movsd  (%rax,%r14,8),%xmm2
addsd  %xmm1,%xmm2
mov    0xb0(%rsp),%rax
movsd  (%rax),%xmm0
movapd %xmm1,%xmm3
subsd  %xmm0,%xmm3
movapd %xmm2,%xmm4
subsd  %xmm0,%xmm4
mov    0x98(%rsp),%rax
movsd  (%rax),%xmm7
subsd  0x20000(%rbx,%r14,8),%xmm7
mov    0x90(%rsp),%rax
movsd  (%rax),%xmm0
mov    0xc0(%rsp),%rax
movsd  (%rax,%r14,8),%xmm5
subsd  0x20000(%rbx,%rbp,8),%xmm5
addsd  %xmm7,%xmm0
mov    0xc8(%rsp),%rax
movsd  (%rax,%r14,8),%xmm6
addsd  %xmm5,%xmm6
mulsd  %xmm7,%xmm7
movsd  %xmm1,0x40(%rsp)
mulsd  %xmm1,%xmm1
movsd  %xmm1,0x68(%rsp)
mulsd  %xmm5,%xmm5
movapd %xmm3,%xmm1
mulsd  %xmm3,%xmm1
movapd %xmm1,0x130(%rsp)
movsd  0xc4f(%rip),%xmm1
addsd  %xmm1,%xmm5
movsd  %xmm5,0xd8(%rsp)
mulsd  %xmm0,%xmm0
movsd  %xmm0,0x180(%rsp)
movapd %xmm2,%xmm0
mulsd  %xmm2,%xmm0
movapd %xmm0,0x120(%rsp)
mulsd  %xmm6,%xmm6
movapd %xmm4,%xmm0
mulsd  %xmm4,%xmm0
movapd %xmm0,0x110(%rsp)
addsd  %xmm1,%xmm6
movsd  %xmm6,0xd0(%rsp)
movapd %xmm3,0x150(%rsp)
movapd 0xc11(%rip),%xmm0
xorpd  %xmm0,%xmm3
movapd %xmm3,0x100(%rsp)
movapd %xmm2,0x160(%rsp)
xorpd  %xmm0,%xmm2
movapd %xmm2,0xf0(%rsp)
movapd %xmm4,0x140(%rsp)
xorpd  %xmm0,%xmm4
movapd %xmm4,0xe0(%rsp)
xorpd  %xmm1,%xmm1
mov    $0x1,%r12d
mov    $0x1,%r13b
cs nopw 0x0(%rax,%rax,1)
nop
movapd %xmm7,%xmm0
addsd  0xd8(%rsp),%xmm0
ucomisd 0xba3(%rip),%xmm0
movsd  %xmm7,0x20(%rsp)
movapd %xmm1,0x30(%rsp)
movsd  %xmm0,0x10(%rsp)
jb     14a0 <SetUp2+0x370>
xorps  %xmm1,%xmm1
sqrtsd %xmm0,%xmm1
jmp    14a9 <SetUp2+0x379>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
call   1050 <sqrt@plt>
movapd %xmm0,%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0xb51(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
movapd %xmm0,%xmm2
movsd  0x68(%rsp),%xmm1
subsd  %xmm1,%xmm2
movsd  %xmm2,(%rsp)
addsd  %xmm1,%xmm0
call   1040 <log@plt>
mulsd  (%rsp),%xmm0
subsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0x40(%rsp),%xmm0
call   1030 <atan@plt>
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
movapd %xmm0,%xmm2
movapd 0x130(%rsp),%xmm1
subsd  %xmm1,%xmm2
movsd  %xmm2,0x28(%rsp)
addsd  %xmm1,%xmm0
call   1040 <log@plt>
mulsd  0x28(%rsp),%xmm0
subsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0x150(%rsp),%xmm0
call   1030 <atan@plt>
movsd  (%rsp),%xmm1
mulsd  0x40(%rsp),%xmm1
mulsd  0x100(%rsp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm0
movapd %xmm0,%xmm2
movapd 0x120(%rsp),%xmm1
subsd  %xmm1,%xmm2
movsd  %xmm2,0x28(%rsp)
addsd  %xmm1,%xmm0
call   1040 <log@plt>
mulsd  0x28(%rsp),%xmm0
addsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0x160(%rsp),%xmm0
call   1030 <atan@plt>
mulsd  0xf0(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm1
movapd %xmm1,%xmm2
movapd 0x110(%rsp),%xmm0
subsd  %xmm0,%xmm2
movsd  %xmm2,0x28(%rsp)
addsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1040 <log@plt>
mulsd  0x28(%rsp),%xmm0
subsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0x140(%rsp),%xmm0
call   1030 <atan@plt>
mulsd  0xe0(%rsp),%xmm0
subsd  (%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  0x9d2(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x10(%rsp),%xmm1
movsd  %xmm1,0x18(%rsp)
movsd  0x20(%rsp),%xmm2
addsd  0xd0(%rsp),%xmm2
ucomisd 0x9b3(%rip),%xmm2
movsd  %xmm2,0x20(%rsp)
jb     1680 <SetUp2+0x550>
xorps  %xmm1,%xmm1
sqrtsd %xmm2,%xmm1
jmp    1693 <SetUp2+0x563>
cs nopw 0x0(%rax,%rax,1)
movapd %xmm2,%xmm0
call   1050 <sqrt@plt>
movsd  0x20(%rsp),%xmm2
movapd %xmm0,%xmm1
movapd %xmm1,0x30(%rsp)
movsd  0x967(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rsp)
movapd %xmm2,%xmm0
movsd  0x68(%rsp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
addsd  %xmm1,%xmm2
movapd %xmm2,%xmm0
call   1040 <log@plt>
mulsd  0x8(%rsp),%xmm0
subsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0x40(%rsp),%xmm0
call   1030 <atan@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
movapd %xmm0,%xmm2
movapd 0x130(%rsp),%xmm1
subsd  %xmm1,%xmm2
movsd  %xmm2,(%rsp)
addsd  %xmm1,%xmm0
call   1040 <log@plt>
mulsd  (%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0x150(%rsp),%xmm0
call   1030 <atan@plt>
movsd  0x18(%rsp),%xmm1
mulsd  0x40(%rsp),%xmm1
mulsd  0x100(%rsp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
movapd %xmm0,%xmm2
movapd 0x120(%rsp),%xmm1
subsd  %xmm1,%xmm2
movsd  %xmm2,(%rsp)
addsd  %xmm1,%xmm0
call   1040 <log@plt>
mulsd  (%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0x160(%rsp),%xmm0
call   1030 <atan@plt>
mulsd  0xf0(%rsp),%xmm0
addsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm1
movapd %xmm1,%xmm2
movapd 0x110(%rsp),%xmm0
subsd  %xmm0,%xmm2
movsd  %xmm2,(%rsp)
addsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
call   1040 <log@plt>
mulsd  (%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0x140(%rsp),%xmm0
call   1030 <atan@plt>
movapd 0x30(%rsp),%xmm1
mulsd  0xe0(%rsp),%xmm0
subsd  0x18(%rsp),%xmm0
mulsd  0x7e8(%rip),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x20(%rsp),%xmm1
xorpd  0x7e6(%rip),%xmm1
test   $0x1,%r13b
je     12a0 <SetUp2+0x170>
shl    $0x4,%r12
movsd  0x170(%rsp,%r12,1),%xmm7
mov    $0x2,%r12d
xor    %r13d,%r13d
jmp    1460 <SetUp2+0x330>
add    $0x198,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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