#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
size_t Blocal_index(int, int, int, int, int, int, int, int, int, int const,
                    int const, int const, int const);
int /*<<< orphan*/ free(double *);
size_t index_2d(int, int, int const);
size_t index_4d(int, int, int, int, int const, int const, int const);
int /*<<< orphan*/ make_local_block(double *, double *, double const *,
                                    double const *, int const *, int const *,
                                    double const *, double const *,
                                    double const *, int const, int const,
                                    int const, int const, int const, int const,
                                    int const, int const);
double *malloc(int const);
void make_nucleon_2pt(
    double *C_re, double *C_im, const double *prop_re, const double *prop_im,
    const int *src_color_weights_r1, const int *src_spin_weights_r1,
    const double *src_weights_r1, const int *src_color_weights_r2,
    const int *src_spin_weights_r2, const double *src_weights_r2,
    const double *src_psi_re, const double *src_psi_im,
    const double *snk_psi_re, const double *snk_psi_im, const int Nc,
    const int Ns, const int Vsrc, const int Vsnk, const int Nt, const int Nw,
    const int Nq, const int Nsrc, const int Nsnk) {
  int n, m, t, x, iC, iS, jC, jS, kC, kS, wnum;
  double *Blocal_r1_re =
      malloc(Nt * Nc * Ns * Nc * Ns * Vsnk * Nc * Ns * Nsrc * sizeof(double));
  double *Blocal_r1_im =
      malloc(Nt * Nc * Ns * Nc * Ns * Vsnk * Nc * Ns * Nsrc * sizeof(double));
  double *Blocal_r2_re =
      malloc(Nt * Nc * Ns * Nc * Ns * Vsnk * Nc * Ns * Nsrc * sizeof(double));
  double *Blocal_r2_im =
      malloc(Nt * Nc * Ns * Nc * Ns * Vsnk * Nc * Ns * Nsrc * sizeof(double));
  make_local_block(Blocal_r1_re, Blocal_r1_im, prop_re, prop_im,
                   src_color_weights_r1, src_spin_weights_r1, src_weights_r1,
                   src_psi_re, src_psi_im, Nc, Ns, Vsrc, Vsnk, Nt, Nw, Nq,
                   Nsrc);
  make_local_block(Blocal_r2_re, Blocal_r2_im, prop_re, prop_im,
                   src_color_weights_r2, src_spin_weights_r2, src_weights_r2,
                   src_psi_re, src_psi_im, Nc, Ns, Vsrc, Vsnk, Nt, Nw, Nq,
                   Nsrc);
  for (wnum = 0; wnum < Nw; wnum++) {
    iC = src_color_weights_r1[index_2d(wnum, 0, Nq)];
    iS = src_spin_weights_r1[index_2d(wnum, 0, Nq)];
    jC = src_color_weights_r1[index_2d(wnum, 1, Nq)];
    jS = src_spin_weights_r1[index_2d(wnum, 1, Nq)];
    kC = src_color_weights_r1[index_2d(wnum, 2, Nq)];
    kS = src_spin_weights_r1[index_2d(wnum, 2, Nq)];
    for (m = 0; m < Nsrc; m++) {
      for (n = 0; n < Nsnk; n++) {
        for (t = 0; t < Nt; t++) {
          for (x = 0; x < Vsnk; x++) {
            C_re[index_4d(0, m, n, t, Nsrc, Nsnk, Nt)] +=
                src_weights_r1[wnum] *
                (snk_psi_re[index_2d(x, n, Nsnk)] *
                     Blocal_r1_re[Blocal_index(t, iC, iS, kC, kS, x, jC, jS, m,
                                               Nc, Ns, Vsnk, Nsrc)] -
                 snk_psi_im[index_2d(x, n, Nsnk)] *
                     Blocal_r1_im[Blocal_index(t, iC, iS, kC, kS, x, jC, jS, m,
                                               Nc, Ns, Vsnk, Nsrc)]);
            C_im[index_4d(0, m, n, t, Nsrc, Nsnk, Nt)] +=
                src_weights_r1[wnum] *
                (snk_psi_re[index_2d(x, n, Nsnk)] *
                     Blocal_r1_im[Blocal_index(t, iC, iS, kC, kS, x, jC, jS, m,
                                               Nc, Ns, Vsnk, Nsrc)] -
                 snk_psi_im[index_2d(x, n, Nsnk)] *
                     Blocal_r1_re[Blocal_index(t, iC, iS, kC, kS, x, jC, jS, m,
                                               Nc, Ns, Vsnk, Nsrc)]);
          }
        }
      }
    }
  }
  for (wnum = 0; wnum < Nw; wnum++) {
    iC = src_color_weights_r2[index_2d(wnum, 0, Nq)];
    iS = src_spin_weights_r2[index_2d(wnum, 0, Nq)];
    jC = src_color_weights_r2[index_2d(wnum, 1, Nq)];
    jS = src_spin_weights_r2[index_2d(wnum, 1, Nq)];
    kC = src_color_weights_r2[index_2d(wnum, 2, Nq)];
    kS = src_spin_weights_r2[index_2d(wnum, 2, Nq)];
    for (m = 0; m < Nsrc; m++) {
      for (n = 0; n < Nsnk; n++) {
        for (t = 0; t < Nt; t++) {
          for (x = 0; x < Vsnk; x++) {
            C_re[index_4d(1, m, n, t, Nsrc, Nsnk, Nt)] +=
                src_weights_r2[wnum] *
                (snk_psi_re[index_2d(x, n, Nsnk)] *
                     Blocal_r2_re[Blocal_index(t, iC, iS, kC, kS, x, jC, jS, m,
                                               Nc, Ns, Vsnk, Nsrc)] -
                 snk_psi_im[index_2d(x, n, Nsnk)] *
                     Blocal_r2_im[Blocal_index(t, iC, iS, kC, kS, x, jC, jS, m,
                                               Nc, Ns, Vsnk, Nsrc)]);
            C_im[index_4d(1, m, n, t, Nsrc, Nsnk, Nt)] +=
                src_weights_r2[wnum] *
                (snk_psi_re[index_2d(x, n, Nsnk)] *
                     Blocal_r2_im[Blocal_index(t, iC, iS, kC, kS, x, jC, jS, m,
                                               Nc, Ns, Vsnk, Nsrc)] -
                 snk_psi_im[index_2d(x, n, Nsnk)] *
                     Blocal_r2_re[Blocal_index(t, iC, iS, kC, kS, x, jC, jS, m,
                                               Nc, Ns, Vsnk, Nsrc)]);
          }
        }
      }
    }
  }
  free(Blocal_r1_re);
  free(Blocal_r1_im);
  free(Blocal_r2_re);
  free(Blocal_r2_im);
}


x86 assembly (clang, -O0):
<make_nucleon_2pt>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2b8,%rsp
mov    0x90(%rbp),%eax
mov    0x88(%rbp),%eax
mov    0x80(%rbp),%eax
mov    0x78(%rbp),%eax
mov    0x70(%rbp),%eax
mov    0x68(%rbp),%eax
mov    0x60(%rbp),%eax
mov    0x58(%rbp),%eax
mov    0x50(%rbp),%eax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %rcx,-0x48(%rbp)
mov    %r8,-0x50(%rbp)
mov    %r9,-0x58(%rbp)
mov    0x70(%rbp),%eax
imul   0x50(%rbp),%eax
imul   0x58(%rbp),%eax
imul   0x50(%rbp),%eax
imul   0x58(%rbp),%eax
imul   0x68(%rbp),%eax
imul   0x50(%rbp),%eax
imul   0x58(%rbp),%eax
imul   0x88(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x90(%rbp)
mov    0x70(%rbp),%eax
imul   0x50(%rbp),%eax
imul   0x58(%rbp),%eax
imul   0x50(%rbp),%eax
imul   0x58(%rbp),%eax
imul   0x68(%rbp),%eax
imul   0x50(%rbp),%eax
imul   0x58(%rbp),%eax
imul   0x88(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0x98(%rbp)
mov    0x70(%rbp),%eax
imul   0x50(%rbp),%eax
imul   0x58(%rbp),%eax
imul   0x50(%rbp),%eax
imul   0x58(%rbp),%eax
imul   0x68(%rbp),%eax
imul   0x50(%rbp),%eax
imul   0x58(%rbp),%eax
imul   0x88(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0xa0(%rbp)
mov    0x70(%rbp),%eax
imul   0x50(%rbp),%eax
imul   0x58(%rbp),%eax
imul   0x50(%rbp),%eax
imul   0x58(%rbp),%eax
imul   0x68(%rbp),%eax
imul   0x50(%rbp),%eax
imul   0x58(%rbp),%eax
imul   0x88(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1060 <malloc@plt>
mov    %rax,-0xa8(%rbp)
mov    -0x90(%rbp),%rdi
mov    -0x98(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x50(%rbp),%r8
mov    -0x58(%rbp),%r9
mov    0x10(%rbp),%rax
mov    %rax,-0xe8(%rbp)
mov    0x30(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    0x38(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    0x50(%rbp),%r13d
mov    0x58(%rbp),%r12d
mov    0x60(%rbp),%r15d
mov    0x68(%rbp),%r14d
mov    0x70(%rbp),%ebx
mov    0x78(%rbp),%r11d
mov    0x80(%rbp),%r10d
mov    0x88(%rbp),%eax
mov    %eax,-0xcc(%rbp)
mov    -0xe8(%rbp),%rax
mov    %rax,(%rsp)
mov    -0xe0(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0xd8(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0xcc(%rbp),%eax
mov    %r13d,0x18(%rsp)
mov    %r12d,0x20(%rsp)
mov    %r15d,0x28(%rsp)
mov    %r14d,0x30(%rsp)
mov    %ebx,0x38(%rsp)
mov    %r11d,0x40(%rsp)
mov    %r10d,0x48(%rsp)
mov    %eax,0x50(%rsp)
call   1040 <make_local_block@plt>
mov    -0xa0(%rbp),%rdi
mov    -0xa8(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    0x18(%rbp),%r8
mov    0x20(%rbp),%r9
mov    0x28(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    0x30(%rbp),%rax
mov    %rax,-0xc0(%rbp)
mov    0x38(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    0x50(%rbp),%r13d
mov    0x58(%rbp),%r12d
mov    0x60(%rbp),%r15d
mov    0x68(%rbp),%r14d
mov    0x70(%rbp),%ebx
mov    0x78(%rbp),%r11d
mov    0x80(%rbp),%r10d
mov    0x88(%rbp),%eax
mov    %eax,-0xac(%rbp)
mov    -0xc8(%rbp),%rax
mov    %rax,(%rsp)
mov    -0xc0(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0xb8(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0xac(%rbp),%eax
mov    %r13d,0x18(%rsp)
mov    %r12d,0x20(%rsp)
mov    %r15d,0x28(%rsp)
mov    %r14d,0x30(%rsp)
mov    %ebx,0x38(%rsp)
mov    %r11d,0x40(%rsp)
mov    %r10d,0x48(%rsp)
mov    %eax,0x50(%rsp)
call   1040 <make_local_block@plt>
movl   $0x0,-0x84(%rbp)
mov    -0x84(%rbp),%eax
cmp    0x78(%rbp),%eax
jge    1a29 <make_nucleon_2pt+0x8c9>
mov    -0x50(%rbp),%rax
mov    %rax,-0x118(%rbp)
mov    -0x84(%rbp),%edi
mov    0x80(%rbp),%edx
xor    %esi,%esi
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x118(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x110(%rbp)
mov    -0x84(%rbp),%edi
mov    0x80(%rbp),%edx
xor    %esi,%esi
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x110(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x70(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x108(%rbp)
mov    -0x84(%rbp),%edi
mov    0x80(%rbp),%edx
mov    $0x1,%esi
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x108(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x74(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x100(%rbp)
mov    -0x84(%rbp),%edi
mov    0x80(%rbp),%edx
mov    $0x1,%esi
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x100(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x78(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0xf8(%rbp)
mov    -0x84(%rbp),%edi
mov    0x80(%rbp),%edx
mov    $0x2,%esi
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0xf8(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0xf0(%rbp)
mov    -0x84(%rbp),%edi
mov    0x80(%rbp),%edx
mov    $0x2,%esi
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0xf0(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x80(%rbp)
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    0x88(%rbp),%eax
jge    1a10 <make_nucleon_2pt+0x8b0>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    0x90(%rbp),%eax
jge    19fd <make_nucleon_2pt+0x89d>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    0x70(%rbp),%eax
jge    19ea <make_nucleon_2pt+0x88a>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    0x68(%rbp),%eax
jge    19d7 <make_nucleon_2pt+0x877>
mov    0x10(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x180(%rbp)
ff
mov    0x40(%rbp),%rax
mov    %rax,-0x1b8(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    0x90(%rbp),%edx
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x1b8(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x198(%rbp)
ff
mov    -0x90(%rbp),%rax
mov    %rax,-0x1b0(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x6c(%rbp),%esi
mov    -0x70(%rbp),%edx
mov    -0x7c(%rbp),%ecx
mov    -0x80(%rbp),%r8d
mov    -0x68(%rbp),%r9d
mov    -0x74(%rbp),%r12d
mov    -0x78(%rbp),%r15d
mov    -0x60(%rbp),%r14d
mov    0x50(%rbp),%ebx
mov    0x58(%rbp),%r11d
mov    0x68(%rbp),%r10d
mov    0x88(%rbp),%eax
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1070 <Blocal_index@plt>
mov    %rax,%rcx
mov    -0x1b0(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x190(%rbp)
ff
mov    0x48(%rbp),%rax
mov    %rax,-0x1a8(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    0x90(%rbp),%edx
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x1a8(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x1a0(%rbp)
ff
mov    -0x98(%rbp),%rax
mov    %rax,-0x188(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x6c(%rbp),%esi
mov    -0x70(%rbp),%edx
mov    -0x7c(%rbp),%ecx
mov    -0x80(%rbp),%r8d
mov    -0x68(%rbp),%r9d
mov    -0x74(%rbp),%r12d
mov    -0x78(%rbp),%r15d
mov    -0x60(%rbp),%r14d
mov    0x50(%rbp),%ebx
mov    0x58(%rbp),%r11d
mov    0x68(%rbp),%r10d
mov    0x88(%rbp),%eax
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1070 <Blocal_index@plt>
movsd  -0x1a0(%rbp),%xmm1
ff
movsd  -0x198(%rbp),%xmm0
ff
movsd  -0x190(%rbp),%xmm2
ff
mov    %rax,%rcx
mov    -0x188(%rbp),%rax
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x178(%rbp)
ff
mov    -0x30(%rbp),%rax
mov    %rax,-0x170(%rbp)
mov    -0x60(%rbp),%esi
mov    -0x5c(%rbp),%edx
mov    -0x64(%rbp),%ecx
mov    0x88(%rbp),%r8d
mov    0x90(%rbp),%r9d
mov    0x70(%rbp),%eax
xor    %edi,%edi
mov    %eax,(%rsp)
call   1050 <index_4d@plt>
movsd  -0x180(%rbp),%xmm0
ff
movsd  -0x178(%rbp),%xmm2
ff
mov    %rax,%rcx
mov    -0x170(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x10(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
mov    0x40(%rbp),%rax
mov    %rax,-0x168(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    0x90(%rbp),%edx
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x168(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
mov    -0x98(%rbp),%rax
mov    %rax,-0x160(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x6c(%rbp),%esi
mov    -0x70(%rbp),%edx
mov    -0x7c(%rbp),%ecx
mov    -0x80(%rbp),%r8d
mov    -0x68(%rbp),%r9d
mov    -0x74(%rbp),%r12d
mov    -0x78(%rbp),%r15d
mov    -0x60(%rbp),%r14d
mov    0x50(%rbp),%ebx
mov    0x58(%rbp),%r11d
mov    0x68(%rbp),%r10d
mov    0x88(%rbp),%eax
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1070 <Blocal_index@plt>
mov    %rax,%rcx
mov    -0x160(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
mov    0x48(%rbp),%rax
mov    %rax,-0x158(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    0x90(%rbp),%edx
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x158(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x150(%rbp)
ff
mov    -0x90(%rbp),%rax
mov    %rax,-0x138(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x6c(%rbp),%esi
mov    -0x70(%rbp),%edx
mov    -0x7c(%rbp),%ecx
mov    -0x80(%rbp),%r8d
mov    -0x68(%rbp),%r9d
mov    -0x74(%rbp),%r12d
mov    -0x78(%rbp),%r15d
mov    -0x60(%rbp),%r14d
mov    0x50(%rbp),%ebx
mov    0x58(%rbp),%r11d
mov    0x68(%rbp),%r10d
mov    0x88(%rbp),%eax
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1070 <Blocal_index@plt>
movsd  -0x150(%rbp),%xmm1
ff
movsd  -0x148(%rbp),%xmm0
ff
movsd  -0x140(%rbp),%xmm2
ff
mov    %rax,%rcx
mov    -0x138(%rbp),%rax
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
mov    -0x38(%rbp),%rax
mov    %rax,-0x120(%rbp)
mov    -0x60(%rbp),%esi
mov    -0x5c(%rbp),%edx
mov    -0x64(%rbp),%ecx
mov    0x88(%rbp),%r8d
mov    0x90(%rbp),%r9d
mov    0x70(%rbp),%eax
xor    %edi,%edi
mov    %eax,(%rsp)
call   1050 <index_4d@plt>
movsd  -0x130(%rbp),%xmm0
ff
movsd  -0x128(%rbp),%xmm2
ff
mov    %rax,%rcx
mov    -0x120(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    15b1 <make_nucleon_2pt+0x451>
jmp    19dc <make_nucleon_2pt+0x87c>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    159e <make_nucleon_2pt+0x43e>
jmp    19ef <make_nucleon_2pt+0x88f>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1588 <make_nucleon_2pt+0x428>
jmp    1a02 <make_nucleon_2pt+0x8a2>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1572 <make_nucleon_2pt+0x412>
jmp    1a15 <make_nucleon_2pt+0x8b5>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    143c <make_nucleon_2pt+0x2dc>
movl   $0x0,-0x84(%rbp)
mov    -0x84(%rbp),%eax
cmp    0x78(%rbp),%eax
jge    2026 <make_nucleon_2pt+0xec6>
mov    0x18(%rbp),%rax
mov    %rax,-0x1e8(%rbp)
mov    -0x84(%rbp),%edi
mov    0x80(%rbp),%edx
xor    %esi,%esi
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x1e8(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x6c(%rbp)
mov    0x20(%rbp),%rax
mov    %rax,-0x1e0(%rbp)
mov    -0x84(%rbp),%edi
mov    0x80(%rbp),%edx
xor    %esi,%esi
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x1e0(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x70(%rbp)
mov    0x18(%rbp),%rax
mov    %rax,-0x1d8(%rbp)
mov    -0x84(%rbp),%edi
mov    0x80(%rbp),%edx
mov    $0x1,%esi
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x1d8(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x74(%rbp)
mov    0x20(%rbp),%rax
mov    %rax,-0x1d0(%rbp)
mov    -0x84(%rbp),%edi
mov    0x80(%rbp),%edx
mov    $0x1,%esi
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x1d0(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x78(%rbp)
mov    0x18(%rbp),%rax
mov    %rax,-0x1c8(%rbp)
mov    -0x84(%rbp),%edi
mov    0x80(%rbp),%edx
mov    $0x2,%esi
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x1c8(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x7c(%rbp)
mov    0x20(%rbp),%rax
mov    %rax,-0x1c0(%rbp)
mov    -0x84(%rbp),%edi
mov    0x80(%rbp),%edx
mov    $0x2,%esi
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x1c0(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x80(%rbp)
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    0x88(%rbp),%eax
jge    200d <make_nucleon_2pt+0xead>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    0x90(%rbp),%eax
jge    1ffa <make_nucleon_2pt+0xe9a>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    0x70(%rbp),%eax
jge    1fe7 <make_nucleon_2pt+0xe87>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    0x68(%rbp),%eax
jge    1fd4 <make_nucleon_2pt+0xe74>
mov    0x28(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x250(%rbp)
ff
mov    0x40(%rbp),%rax
mov    %rax,-0x288(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    0x90(%rbp),%edx
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x288(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x268(%rbp)
ff
mov    -0xa0(%rbp),%rax
mov    %rax,-0x280(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x6c(%rbp),%esi
mov    -0x70(%rbp),%edx
mov    -0x7c(%rbp),%ecx
mov    -0x80(%rbp),%r8d
mov    -0x68(%rbp),%r9d
mov    -0x74(%rbp),%r12d
mov    -0x78(%rbp),%r15d
mov    -0x60(%rbp),%r14d
mov    0x50(%rbp),%ebx
mov    0x58(%rbp),%r11d
mov    0x68(%rbp),%r10d
mov    0x88(%rbp),%eax
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1070 <Blocal_index@plt>
mov    %rax,%rcx
mov    -0x280(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x260(%rbp)
ff
mov    0x48(%rbp),%rax
mov    %rax,-0x278(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    0x90(%rbp),%edx
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x278(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x270(%rbp)
ff
mov    -0xa8(%rbp),%rax
mov    %rax,-0x258(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x6c(%rbp),%esi
mov    -0x70(%rbp),%edx
mov    -0x7c(%rbp),%ecx
mov    -0x80(%rbp),%r8d
mov    -0x68(%rbp),%r9d
mov    -0x74(%rbp),%r12d
mov    -0x78(%rbp),%r15d
mov    -0x60(%rbp),%r14d
mov    0x50(%rbp),%ebx
mov    0x58(%rbp),%r11d
mov    0x68(%rbp),%r10d
mov    0x88(%rbp),%eax
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1070 <Blocal_index@plt>
movsd  -0x270(%rbp),%xmm1
ff
movsd  -0x268(%rbp),%xmm0
ff
movsd  -0x260(%rbp),%xmm2
ff
mov    %rax,%rcx
mov    -0x258(%rbp),%rax
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x248(%rbp)
ff
mov    -0x30(%rbp),%rax
mov    %rax,-0x240(%rbp)
mov    -0x60(%rbp),%esi
mov    -0x5c(%rbp),%edx
mov    -0x64(%rbp),%ecx
mov    0x88(%rbp),%r8d
mov    0x90(%rbp),%r9d
mov    0x70(%rbp),%eax
mov    $0x1,%edi
mov    %eax,(%rsp)
call   1050 <index_4d@plt>
movsd  -0x250(%rbp),%xmm0
ff
movsd  -0x248(%rbp),%xmm2
ff
mov    %rax,%rcx
mov    -0x240(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x28(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x200(%rbp)
ff
mov    0x40(%rbp),%rax
mov    %rax,-0x238(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    0x90(%rbp),%edx
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x238(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x218(%rbp)
ff
mov    -0xa8(%rbp),%rax
mov    %rax,-0x230(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x6c(%rbp),%esi
mov    -0x70(%rbp),%edx
mov    -0x7c(%rbp),%ecx
mov    -0x80(%rbp),%r8d
mov    -0x68(%rbp),%r9d
mov    -0x74(%rbp),%r12d
mov    -0x78(%rbp),%r15d
mov    -0x60(%rbp),%r14d
mov    0x50(%rbp),%ebx
mov    0x58(%rbp),%r11d
mov    0x68(%rbp),%r10d
mov    0x88(%rbp),%eax
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1070 <Blocal_index@plt>
mov    %rax,%rcx
mov    -0x230(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x210(%rbp)
ff
mov    0x48(%rbp),%rax
mov    %rax,-0x228(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x5c(%rbp),%esi
mov    0x90(%rbp),%edx
call   1080 <index_2d@plt>
mov    %rax,%rcx
mov    -0x228(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x220(%rbp)
ff
mov    -0xa0(%rbp),%rax
mov    %rax,-0x208(%rbp)
mov    -0x64(%rbp),%edi
mov    -0x6c(%rbp),%esi
mov    -0x70(%rbp),%edx
mov    -0x7c(%rbp),%ecx
mov    -0x80(%rbp),%r8d
mov    -0x68(%rbp),%r9d
mov    -0x74(%rbp),%r12d
mov    -0x78(%rbp),%r15d
mov    -0x60(%rbp),%r14d
mov    0x50(%rbp),%ebx
mov    0x58(%rbp),%r11d
mov    0x68(%rbp),%r10d
mov    0x88(%rbp),%eax
mov    %r12d,(%rsp)
mov    %r15d,0x8(%rsp)
mov    %r14d,0x10(%rsp)
mov    %ebx,0x18(%rsp)
mov    %r11d,0x20(%rsp)
mov    %r10d,0x28(%rsp)
mov    %eax,0x30(%rsp)
call   1070 <Blocal_index@plt>
movsd  -0x220(%rbp),%xmm1
ff
movsd  -0x218(%rbp),%xmm0
ff
movsd  -0x210(%rbp),%xmm2
ff
mov    %rax,%rcx
mov    -0x208(%rbp),%rax
mulsd  (%rax,%rcx,8),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x1f8(%rbp)
ff
mov    -0x38(%rbp),%rax
mov    %rax,-0x1f0(%rbp)
mov    -0x60(%rbp),%esi
mov    -0x5c(%rbp),%edx
mov    -0x64(%rbp),%ecx
mov    0x88(%rbp),%r8d
mov    0x90(%rbp),%r9d
mov    0x70(%rbp),%eax
mov    $0x1,%edi
mov    %eax,(%rsp)
call   1050 <index_4d@plt>
movsd  -0x200(%rbp),%xmm0
ff
movsd  -0x1f8(%rbp),%xmm2
ff
mov    %rax,%rcx
mov    -0x1f0(%rbp),%rax
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    1ba8 <make_nucleon_2pt+0xa48>
jmp    1fd9 <make_nucleon_2pt+0xe79>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1b95 <make_nucleon_2pt+0xa35>
jmp    1fec <make_nucleon_2pt+0xe8c>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1b7f <make_nucleon_2pt+0xa1f>
jmp    1fff <make_nucleon_2pt+0xe9f>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1b69 <make_nucleon_2pt+0xa09>
jmp    2012 <make_nucleon_2pt+0xeb2>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1a33 <make_nucleon_2pt+0x8d3>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
mov    -0x98(%rbp),%rdi
call   1030 <free@plt>
mov    -0xa0(%rbp),%rdi
call   1030 <free@plt>
mov    -0xa8(%rbp),%rdi
call   1030 <free@plt>
add    $0x2b8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_nucleon_2pt>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
mov    %r9,0xa8(%rsp)
mov    %r8,0xb0(%rsp)
mov    %rcx,0x10(%rsp)
mov    %rdx,%r14
mov    %rsi,0x110(%rsp)
mov    %rdi,0x108(%rsp)
mov    0x1d0(%rsp),%eax
mov    %eax,0x4(%rsp)
mov    0x1c8(%rsp),%ebp
mov    0x1c0(%rsp),%eax
mov    %rax,0x98(%rsp)
mov    0x1b0(%rsp),%esi
mov    %rsi,0x70(%rsp)
mov    0x1a8(%rsp),%edx
mov    %rdx,0x28(%rsp)
mov    0x198(%rsp),%eax
mov    %rax,0x58(%rsp)
mov    0x190(%rsp),%ecx
mov    %rcx,0x48(%rsp)
imul   %ecx,%eax
mov    %eax,%ecx
imul   %eax,%ecx
imul   %edx,%eax
imul   %ecx,%eax
mov    %esi,%ebx
imul   %ebp,%ebx
imul   %eax,%ebx
mov    0x1b8(%rsp),%eax
mov    %rax,0xf8(%rsp)
shl    $0x3,%ebx
mov    0x188(%rsp),%rax
mov    %rax,0xd8(%rsp)
mov    0x180(%rsp),%rax
mov    %rax,0xd0(%rsp)
mov    0x168(%rsp),%rax
mov    %rax,0xc8(%rsp)
mov    0x160(%rsp),%rax
mov    %rax,0x90(%rsp)
mov    0x158(%rsp),%rax
mov    %rax,0xa0(%rsp)
mov    0x150(%rsp),%rax
mov    %rax,0x50(%rsp)
mov    0x170(%rsp),%rax
mov    %rax,0x18(%rsp)
mov    0x178(%rsp),%rax
mov    %rax,0x8(%rsp)
mov    0x1a0(%rsp),%r13d
mov    %r13,0x20(%rsp)
mov    %ebx,%edi
call   1060 <malloc@plt>
mov    %rax,%r12
mov    %ebx,%edi
call   1060 <malloc@plt>
mov    %rax,%r15
mov    %ebx,%edi
call   1060 <malloc@plt>
mov    %rax,0xc0(%rsp)
mov    %ebx,%edi
mov    %rbp,%rbx
call   1060 <malloc@plt>
mov    %rax,0xb8(%rsp)
sub    $0x8,%rsp
mov    %r12,0xf8(%rsp)
mov    %r12,%rdi
mov    %r15,0xf0(%rsp)
mov    %r15,%rsi
mov    %r14,%rdx
mov    0x18(%rsp),%rcx
mov    0xb8(%rsp),%r8
mov    0xb0(%rsp),%r9
push   %rbx
push   0xa8(%rsp)
mov    0x110(%rsp),%r12
push   %r12
mov    0x90(%rsp),%r15
push   %r15
mov    0x50(%rsp),%rbp
push   %rbp
push   %r13
push   0x90(%rsp)
mov    0x88(%rsp),%r13
push   %r13
push   0x50(%rsp)
push   0x68(%rsp)
push   0xa8(%rsp)
call   1040 <make_local_block@plt>
add    $0x58,%rsp
mov    0xc8(%rsp),%rdi
mov    0xc0(%rsp),%rsi
mov    %r14,%rdx
mov    0x18(%rsp),%rcx
mov    0xc(%rsp),%r14d
mov    0xa8(%rsp),%r8
mov    0x98(%rsp),%r9
push   %rbx
push   0xa8(%rsp)
push   %r12
push   %r15
push   %rbp
push   0x50(%rsp)
mov    0x90(%rsp),%rax
push   %rax
push   %r13
push   0x50(%rsp)
push   0x68(%rsp)
push   0x120(%rsp)
call   1040 <make_local_block@plt>
mov    %r12,%rax
add    $0x60,%rsp
test   %eax,%eax
jle    1cd0 <make_nucleon_2pt+0xb70>
mov    %eax,%eax
mov    %rax,0x100(%rsp)
xor    %r13d,%r13d
mov    %rbx,0x88(%rsp)
jmp    13e7 <make_nucleon_2pt+0x287>
nopl   (%rax)
mov    0x40(%rsp),%r13
add    $0x1,%r13
cmp    0x100(%rsp),%r13
je     1846 <make_nucleon_2pt+0x6e6>
mov    %r13d,%edi
xor    %esi,%esi
mov    0x98(%rsp),%r12
mov    %r12d,%edx
call   1080 <index_2d@plt>
mov    0xb0(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x3c(%rsp)
mov    %r13d,%edi
xor    %esi,%esi
mov    %r12d,%edx
call   1080 <index_2d@plt>
mov    0xa8(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x38(%rsp)
mov    %r13d,%edi
mov    $0x1,%esi
mov    %r12d,%edx
call   1080 <index_2d@plt>
mov    0xb0(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %rax,0x20(%rsp)
mov    %r13d,%edi
mov    $0x1,%esi
mov    %r12d,%edx
call   1080 <index_2d@plt>
mov    0xa8(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %rax,0x68(%rsp)
mov    %r13d,%edi
mov    $0x2,%esi
mov    %r12d,%edx
call   1080 <index_2d@plt>
mov    0xb0(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x34(%rsp)
mov    %r13,0x40(%rsp)
mov    %r13d,%edi
mov    $0x2,%esi
mov    %r12d,%edx
call   1080 <index_2d@plt>
test   %ebx,%ebx
jle    13d0 <make_nucleon_2pt+0x270>
mov    0xa8(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x78(%rsp)
xor    %eax,%eax
jmp    14db <make_nucleon_2pt+0x37b>
cs nopw 0x0(%rax,%rax,1)
mov    0x80(%rsp),%rax
add    $0x1,%eax
mov    0x88(%rsp),%rbx
cmp    %ebx,%eax
je     13d0 <make_nucleon_2pt+0x270>
mov    %rax,0x80(%rsp)
test   %r14d,%r14d
jle    14c0 <make_nucleon_2pt+0x360>
xor    %eax,%eax
jmp    1501 <make_nucleon_2pt+0x3a1>
nopl   0x0(%rax)
mov    0x10(%rsp),%eax
add    $0x1,%eax
mov    0x4(%rsp),%r14d
cmp    %r14d,%eax
je     14c0 <make_nucleon_2pt+0x360>
mov    %eax,0x10(%rsp)
test   %r15d,%r15d
jle    14f0 <make_nucleon_2pt+0x390>
xor    %r12d,%r12d
jmp    151e <make_nucleon_2pt+0x3be>
nop
add    $0x1,%r12d
mov    0x70(%rsp),%r15
cmp    %r15d,%r12d
je     14f0 <make_nucleon_2pt+0x390>
test   %ebp,%ebp
mov    0x50(%rsp),%rdx
mov    0x40(%rsp),%rsi
mov    0x10(%rsp),%ebx
jle    1510 <make_nucleon_2pt+0x3b0>
xor    %r14d,%r14d
mov    %r12d,0x18(%rsp)
nopl   0x0(%rax,%rax,1)
movsd  (%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x60(%rsp)
mov    %r14d,%edi
mov    %ebx,%esi
mov    0x4(%rsp),%edx
call   1080 <index_2d@plt>
mov    0xd0(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rsp)
sub    $0x8,%rsp
mov    %r12d,%edi
mov    0x44(%rsp),%r13d
mov    %r13d,%esi
mov    0x40(%rsp),%r15d
mov    %r15d,%edx
mov    0x3c(%rsp),%ebp
mov    %ebp,%ecx
mov    0x80(%rsp),%r12d
mov    %r12d,%r8d
mov    %r14d,%r9d
push   0x90(%rsp)
push   0x38(%rsp)
mov    0x70(%rsp),%rbx
push   %rbx
push   0x68(%rsp)
push   0xa8(%rsp)
mov    0x98(%rsp),%rax
push   %rax
mov    0x58(%rsp),%rax
push   %rax
call   1070 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xf0(%rsp),%rcx
movsd  0x8(%rsp),%xmm0
mulsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r14d,%edi
mov    0x10(%rsp),%esi
mov    0x4(%rsp),%edx
call   1080 <index_2d@plt>
mov    0xd8(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0xe0(%rsp)
sub    $0x8,%rsp
mov    0x20(%rsp),%edi
mov    %r13d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
mov    %r12d,%r8d
mov    %r12d,%r15d
mov    %r14d,%r9d
mov    0x90(%rsp),%rbp
push   %rbp
push   0x38(%rsp)
push   %rbx
push   0x68(%rsp)
mov    0xa8(%rsp),%rbx
push   %rbx
push   0x98(%rsp)
push   0x58(%rsp)
call   1070 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xe8(%rsp),%rcx
movsd  0xe0(%rsp),%xmm1
mulsd  (%rcx,%rax,8),%xmm1
movsd  0x8(%rsp),%xmm0
subsd  %xmm1,%xmm0
mulsd  0x60(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
sub    $0x8,%rsp
xor    %edi,%edi
mov    %ebx,%esi
mov    0x18(%rsp),%edx
mov    0x20(%rsp),%ecx
mov    %ebp,%r8d
mov    0xc(%rsp),%r9d
push   0x78(%rsp)
call   1050 <index_4d@plt>
add    $0x10,%rsp
mov    0x108(%rsp),%rcx
movsd  0x8(%rsp),%xmm0
addsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,(%rcx,%rax,8)
mov    0x50(%rsp),%rax
mov    0x40(%rsp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,0x60(%rsp)
mov    %r14d,%edi
mov    0x10(%rsp),%esi
mov    0x4(%rsp),%edx
call   1080 <index_2d@plt>
mov    0xd0(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rsp)
sub    $0x8,%rsp
mov    0x20(%rsp),%edi
mov    %r13d,%esi
mov    0x40(%rsp),%r13d
mov    %r13d,%edx
mov    0x3c(%rsp),%r12d
mov    %r12d,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
push   %rbp
push   0x38(%rsp)
push   0x70(%rsp)
push   0x68(%rsp)
push   %rbx
mov    0x98(%rsp),%r15
push   %r15
push   0x58(%rsp)
call   1070 <Blocal_index@plt>
add    $0x40,%rsp
movsd  0x8(%rsp),%xmm0
mov    0xe8(%rsp),%rcx
mulsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r14d,%edi
mov    0x10(%rsp),%esi
mov    0x4(%rsp),%edx
call   1080 <index_2d@plt>
mov    0xd8(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0xe0(%rsp)
sub    $0x8,%rsp
mov    0x20(%rsp),%edi
mov    0x44(%rsp),%esi
mov    %r13d,%edx
mov    %r12d,%ecx
mov    0x80(%rsp),%r8d
mov    %r14d,%r9d
push   %rbp
push   0x38(%rsp)
push   0x70(%rsp)
mov    0x68(%rsp),%r13
push   %r13
push   %rbx
push   %r15
push   0x58(%rsp)
call   1070 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xf0(%rsp),%rcx
movsd  0xe0(%rsp),%xmm1
mulsd  (%rcx,%rax,8),%xmm1
movsd  0x8(%rsp),%xmm0
subsd  %xmm1,%xmm0
mulsd  0x60(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
sub    $0x8,%rsp
xor    %edi,%edi
mov    %ebx,%esi
mov    0x18(%rsp),%ebx
mov    %ebx,%edx
mov    0x20(%rsp),%ecx
mov    %ebp,%r8d
mov    0x20(%rsp),%r12d
mov    0xc(%rsp),%r9d
push   0x78(%rsp)
call   1050 <index_4d@plt>
mov    0x50(%rsp),%rsi
mov    0x60(%rsp),%rdx
mov    0x120(%rsp),%rcx
mov    0x38(%rsp),%rbp
add    $0x10,%rsp
movsd  0x8(%rsp),%xmm0
addsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%r14d
cmp    %r14d,%ebp
jne    1540 <make_nucleon_2pt+0x3e0>
jmp    1510 <make_nucleon_2pt+0x3b0>
cmpl   $0x0,0xf8(%rsp)
jle    1cd0 <make_nucleon_2pt+0xb70>
xor    %r13d,%r13d
jmp    1877 <make_nucleon_2pt+0x717>
nopl   0x0(%rax)
mov    0x40(%rsp),%r13
add    $0x1,%r13
cmp    0x100(%rsp),%r13
je     1cd0 <make_nucleon_2pt+0xb70>
mov    %r13d,%edi
xor    %esi,%esi
mov    0x98(%rsp),%r12
mov    %r12d,%edx
call   1080 <index_2d@plt>
mov    0xa0(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x80(%rsp)
mov    %r13d,%edi
xor    %esi,%esi
mov    %r12d,%edx
call   1080 <index_2d@plt>
mov    0x90(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x3c(%rsp)
mov    %r13d,%edi
mov    $0x1,%esi
mov    %r12d,%edx
call   1080 <index_2d@plt>
mov    0xa0(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %rax,0x20(%rsp)
mov    %r13d,%edi
mov    $0x1,%esi
mov    %r12d,%edx
call   1080 <index_2d@plt>
mov    0x90(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %rax,0x68(%rsp)
mov    %r13d,%edi
mov    $0x2,%esi
mov    %r12d,%edx
call   1080 <index_2d@plt>
mov    0xa0(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x38(%rsp)
mov    %r13,0x40(%rsp)
mov    %r13d,%edi
mov    $0x2,%esi
mov    %r12d,%edx
call   1080 <index_2d@plt>
test   %ebx,%ebx
jle    1860 <make_nucleon_2pt+0x700>
mov    0x90(%rsp),%rcx
mov    (%rcx,%rax,4),%eax
mov    %eax,0x34(%rsp)
xor    %eax,%eax
jmp    1968 <make_nucleon_2pt+0x808>
nopl   0x0(%rax)
mov    0x50(%rsp),%rax
add    $0x1,%eax
mov    0x88(%rsp),%rbx
cmp    %ebx,%eax
je     1860 <make_nucleon_2pt+0x700>
mov    %rax,0x50(%rsp)
test   %r14d,%r14d
jle    1950 <make_nucleon_2pt+0x7f0>
xor    %eax,%eax
jmp    1991 <make_nucleon_2pt+0x831>
cs nopw 0x0(%rax,%rax,1)
mov    0x10(%rsp),%eax
add    $0x1,%eax
mov    0x4(%rsp),%r14d
cmp    %r14d,%eax
je     1950 <make_nucleon_2pt+0x7f0>
mov    %eax,0x10(%rsp)
test   %r15d,%r15d
jle    1980 <make_nucleon_2pt+0x820>
xor    %r12d,%r12d
jmp    19ae <make_nucleon_2pt+0x84e>
nop
add    $0x1,%r12d
mov    0x70(%rsp),%r15
cmp    %r15d,%r12d
je     1980 <make_nucleon_2pt+0x820>
test   %ebp,%ebp
mov    0xc8(%rsp),%rdx
mov    0x40(%rsp),%rsi
mov    0x10(%rsp),%ebx
jle    19a0 <make_nucleon_2pt+0x840>
xor    %r14d,%r14d
mov    %r12d,0x18(%rsp)
nopl   0x0(%rax,%rax,1)
movsd  (%rdx,%rsi,8),%xmm0
movsd  %xmm0,0x78(%rsp)
mov    %r14d,%edi
mov    %ebx,%esi
mov    0x4(%rsp),%edx
call   1080 <index_2d@plt>
mov    0xd0(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rsp)
sub    $0x8,%rsp
mov    %r12d,%edi
mov    0x88(%rsp),%r13d
mov    %r13d,%esi
mov    0x44(%rsp),%r15d
mov    %r15d,%edx
mov    0x40(%rsp),%ebp
mov    %ebp,%ecx
mov    0x3c(%rsp),%r12d
mov    %r12d,%r8d
mov    %r14d,%r9d
push   0x90(%rsp)
push   0x38(%rsp)
mov    0x70(%rsp),%rbx
push   %rbx
push   0x68(%rsp)
push   0x78(%rsp)
mov    0x98(%rsp),%rax
push   %rax
mov    0x58(%rsp),%rax
push   %rax
call   1070 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xc0(%rsp),%rcx
movsd  0x8(%rsp),%xmm0
mulsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r14d,%edi
mov    0x10(%rsp),%esi
mov    0x4(%rsp),%edx
call   1080 <index_2d@plt>
mov    0xd8(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x60(%rsp)
sub    $0x8,%rsp
mov    0x20(%rsp),%edi
mov    %r13d,%esi
mov    %r15d,%edx
mov    %ebp,%ecx
mov    %r12d,%r8d
mov    %r12d,%r15d
mov    %r14d,%r9d
mov    0x90(%rsp),%rbp
push   %rbp
push   0x38(%rsp)
push   %rbx
push   0x68(%rsp)
mov    0x78(%rsp),%rbx
push   %rbx
push   0x98(%rsp)
push   0x58(%rsp)
call   1070 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xb8(%rsp),%rcx
movsd  0x60(%rsp),%xmm1
mulsd  (%rcx,%rax,8),%xmm1
movsd  0x8(%rsp),%xmm0
subsd  %xmm1,%xmm0
mulsd  0x78(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
sub    $0x8,%rsp
mov    $0x1,%edi
mov    %ebx,%esi
mov    0x18(%rsp),%edx
mov    0x20(%rsp),%ecx
mov    %ebp,%r8d
mov    0xc(%rsp),%r9d
push   0x78(%rsp)
call   1050 <index_4d@plt>
add    $0x10,%rsp
mov    0x108(%rsp),%rcx
movsd  0x8(%rsp),%xmm0
addsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,(%rcx,%rax,8)
mov    0xc8(%rsp),%rax
mov    0x40(%rsp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,0x78(%rsp)
mov    %r14d,%edi
mov    0x10(%rsp),%esi
mov    0x4(%rsp),%edx
call   1080 <index_2d@plt>
mov    0xd0(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rsp)
sub    $0x8,%rsp
mov    0x20(%rsp),%edi
mov    %r13d,%esi
mov    0x44(%rsp),%r13d
mov    %r13d,%edx
mov    0x40(%rsp),%r12d
mov    %r12d,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
push   %rbp
push   0x38(%rsp)
push   0x70(%rsp)
push   0x68(%rsp)
push   %rbx
mov    0x98(%rsp),%r15
push   %r15
push   0x58(%rsp)
call   1070 <Blocal_index@plt>
add    $0x40,%rsp
movsd  0x8(%rsp),%xmm0
mov    0xb8(%rsp),%rcx
mulsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r14d,%edi
mov    0x10(%rsp),%esi
mov    0x4(%rsp),%edx
call   1080 <index_2d@plt>
mov    0xd8(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x60(%rsp)
sub    $0x8,%rsp
mov    0x20(%rsp),%edi
mov    0x88(%rsp),%esi
mov    %r13d,%edx
mov    %r12d,%ecx
mov    0x3c(%rsp),%r8d
mov    %r14d,%r9d
push   %rbp
push   0x38(%rsp)
push   0x70(%rsp)
mov    0x68(%rsp),%r13
push   %r13
push   %rbx
push   %r15
push   0x58(%rsp)
call   1070 <Blocal_index@plt>
add    $0x40,%rsp
mov    0xc0(%rsp),%rcx
movsd  0x60(%rsp),%xmm1
mulsd  (%rcx,%rax,8),%xmm1
movsd  0x8(%rsp),%xmm0
subsd  %xmm1,%xmm0
mulsd  0x78(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
sub    $0x8,%rsp
mov    $0x1,%edi
mov    %ebx,%esi
mov    0x18(%rsp),%ebx
mov    %ebx,%edx
mov    0x20(%rsp),%ecx
mov    %ebp,%r8d
mov    0x20(%rsp),%r12d
mov    0xc(%rsp),%r9d
push   0x78(%rsp)
call   1050 <index_4d@plt>
mov    0x50(%rsp),%rsi
mov    0xd8(%rsp),%rdx
mov    0x120(%rsp),%rcx
mov    0x38(%rsp),%rbp
add    $0x10,%rsp
movsd  0x8(%rsp),%xmm0
addsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,(%rcx,%rax,8)
add    $0x1,%r14d
cmp    %r14d,%ebp
jne    19d0 <make_nucleon_2pt+0x870>
jmp    19a0 <make_nucleon_2pt+0x840>
mov    0xf0(%rsp),%rdi
call   1030 <free@plt>
mov    0xe8(%rsp),%rdi
call   1030 <free@plt>
mov    0xc0(%rsp),%rdi
call   1030 <free@plt>
mov    0xb8(%rsp),%rdi
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

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

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