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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ bdyadd_(int *, int *, int *, int *, int *, int *, int *);
int /*<<< orphan*/ covsph_(int *, int *, int *, int *, int *, int *);
int /*<<< orphan*/ intadd_(int *, int *, int *, int *, int *, int *, int *,
                           int *);
int lstptr_(int *, int *, int *, int *);
int /*<<< orphan*/ swap_(int *, int *, int *, int *, int *, int *, int *,
                         int *);
int /*<<< orphan*/ swptst_(int *, int *, int *, int *, double *, double *,
                           double *);
int /*<<< orphan*/ trfind_(int *, double *, int *, double *, double *, double *,
                           int *, int *, int *, double *, double *, double *,
                           int *, int *, int *);
int addnod_(int *nst, int *k, double *x, double *y, double *z__, int *list,
            int *lptr, int *lend, int *lnew, int *ier) {
  int i__1;
  static int l;
  static double p[3], b1, b2, b3;
  static int i1, i2, i3, kk, lp, in1, io1, io2, km1, lpf, ist, lpo1;
  static int lpo1s;
  --lend;
  --z__;
  --y;
  --x;
  --list;
  --lptr;
  kk = *k;
  if (kk < 4) {
    goto L3;
  }
  km1 = kk - 1;
  ist = *nst;
  if (ist < 1) {
    ist = km1;
  }
  p[0] = x[kk];
  p[1] = y[kk];
  p[2] = z__[kk];
  trfind_(&ist, p, &km1, &x[1], &y[1], &z__[1], &list[1], &lptr[1], &lend[1],
          &b1, &b2, &b3, &i1, &i2, &i3);
  if (i1 == 0) {
    goto L4;
  }
  if (i3 != 0) {
    l = i1;
    if (p[0] == x[l] && p[1] == y[l] && p[2] == z__[l]) {
      goto L5;
    }
    l = i2;
    if (p[0] == x[l] && p[1] == y[l] && p[2] == z__[l]) {
      goto L5;
    }
    l = i3;
    if (p[0] == x[l] && p[1] == y[l] && p[2] == z__[l]) {
      goto L5;
    }
    intadd_(&kk, &i1, &i2, &i3, &list[1], &lptr[1], &lend[1], lnew);
  } else {
    if (i1 != i2) {
      bdyadd_(&kk, &i1, &i2, &list[1], &lptr[1], &lend[1], lnew);
    } else {
      covsph_(&kk, &i1, &list[1], &lptr[1], &lend[1], lnew);
    }
  }
  *ier = 0;
  lp = lend[kk];
  lpf = lptr[lp];
  io2 = list[lpf];
  lpo1 = lptr[lpf];
  io1 = (i__1 = list[lpo1], ((i__1) >= 0 ? (i__1) : -(i__1)));
L1:
  lp = lstptr_(&lend[io1], &io2, &list[1], &lptr[1]);
  if (list[lp] < 0) {
    goto L2;
  }
  lp = lptr[lp];
  in1 = (i__1 = list[lp], ((i__1) >= 0 ? (i__1) : -(i__1)));
  lpo1s = lpo1;
  if (!swptst_(&in1, &kk, &io1, &io2, &x[1], &y[1], &z__[1])) {
    goto L2;
  }
  swap_(&in1, &kk, &io1, &io2, &list[1], &lptr[1], &lend[1], &lpo1);
  if (lpo1 == 0) {
    lpo1 = lpo1s;
    goto L2;
  }
  io1 = in1;
  goto L1;
L2:
  if (lpo1 == lpf || list[lpo1] < 0) {
    return 0;
  }
  io2 = io1;
  lpo1 = lptr[lpo1];
  io1 = (i__1 = list[lpo1], ((i__1) >= 0 ? (i__1) : -(i__1)));
  goto L1;
L3:
  *ier = -1;
  return 0;
L4:
  *ier = -2;
  return 0;
L5:
  *ier = l;
  return 0;
}


x86 assembly (clang, -O0):
<addnod_>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x38(%rbp)
mov    %rsi,-0x40(%rbp)
mov    %rdx,-0x48(%rbp)
mov    %rcx,-0x50(%rbp)
mov    %r8,-0x58(%rbp)
mov    %r9,-0x60(%rbp)
mov    0x18(%rbp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,0x18(%rbp)
mov    -0x58(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x58(%rbp)
mov    -0x50(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x48(%rbp)
mov    -0x60(%rbp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,-0x60(%rbp)
mov    0x10(%rbp),%rax
add    $0xfffffffffffffffc,%rax
mov    %rax,0x10(%rbp)
mov    -0x40(%rbp),%rax
mov    (%rax),%eax
mov    %eax,0x2ebc(%rip)
cmpl   $0x4,0x2eb5(%rip)
jge    1212 <addnod_+0xa2>
jmp    1835 <addnod_+0x6c5>
mov    0x2ea4(%rip),%eax
sub    $0x1,%eax
mov    %eax,0x2eaf(%rip)
mov    -0x38(%rbp),%rax
mov    (%rax),%eax
mov    %eax,0x2eab(%rip)
cmpl   $0x1,0x2ea4(%rip)
jge    1246 <addnod_+0xd6>
mov    0x2e90(%rip),%eax
mov    %eax,0x2e92(%rip)
mov    -0x48(%rbp),%rax
movslq 0x2e6b(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,0x2e22(%rip)
mov    -0x50(%rbp),%rax
movslq 0x2e53(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,0x2e12(%rip)
mov    -0x58(%rbp),%rax
movslq 0x2e3b(%rip),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,0x2e02(%rip)
mov    -0x48(%rbp),%rcx
add    $0x8,%rcx
mov    -0x50(%rbp),%r8
add    $0x8,%r8
mov    -0x58(%rbp),%r9
add    $0x8,%r9
mov    -0x60(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x78(%rbp)
mov    0x10(%rbp),%r13
add    $0x4,%r13
mov    0x18(%rbp),%r12
add    $0x4,%r12
lea    0x2e0f(%rip),%rdi
lea    0x2db0(%rip),%rsi
lea    0x2df9(%rip),%rdx
lea    0x2dba(%rip),%r15
lea    0x2dbb(%rip),%r14
lea    0x2dbc(%rip),%rbx
lea    0x2dbd(%rip),%r11
lea    0x2dba(%rip),%r10
lea    0x2db7(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x70(%rbp),%rax
mov    %r13,0x8(%rsp)
mov    %r12,0x10(%rsp)
mov    %r15,0x18(%rsp)
mov    %r14,0x20(%rsp)
mov    %rbx,0x28(%rsp)
mov    %r11,0x30(%rsp)
mov    %r10,0x38(%rsp)
mov    %rax,0x40(%rsp)
call   1080 <trfind_@plt>
cmpl   $0x0,0x2d6b(%rip)
jne    1350 <addnod_+0x1e0>
jmp    184b <addnod_+0x6db>
cmpl   $0x0,0x2d61(%rip)
je     151f <addnod_+0x3af>
mov    0x2d4d(%rip),%eax
mov    %eax,0x2d07(%rip)
movsd  0x2d0f(%rip),%xmm0
mov    -0x48(%rbp),%rax
movslq 0x2cf4(%rip),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jne    13da <addnod_+0x26a>
jp     13da <addnod_+0x26a>
movsd  0x2cf3(%rip),%xmm0
mov    -0x50(%rbp),%rax
movslq 0x2cd0(%rip),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jne    13da <addnod_+0x26a>
jp     13da <addnod_+0x26a>
movsd  0x2cd7(%rip),%xmm0
mov    -0x58(%rbp),%rax
movslq 0x2cac(%rip),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jne    13da <addnod_+0x26a>
jp     13da <addnod_+0x26a>
jmp    1861 <addnod_+0x6f1>
mov    0x2cd4(%rip),%eax
mov    %eax,0x2c8a(%rip)
movsd  0x2c92(%rip),%xmm0
mov    -0x48(%rbp),%rax
movslq 0x2c77(%rip),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jne    1457 <addnod_+0x2e7>
jp     1457 <addnod_+0x2e7>
movsd  0x2c76(%rip),%xmm0
mov    -0x50(%rbp),%rax
movslq 0x2c53(%rip),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jne    1457 <addnod_+0x2e7>
jp     1457 <addnod_+0x2e7>
movsd  0x2c5a(%rip),%xmm0
mov    -0x58(%rbp),%rax
movslq 0x2c2f(%rip),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jne    1457 <addnod_+0x2e7>
jp     1457 <addnod_+0x2e7>
jmp    1861 <addnod_+0x6f1>
mov    0x2c5b(%rip),%eax
mov    %eax,0x2c0d(%rip)
movsd  0x2c15(%rip),%xmm0
mov    -0x48(%rbp),%rax
movslq 0x2bfa(%rip),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jne    14d4 <addnod_+0x364>
jp     14d4 <addnod_+0x364>
movsd  0x2bf9(%rip),%xmm0
mov    -0x50(%rbp),%rax
movslq 0x2bd6(%rip),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jne    14d4 <addnod_+0x364>
jp     14d4 <addnod_+0x364>
movsd  0x2bdd(%rip),%xmm0
mov    -0x58(%rbp),%rax
movslq 0x2bb2(%rip),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jne    14d4 <addnod_+0x364>
jp     14d4 <addnod_+0x364>
jmp    1861 <addnod_+0x6f1>
mov    -0x60(%rbp),%r8
add    $0x4,%r8
mov    0x10(%rbp),%r9
add    $0x4,%r9
mov    0x18(%rbp),%r10
add    $0x4,%r10
mov    0x20(%rbp),%rax
lea    0x2bc5(%rip),%rdi
lea    0x2bb2(%rip),%rsi
lea    0x2baf(%rip),%rdx
lea    0x2bac(%rip),%rcx
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1070 <intadd_@plt>
jmp    15a4 <addnod_+0x434>
mov    0x2b8b(%rip),%eax
cmp    0x2b89(%rip),%eax
je     1570 <addnod_+0x400>
mov    -0x60(%rbp),%rcx
add    $0x4,%rcx
mov    0x10(%rbp),%r8
add    $0x4,%r8
mov    0x18(%rbp),%r9
add    $0x4,%r9
mov    0x20(%rbp),%rax
lea    0x2b68(%rip),%rdi
lea    0x2b55(%rip),%rsi
lea    0x2b52(%rip),%rdx
mov    %rax,(%rsp)
call   1090 <bdyadd_@plt>
jmp    159f <addnod_+0x42f>
mov    -0x60(%rbp),%rdx
add    $0x4,%rdx
mov    0x10(%rbp),%rcx
add    $0x4,%rcx
mov    0x18(%rbp),%r8
add    $0x4,%r8
mov    0x20(%rbp),%r9
lea    0x2b29(%rip),%rdi
lea    0x2b16(%rip),%rsi
call   1030 <covsph_@plt>
jmp    15a4 <addnod_+0x434>
mov    0x28(%rbp),%rax
movl   $0x0,(%rax)
mov    0x18(%rbp),%rax
movslq 0x2b03(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x2afe(%rip)
mov    0x10(%rbp),%rax
movslq 0x2af3(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x2afe(%rip)
mov    -0x60(%rbp),%rax
movslq 0x2af3(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x2ae2(%rip)
mov    0x10(%rbp),%rax
movslq 0x2adf(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x2ade(%rip)
mov    -0x60(%rbp),%rax
movslq 0x2ad3(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x64(%rbp)
cmpl   $0x0,-0x64(%rbp)
jl     1624 <addnod_+0x4b4>
mov    -0x64(%rbp),%eax
mov    %eax,-0x7c(%rbp)
jmp    162c <addnod_+0x4bc>
xor    %eax,%eax
sub    -0x64(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
mov    %eax,0x2a93(%rip)
mov    0x18(%rbp),%rdi
movslq 0x2a88(%rip),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    -0x60(%rbp),%rdx
add    $0x4,%rdx
mov    0x10(%rbp),%rcx
add    $0x4,%rcx
lea    0x2a6e(%rip),%rsi
call   1050 <lstptr_@plt>
mov    %eax,0x2a57(%rip)
mov    -0x60(%rbp),%rax
movslq 0x2a4c(%rip),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jge    1683 <addnod_+0x513>
jmp    179d <addnod_+0x62d>
mov    0x10(%rbp),%rax
movslq 0x2a32(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x2a29(%rip)
mov    -0x60(%rbp),%rax
movslq 0x2a1e(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x64(%rbp)
cmpl   $0x0,-0x64(%rbp)
jl     16bd <addnod_+0x54d>
mov    -0x64(%rbp),%eax
mov    %eax,-0x80(%rbp)
jmp    16c5 <addnod_+0x555>
xor    %eax,%eax
sub    -0x64(%rbp),%eax
mov    %eax,-0x80(%rbp)
mov    -0x80(%rbp),%eax
mov    %eax,0x29f6(%rip)
mov    0x2a08(%rip),%eax
mov    %eax,0x2a06(%rip)
mov    -0x48(%rbp),%r8
add    $0x8,%r8
mov    -0x50(%rbp),%r9
add    $0x8,%r9
mov    -0x58(%rbp),%rax
add    $0x8,%rax
lea    0x29cb(%rip),%rdi
lea    0x29bc(%rip),%rsi
lea    0x29c1(%rip),%rdx
lea    0x29be(%rip),%rcx
mov    %rax,(%rsp)
call   1040 <swptst_@plt>
cmp    $0x0,%eax
jne    1725 <addnod_+0x5b5>
jmp    179d <addnod_+0x62d>
mov    -0x60(%rbp),%r8
add    $0x4,%r8
mov    0x10(%rbp),%r9
add    $0x4,%r9
mov    0x18(%rbp),%r10
add    $0x4,%r10
lea    0x2980(%rip),%rdi
lea    0x2971(%rip),%rsi
lea    0x2976(%rip),%rdx
lea    0x2973(%rip),%rcx
lea    0x297c(%rip),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1060 <swap_@plt>
cmpl   $0x0,0x2967(%rip)
jne    178c <addnod_+0x61c>
mov    0x295f(%rip),%eax
mov    %eax,0x2955(%rip)
jmp    179d <addnod_+0x62d>
mov    0x2932(%rip),%eax
mov    %eax,0x2930(%rip)
jmp    1635 <addnod_+0x4c5>
mov    0x2939(%rip),%eax
cmp    0x292b(%rip),%eax
je     17c4 <addnod_+0x654>
mov    -0x60(%rbp),%rax
movslq 0x2922(%rip),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jge    17d0 <addnod_+0x660>
movl   $0x0,-0x2c(%rbp)
jmp    1874 <addnod_+0x704>
mov    0x28f2(%rip),%eax
mov    %eax,0x28f0(%rip)
mov    0x10(%rbp),%rax
movslq 0x28f5(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,0x28ec(%rip)
mov    -0x60(%rbp),%rax
movslq 0x28e1(%rip),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x64(%rbp)
cmpl   $0x0,-0x64(%rbp)
jl     1819 <addnod_+0x6a9>
mov    -0x64(%rbp),%eax
mov    %eax,-0x84(%rbp)
jmp    1824 <addnod_+0x6b4>
xor    %eax,%eax
sub    -0x64(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
mov    %eax,0x2898(%rip)
jmp    1635 <addnod_+0x4c5>
mov    0x28(%rbp),%rax
movl   $0xffffffff,(%rax)
movl   $0x0,-0x2c(%rbp)
jmp    1874 <addnod_+0x704>
mov    0x28(%rbp),%rax
movl   $0xfffffffe,(%rax)
movl   $0x0,-0x2c(%rbp)
jmp    1874 <addnod_+0x704>
mov    0x2809(%rip),%ecx
mov    0x28(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<addnod_>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r8,(%rsp)
mov    %rcx,0x8(%rsp)
mov    0x68(%rsp),%r12
mov    (%rsi),%eax
mov    %eax,0x2f18(%rip)
mov    $0xffffffff,%ecx
cmp    $0x4,%eax
jl     1385 <addnod_+0x215>
mov    %r9,%rbx
mov    %rdx,%rbp
mov    0x50(%rsp),%r15
lea    -0x1(%rax),%ecx
mov    %ecx,0x2f06(%rip)
lea    0x2eff(%rip),%rdx
mov    (%rdi),%esi
test   %esi,%esi
cmovle %ecx,%esi
mov    %esi,0x2efa(%rip)
lea    0x2ef3(%rip),%rdi
movsd  -0x8(%rbp,%rax,8),%xmm0
movsd  %xmm0,0x2e91(%rip)
lea    0x2e8a(%rip),%rsi
mov    0x8(%rsp),%r8
movsd  -0x8(%r8,%rax,8),%xmm0
movsd  %xmm0,0x2e7e(%rip)
mov    (%rsp),%r9
movsd  -0x8(%r9,%rax,8),%xmm0
movsd  %xmm0,0x2e73(%rip)
sub    $0x8,%rsp
lea    0x2e90(%rip),%rax
lea    0x2e85(%rip),%r10
lea    0x2e7a(%rip),%r11
lea    0x2e6b(%rip),%r14
lea    0x2e5c(%rip),%r12
lea    0x2e4d(%rip),%r13
mov    %rbp,0x18(%rsp)
mov    %rbp,%rcx
push   %rax
push   %r10
push   %r11
push   %r14
mov    0x80(%rsp),%r14
push   %r12
push   %r13
push   %r14
push   %r15
push   %rbx
call   1080 <trfind_@plt>
add    $0x50,%rsp
movslq 0x2e35(%rip),%rcx
test   %rcx,%rcx
je     137b <addnod_+0x20b>
mov    0x60(%rsp),%rax
movslq 0x2e28(%rip),%rdx
test   %rdx,%rdx
mov    0x68(%rsp),%r12
je     139a <addnod_+0x22a>
movsd  0x2dda(%rip),%xmm0
mov    0x10(%rsp),%rbp
ucomisd -0x8(%rbp,%rcx,8),%xmm0
jne    12d6 <addnod_+0x166>
jp     12d6 <addnod_+0x166>
movsd  0x2dcb(%rip),%xmm1
mov    0x8(%rsp),%rsi
ucomisd -0x8(%rsi,%rcx,8),%xmm1
jne    12d6 <addnod_+0x166>
jp     12d6 <addnod_+0x166>
movsd  0x2dbc(%rip),%xmm1
mov    (%rsp),%rsi
ucomisd -0x8(%rsi,%rcx,8),%xmm1
jne    12d6 <addnod_+0x166>
jnp    1385 <addnod_+0x215>
mov    0x2dc8(%rip),%ecx
movslq %ecx,%rsi
ucomisd -0x8(%rbp,%rsi,8),%xmm0
jne    1316 <addnod_+0x1a6>
jp     1316 <addnod_+0x1a6>
movsd  0x2d87(%rip),%xmm1
mov    0x8(%rsp),%rdi
ucomisd -0x8(%rdi,%rsi,8),%xmm1
jne    1316 <addnod_+0x1a6>
jp     1316 <addnod_+0x1a6>
movsd  0x2d78(%rip),%xmm1
mov    (%rsp),%rdi
ucomisd -0x8(%rdi,%rsi,8),%xmm1
jne    1316 <addnod_+0x1a6>
jnp    1385 <addnod_+0x215>
ucomisd -0x8(%rbp,%rdx,8),%xmm0
jne    134f <addnod_+0x1df>
jp     134f <addnod_+0x1df>
movsd  0x2d50(%rip),%xmm0
mov    0x8(%rsp),%rcx
ucomisd -0x8(%rcx,%rdx,8),%xmm0
jne    134f <addnod_+0x1df>
jp     134f <addnod_+0x1df>
movsd  0x2d41(%rip),%xmm0
mov    (%rsp),%rcx
ucomisd -0x8(%rcx,%rdx,8),%xmm0
mov    %edx,%ecx
jne    134f <addnod_+0x1df>
jnp    1385 <addnod_+0x215>
lea    0x2d56(%rip),%rdi
lea    0x2d43(%rip),%rsi
lea    0x2d40(%rip),%rdx
lea    0x2d3d(%rip),%rcx
mov    %rbx,%r8
mov    %r15,%r9
push   %rax
push   %r14
call   1070 <intadd_@plt>
jmp    13eb <addnod_+0x27b>
mov    $0xfffffffe,%ecx
mov    0x68(%rsp),%r12
mov    %ecx,(%r12)
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cmp    0x2d04(%rip),%ecx
jne    13c3 <addnod_+0x253>
lea    0x2d03(%rip),%rdi
lea    0x2cf0(%rip),%rsi
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %r14,%r8
mov    %rax,%r9
call   1030 <covsph_@plt>
jmp    13ef <addnod_+0x27f>
sub    $0x8,%rsp
lea    0x2cde(%rip),%rdi
lea    0x2ccb(%rip),%rsi
lea    0x2cc8(%rip),%rdx
mov    %rbx,%rcx
mov    %r15,%r8
mov    %r14,%r9
push   %rax
call   1090 <bdyadd_@plt>
add    $0x10,%rsp
add    $0xfffffffffffffffc,%r14
movl   $0x0,(%r12)
movslq 0x2caa(%rip),%rax
movslq (%r14,%rax,4),%rax
movslq -0x4(%r15,%rax,4),%rax
mov    %eax,0x2caf(%rip)
mov    -0x4(%rbx,%rax,4),%ecx
mov    %ecx,0x2c9d(%rip)
movslq -0x4(%r15,%rax,4),%rax
mov    %eax,0x2ca2(%rip)
mov    -0x4(%rbx,%rax,4),%ecx
mov    %ecx,%eax
neg    %eax
cmovs  %ecx,%eax
lea    0x2c80(%rip),%r13
lea    0x2c6d(%rip),%rbp
lea    0x2c6e(%rip),%r12
jmp    1456 <addnod_+0x2e6>
nopl   0x0(%rax,%rax,1)
mov    0x2c5a(%rip),%eax
mov    %eax,0x2c58(%rip)
cltq
lea    (%r14,%rax,4),%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
mov    %r15,%rcx
call   1050 <lstptr_@plt>
cltq
cmpl   $0x0,-0x4(%rbx,%rax,4)
js     1520 <addnod_+0x3b0>
movslq -0x4(%r15,%rax,4),%rax
mov    -0x4(%rbx,%rax,4),%eax
mov    %eax,%ecx
neg    %ecx
cmovs  %eax,%ecx
mov    %ecx,0x2c1d(%rip)
mov    0x2c2f(%rip),%eax
mov    %eax,0x2c2d(%rip)
sub    $0x8,%rsp
lea    0x2c06(%rip),%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    0x18(%rsp),%r8
mov    0x10(%rsp),%r9
push   0x8(%rsp)
call   1040 <swptst_@plt>
add    $0x10,%rsp
test   %eax,%eax
je     1520 <addnod_+0x3b0>
lea    0x2bdb(%rip),%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %rbx,%r8
mov    %r15,%r9
lea    0x2bdd(%rip),%rax
push   %rax
push   0x60(%rsp)
call   1060 <swap_@plt>
add    $0x10,%rsp
cmpl   $0x0,0x2bc8(%rip)
jne    1450 <addnod_+0x2e0>
mov    0x2bc0(%rip),%eax
mov    %eax,0x2bb6(%rip)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq 0x2ba1(%rip),%rax
cmp    0x2b93(%rip),%eax
je     1389 <addnod_+0x219>
cmpl   $0x0,-0x4(%rbx,%rax,4)
js     1389 <addnod_+0x219>
mov    0x2b70(%rip),%ecx
mov    %ecx,0x2b6e(%rip)
movslq -0x4(%r15,%rax,4),%rax
mov    %eax,0x2b73(%rip)
mov    -0x4(%rbx,%rax,4),%ecx
mov    %ecx,%eax
neg    %eax
cmovs  %ecx,%eax
jmp    1456 <addnod_+0x2e6>

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

LLVM IR (-O2):
@addnod_.p = internal global [3 x double] zeroinitializer
@addnod_.b1 = internal global double 0.000000e+00
@addnod_.b2 = internal global double 0.000000e+00
@addnod_.b3 = internal global double 0.000000e+00
@addnod_.i1 = internal global i32 0
@addnod_.i2 = internal global i32 0
@addnod_.i3 = internal global i32 0
@addnod_.kk = internal global i32 0
@addnod_.in1 = internal global i32 0
@addnod_.io1 = internal global i32 0
@addnod_.io2 = internal global i32 0
@addnod_.km1 = internal global i32 0
@addnod_.lpf = internal unnamed_addr global i32 0
@addnod_.ist = internal global i32 0
@addnod_.lpo1 = internal global i32 0
@addnod_.lpo1s = internal unnamed_addr global i32 0
define i32 @addnod_(i32* nocapture %0, i32* nocapture %1, double* %2, double* %3, double* %4, i32* %5, i32* %6, i32* %7, i32* %8, i32* nocapture writeonly %9) {
%11 = getelementptr inbounds i32, i32* %7, i64 -1
%12 = getelementptr inbounds double, double* %4, i64 -1
%13 = getelementptr inbounds double, double* %3, i64 -1
%14 = getelementptr inbounds double, double* %2, i64 -1
%15 = getelementptr inbounds i32, i32* %5, i64 -1
%16 = getelementptr inbounds i32, i32* %6, i64 -1
%17 = load i32, i32* %1
store i32 %17, i32* @addnod_.kk
%18 = icmp slt i32 %17, 4
br i1 %18, label %156, label %19
19: ; preds = %10
%20 = add nsw i32 %17, -1
store i32 %20, i32* @addnod_.km1
%21 = load i32, i32* %0
%22 = icmp slt i32 %21, 1
%23 = select i1 %22, i32 %20, i32 %21
store i32 %23, i32* @addnod_.ist
%24 = zext i32 %17 to i64
%25 = getelementptr inbounds double, double* %14, i64 %24
%26 = load double, double* %25
store double %26, double* getelementptr inbounds ([3 x double], [3 x double]* @addnod_.p, i64 0, i64 0)
%27 = getelementptr inbounds double, double* %13, i64 %24
%28 = load double, double* %27
store double %28, double* getelementptr inbounds ([3 x double], [3 x double]* @addnod_.p, i64 0, i64 1)
%29 = getelementptr inbounds double, double* %12, i64 %24
%30 = load double, double* %29
store double %30, double* getelementptr inbounds ([3 x double], [3 x double]* @addnod_.p, i64 0, i64 2)
%31 = tail call i32 @trfind_(i32* @addnod_.ist, double* getelementptr inbounds ([3 x double], [3 x double]* @addnod_.p, i64 0, i64 0), i32* @addnod_.km1, double* %2, double* %3, double* %4, i32* %5, i32* %6, i32* %7, double* @addnod_.b1, double* @addnod_.b2, double* @addnod_.b3, i32* @addnod_.i1, i32* @addnod_.i2, i32* @addnod_.i3)
%32 = load i32, i32* @addnod_.i1
%33 = icmp eq i32 %32, 0
br i1 %33, label %156, label %34
34: ; preds = %19
%35 = load i32, i32* @addnod_.i3
%36 = icmp eq i32 %35, 0
br i1 %36, label %86, label %37
37: ; preds = %34
%38 = load double, double* getelementptr inbounds ([3 x double], [3 x double]* @addnod_.p, i64 0, i64 0)
%39 = sext i32 %32 to i64
%40 = getelementptr inbounds double, double* %14, i64 %39
%41 = load double, double* %40
%42 = fcmp oeq double %38, %41
br i1 %42, label %43, label %53
43: ; preds = %37
%44 = load double, double* getelementptr inbounds ([3 x double], [3 x double]* @addnod_.p, i64 0, i64 1)
%45 = getelementptr inbounds double, double* %13, i64 %39
%46 = load double, double* %45
%47 = fcmp oeq double %44, %46
br i1 %47, label %48, label %53
48: ; preds = %43
%49 = load double, double* getelementptr inbounds ([3 x double], [3 x double]* @addnod_.p, i64 0, i64 2)
%50 = getelementptr inbounds double, double* %12, i64 %39
%51 = load double, double* %50
%52 = fcmp oeq double %49, %51
br i1 %52, label %156, label %53
53: ; preds = %48, %43, %37
%54 = load i32, i32* @addnod_.i2
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %14, i64 %55
%57 = load double, double* %56
%58 = fcmp oeq double %38, %57
br i1 %58, label %59, label %69
59: ; preds = %53
%60 = load double, double* getelementptr inbounds ([3 x double], [3 x double]* @addnod_.p, i64 0, i64 1)
%61 = getelementptr inbounds double, double* %13, i64 %55
%62 = load double, double* %61
%63 = fcmp oeq double %60, %62
br i1 %63, label %64, label %69
64: ; preds = %59
%65 = load double, double* getelementptr inbounds ([3 x double], [3 x double]* @addnod_.p, i64 0, i64 2)
%66 = getelementptr inbounds double, double* %12, i64 %55
%67 = load double, double* %66
%68 = fcmp oeq double %65, %67
br i1 %68, label %156, label %69
69: ; preds = %64, %59, %53
%70 = sext i32 %35 to i64
%71 = getelementptr inbounds double, double* %14, i64 %70
%72 = load double, double* %71
%73 = fcmp oeq double %38, %72
br i1 %73, label %74, label %84
74: ; preds = %69
%75 = load double, double* getelementptr inbounds ([3 x double], [3 x double]* @addnod_.p, i64 0, i64 1)
%76 = getelementptr inbounds double, double* %13, i64 %70
%77 = load double, double* %76
%78 = fcmp oeq double %75, %77
br i1 %78, label %79, label %84
79: ; preds = %74
%80 = load double, double* getelementptr inbounds ([3 x double], [3 x double]* @addnod_.p, i64 0, i64 2)
%81 = getelementptr inbounds double, double* %12, i64 %70
%82 = load double, double* %81
%83 = fcmp oeq double %80, %82
br i1 %83, label %156, label %84
84: ; preds = %79, %74, %69
%85 = tail call i32 @intadd_(i32* @addnod_.kk, i32* @addnod_.i1, i32* @addnod_.i2, i32* @addnod_.i3, i32* %5, i32* %6, i32* %7, i32* %8)
br label %93
86: ; preds = %34
%87 = load i32, i32* @addnod_.i2
%88 = icmp eq i32 %32, %87
br i1 %88, label %91, label %89
89: ; preds = %86
%90 = tail call i32 @bdyadd_(i32* @addnod_.kk, i32* @addnod_.i1, i32* @addnod_.i2, i32* %5, i32* %6, i32* %7, i32* %8)
br label %93
91: ; preds = %86
%92 = tail call i32 @covsph_(i32* @addnod_.kk, i32* @addnod_.i1, i32* %5, i32* %6, i32* %7, i32* %8)
br label %93
93: ; preds = %89, %91, %84
store i32 0, i32* %9
%94 = load i32, i32* @addnod_.kk
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds i32, i32* %11, i64 %95
%97 = load i32, i32* %96
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i32, i32* %16, i64 %98
%100 = load i32, i32* %99
store i32 %100, i32* @addnod_.lpf
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i32, i32* %15, i64 %101
%103 = load i32, i32* %102
store i32 %103, i32* @addnod_.io2
%104 = getelementptr inbounds i32, i32* %16, i64 %101
%105 = load i32, i32* %104
store i32 %105, i32* @addnod_.lpo1
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i32, i32* %15, i64 %106
%108 = load i32, i32* %107
%109 = tail call i32 @llvm.abs.i32(i32 %108, i1 true)
br label %110
110: ; preds = %137, %93
%111 = phi i32 [ %109, %93 ], [ %138, %137 ]
store i32 %111, i32* @addnod_.io1
%112 = sext i32 %111 to i64
%113 = getelementptr inbounds i32, i32* %11, i64 %112
%114 = tail call i32 @lstptr_(i32* %113, i32* @addnod_.io2, i32* %5, i32* %6)
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i32, i32* %15, i64 %115
%117 = load i32, i32* %116
%118 = icmp slt i32 %117, 0
br i1 %118, label %139, label %119
119: ; preds = %110
%120 = getelementptr inbounds i32, i32* %16, i64 %115
%121 = load i32, i32* %120
%122 = sext i32 %121 to i64
%123 = getelementptr inbounds i32, i32* %15, i64 %122
%124 = load i32, i32* %123
%125 = tail call i32 @llvm.abs.i32(i32 %124, i1 true)
store i32 %125, i32* @addnod_.in1
%126 = load i32, i32* @addnod_.lpo1
store i32 %126, i32* @addnod_.lpo1s
%127 = tail call i32 @swptst_(i32* @addnod_.in1, i32* @addnod_.kk, i32* @addnod_.io1, i32* @addnod_.io2, double* %2, double* %3, double* %4)
%128 = icmp eq i32 %127, 0
br i1 %128, label %139, label %129
129: ; preds = %119
%130 = tail call i32 @swap_(i32* @addnod_.in1, i32* @addnod_.kk, i32* @addnod_.io1, i32* @addnod_.io2, i32* %5, i32* %6, i32* %7, i32* @addnod_.lpo1)
%131 = load i32, i32* @addnod_.lpo1
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %135
133: ; preds = %129
%134 = load i32, i32* @addnod_.lpo1s
store i32 %134, i32* @addnod_.lpo1
br label %139
135: ; preds = %129
%136 = load i32, i32* @addnod_.in1
br label %137
137: ; preds = %135, %148
%138 = phi i32 [ %136, %135 ], [ %155, %148 ]
br label %110
139: ; preds = %119, %110, %133
%140 = load i32, i32* @addnod_.lpo1
%141 = load i32, i32* @addnod_.lpf
%142 = icmp eq i32 %140, %141
br i1 %142, label %158, label %143
143: ; preds = %139
%144 = sext i32 %140 to i64
%145 = getelementptr inbounds i32, i32* %15, i64 %144
%146 = load i32, i32* %145
%147 = icmp slt i32 %146, 0
br i1 %147, label %158, label %148
148: ; preds = %143
%149 = load i32, i32* @addnod_.io1
store i32 %149, i32* @addnod_.io2
%150 = getelementptr inbounds i32, i32* %16, i64 %144
%151 = load i32, i32* %150
store i32 %151, i32* @addnod_.lpo1
%152 = sext i32 %151 to i64
%153 = getelementptr inbounds i32, i32* %15, i64 %152
%154 = load i32, i32* %153
%155 = tail call i32 @llvm.abs.i32(i32 %154, i1 true)
br label %137
156: ; preds = %48, %64, %79, %19, %10
%157 = phi i32 [ -1, %10 ], [ -2, %19 ], [ %35, %79 ], [ %54, %64 ], [ %32, %48 ]
store i32 %157, i32* %9
br label %158
158: ; preds = %139, %143, %156
ret i32 0
}