int trmesh_(int *n, double *x, double *y, double *z__, int *list, int *lptr,
            int *lend, int *lnew, int *near__, int *next, double *dist,
            int *ier) {
  int i__1, i__2;
  static double d__;
  static int i__, j, k;
  static double d1, d2, d3;
  static int i0, lp, nn, lpl;
  static int nexti;
  --dist;
  --next;
  --near__;
  --lend;
  --z__;
  --y;
  --x;
  --list;
  --lptr;
  nn = *n;
  if (nn < 3) {
    *ier = -1;
    return 0;
  }
  if (!left_(&x[1], &y[1], &z__[1], &x[2], &y[2], &z__[2], &x[3], &y[3],
             &z__[3])) {
    list[1] = 3;
    lptr[1] = 2;
    list[2] = -2;
    lptr[2] = 1;
    lend[1] = 2;
    list[3] = 1;
    lptr[3] = 4;
    list[4] = -3;
    lptr[4] = 3;
    lend[2] = 4;
    list[5] = 2;
    lptr[5] = 6;
    list[6] = -1;
    lptr[6] = 5;
    lend[3] = 6;
  } else if (!left_(&x[2], &y[2], &z__[2], &x[1], &y[1], &z__[1], &x[3], &y[3],
                    &z__[3])) {
    list[1] = 2;
    lptr[1] = 2;
    list[2] = -3;
    lptr[2] = 1;
    lend[1] = 2;
    list[3] = 3;
    lptr[3] = 4;
    list[4] = -1;
    lptr[4] = 3;
    lend[2] = 4;
    list[5] = 1;
    lptr[5] = 6;
    list[6] = -2;
    lptr[6] = 5;
    lend[3] = 6;
  } else {
    *ier = -2;
    return 0;
  }
  *lnew = 7;
  if (nn == 3) {
    *ier = 0;
    return 0;
  }
  near__[1] = 0;
  near__[2] = 0;
  near__[3] = 0;
  for (k = nn; k >= 4; --k) {
    d1 = -(x[k] * x[1] + y[k] * y[1] + z__[k] * z__[1]);
    d2 = -(x[k] * x[2] + y[k] * y[2] + z__[k] * z__[2]);
    d3 = -(x[k] * x[3] + y[k] * y[3] + z__[k] * z__[3]);
    if (d1 <= d2 && d1 <= d3) {
      near__[k] = 1;
      dist[k] = d1;
      next[k] = near__[1];
      near__[1] = k;
    } else if (d2 <= d1 && d2 <= d3) {
      near__[k] = 2;
      dist[k] = d2;
      next[k] = near__[2];
      near__[2] = k;
    } else {
      near__[k] = 3;
      dist[k] = d3;
      next[k] = near__[3];
      near__[3] = k;
    }
  }
  i__1 = nn;
  for (k = 4; k <= i__1; ++k) {
    addnod_(&near__[k], &k, &x[1], &y[1], &z__[1], &list[1], &lptr[1], &lend[1],
            lnew, ier);
    if (*ier != 0) {
      return 0;
    }
    i__ = near__[k];
    if (near__[i__] == k) {
      near__[i__] = next[k];
    } else {
      i__ = near__[i__];
    L2:
      i0 = i__;
      i__ = next[i0];
      if (i__ != k) {
        goto L2;
      }
      next[i0] = next[k];
    }
    near__[k] = 0;
    lpl = lend[k];
    lp = lpl;
  L3:
    lp = lptr[lp];
    j = (i__2 = list[lp], ((i__2) >= 0 ? (i__2) : -(i__2)));
    i__ = near__[j];
  L4:
    if (i__ == 0) {
      goto L5;
    }
    nexti = next[i__];
    d__ = -(x[i__] * x[k] + y[i__] * y[k] + z__[i__] * z__[k]);
    if (d__ < dist[i__]) {
      near__[i__] = k;
      dist[i__] = d__;
      if (i__ == near__[j]) {
        near__[j] = nexti;
      } else {
        next[i0] = nexti;
      }
      next[i__] = near__[k];
      near__[k] = i__;
    } else {
      i0 = i__;
    }
    i__ = nexti;
    goto L4;
  L5:
    if (lp != lpl) {
      goto L3;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<trmesh_>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x68,%rsp
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,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
mov    0x30(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,0x30(%rbp)
mov    0x28(%rbp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,0x28(%rbp)
mov    0x20(%rbp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,0x20(%rbp)
mov    0x10(%rbp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,0x10(%rbp)
mov    -0x30(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x38(%rbp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,-0x38(%rbp)
mov    -0x40(%rbp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,0x2e9f(%rip)
cmpl   $0x3,0x2e98(%rip)
jge    11f4 <trmesh_+0xd4>
mov    0x38(%rbp),%rax
movl   $0xffffffff,(%rax)
movl   $0x0,-0xc(%rbp)
jmp    1b38 <trmesh_+0xa18>
mov    -0x20(%rbp),%rdi
add    $0x8,%rdi
mov    -0x28(%rbp),%rsi
add    $0x8,%rsi
mov    -0x30(%rbp),%rdx
add    $0x8,%rdx
mov    -0x20(%rbp),%rcx
add    $0x10,%rcx
mov    -0x28(%rbp),%r8
add    $0x10,%r8
mov    -0x30(%rbp),%r9
add    $0x10,%r9
mov    -0x20(%rbp),%r11
add    $0x18,%r11
mov    -0x28(%rbp),%r10
add    $0x18,%r10
mov    -0x30(%rbp),%rax
add    $0x18,%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1030 <left_@plt>
cmp    $0x0,%eax
jne    1304 <trmesh_+0x1e4>
mov    -0x38(%rbp),%rax
movl   $0x3,0x4(%rax)
mov    -0x40(%rbp),%rax
movl   $0x2,0x4(%rax)
mov    -0x38(%rbp),%rax
movl   $0xfffffffe,0x8(%rax)
mov    -0x40(%rbp),%rax
movl   $0x1,0x8(%rax)
mov    0x10(%rbp),%rax
movl   $0x2,0x4(%rax)
mov    -0x38(%rbp),%rax
movl   $0x1,0xc(%rax)
mov    -0x40(%rbp),%rax
movl   $0x4,0xc(%rax)
mov    -0x38(%rbp),%rax
movl   $0xfffffffd,0x10(%rax)
mov    -0x40(%rbp),%rax
movl   $0x3,0x10(%rax)
mov    0x10(%rbp),%rax
movl   $0x4,0x8(%rax)
mov    -0x38(%rbp),%rax
movl   $0x2,0x14(%rax)
mov    -0x40(%rbp),%rax
movl   $0x6,0x14(%rax)
mov    -0x38(%rbp),%rax
movl   $0xffffffff,0x18(%rax)
mov    -0x40(%rbp),%rax
movl   $0x5,0x18(%rax)
mov    0x10(%rbp),%rax
movl   $0x6,0xc(%rax)
jmp    142f <trmesh_+0x30f>
mov    -0x20(%rbp),%rdi
add    $0x10,%rdi
mov    -0x28(%rbp),%rsi
add    $0x10,%rsi
mov    -0x30(%rbp),%rdx
add    $0x10,%rdx
mov    -0x20(%rbp),%rcx
add    $0x8,%rcx
mov    -0x28(%rbp),%r8
add    $0x8,%r8
mov    -0x30(%rbp),%r9
add    $0x8,%r9
mov    -0x20(%rbp),%r11
add    $0x18,%r11
mov    -0x28(%rbp),%r10
add    $0x18,%r10
mov    -0x30(%rbp),%rax
add    $0x18,%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1030 <left_@plt>
cmp    $0x0,%eax
jne    1414 <trmesh_+0x2f4>
mov    -0x38(%rbp),%rax
movl   $0x2,0x4(%rax)
mov    -0x40(%rbp),%rax
movl   $0x2,0x4(%rax)
mov    -0x38(%rbp),%rax
movl   $0xfffffffd,0x8(%rax)
mov    -0x40(%rbp),%rax
movl   $0x1,0x8(%rax)
mov    0x10(%rbp),%rax
movl   $0x2,0x4(%rax)
mov    -0x38(%rbp),%rax
movl   $0x3,0xc(%rax)
mov    -0x40(%rbp),%rax
movl   $0x4,0xc(%rax)
mov    -0x38(%rbp),%rax
movl   $0xffffffff,0x10(%rax)
mov    -0x40(%rbp),%rax
movl   $0x3,0x10(%rax)
mov    0x10(%rbp),%rax
movl   $0x4,0x8(%rax)
mov    -0x38(%rbp),%rax
movl   $0x1,0x14(%rax)
mov    -0x40(%rbp),%rax
movl   $0x6,0x14(%rax)
mov    -0x38(%rbp),%rax
movl   $0xfffffffe,0x18(%rax)
mov    -0x40(%rbp),%rax
movl   $0x5,0x18(%rax)
mov    0x10(%rbp),%rax
movl   $0x6,0xc(%rax)
jmp    142a <trmesh_+0x30a>
mov    0x38(%rbp),%rax
movl   $0xfffffffe,(%rax)
movl   $0x0,-0xc(%rbp)
jmp    1b38 <trmesh_+0xa18>
jmp    142f <trmesh_+0x30f>
mov    0x18(%rbp),%rax
movl   $0x7,(%rax)
cmpl   $0x3,0x2c30(%rip)
jne    145c <trmesh_+0x33c>
mov    0x38(%rbp),%rax
movl   $0x0,(%rax)
movl   $0x0,-0xc(%rbp)
jmp    1b38 <trmesh_+0xa18>
mov    0x20(%rbp),%rax
movl   $0x0,0x4(%rax)
mov    0x20(%rbp),%rax
movl   $0x0,0x8(%rax)
mov    0x20(%rbp),%rax
movl   $0x0,0xc(%rax)
mov    0x2bed(%rip),%eax
mov    %eax,0x2bbf(%rip)
cmpl   $0x4,0x2bb8(%rip)
jl     1778 <trmesh_+0x658>
mov    -0x20(%rbp),%rax
movslq 0x2ba7(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm2
mov    -0x28(%rbp),%rax
movslq 0x2b8e(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x30(%rbp),%rax
movslq 0x2b6d(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movsd  0x8(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,0x2b40(%rip)
mov    -0x20(%rbp),%rax
movslq 0x2b2d(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm2
mov    -0x28(%rbp),%rax
movslq 0x2b14(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mulsd  0x10(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x30(%rbp),%rax
movslq 0x2af3(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,0x2ace(%rip)
mov    -0x20(%rbp),%rax
movslq 0x2ab3(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movsd  0x18(%rax),%xmm2
mov    -0x28(%rbp),%rax
movslq 0x2a9a(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
mulsd  0x18(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x30(%rbp),%rax
movslq 0x2a79(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movsd  0x18(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,0x2a5c(%rip)
movsd  0x2a44(%rip),%xmm1
movsd  0x2a44(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     1689 <trmesh_+0x569>
movsd  0x2a2a(%rip),%xmm1
movsd  0x2a32(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     1689 <trmesh_+0x569>
mov    0x20(%rbp),%rax
movslq 0x2a05(%rip),%rcx
movl   $0x1,(%rax,%rcx,4)
movsd  0x29fe(%rip),%xmm0
mov    0x30(%rbp),%rax
movslq 0x29eb(%rip),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x20(%rbp),%rax
mov    0x4(%rax),%edx
mov    0x28(%rbp),%rax
movslq 0x29d4(%rip),%rcx
mov    %edx,(%rax,%rcx,4)
mov    0x29cb(%rip),%ecx
mov    0x20(%rbp),%rax
mov    %ecx,0x4(%rax)
jmp    175f <trmesh_+0x63f>
movsd  0x29c7(%rip),%xmm1
movsd  0x29b7(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     170e <trmesh_+0x5ee>
movsd  0x29ad(%rip),%xmm1
movsd  0x29ad(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     170e <trmesh_+0x5ee>
mov    0x20(%rbp),%rax
movslq 0x2980(%rip),%rcx
movl   $0x2,(%rax,%rcx,4)
movsd  0x2981(%rip),%xmm0
mov    0x30(%rbp),%rax
movslq 0x2966(%rip),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x20(%rbp),%rax
mov    0x8(%rax),%edx
mov    0x28(%rbp),%rax
movslq 0x294f(%rip),%rcx
mov    %edx,(%rax,%rcx,4)
mov    0x2946(%rip),%ecx
mov    0x20(%rbp),%rax
mov    %ecx,0x8(%rax)
jmp    175a <trmesh_+0x63a>
mov    0x20(%rbp),%rax
movslq 0x292f(%rip),%rcx
movl   $0x3,(%rax,%rcx,4)
movsd  0x2938(%rip),%xmm0
mov    0x30(%rbp),%rax
movslq 0x2915(%rip),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x20(%rbp),%rax
mov    0xc(%rax),%edx
mov    0x28(%rbp),%rax
movslq 0x28fe(%rip),%rcx
mov    %edx,(%rax,%rcx,4)
mov    0x28f5(%rip),%ecx
mov    0x20(%rbp),%rax
mov    %ecx,0xc(%rax)
jmp    175f <trmesh_+0x63f>
jmp    1764 <trmesh_+0x644>
mov    0x28de(%rip),%eax
add    $0xffffffff,%eax
mov    %eax,0x28d5(%rip)
jmp    1489 <trmesh_+0x369>
mov    0x28f2(%rip),%eax
mov    %eax,-0x44(%rbp)
movl   $0x4,0x28bd(%rip)
mov    0x28b7(%rip),%eax
cmp    -0x44(%rbp),%eax
jg     1b31 <trmesh_+0xa11>
mov    0x20(%rbp),%rdi
movslq 0x28a3(%rip),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    -0x20(%rbp),%rdx
add    $0x8,%rdx
mov    -0x28(%rbp),%rcx
add    $0x8,%rcx
mov    -0x30(%rbp),%r8
add    $0x8,%r8
mov    -0x38(%rbp),%r9
add    $0x4,%r9
mov    -0x40(%rbp),%rbx
add    $0x4,%rbx
mov    0x10(%rbp),%r11
add    $0x4,%r11
mov    0x18(%rbp),%r10
mov    0x38(%rbp),%rax
lea    0x285d(%rip),%rsi
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    $0x0,%al
call   1040 <addnod_@plt>
mov    0x38(%rbp),%rax
cmpl   $0x0,(%rax)
je     181e <trmesh_+0x6fe>
movl   $0x0,-0xc(%rbp)
jmp    1b38 <trmesh_+0xa18>
mov    0x20(%rbp),%rax
movslq 0x281f(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x280e(%rip)
mov    0x20(%rbp),%rax
movslq 0x2803(%rip),%rcx
mov    (%rax,%rcx,4),%eax
cmp    0x2802(%rip),%eax
jne    186d <trmesh_+0x74d>
mov    0x28(%rbp),%rax
movslq 0x27f1(%rip),%rcx
mov    (%rax,%rcx,4),%edx
mov    0x20(%rbp),%rax
movslq 0x27db(%rip),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    18d4 <trmesh_+0x7b4>
mov    0x20(%rbp),%rax
movslq 0x27c8(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x27bf(%rip)
mov    0x27b9(%rip),%eax
mov    %eax,0x27db(%rip)
mov    0x28(%rbp),%rax
movslq 0x27d0(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x279f(%rip)
mov    0x2799(%rip),%eax
cmp    0x279b(%rip),%eax
je     18b8 <trmesh_+0x798>
jmp    1881 <trmesh_+0x761>
mov    0x28(%rbp),%rax
movslq 0x2785(%rip),%rcx
mov    (%rax,%rcx,4),%edx
mov    0x28(%rbp),%rax
movslq 0x2797(%rip),%rcx
mov    %edx,(%rax,%rcx,4)
mov    0x20(%rbp),%rax
movslq 0x2769(%rip),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    0x10(%rbp),%rax
movslq 0x2757(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x277a(%rip)
mov    0x2774(%rip),%eax
mov    %eax,0x2766(%rip)
mov    -0x40(%rbp),%rax
movslq 0x275b(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x2752(%rip)
mov    -0x38(%rbp),%rax
movslq 0x2747(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x48(%rbp)
jl     1940 <trmesh_+0x820>
mov    -0x48(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    1948 <trmesh_+0x828>
xor    %eax,%eax
sub    -0x48(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
mov    %eax,0x26f3(%rip)
mov    0x20(%rbp),%rax
movslq 0x26e8(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x26db(%rip)
cmpl   $0x0,0x26d4(%rip)
jne    1977 <trmesh_+0x857>
jmp    1b01 <trmesh_+0x9e1>
mov    0x28(%rbp),%rax
movslq 0x26be(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x26ed(%rip)
mov    -0x20(%rbp),%rax
movslq 0x26aa(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movslq 0x26a2(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x28(%rbp),%rax
movslq 0x268a(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x28(%rbp),%rax
movslq 0x2682(%rip),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x30(%rbp),%rax
movslq 0x2662(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq 0x265a(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,0x261e(%rip)
movsd  0x2616(%rip),%xmm1
mov    0x30(%rbp),%rax
movslq 0x2613(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jbe    1ae4 <trmesh_+0x9c4>
mov    0x2606(%rip),%edx
mov    0x20(%rbp),%rax
movslq 0x25f3(%rip),%rcx
mov    %edx,(%rax,%rcx,4)
movsd  0x25e0(%rip),%xmm0
mov    0x30(%rbp),%rax
movslq 0x25dd(%rip),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x25d2(%rip),%eax
mov    0x20(%rbp),%rcx
movslq 0x25cb(%rip),%rdx
cmp    (%rcx,%rdx,4),%eax
jne    1a9b <trmesh_+0x97b>
mov    0x25f0(%rip),%edx
mov    0x20(%rbp),%rax
movslq 0x25b1(%rip),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    1aaf <trmesh_+0x98f>
mov    0x25d7(%rip),%edx
mov    0x28(%rbp),%rax
movslq 0x25bc(%rip),%rcx
mov    %edx,(%rax,%rcx,4)
mov    0x20(%rbp),%rax
movslq 0x258e(%rip),%rcx
mov    (%rax,%rcx,4),%edx
mov    0x28(%rbp),%rax
movslq 0x2578(%rip),%rcx
mov    %edx,(%rax,%rcx,4)
mov    0x256f(%rip),%edx
mov    0x20(%rbp),%rax
movslq 0x256c(%rip),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    1af0 <trmesh_+0x9d0>
mov    0x2556(%rip),%eax
mov    %eax,0x2578(%rip)
mov    0x2582(%rip),%eax
mov    %eax,0x2544(%rip)
jmp    1965 <trmesh_+0x845>
mov    0x2565(%rip),%eax
cmp    0x2567(%rip),%eax
je     1b18 <trmesh_+0x9f8>
jmp    1906 <trmesh_+0x7e6>
jmp    1b1d <trmesh_+0x9fd>
mov    0x2525(%rip),%eax
add    $0x1,%eax
mov    %eax,0x251c(%rip)
jmp    178b <trmesh_+0x66b>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x68,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<trmesh_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rdx,%r13
mov    0x98(%rsp),%rdx
mov    (%rdi),%eax
mov    %eax,0x2efb(%rip)
cmp    $0x2,%eax
jg     1151 <trmesh_+0x31>
movl   $0xffffffff,(%rdx)
jmp    14a8 <trmesh_+0x388>
mov    %rsi,%r12
mov    %r8,0x8(%rsp)
mov    %r9,0x18(%rsp)
mov    %rcx,%rbx
lea    0x8(%rsi),%r15
lea    0x8(%r13),%r8
lea    0x8(%rcx),%r9
lea    0x10(%rsi),%r10
lea    0x10(%r13),%rbp
lea    0x10(%rcx),%r14
sub    $0x8,%rsp
mov    %rsi,%rdi
mov    %r13,%rsi
mov    %rcx,%rdx
mov    %r15,%rcx
mov    %r8,0x30(%rsp)
mov    %r9,0x28(%rsp)
xor    %eax,%eax
push   %r14
mov    %rbp,0x40(%rsp)
push   %rbp
mov    %r10,0x18(%rsp)
push   %r10
call   1030 <left_@plt>
add    $0x20,%rsp
test   %eax,%eax
mov    %rbx,0x10(%rsp)
je     11fc <trmesh_+0xdc>
sub    $0x8,%rsp
mov    %r15,%rdi
mov    0x30(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    %r12,%rcx
mov    %r13,%r8
mov    %rbx,%r9
xor    %eax,%eax
push   %r14
push   0x40(%rsp)
push   0x18(%rsp)
call   1030 <left_@plt>
add    $0x20,%rsp
test   %eax,%eax
je     121c <trmesh_+0xfc>
mov    0x98(%rsp),%rax
movl   $0xfffffffe,(%rax)
jmp    14a8 <trmesh_+0x388>
mov    $0xffffffff,%eax
mov    $0x2,%ecx
mov    $0xfffffffd,%edx
mov    $0x1,%esi
mov    $0xfffffffe,%edi
mov    $0x3,%ebp
jmp    123a <trmesh_+0x11a>
mov    $0xfffffffe,%eax
mov    $0x1,%ecx
mov    $0xffffffff,%edx
mov    $0x3,%esi
mov    $0xfffffffd,%edi
mov    $0x2,%ebp
mov    0x98(%rsp),%r9
mov    0x78(%rsp),%r8
mov    0x70(%rsp),%r10
mov    0x8(%rsp),%rbx
mov    %ebp,(%rbx)
mov    0x18(%rsp),%r11
movl   $0x2,(%r11)
mov    %edi,0x4(%rbx)
movl   $0x1,0x4(%r11)
movl   $0x2,(%r10)
mov    %esi,0x8(%rbx)
movl   $0x4,0x8(%r11)
mov    %edx,0xc(%rbx)
movl   $0x3,0xc(%r11)
movl   $0x4,0x4(%r10)
mov    %ecx,0x10(%rbx)
movl   $0x6,0x10(%r11)
mov    %eax,0x14(%rbx)
movl   $0x5,0x14(%r11)
movl   $0x6,0x8(%r10)
movl   $0x7,(%r8)
mov    0x2d82(%rip),%esi
cmp    $0x3,%esi
jne    12cb <trmesh_+0x1ab>
movl   $0x0,(%r9)
jmp    14a8 <trmesh_+0x388>
mov    0x80(%rsp),%rax
movq   $0x0,(%rax)
movl   $0x0,0x8(%rax)
mov    %esi,0x2d4d(%rip)
jle    148a <trmesh_+0x36a>
mov    0x88(%rsp),%r14
add    $0xfffffffffffffffc,%r14
lea    -0x4(%rax),%r15
movapd 0xcfb(%rip),%xmm0
movapd 0xcf3(%rip),%xmm6
mov    %esi,%edx
mov    0x10(%rsp),%r8
jmp    1363 <trmesh_+0x243>
cs nopw 0x0(%rax,%rax,1)
xorpd  %xmm0,%xmm2
movl   $0x3,-0x4(%rax,%rcx,4)
movslq 0x2d01(%rip),%rcx
mov    0x90(%rsp),%rdx
movsd  %xmm2,-0x8(%rdx,%rcx,8)
mov    0x8(%rax),%edx
mov    %edx,(%r14,%rcx,4)
mov    0x2ce6(%rip),%ecx
mov    %ecx,0x8(%rax)
lea    -0x1(%rcx),%edx
mov    %edx,0x2cda(%rip)
cmp    $0x4,%ecx
jle    1496 <trmesh_+0x376>
mov    %edx,%ecx
movsd  -0x8(%r12,%rcx,8),%xmm3
movsd  -0x8(%r13,%rcx,8),%xmm4
movsd  -0x8(%r8,%rcx,8),%xmm2
movsd  0x8(%r13),%xmm1
mulsd  %xmm4,%xmm1
movsd  0x8(%r12),%xmm5
mulsd  %xmm3,%xmm5
addsd  %xmm1,%xmm5
movsd  0x8(%r8),%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm5,%xmm1
unpcklpd %xmm4,%xmm4
movsd  0x0(%r13),%xmm5
movhpd 0x10(%r13),%xmm5
mulpd  %xmm4,%xmm5
movsd  (%r12),%xmm4
movhpd 0x10(%r12),%xmm4
unpcklpd %xmm3,%xmm3
mulpd  %xmm3,%xmm4
addpd  %xmm5,%xmm4
unpcklpd %xmm2,%xmm2
movsd  (%r8),%xmm3
movhpd 0x10(%r8),%xmm3
mulpd  %xmm2,%xmm3
addpd  %xmm4,%xmm3
movapd %xmm3,%xmm2
unpckhpd %xmm3,%xmm2
ucomisd %xmm1,%xmm3
jb     1440 <trmesh_+0x320>
ucomisd %xmm2,%xmm3
jb     1440 <trmesh_+0x320>
xorpd  %xmm6,%xmm3
movl   $0x1,-0x4(%rax,%rcx,4)
movslq 0x2c28(%rip),%rcx
mov    0x90(%rsp),%rdx
movlpd %xmm3,-0x8(%rdx,%rcx,8)
mov    (%rax),%edx
mov    %edx,(%r14,%rcx,4)
mov    0x2c0e(%rip),%ecx
mov    %ecx,(%rax)
mov    0x2c06(%rip),%ecx
jmp    1351 <trmesh_+0x231>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
ucomisd %xmm3,%xmm1
jb     1320 <trmesh_+0x200>
ucomisd %xmm2,%xmm1
jb     1320 <trmesh_+0x200>
xorpd  %xmm0,%xmm1
movl   $0x2,-0x4(%rax,%rcx,4)
movslq 0x2bcd(%rip),%rcx
mov    0x90(%rsp),%rdx
movsd  %xmm1,-0x8(%rdx,%rcx,8)
mov    0x4(%rax),%edx
mov    %edx,(%r14,%rcx,4)
mov    0x2bb2(%rip),%ecx
mov    %ecx,0x4(%rax)
jmp    1351 <trmesh_+0x231>
movl   $0x4,0x2ba0(%rip)
jmp    14a8 <trmesh_+0x388>
movl   $0x4,0x2b94(%rip)
mov    %esi,(%rsp)
cmp    $0x4,%esi
jge    14b9 <trmesh_+0x399>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x4,%eax
jmp    14db <trmesh_+0x3bb>
lea    0x1(%rsi),%eax
mov    %eax,0x2b6b(%rip)
cmp    (%rsp),%esi
mov    0x10(%rsp),%r8
mov    0x70(%rsp),%r10
mov    %r9,%r11
jge    14a8 <trmesh_+0x388>
cltq
lea    (%r15,%rax,4),%rdi
lea    0x2b4c(%rip),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    0x8(%rsp),%r9
xor    %eax,%eax
mov    0x98(%rsp),%rbx
push   %rbx
push   0x80(%rsp)
push   %r10
push   %r11
call   1040 <addnod_@plt>
movapd 0xaea(%rip),%xmm2
mov    0x90(%rsp),%rdi
mov    0x38(%rsp),%r9
add    $0x20,%rsp
cmpl   $0x0,(%rbx)
jne    14a8 <trmesh_+0x388>
movslq 0x2afd(%rip),%rax
movslq (%r15,%rax,4),%rcx
mov    (%r15,%rcx,4),%edx
cmp    %eax,%edx
jne    1560 <trmesh_+0x440>
mov    (%r14,%rax,4),%eax
mov    %eax,(%r15,%rcx,4)
mov    0x2ae7(%rip),%ecx
jmp    157b <trmesh_+0x45b>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %edx,%ecx
movslq %edx,%rsi
mov    (%r14,%rsi,4),%edx
cmp    %eax,%edx
jne    1560 <trmesh_+0x440>
mov    %esi,0x2ac5(%rip)
mov    (%r14,%rax,4),%eax
mov    %eax,(%r14,%rsi,4)
movslq 0x2ab2(%rip),%rax
movl   $0x0,(%r15,%rax,4)
movslq 0x2aa3(%rip),%rsi
mov    -0x4(%rdi,%rsi,4),%r8d
mov    %r8d,%r11d
jmp    15a9 <trmesh_+0x489>
nopl   0x0(%rax,%rax,1)
cmp    %r8d,%r11d
je     14c0 <trmesh_+0x3a0>
movslq %r11d,%rax
movslq -0x4(%r9,%rax,4),%r11
mov    0x8(%rsp),%rax
mov    -0x4(%rax,%r11,4),%eax
mov    %eax,%edx
neg    %edx
cmovs  %eax,%edx
mov    (%r15,%rdx,4),%eax
test   %eax,%eax
je     15a0 <trmesh_+0x480>
lea    (%r15,%rdx,4),%rdi
jmp    15de <trmesh_+0x4be>
mov    %eax,0x2a62(%rip)
mov    %eax,%ecx
mov    %edx,%eax
test   %edx,%edx
je     15a0 <trmesh_+0x480>
movslq %eax,%rbp
mov    (%r14,%rbp,4),%edx
mov    %edx,0x2a55(%rip)
movslq %esi,%rbx
movsd  -0x8(%r13,%rbp,8),%xmm0
mulsd  -0x8(%r13,%rbx,8),%xmm0
movsd  -0x8(%r12,%rbp,8),%xmm1
mulsd  -0x8(%r12,%rbx,8),%xmm1
addsd  %xmm0,%xmm1
mov    0x10(%rsp),%r10
movsd  -0x8(%r10,%rbp,8),%xmm0
mulsd  -0x8(%r10,%rbx,8),%xmm0
addsd  %xmm1,%xmm0
xorpd  %xmm2,%xmm0
mov    0x90(%rsp),%rbx
movsd  -0x8(%rbx,%rbp,8),%xmm1
ucomisd %xmm0,%xmm1
jbe    15d0 <trmesh_+0x4b0>
mov    %esi,(%r15,%rbp,4)
movsd  %xmm0,-0x8(%rbx,%rbp,8)
cmp    (%rdi),%eax
mov    0x29f1(%rip),%edx
movslq %ecx,%rsi
lea    (%r14,%rsi,4),%rsi
cmove  %rdi,%rsi
mov    %edx,(%rsi)
movslq 0x29d1(%rip),%rdx
mov    (%r15,%rdx,4),%edx
mov    %edx,(%r14,%rbp,4)
movslq 0x29c2(%rip),%rdx
mov    %eax,(%r15,%rdx,4)
mov    0x29b8(%rip),%esi
mov    0x29be(%rip),%edx
jmp    15d8 <trmesh_+0x4b8>

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

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