void VAMPIREdiag2D(double *diag, const double *yc, const double *m,
                   const double *Jac, const double *dT, const double *Tc,
                   const double *h) {
  int idn, i1, i2, r, comp, id;
  double yA[2], yB[2], yC[2], yD[2], yM[2];
  double dTi[2], Jaci, Ti;
  double rA[2], rB[2], rC[2], rD[2];
  const int m1 = m[0], m2 = m[1];
  const int nn = (m1 + 1) * (m2 + 1);
  const int n = (m1) * (m2);
  const double hd = h[0] * h[1];
  const int inc_x = 1;
  const int inc_y = m1 + 1;
  const double *ptr;
  double *wptr;
#pragma omp parallel private(wptr, ptr, idn, i1, i2, r, comp, dTi, Jaci, Ti,   \
                             yA, yB, yC, yD, yM, rA, rB, rC, rD)
  {
#pragma omp for
    for (i1 = 0; i1 < m1; i1++) {
      for (i2 = 0; i2 < m2; i2++) {
        idn = i1 + i2 * (m1 + 1);
        id = i1 + i2 * (m1);
        comp = 0;
        Ti = Tc[id];
        dTi[0] = dT[id];
        dTi[1] = dT[id + n];
        Jaci = Jac[id];
        for (r = 0; r < 2; r++) {
          ptr = yc + idn + comp;
          yA[r] = *ptr;
          ptr = ptr + inc_x;
          yB[r] = *ptr;
          ptr = ptr + inc_y;
          yD[r] = *ptr;
          ptr = ptr - inc_x;
          yC[r] = *ptr;
          yM[r] = 0.25 * (yA[r] + yB[r] + yC[r] + yD[r]);
          rA[r] = Jaci * 0.25 * dTi[r];
          rB[r] = Jaci * 0.25 * dTi[r];
          rC[r] = Jaci * 0.25 * dTi[r];
          rD[r] = Jaci * 0.25 * dTi[r];
          comp += nn;
        }
        VAMPIREdiagTriangle(yA, yB, yM, rA, rB, rD, rC, Ti / hd);
        VAMPIREdiagTriangle(yB, yD, yM, rB, rD, rC, rA, Ti / hd);
        VAMPIREdiagTriangle(yD, yC, yM, rD, rC, rA, rB, Ti / hd);
        VAMPIREdiagTriangle(yC, yA, yM, rC, rA, rB, rD, Ti / hd);
        comp = 0;
        for (r = 0; r < 2; r++) {
          wptr = diag + idn + comp;
#pragma omp atomic
          *wptr += hd * rA[r] * rA[r];
          wptr += inc_x;
#pragma omp atomic
          *wptr += hd * rB[r] * rB[r];
          wptr += inc_y;
#pragma omp atomic
          *wptr += hd * rD[r] * rD[r];
          wptr -= inc_x;
#pragma omp atomic
          *wptr += hd * rC[r] * rC[r];
          comp += nn;
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<VAMPIREdiag2D>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x18(%rbp),%rax
cvttsd2si (%rax),%eax
mov    %eax,-0x104(%rbp)
mov    -0x18(%rbp),%rax
cvttsd2si 0x8(%rax),%eax
mov    %eax,-0x108(%rbp)
mov    -0x104(%rbp),%eax
add    $0x1,%eax
mov    -0x108(%rbp),%ecx
add    $0x1,%ecx
imul   %ecx,%eax
mov    %eax,-0x10c(%rbp)
mov    -0x104(%rbp),%eax
imul   -0x108(%rbp),%eax
mov    %eax,-0x110(%rbp)
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x10(%rbp),%rax
mulsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movl   $0x1,-0x11c(%rbp)
mov    -0x104(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x120(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x104(%rbp),%eax
jge    16f8 <VAMPIREdiag2D+0x5e8>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x108(%rbp),%eax
jge    16e5 <VAMPIREdiag2D+0x5d5>
mov    -0x38(%rbp),%eax
mov    -0x3c(%rbp),%ecx
mov    -0x104(%rbp),%edx
add    $0x1,%edx
imul   %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%eax
mov    -0x3c(%rbp),%ecx
imul   -0x104(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x48(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x28(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    -0x28(%rbp),%rax
mov    -0x48(%rbp),%ecx
add    -0x110(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x20(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movl   $0x0,-0x40(%rbp)
cmpl   $0x2,-0x40(%rbp)
jge    143b <VAMPIREdiag2D+0x32b>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x128(%rbp)
mov    -0x128(%rbp),%rax
movsd  (%rax),%xmm0
movslq -0x40(%rbp),%rax
movsd  %xmm0,-0x60(%rbp,%rax,8)
mov    -0x128(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x128(%rbp)
mov    -0x128(%rbp),%rax
movsd  (%rax),%xmm0
movslq -0x40(%rbp),%rax
movsd  %xmm0,-0x70(%rbp,%rax,8)
mov    -0x128(%rbp),%rax
movslq -0x120(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x128(%rbp)
mov    -0x128(%rbp),%rax
movsd  (%rax),%xmm0
movslq -0x40(%rbp),%rax
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
mov    -0x128(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x128(%rbp)
mov    -0x128(%rbp),%rax
movsd  (%rax),%xmm0
movslq -0x40(%rbp),%rax
movsd  %xmm0,-0x80(%rbp,%rax,8)
movslq -0x40(%rbp),%rax
movsd  -0x60(%rbp,%rax,8),%xmm1
movslq -0x40(%rbp),%rax
addsd  -0x70(%rbp,%rax,8),%xmm1
movslq -0x40(%rbp),%rax
addsd  -0x80(%rbp,%rax,8),%xmm1
movslq -0x40(%rbp),%rax
addsd  -0x90(%rbp,%rax,8),%xmm1
ff ff
movsd  0xc98(%rip),%xmm0
mulsd  %xmm1,%xmm0
movslq -0x40(%rbp),%rax
movsd  %xmm0,-0xa0(%rbp,%rax,8)
ff ff
movsd  0xc7f(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movslq -0x40(%rbp),%rax
mulsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x40(%rbp),%rax
movsd  %xmm0,-0xd0(%rbp,%rax,8)
ff ff
movsd  0xc55(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movslq -0x40(%rbp),%rax
mulsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x40(%rbp),%rax
movsd  %xmm0,-0xe0(%rbp,%rax,8)
ff ff
movsd  0xc2b(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movslq -0x40(%rbp),%rax
mulsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x40(%rbp),%rax
movsd  %xmm0,-0xf0(%rbp,%rax,8)
ff ff
movsd  0xc01(%rip),%xmm0
mulsd  -0xb8(%rbp),%xmm0
ff
movslq -0x40(%rbp),%rax
mulsd  -0xb0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x40(%rbp),%rax
movsd  %xmm0,-0x100(%rbp,%rax,8)
ff ff
mov    -0x10c(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1273 <VAMPIREdiag2D+0x163>
lea    -0x60(%rbp),%rdi
lea    -0x70(%rbp),%rsi
lea    -0xa0(%rbp),%rdx
lea    -0xd0(%rbp),%rcx
lea    -0xe0(%rbp),%r8
lea    -0x100(%rbp),%r9
lea    -0xf0(%rbp),%rax
movsd  -0xc0(%rbp),%xmm0
ff
divsd  -0x118(%rbp),%xmm0
ff
mov    %rax,(%rsp)
mov    $0x1,%al
call   1030 <VAMPIREdiagTriangle@plt>
lea    -0x70(%rbp),%rdi
lea    -0x90(%rbp),%rsi
lea    -0xa0(%rbp),%rdx
lea    -0xe0(%rbp),%rcx
lea    -0x100(%rbp),%r8
lea    -0xf0(%rbp),%r9
lea    -0xd0(%rbp),%rax
movsd  -0xc0(%rbp),%xmm0
ff
divsd  -0x118(%rbp),%xmm0
ff
mov    %rax,(%rsp)
mov    $0x1,%al
call   1030 <VAMPIREdiagTriangle@plt>
lea    -0x90(%rbp),%rdi
lea    -0x80(%rbp),%rsi
lea    -0xa0(%rbp),%rdx
lea    -0x100(%rbp),%rcx
lea    -0xf0(%rbp),%r8
lea    -0xd0(%rbp),%r9
lea    -0xe0(%rbp),%rax
movsd  -0xc0(%rbp),%xmm0
ff
divsd  -0x118(%rbp),%xmm0
ff
mov    %rax,(%rsp)
mov    $0x1,%al
call   1030 <VAMPIREdiagTriangle@plt>
lea    -0x80(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0xa0(%rbp),%rdx
lea    -0xf0(%rbp),%rcx
lea    -0xd0(%rbp),%r8
lea    -0xe0(%rbp),%r9
lea    -0x100(%rbp),%rax
movsd  -0xc0(%rbp),%xmm0
ff
divsd  -0x118(%rbp),%xmm0
ff
mov    %rax,(%rsp)
mov    $0x1,%al
call   1030 <VAMPIREdiagTriangle@plt>
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x40(%rbp)
cmpl   $0x2,-0x40(%rbp)
jge    16d2 <VAMPIREdiag2D+0x5c2>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x44(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x130(%rbp)
movsd  -0x118(%rbp),%xmm0
ff
movslq -0x40(%rbp),%rax
mulsd  -0xd0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x40(%rbp),%rax
movsd  -0xd0(%rbp,%rax,8),%xmm2
ff ff
mov    -0x130(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x130(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x130(%rbp)
movsd  -0x118(%rbp),%xmm0
ff
movslq -0x40(%rbp),%rax
mulsd  -0xe0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x40(%rbp),%rax
movsd  -0xe0(%rbp,%rax,8),%xmm2
ff ff
mov    -0x130(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x120(%rbp),%ecx
mov    -0x130(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x130(%rbp)
movsd  -0x118(%rbp),%xmm0
ff
movslq -0x40(%rbp),%rax
mulsd  -0x100(%rbp,%rax,8),%xmm0
ff ff
movslq -0x40(%rbp),%rax
movsd  -0x100(%rbp,%rax,8),%xmm2
ff ff
mov    -0x130(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x130(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x130(%rbp)
movsd  -0x118(%rbp),%xmm0
ff
movslq -0x40(%rbp),%rax
mulsd  -0xf0(%rbp,%rax,8),%xmm0
ff ff
movslq -0x40(%rbp),%rax
movsd  -0xf0(%rbp,%rax,8),%xmm2
ff ff
mov    -0x130(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x10c(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1567 <VAMPIREdiag2D+0x457>
jmp    16d7 <VAMPIREdiag2D+0x5c7>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11d1 <VAMPIREdiag2D+0xc1>
jmp    16ea <VAMPIREdiag2D+0x5da>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11bb <VAMPIREdiag2D+0xab>
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<VAMPIREdiag2D>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1c8,%rsp
mov    %r9,0xf8(%rsp)
mov    %r8,0x18(%rsp)
mov    %rcx,0xf0(%rsp)
mov    %rdi,0x10(%rsp)
cvttsd2si (%rdx),%eax
test   %eax,%eax
jle    169c <VAMPIREdiag2D+0x58c>
mov    0x200(%rsp),%rcx
cvttsd2si 0x8(%rdx),%ebp
lea    0x1(%rax),%edx
movsd  (%rcx),%xmm9
mulsd  0x8(%rcx),%xmm9
mov    %ebp,%ecx
imul   %eax,%ecx
lea    0x1(%rbp),%edi
imul   %edx,%edi
mov    %edx,%edx
movslq %edi,%r8
mov    %eax,%edi
movslq %ecx,%rax
mov    %rbp,0x108(%rsp)
mov    %ebp,%ecx
mov    %rcx,0xe8(%rsp)
movapd %xmm9,%xmm3
unpcklpd %xmm9,%xmm3
mov    %rdi,0x100(%rsp)
lea    0x0(,%rdi,8),%rcx
mov    %rcx,0x120(%rsp)
mov    0x18(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
mov    %rax,0xe0(%rsp)
lea    0x8(%rsi),%rax
mov    %rax,0xd8(%rsp)
lea    0x0(,%rdx,8),%rbp
lea    0x8(%rsi,%rdx,8),%rax
mov    %rax,0xd0(%rsp)
lea    (%r8,%rdx,1),%rax
lea    0x8(%rsi,%rax,8),%rcx
mov    %rcx,0xc8(%rsp)
lea    0x8(%rsi,%r8,8),%rcx
mov    %rcx,0xc0(%rsp)
mov    0x10(%rsp),%rcx
lea    (%rcx,%rdx,8),%rdx
mov    %rdx,0xb8(%rsp)
lea    (%rcx,%r8,8),%rdx
mov    %rdx,0xb0(%rsp)
lea    (%rcx,%rax,8),%rax
mov    %rax,0xa8(%rsp)
xor    %r15d,%r15d
movsd  0xdd1(%rip),%xmm1
movapd 0xdd8(%rip),%xmm10
xor    %eax,%eax
movapd %xmm9,0x1a0(%rsp)
movapd %xmm3,0x190(%rsp)
mov    %rbp,0x118(%rsp)
jmp    127e <VAMPIREdiag2D+0x16e>
nopw   0x0(%rax,%rax,1)
mov    0x110(%rsp),%rax
add    $0x1,%rax
add    $0x8,%r15
cmp    0x100(%rsp),%rax
je     169c <VAMPIREdiag2D+0x58c>
mov    %rax,0x110(%rsp)
cmpl   $0x0,0x108(%rsp)
jle    1260 <VAMPIREdiag2D+0x150>
mov    0xe8(%rsp),%r10
mov    0xa8(%rsp),%rcx
mov    0xb0(%rsp),%rdx
mov    0xb8(%rsp),%rsi
mov    0x10(%rsp),%r11
mov    0xc0(%rsp),%rax
mov    0xc8(%rsp),%r8
mov    0xd0(%rsp),%rbx
mov    0xd8(%rsp),%r14
mov    0xe0(%rsp),%r13
mov    0xf0(%rsp),%r12
mov    0x18(%rsp),%r9
mov    0xf8(%rsp),%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rax,0x160(%rsp)
mov    %r11,0x168(%rsp)
mov    %rsi,0x170(%rsp)
mov    %rdx,0x178(%rsp)
mov    %rcx,0x180(%rsp)
mov    %r10,0x188(%rsp)
mov    %rdi,0x150(%rsp)
movsd  (%rdi,%r15,1),%xmm11
mov    %r12,0x158(%rsp)
movsd  (%r12,%r15,1),%xmm0
mulsd  %xmm1,%xmm0
mov    %r14,0x148(%rsp)
movsd  -0x8(%r14,%r15,1),%xmm1
mov    %r9,0x138(%rsp)
movsd  (%r9,%r15,1),%xmm2
mulsd  %xmm0,%xmm2
mov    %r13,0x140(%rsp)
mulsd  0x0(%r13,%r15,1),%xmm0
movsd  %xmm1,0x90(%rsp)
movsd  (%r14,%r15,1),%xmm3
movsd  %xmm3,0x80(%rsp)
mov    %rbx,0x130(%rsp)
movsd  (%rbx,%r15,1),%xmm4
movsd  %xmm4,0x60(%rsp)
movsd  -0x8(%rbx,%r15,1),%xmm5
movsd  %xmm5,0x70(%rsp)
movsd  %xmm2,0x50(%rsp)
movsd  %xmm2,0x40(%rsp)
movsd  %xmm2,0x30(%rsp)
movsd  %xmm2,0x20(%rsp)
movsd  -0x8(%rax,%r15,1),%xmm2
movsd  %xmm2,0x98(%rsp)
movsd  (%rax,%r15,1),%xmm6
movsd  %xmm6,0x88(%rsp)
mov    %r8,0x128(%rsp)
movsd  (%r8,%r15,1),%xmm8
movsd  %xmm8,0x68(%rsp)
movsd  -0x8(%r8,%r15,1),%xmm7
movsd  %xmm7,0x78(%rsp)
unpcklpd %xmm2,%xmm1
unpcklpd %xmm6,%xmm3
addpd  %xmm1,%xmm3
unpcklpd %xmm7,%xmm5
addpd  %xmm3,%xmm5
unpcklpd %xmm8,%xmm4
addpd  %xmm5,%xmm4
mulpd  %xmm10,%xmm4
movapd %xmm4,0x1b0(%rsp)
movsd  %xmm0,0x58(%rsp)
movsd  %xmm0,0x48(%rsp)
movsd  %xmm0,0x38(%rsp)
movsd  %xmm0,0x28(%rsp)
movapd %xmm11,%xmm0
divsd  %xmm9,%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0x30(%rsp),%r12
mov    %r12,(%rsp)
lea    0x90(%rsp),%rdi
lea    0x80(%rsp),%rsi
lea    0x1b0(%rsp),%r14
mov    %r14,%rdx
lea    0x50(%rsp),%r13
mov    %r13,%rcx
lea    0x40(%rsp),%rbp
mov    %rbp,%r8
lea    0x20(%rsp),%r9
mov    $0x1,%al
mov    %r9,%rbx
call   1030 <VAMPIREdiagTriangle@plt>
mov    %r13,(%rsp)
lea    0x80(%rsp),%rdi
lea    0x60(%rsp),%rsi
mov    %r14,%rdx
mov    %rbp,%rcx
mov    %rbx,%r8
mov    %r12,%r9
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1030 <VAMPIREdiagTriangle@plt>
mov    %rbp,(%rsp)
lea    0x60(%rsp),%rdi
lea    0x70(%rsp),%rsi
mov    %r14,%rdx
mov    %rbx,%rcx
mov    %r12,%r8
mov    %r13,%r9
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1030 <VAMPIREdiagTriangle@plt>
mov    %rbx,(%rsp)
lea    0x70(%rsp),%rdi
lea    0x90(%rsp),%rsi
mov    %r14,%rdx
mov    %r12,%rcx
mov    %r13,%r8
mov    %rbp,%r9
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   1030 <VAMPIREdiagTriangle@plt>
mov    0x160(%rsp),%rax
mov    0x168(%rsp),%r11
mov    0x170(%rsp),%rsi
mov    0x178(%rsp),%rdx
mov    0x180(%rsp),%rcx
mov    0x188(%rsp),%r10
movapd 0xab4(%rip),%xmm10
mov    0x118(%rsp),%rbp
mov    0x120(%rsp),%rbx
movapd 0x190(%rsp),%xmm3
movapd 0x1a0(%rsp),%xmm9
movapd 0x50(%rsp),%xmm0
movhpd 0x40(%rsp),%xmm0
movapd %xmm3,%xmm1
mulpd  %xmm0,%xmm1
movupd (%r11,%r15,1),%xmm2
mulpd  %xmm0,%xmm1
addpd  %xmm2,%xmm1
movupd %xmm1,(%r11,%r15,1)
movapd 0x30(%rsp),%xmm0
movhpd 0x20(%rsp),%xmm0
movapd %xmm3,%xmm1
mulpd  %xmm0,%xmm1
movupd (%rsi,%r15,1),%xmm2
mulpd  %xmm0,%xmm1
addpd  %xmm2,%xmm1
movupd %xmm1,(%rsi,%r15,1)
movapd 0x50(%rsp),%xmm0
movsd  0x48(%rsp),%xmm1
shufpd $0x1,%xmm1,%xmm0
movapd %xmm3,%xmm1
mulpd  %xmm0,%xmm1
movupd (%rdx,%r15,1),%xmm2
mulpd  %xmm0,%xmm1
addpd  %xmm2,%xmm1
movupd %xmm1,(%rdx,%r15,1)
movapd 0x30(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
shufpd $0x1,%xmm1,%xmm0
movapd %xmm3,%xmm1
mulpd  %xmm0,%xmm1
movupd (%rcx,%r15,1),%xmm2
mulpd  %xmm0,%xmm1
mov    0x150(%rsp),%rdi
add    %rbx,%rdi
mov    0x138(%rsp),%r9
add    %rbx,%r9
addpd  %xmm2,%xmm1
mov    0x158(%rsp),%r12
add    %rbx,%r12
mov    0x140(%rsp),%r13
add    %rbx,%r13
mov    0x148(%rsp),%r14
add    %rbp,%r14
mov    0x130(%rsp),%rbx
add    %rbp,%rbx
mov    0x128(%rsp),%r8
add    %rbp,%r8
add    %rbp,%rax
add    %rbp,%r11
movupd %xmm1,(%rcx,%r15,1)
movsd  0x97c(%rip),%xmm1
add    %rbp,%rsi
add    %rbp,%rdx
add    %rbp,%rcx
add    $0xffffffffffffffff,%r10
jne    1300 <VAMPIREdiag2D+0x1f0>
jmp    1260 <VAMPIREdiag2D+0x150>
add    $0x1c8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @VAMPIREdiag2D(double* nocapture %0, double* nocapture %1, double* nocapture %2, double* nocapture %3, double* nocapture %4, double* nocapture %5, double* nocapture %6) {
%8 = alloca [2 x double]
%9 = alloca [2 x double]
%10 = alloca [2 x double]
%11 = alloca [2 x double]
%12 = alloca <2 x double>
%13 = alloca <2 x double>
%14 = alloca [2 x double]
%15 = alloca <2 x double>
%16 = alloca [2 x double]
%17 = bitcast [2 x double]* %8 to i8*
%18 = bitcast [2 x double]* %9 to i8*
%19 = bitcast [2 x double]* %10 to i8*
%20 = bitcast [2 x double]* %11 to i8*
%21 = bitcast <2 x double>* %12 to i8*
%22 = bitcast <2 x double>* %13 to i8*
%23 = bitcast [2 x double]* %14 to i8*
%24 = bitcast <2 x double>* %15 to i8*
%25 = bitcast [2 x double]* %16 to i8*
%26 = load double, double* %2
%27 = fptosi double %26 to i32
%28 = getelementptr inbounds double, double* %2, i64 1
%29 = load double, double* %28
%30 = fptosi double %29 to i32
%31 = add nsw i32 %27, 1
%32 = load double, double* %6
%33 = getelementptr inbounds double, double* %6, i64 1
%34 = load double, double* %33
%35 = fmul double %32, %34
%36 = icmp sgt i32 %27, 0
br i1 %36, label %37, label %167
37: ; preds = %7
%38 = mul nsw i32 %30, %27
%39 = add nsw i32 %30, 1
%40 = mul i32 %39, %31
%41 = icmp sgt i32 %30, 0
%42 = zext i32 %31 to i64
%43 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
%44 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 0
%45 = getelementptr inbounds <2 x double>, <2 x double>* %12, i64 0, i64 0
%46 = getelementptr inbounds <2 x double>, <2 x double>* %13, i64 0, i64 0
%47 = getelementptr inbounds [2 x double], [2 x double]* %14, i64 0, i64 0
%48 = getelementptr inbounds [2 x double], [2 x double]* %16, i64 0, i64 0
%49 = getelementptr inbounds <2 x double>, <2 x double>* %15, i64 0, i64 0
%50 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 0
%51 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 0
%52 = sext i32 %40 to i64
%53 = zext i32 %27 to i64
%54 = sext i32 %38 to i64
%55 = zext i32 %27 to i64
%56 = zext i32 %30 to i64
%57 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 1
%58 = getelementptr inbounds [2 x double], [2 x double]* %9, i64 0, i64 1
%59 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 1
%60 = getelementptr inbounds [2 x double], [2 x double]* %10, i64 0, i64 1
%61 = getelementptr inbounds <2 x double>, <2 x double>* %13, i64 0, i64 1
%62 = getelementptr inbounds [2 x double], [2 x double]* %14, i64 0, i64 1
%63 = getelementptr inbounds <2 x double>, <2 x double>* %15, i64 0, i64 1
%64 = getelementptr inbounds [2 x double], [2 x double]* %16, i64 0, i64 1
%65 = insertelement <2 x double> poison, double %35, i64 0
%66 = shufflevector <2 x double> %65, <2 x double> poison, <2 x i32> zeroinitializer
br label %67
67: ; preds = %37, %164
%68 = phi i64 [ 0, %37 ], [ %165, %164 ]
br i1 %41, label %69, label %164
69: ; preds = %67, %69
%70 = phi i64 [ %162, %69 ], [ 0, %67 ]
%71 = mul nsw i64 %70, %42
%72 = add nuw nsw i64 %71, %68
%73 = mul nsw i64 %70, %53
%74 = add nuw nsw i64 %73, %68
%75 = getelementptr inbounds double, double* %5, i64 %74
%76 = load double, double* %75
%77 = getelementptr inbounds double, double* %4, i64 %74
%78 = load double, double* %77
%79 = add nsw i64 %74, %54
%80 = getelementptr inbounds double, double* %4, i64 %79
%81 = load double, double* %80
%82 = getelementptr inbounds double, double* %3, i64 %74
%83 = load double, double* %82
%84 = getelementptr inbounds double, double* %1, i64 %72
%85 = fmul double %83, 2.500000e-01
%86 = load double, double* %84
store double %86, double* %43
%87 = getelementptr inbounds double, double* %84, i64 1
%88 = load double, double* %87
store double %88, double* %44
%89 = getelementptr inbounds double, double* %87, i64 %42
%90 = load double, double* %89
store double %90, double* %50
%91 = getelementptr inbounds double, double* %89, i64 -1
%92 = load double, double* %91
store double %92, double* %51
%93 = fmul double %85, %78
store double %93, double* %46
store double %93, double* %47
store double %93, double* %49
store double %93, double* %48
%94 = getelementptr inbounds double, double* %84, i64 %52
%95 = load double, double* %94
store double %95, double* %57
%96 = getelementptr inbounds double, double* %94, i64 1
%97 = load double, double* %96
store double %97, double* %58
%98 = getelementptr inbounds double, double* %96, i64 %42
%99 = load double, double* %98
store double %99, double* %59
%100 = getelementptr inbounds double, double* %98, i64 -1
%101 = load double, double* %100
store double %101, double* %60
%102 = insertelement <2 x double> poison, double %86, i64 0
%103 = insertelement <2 x double> %102, double %95, i64 1
%104 = insertelement <2 x double> poison, double %88, i64 0
%105 = insertelement <2 x double> %104, double %97, i64 1
%106 = fadd <2 x double> %103, %105
%107 = insertelement <2 x double> poison, double %92, i64 0
%108 = insertelement <2 x double> %107, double %101, i64 1
%109 = fadd <2 x double> %106, %108
%110 = insertelement <2 x double> poison, double %90, i64 0
%111 = insertelement <2 x double> %110, double %99, i64 1
%112 = fadd <2 x double> %111, %109
%113 = fmul <2 x double> %112, <double 2.500000e-01, double 2.500000e-01>
store <2 x double> %113, <2 x double>* %12
%114 = fmul double %85, %81
store double %114, double* %61
store double %114, double* %62
store double %114, double* %63
store double %114, double* %64
%115 = fdiv double %76, %35
%116 = call i32 (double*, double*, double*, double*, double*, double*, double*, double, ...) bitcast (i32 (...)* @VAMPIREdiagTriangle to i32 (double*, double*, double*, double*, double*, double*, double*, double, ...)*)(double* %43, double* %44, double* %45, double* %46, double* %47, double* %48, double* %49, double %115)
%117 = call i32 (double*, double*, double*, double*, double*, double*, double*, double, ...) bitcast (i32 (...)* @VAMPIREdiagTriangle to i32 (double*, double*, double*, double*, double*, double*, double*, double, ...)*)(double* %44, double* %50, double* %45, double* %47, double* %48, double* %49, double* %46, double %115)
%118 = call i32 (double*, double*, double*, double*, double*, double*, double*, double, ...) bitcast (i32 (...)* @VAMPIREdiagTriangle to i32 (double*, double*, double*, double*, double*, double*, double*, double, ...)*)(double* %50, double* %51, double* %45, double* %48, double* %49, double* %46, double* %47, double %115)
%119 = call i32 (double*, double*, double*, double*, double*, double*, double*, double, ...) bitcast (i32 (...)* @VAMPIREdiagTriangle to i32 (double*, double*, double*, double*, double*, double*, double*, double, ...)*)(double* %51, double* %43, double* %45, double* %49, double* %46, double* %47, double* %48, double %115)
%120 = getelementptr inbounds double, double* %0, i64 %72
%121 = load <2 x double>, <2 x double>* %13
%122 = getelementptr inbounds double, double* %120, i64 1
%123 = load double, double* %47
%124 = insertelement <2 x double> %121, double %123, i64 1
%125 = fmul <2 x double> %66, %124
%126 = bitcast double* %120 to <2 x double>*
%127 = load <2 x double>, <2 x double>* %126
%128 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %125, <2 x double> %124, <2 x double> %127)
%129 = bitcast double* %120 to <2 x double>*
store <2 x double> %128, <2 x double>* %129
%130 = getelementptr inbounds double, double* %122, i64 %42
%131 = load double, double* %48
%132 = getelementptr inbounds double, double* %130, i64 -1
%133 = load <2 x double>, <2 x double>* %15
%134 = insertelement <2 x double> %133, double %131, i64 1
%135 = fmul <2 x double> %66, %134
%136 = bitcast double* %132 to <2 x double>*
%137 = load <2 x double>, <2 x double>* %136
%138 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %135, <2 x double> %134, <2 x double> %137)
%139 = bitcast double* %132 to <2 x double>*
store <2 x double> %138, <2 x double>* %139
%140 = getelementptr inbounds double, double* %120, i64 %52
%141 = load <2 x double>, <2 x double>* %13
%142 = shufflevector <2 x double> %141, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%143 = getelementptr inbounds double, double* %140, i64 1
%144 = load double, double* %62
%145 = insertelement <2 x double> %142, double %144, i64 1
%146 = fmul <2 x double> %66, %145
%147 = bitcast double* %140 to <2 x double>*
%148 = load <2 x double>, <2 x double>* %147
%149 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %146, <2 x double> %145, <2 x double> %148)
%150 = bitcast double* %140 to <2 x double>*
store <2 x double> %149, <2 x double>* %150
%151 = getelementptr inbounds double, double* %143, i64 %42
%152 = load double, double* %64
%153 = getelementptr inbounds double, double* %151, i64 -1
%154 = load <2 x double>, <2 x double>* %15
%155 = shufflevector <2 x double> %154, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%156 = insertelement <2 x double> %155, double %152, i64 1
%157 = fmul <2 x double> %66, %156
%158 = bitcast double* %153 to <2 x double>*
%159 = load <2 x double>, <2 x double>* %158
%160 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %157, <2 x double> %156, <2 x double> %159)
%161 = bitcast double* %153 to <2 x double>*
store <2 x double> %160, <2 x double>* %161
%162 = add nuw nsw i64 %70, 1
%163 = icmp eq i64 %162, %56
br i1 %163, label %164, label %69
164: ; preds = %69, %67
%165 = add nuw nsw i64 %68, 1
%166 = icmp eq i64 %165, %55
br i1 %166, label %167, label %67
167: ; preds = %164, %7
ret void
}