#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 */
double dot(double *, double *);
int /*<<< orphan*/ vec_norm(double *);
double veclen(double *);
void bp_context1(long num_bp, long **base_pairs, double HELIX_CHG,
                 double **bp_xyz, long **bp_order, long **end_list,
                 long *num_ends) {
  double temp = 0.0, ddmin[9], txyz[4], txyz2[4];
  long i, j, k, m, n = 0, overlap = 0, cnum = 8, ddidx[9];
  for (i = 1; i <= num_bp; i++) {
    for (j = 1; j <= cnum; j++) {
      ddmin[j] = 1.0e+18;
      ddidx[j] = 0;
    }
    for (j = 1; j <= num_bp; j++) {
      if (j == i)
        continue;
      for (k = 1; k <= 3; k++)
        txyz[k] = bp_xyz[i][k] - bp_xyz[j][k];
      temp = veclen(txyz);
      for (k = 1; k <= cnum; k++)
        if (temp < ddmin[k]) {
          for (m = cnum; m > k; m--)
            if (ddidx[n = m - 1]) {
              ddmin[m] = ddmin[n];
              ddidx[m] = ddidx[n];
            }
          ddmin[k] = temp;
          ddidx[k] = j;
          break;
        }
    }
    if (ddidx[1] && ddidx[2]) {
      if (ddmin[1] > HELIX_CHG)
        end_list[++*num_ends][1] = i;
      else {
        if (ddmin[1] < 1.25)
          overlap++;
        n = 0;
        for (j = 1; j <= 3; j++)
          txyz[j] = bp_xyz[i][j] - bp_xyz[ddidx[1]][j];
        vec_norm(txyz);
        for (j = 2; j <= cnum && ddidx[j]; j++) {
          for (k = 1; k <= 3; k++)
            txyz2[k] = bp_xyz[i][k] - bp_xyz[ddidx[j]][k];
          vec_norm(txyz2);
          if (dot(txyz, txyz2) < 0.26) {
            if (ddmin[j] <= HELIX_CHG) {
              n = j;
              bp_order[i][1] = -1;
              bp_order[i][2] = ddidx[1];
              bp_order[i][3] = ddidx[j];
            } else
              n = 9999;
            break;
          }
        }
        if (!n || n == 9999) {
          n = 2;
          end_list[++*num_ends][1] = i;
          end_list[*num_ends][2] = ddidx[1];
          bp_order[i][2] = ddidx[1];
          for (j = 1; j <= 3; j++)
            txyz2[j] = bp_xyz[ddidx[2]][j] - bp_xyz[ddidx[1]][j];
          if (dot(txyz, txyz2) < 0.0 && veclen(txyz2) <= HELIX_CHG) {
            end_list[*num_ends][3] = ddidx[2];
            bp_order[i][3] = ddidx[2];
          }
        }
      }
    }
  }
  if (!*num_ends) {
    end_list[++*num_ends][1] = 1;
    if (num_bp == 2) {
      if (temp <= HELIX_CHG) {
        end_list[*num_ends][2] = 2;
        end_list[++*num_ends][1] = 2;
        end_list[*num_ends][2] = 1;
      } else
        end_list[++*num_ends][1] = 2;
    }
  }
}


x86 assembly (clang, -O0):
<bp_context1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movq   $0x0,-0xf8(%rbp)
movq   $0x0,-0x100(%rbp)
movq   $0x8,-0x108(%rbp)
movq   $0x1,-0xd8(%rbp)
mov    -0xd8(%rbp),%rax
cmp    -0x8(%rbp),%rax
jg     185a <bp_context1+0x72a>
movq   $0x1,-0xe0(%rbp)
mov    -0xe0(%rbp),%rax
cmp    -0x108(%rbp),%rax
jg     11fe <bp_context1+0xce>
mov    -0xe0(%rbp),%rax
movsd  0xe45(%rip),%xmm0
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
mov    -0xe0(%rbp),%rax
movq   $0x0,-0x150(%rbp,%rax,8)
mov    -0xe0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe0(%rbp)
jmp    11a8 <bp_context1+0x78>
movq   $0x1,-0xe0(%rbp)
mov    -0xe0(%rbp),%rax
cmp    -0x8(%rbp),%rax
jg     13fd <bp_context1+0x2cd>
mov    -0xe0(%rbp),%rax
cmp    -0xd8(%rbp),%rax
jne    1233 <bp_context1+0x103>
jmp    13e6 <bp_context1+0x2b6>
movq   $0x1,-0xe8(%rbp)
cmpq   $0x3,-0xe8(%rbp)
03
jg     12a9 <bp_context1+0x179>
mov    -0x20(%rbp),%rax
mov    -0xd8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xe8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0xe0(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xe8(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0xe8(%rbp),%rax
movsd  %xmm0,-0xb0(%rbp,%rax,8)
ff ff
mov    -0xe8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe8(%rbp)
jmp    123e <bp_context1+0x10e>
lea    -0xb0(%rbp),%rdi
call   1050 <veclen@plt>
movsd  %xmm0,-0x40(%rbp)
movq   $0x1,-0xe8(%rbp)
mov    -0xe8(%rbp),%rax
cmp    -0x108(%rbp),%rax
jg     13e1 <bp_context1+0x2b1>
movsd  -0x40(%rbp),%xmm1
mov    -0xe8(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
ucomisd %xmm1,%xmm0
jbe    13c5 <bp_context1+0x295>
mov    -0x108(%rbp),%rax
mov    %rax,-0xf0(%rbp)
mov    -0xf0(%rbp),%rax
cmp    -0xe8(%rbp),%rax
jle    1395 <bp_context1+0x265>
mov    -0xf0(%rbp),%rax
sub    $0x1,%rax
mov    %rax,-0xf8(%rbp)
cmpq   $0x0,-0x150(%rbp,%rax,8)
je     1379 <bp_context1+0x249>
mov    -0xf8(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
mov    -0xf0(%rbp),%rax
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
mov    -0xf8(%rbp),%rax
mov    -0x150(%rbp,%rax,8),%rcx
ff
mov    -0xf0(%rbp),%rax
mov    %rcx,-0x150(%rbp,%rax,8)
ff
jmp    137e <bp_context1+0x24e>
mov    -0xf0(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0xf0(%rbp)
jmp    1306 <bp_context1+0x1d6>
movsd  -0x40(%rbp),%xmm0
mov    -0xe8(%rbp),%rax
movsd  %xmm0,-0x90(%rbp,%rax,8)
ff ff
mov    -0xe0(%rbp),%rcx
mov    -0xe8(%rbp),%rax
mov    %rcx,-0x150(%rbp,%rax,8)
ff
jmp    13e1 <bp_context1+0x2b1>
jmp    13ca <bp_context1+0x29a>
mov    -0xe8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe8(%rbp)
jmp    12c5 <bp_context1+0x195>
jmp    13e6 <bp_context1+0x2b6>
mov    -0xe0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe0(%rbp)
jmp    1209 <bp_context1+0xd9>
cmpq   $0x0,-0x148(%rbp)
je     183e <bp_context1+0x70e>
cmpq   $0x0,-0x140(%rbp)
je     183e <bp_context1+0x70e>
movsd  -0x88(%rbp),%xmm0
ff
ucomisd -0x18(%rbp),%xmm0
jbe    1456 <bp_context1+0x326>
mov    -0xd8(%rbp),%rcx
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rsi
mov    (%rsi),%rdx
mov    %rdx,%rdi
add    $0x1,%rdi
mov    %rdi,(%rsi)
mov    0x8(%rax,%rdx,8),%rax
mov    %rcx,0x8(%rax)
jmp    1839 <bp_context1+0x709>
movsd  0xba2(%rip),%xmm0
ucomisd -0x88(%rbp),%xmm0
ff
jbe    147e <bp_context1+0x34e>
mov    -0x100(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x100(%rbp)
movq   $0x0,-0xf8(%rbp)
movq   $0x1,-0xe0(%rbp)
cmpq   $0x3,-0xe0(%rbp)
03
jg     14ff <bp_context1+0x3cf>
mov    -0x20(%rbp),%rax
mov    -0xd8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xe0(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x148(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xe0(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0xe0(%rbp),%rax
movsd  %xmm0,-0xb0(%rbp,%rax,8)
ff ff
mov    -0xe0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe0(%rbp)
jmp    1494 <bp_context1+0x364>
lea    -0xb0(%rbp),%rdi
call   1040 <vec_norm@plt>
movq   $0x2,-0xe0(%rbp)
mov    -0xe0(%rbp),%rcx
xor    %eax,%eax
cmp    -0x108(%rbp),%rcx
mov    %al,-0x151(%rbp)
jg     154b <bp_context1+0x41b>
mov    -0xe0(%rbp),%rax
cmpq   $0x0,-0x150(%rbp,%rax,8)
setne  %al
mov    %al,-0x151(%rbp)
mov    -0x151(%rbp),%al
test   $0x1,%al
jne    155e <bp_context1+0x42e>
jmp    16c1 <bp_context1+0x591>
movq   $0x1,-0xe8(%rbp)
cmpq   $0x3,-0xe8(%rbp)
03
jg     15dc <bp_context1+0x4ac>
mov    -0x20(%rbp),%rax
mov    -0xd8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xe8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0xe0(%rbp),%rcx
mov    -0x150(%rbp,%rcx,8),%rcx
ff
mov    (%rax,%rcx,8),%rax
mov    -0xe8(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0xe8(%rbp),%rax
movsd  %xmm0,-0xd0(%rbp,%rax,8)
ff ff
mov    -0xe8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe8(%rbp)
jmp    1569 <bp_context1+0x439>
lea    -0xd0(%rbp),%rdi
call   1040 <vec_norm@plt>
lea    -0xb0(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
call   1030 <dot@plt>
movaps %xmm0,%xmm1
movsd  0xa02(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    16a5 <bp_context1+0x575>
mov    -0xe0(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm1
ff ff
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1695 <bp_context1+0x565>
mov    -0xe0(%rbp),%rax
mov    %rax,-0xf8(%rbp)
mov    -0x28(%rbp),%rax
mov    -0xd8(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movq   $0xffffffffffffffff,0x8(%rax)
ff
mov    -0x148(%rbp),%rcx
mov    -0x28(%rbp),%rax
mov    -0xd8(%rbp),%rdx
mov    (%rax,%rdx,8),%rax
mov    %rcx,0x10(%rax)
mov    -0xe0(%rbp),%rax
mov    -0x150(%rbp,%rax,8),%rcx
ff
mov    -0x28(%rbp),%rax
mov    -0xd8(%rbp),%rdx
mov    (%rax,%rdx,8),%rax
mov    %rcx,0x18(%rax)
jmp    16a0 <bp_context1+0x570>
movq   $0x270f,-0xf8(%rbp)
jmp    16c1 <bp_context1+0x591>
jmp    16aa <bp_context1+0x57a>
mov    -0xe0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe0(%rbp)
jmp    1516 <bp_context1+0x3e6>
cmpq   $0x0,-0xf8(%rbp)
je     16e0 <bp_context1+0x5b0>
cmpq   $0x270f,-0xf8(%rbp)
jne    1834 <bp_context1+0x704>
movq   $0x2,-0xf8(%rbp)
mov    -0xd8(%rbp),%rcx
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rsi
mov    (%rsi),%rdx
mov    %rdx,%rdi
add    $0x1,%rdi
mov    %rdi,(%rsi)
mov    0x8(%rax,%rdx,8),%rax
mov    %rcx,0x8(%rax)
mov    -0x148(%rbp),%rcx
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rdx
mov    (%rdx),%rdx
mov    (%rax,%rdx,8),%rax
mov    %rcx,0x10(%rax)
mov    -0x148(%rbp),%rcx
mov    -0x28(%rbp),%rax
mov    -0xd8(%rbp),%rdx
mov    (%rax,%rdx,8),%rax
mov    %rcx,0x10(%rax)
movq   $0x1,-0xe0(%rbp)
cmpq   $0x3,-0xe0(%rbp)
03
jg     17ba <bp_context1+0x68a>
mov    -0x20(%rbp),%rax
mov    -0x140(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xe0(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x148(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0xe0(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0xe0(%rbp),%rax
movsd  %xmm0,-0xd0(%rbp,%rax,8)
ff ff
mov    -0xe0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe0(%rbp)
jmp    174f <bp_context1+0x61f>
lea    -0xb0(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
call   1030 <dot@plt>
movaps %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    182f <bp_context1+0x6ff>
lea    -0xd0(%rbp),%rdi
call   1050 <veclen@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     182f <bp_context1+0x6ff>
mov    -0x140(%rbp),%rcx
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rdx
mov    (%rdx),%rdx
mov    (%rax,%rdx,8),%rax
mov    %rcx,0x18(%rax)
mov    -0x140(%rbp),%rcx
mov    -0x28(%rbp),%rax
mov    -0xd8(%rbp),%rdx
mov    (%rax,%rdx,8),%rax
mov    %rcx,0x18(%rax)
jmp    1834 <bp_context1+0x704>
jmp    1839 <bp_context1+0x709>
jmp    183e <bp_context1+0x70e>
jmp    1843 <bp_context1+0x713>
mov    -0xd8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xd8(%rbp)
jmp    118c <bp_context1+0x5c>
mov    -0x38(%rbp),%rax
cmpq   $0x0,(%rax)
jne    192a <bp_context1+0x7fa>
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
mov    0x8(%rax,%rcx,8),%rax
movq   $0x1,0x8(%rax)
cmpq   $0x2,-0x8(%rbp)
jne    1925 <bp_context1+0x7f5>
movsd  -0x40(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     18fe <bp_context1+0x7ce>
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
movq   $0x2,0x10(%rax)
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
mov    0x8(%rax,%rcx,8),%rax
movq   $0x2,0x8(%rax)
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    (%rcx),%rcx
mov    (%rax,%rcx,8),%rax
movq   $0x1,0x10(%rax)
jmp    1920 <bp_context1+0x7f0>
mov    -0x30(%rbp),%rax
mov    -0x38(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
mov    0x8(%rax,%rcx,8),%rax
movq   $0x2,0x8(%rax)
jmp    1925 <bp_context1+0x7f5>
jmp    192a <bp_context1+0x7fa>
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bp_context1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x128,%rsp
mov    %r9,0x40(%rsp)
mov    %r8,0x18(%rsp)
mov    %rcx,0x50(%rsp)
movsd  %xmm0,0x48(%rsp)
test   %rdi,%rdi
jle    19f0 <bp_context1+0x8c0>
mov    %rdx,%r12
mov    %rdi,%r13
neg    %r13
mov    $0x1,%r14d
xor    %r15d,%r15d
xorpd  %xmm1,%xmm1
mov    %rdi,0x120(%rsp)
jmp    11bc <bp_context1+0x8c>
mov    0x50(%rsp),%rax
mov    (%rax,%r14,8),%rax
movq   $0xffffffffffffffff,0x8(%rax)
ff
mov    %rbp,0x10(%rax)
mov    %rcx,0x18(%rax)
movsd  0x58(%rsp),%xmm1
xchg   %ax,%ax
lea    0x1(%r14),%rax
add    $0xffffffffffffffff,%r15
mov    0x120(%rsp),%rdi
cmp    %rdi,%r14
mov    %rax,%r14
je     19f4 <bp_context1+0x8c4>
lea    0xd8(%rsp),%rax
xorpd  %xmm0,%xmm0
movupd %xmm0,0x30(%rax)
movupd %xmm0,0x20(%rax)
movupd %xmm0,0x10(%rax)
movupd %xmm0,(%rax)
movapd 0xe1d(%rip),%xmm0
movupd %xmm0,0x88(%rsp)
movupd %xmm0,0x98(%rsp)
movupd %xmm0,0xa8(%rsp)
movupd %xmm0,0xb8(%rsp)
mov    $0x1,%ebp
jmp    1235 <bp_context1+0x105>
xchg   %ax,%ax
movsd  %xmm1,(%rdx)
mov    %rbp,0xd0(%rsp,%rax,8)
lea    0x1(,%rbp,1),%rax
add    %r13,%rax
add    $0x1,%rbp
cmp    $0x1,%rax
je     14f0 <bp_context1+0x3c0>
lea    (%r15,%rbp,1),%rax
cmp    $0x1,%rax
je     121c <bp_context1+0xec>
mov    (%r12,%r14,8),%rax
mov    (%r12,%rbp,8),%rcx
movupd 0x8(%rax),%xmm0
movupd 0x8(%rcx),%xmm1
subpd  %xmm1,%xmm0
movupd %xmm0,0x68(%rsp)
movsd  0x18(%rax),%xmm0
subsd  0x18(%rcx),%xmm0
movsd  %xmm0,0x78(%rsp)
lea    0x60(%rsp),%rdi
call   1050 <veclen@plt>
movapd %xmm0,%xmm1
movsd  0x88(%rsp),%xmm0
mov    $0x1,%eax
mov    $0x1,%cl
ucomisd %xmm1,%xmm0
jbe    12b0 <bp_context1+0x180>
mov    $0x1,%dil
mov    $0x1,%sil
mov    $0x1,%bl
mov    $0x1,%r9b
mov    $0x1,%r8b
jmp    136d <bp_context1+0x23d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0x90(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jbe    12d7 <bp_context1+0x1a7>
mov    $0x2,%eax
xor    %r8d,%r8d
mov    $0x1,%dil
mov    $0x1,%sil
mov    $0x1,%bl
mov    $0x1,%r9b
jmp    136d <bp_context1+0x23d>
movsd  0x98(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jbe    12f8 <bp_context1+0x1c8>
mov    $0x3,%eax
xor    %r9d,%r9d
mov    $0x1,%dil
mov    $0x1,%sil
mov    $0x1,%bl
jmp    136a <bp_context1+0x23a>
movsd  0xa0(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1316 <bp_context1+0x1e6>
mov    $0x4,%eax
xor    %ebx,%ebx
mov    $0x1,%dil
mov    $0x1,%sil
jmp    1367 <bp_context1+0x237>
movsd  0xa8(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1331 <bp_context1+0x201>
mov    $0x5,%eax
xor    %esi,%esi
mov    $0x1,%dil
jmp    1365 <bp_context1+0x235>
movsd  0xb0(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1347 <bp_context1+0x217>
mov    $0x6,%eax
jmp    1361 <bp_context1+0x231>
movsd  0xb8(%rsp),%xmm0
ucomisd %xmm1,%xmm0
jbe    14c6 <bp_context1+0x396>
mov    $0x7,%eax
xor    %ecx,%ecx
xor    %edi,%edi
xor    %esi,%esi
xor    %ebx,%ebx
xor    %r9d,%r9d
xor    %r8d,%r8d
mov    0x108(%rsp),%rdx
test   %rdx,%rdx
je     1394 <bp_context1+0x264>
movsd  0xb8(%rsp),%xmm0
movsd  %xmm0,0xc0(%rsp)
mov    %rdx,0x110(%rsp)
lea    (%rsp,%rax,8),%rdx
add    $0x80,%rdx
test   %cl,%cl
je     1210 <bp_context1+0xe0>
mov    0x100(%rsp),%rcx
test   %rcx,%rcx
je     13ce <bp_context1+0x29e>
movsd  0xb0(%rsp),%xmm0
movsd  %xmm0,0xb8(%rsp)
mov    %rcx,0x108(%rsp)
test   %dil,%dil
je     1210 <bp_context1+0xe0>
mov    0xf8(%rsp),%rcx
test   %rcx,%rcx
je     13fe <bp_context1+0x2ce>
movsd  0xa8(%rsp),%xmm0
movsd  %xmm0,0xb0(%rsp)
mov    %rcx,0x100(%rsp)
test   %sil,%sil
je     1210 <bp_context1+0xe0>
mov    0xf0(%rsp),%rcx
test   %rcx,%rcx
je     142e <bp_context1+0x2fe>
movsd  0xa0(%rsp),%xmm0
movsd  %xmm0,0xa8(%rsp)
mov    %rcx,0xf8(%rsp)
test   %bl,%bl
je     1210 <bp_context1+0xe0>
mov    0xe8(%rsp),%rcx
test   %rcx,%rcx
je     145d <bp_context1+0x32d>
movsd  0x98(%rsp),%xmm0
movsd  %xmm0,0xa0(%rsp)
mov    %rcx,0xf0(%rsp)
test   %r9b,%r9b
je     1210 <bp_context1+0xe0>
mov    0xe0(%rsp),%rcx
test   %rcx,%rcx
je     148d <bp_context1+0x35d>
movsd  0x90(%rsp),%xmm0
movsd  %xmm0,0x98(%rsp)
mov    %rcx,0xe8(%rsp)
test   %r8b,%r8b
je     1210 <bp_context1+0xe0>
mov    0xd8(%rsp),%rcx
test   %rcx,%rcx
je     1210 <bp_context1+0xe0>
movsd  0x88(%rsp),%xmm0
movsd  %xmm0,0x90(%rsp)
mov    %rcx,0xe0(%rsp)
jmp    1210 <bp_context1+0xe0>
movsd  0xc0(%rsp),%xmm0
mov    $0x8,%eax
ucomisd %xmm1,%xmm0
lea    0xc0(%rsp),%rdx
jbe    121c <bp_context1+0xec>
jmp    1210 <bp_context1+0xe0>
nopl   0x0(%rax,%rax,1)
mov    0xd8(%rsp),%rbp
test   %rbp,%rbp
je     11a0 <bp_context1+0x70>
mov    0xe0(%rsp),%rdx
test   %rdx,%rdx
je     11a0 <bp_context1+0x70>
movsd  0x88(%rsp),%xmm0
ucomisd 0x48(%rsp),%xmm0
jbe    1560 <bp_context1+0x430>
mov    0x40(%rsp),%rdx
mov    (%rdx),%rax
lea    0x1(%rax),%rcx
mov    %rcx,(%rdx)
mov    0x18(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
add    $0x8,%rax
mov    $0x1,%ecx
mov    %r14,%rbx
mov    (%rax),%rax
mov    %rbx,(%rax,%rcx,8)
jmp    11a0 <bp_context1+0x70>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  %xmm1,0x58(%rsp)
mov    (%r12,%r14,8),%rax
mov    (%r12,%rbp,8),%rcx
movupd 0x8(%rax),%xmm0
movupd 0x8(%rcx),%xmm1
subpd  %xmm1,%xmm0
movupd %xmm0,0x68(%rsp)
movsd  0x18(%rax),%xmm0
subsd  0x18(%rcx),%xmm0
movsd  %xmm0,0x78(%rsp)
mov    %rdx,0x10(%rsp)
lea    0x60(%rsp),%rdi
call   1040 <vec_norm@plt>
mov    (%r12,%r14,8),%rax
mov    0x10(%rsp),%rcx
mov    (%r12,%rcx,8),%rcx
movupd 0x8(%rax),%xmm0
movupd 0x8(%rcx),%xmm1
subpd  %xmm1,%xmm0
movupd %xmm0,0x28(%rsp)
movsd  0x18(%rax),%xmm0
subsd  0x18(%rcx),%xmm0
movsd  %xmm0,0x38(%rsp)
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <vec_norm@plt>
lea    0x60(%rsp),%rdi
mov    %rbx,%rsi
mov    0x10(%rsp),%rbx
call   1030 <dot@plt>
mov    $0x2,%eax
movsd  0xa12(%rip),%xmm1
ucomisd %xmm0,%xmm1
mov    %rbx,%rcx
ja     190f <bp_context1+0x7df>
mov    0xe8(%rsp),%rcx
test   %rcx,%rcx
je     1924 <bp_context1+0x7f4>
mov    (%r12,%r14,8),%rax
mov    %rcx,0x8(%rsp)
mov    0x8(%rsp),%rcx
mov    (%r12,%rcx,8),%rcx
movupd 0x8(%rax),%xmm0
movupd 0x8(%rcx),%xmm1
subpd  %xmm1,%xmm0
movupd %xmm0,0x28(%rsp)
movsd  0x18(%rax),%xmm0
subsd  0x18(%rcx),%xmm0
movsd  %xmm0,0x38(%rsp)
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <vec_norm@plt>
lea    0x60(%rsp),%rdi
mov    %rbx,%rsi
mov    0x10(%rsp),%rbx
call   1030 <dot@plt>
mov    0x8(%rsp),%rcx
mov    $0x3,%eax
movsd  0x98d(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     190f <bp_context1+0x7df>
mov    0xf0(%rsp),%rcx
test   %rcx,%rcx
je     1924 <bp_context1+0x7f4>
mov    (%r12,%r14,8),%rax
mov    %rcx,0x8(%rsp)
mov    0x8(%rsp),%rcx
mov    (%r12,%rcx,8),%rcx
movupd 0x8(%rax),%xmm0
movupd 0x8(%rcx),%xmm1
subpd  %xmm1,%xmm0
movupd %xmm0,0x28(%rsp)
movsd  0x18(%rax),%xmm0
subsd  0x18(%rcx),%xmm0
movsd  %xmm0,0x38(%rsp)
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <vec_norm@plt>
lea    0x60(%rsp),%rdi
mov    %rbx,%rsi
mov    0x10(%rsp),%rbx
call   1030 <dot@plt>
mov    0x8(%rsp),%rcx
mov    $0x4,%eax
movsd  0x90b(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     190f <bp_context1+0x7df>
mov    0xf8(%rsp),%rcx
test   %rcx,%rcx
je     1924 <bp_context1+0x7f4>
mov    (%r12,%r14,8),%rax
mov    %rcx,0x8(%rsp)
mov    0x8(%rsp),%rcx
mov    (%r12,%rcx,8),%rcx
movupd 0x8(%rax),%xmm0
movupd 0x8(%rcx),%xmm1
subpd  %xmm1,%xmm0
movupd %xmm0,0x28(%rsp)
movsd  0x18(%rax),%xmm0
subsd  0x18(%rcx),%xmm0
movsd  %xmm0,0x38(%rsp)
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <vec_norm@plt>
lea    0x60(%rsp),%rdi
mov    %rbx,%rsi
mov    0x10(%rsp),%rbx
call   1030 <dot@plt>
mov    0x8(%rsp),%rcx
mov    $0x5,%eax
movsd  0x889(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     190f <bp_context1+0x7df>
mov    0x100(%rsp),%rcx
test   %rcx,%rcx
je     1924 <bp_context1+0x7f4>
mov    (%r12,%r14,8),%rax
mov    %rcx,0x8(%rsp)
mov    0x8(%rsp),%rcx
mov    (%r12,%rcx,8),%rcx
movupd 0x8(%rax),%xmm0
movupd 0x8(%rcx),%xmm1
subpd  %xmm1,%xmm0
movupd %xmm0,0x28(%rsp)
movsd  0x18(%rax),%xmm0
subsd  0x18(%rcx),%xmm0
movsd  %xmm0,0x38(%rsp)
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <vec_norm@plt>
lea    0x60(%rsp),%rdi
mov    %rbx,%rsi
mov    0x10(%rsp),%rbx
call   1030 <dot@plt>
mov    0x8(%rsp),%rcx
mov    $0x6,%eax
movsd  0x807(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     190f <bp_context1+0x7df>
mov    0x108(%rsp),%rcx
test   %rcx,%rcx
je     1924 <bp_context1+0x7f4>
mov    (%r12,%r14,8),%rax
mov    %rcx,0x8(%rsp)
mov    0x8(%rsp),%rcx
mov    (%r12,%rcx,8),%rcx
movupd 0x8(%rax),%xmm0
movupd 0x8(%rcx),%xmm1
subpd  %xmm1,%xmm0
movupd %xmm0,0x28(%rsp)
movsd  0x18(%rax),%xmm0
subsd  0x18(%rcx),%xmm0
movsd  %xmm0,0x38(%rsp)
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <vec_norm@plt>
lea    0x60(%rsp),%rdi
mov    %rbx,%rsi
mov    0x10(%rsp),%rbx
call   1030 <dot@plt>
mov    0x8(%rsp),%rcx
mov    $0x7,%eax
movsd  0x785(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     190f <bp_context1+0x7df>
mov    0x110(%rsp),%rcx
test   %rcx,%rcx
je     1924 <bp_context1+0x7f4>
mov    (%r12,%r14,8),%rax
mov    %rcx,0x8(%rsp)
mov    0x8(%rsp),%rcx
mov    (%r12,%rcx,8),%rcx
movupd 0x8(%rax),%xmm0
movupd 0x8(%rcx),%xmm1
subpd  %xmm1,%xmm0
movupd %xmm0,0x28(%rsp)
movsd  0x18(%rax),%xmm0
subsd  0x18(%rcx),%xmm0
movsd  %xmm0,0x38(%rsp)
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <vec_norm@plt>
lea    0x60(%rsp),%rdi
mov    %rbx,%rsi
mov    0x10(%rsp),%rbx
call   1030 <dot@plt>
mov    0x8(%rsp),%rcx
mov    $0x8,%eax
movsd  0x707(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    1924 <bp_context1+0x7f4>
movsd  0x48(%rsp),%xmm0
ucomisd 0x80(%rsp,%rax,8),%xmm0
jae    117f <bp_context1+0x4f>
mov    0x40(%rsp),%rdx
mov    (%rdx),%rax
lea    0x1(%rax),%rcx
mov    %rcx,(%rdx)
mov    0x18(%rsp),%rcx
mov    0x8(%rcx,%rax,8),%rax
mov    %r14,0x8(%rax)
mov    (%rdx),%rax
mov    (%rcx,%rax,8),%rax
mov    %rbp,0x10(%rax)
mov    0x50(%rsp),%rax
mov    (%rax,%r14,8),%rax
mov    %rbp,0x10(%rax)
mov    (%r12,%rbx,8),%rax
mov    (%r12,%rbp,8),%rcx
movupd 0x8(%rax),%xmm0
movupd 0x8(%rcx),%xmm1
subpd  %xmm1,%xmm0
movupd %xmm0,0x28(%rsp)
movsd  0x18(%rax),%xmm0
subsd  0x18(%rcx),%xmm0
movsd  %xmm0,0x38(%rsp)
lea    0x60(%rsp),%rdi
lea    0x20(%rsp),%rsi
call   1030 <dot@plt>
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
movsd  0x58(%rsp),%xmm1
jbe    11a0 <bp_context1+0x70>
lea    0x20(%rsp),%rdi
call   1050 <veclen@plt>
movsd  0x48(%rsp),%xmm1
ucomisd %xmm0,%xmm1
movsd  0x58(%rsp),%xmm1
jb     11a0 <bp_context1+0x70>
mov    0x50(%rsp),%rax
lea    (%rax,%r14,8),%rax
mov    0x40(%rsp),%rcx
mov    (%rcx),%rcx
mov    0x18(%rsp),%rdx
mov    (%rdx,%rcx,8),%rcx
mov    %rbx,0x18(%rcx)
mov    $0x3,%ecx
jmp    1547 <bp_context1+0x417>
xorpd  %xmm1,%xmm1
mov    0x40(%rsp),%rdx
cmpq   $0x0,(%rdx)
jne    1a85 <bp_context1+0x955>
movq   $0x1,(%rdx)
mov    0x18(%rsp),%rax
mov    0x8(%rax),%rax
movq   $0x1,0x8(%rax)
cmp    $0x2,%rdi
jne    1a85 <bp_context1+0x955>
movsd  0x48(%rsp),%xmm0
ucomisd %xmm1,%xmm0
mov    (%rdx),%rax
jae    1a48 <bp_context1+0x918>
add    $0x1,%rax
mov    %rax,(%rdx)
mov    $0x2,%ecx
mov    $0x1,%edx
mov    0x18(%rsp),%rsi
jmp    1a7d <bp_context1+0x94d>
mov    0x18(%rsp),%rsi
mov    (%rsi,%rax,8),%rax
movq   $0x2,0x10(%rax)
mov    (%rdx),%rax
lea    0x1(%rax),%rcx
mov    %rcx,(%rdx)
mov    0x8(%rsi,%rax,8),%rax
movq   $0x2,0x8(%rax)
mov    (%rdx),%rax
mov    $0x1,%ecx
mov    $0x2,%edx
mov    (%rsi,%rax,8),%rax
mov    %rcx,(%rax,%rdx,8)
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @bp_context1(i64 %0, i64** nocapture readnone %1, double %2, double** nocapture %3, i64** nocapture %4, i64** nocapture %5, i64* nocapture %6) {
%8 = alloca [9 x double]
%9 = alloca [4 x double]
%10 = alloca [4 x double]
%11 = alloca [9 x i64]
%12 = bitcast [9 x double]* %8 to i8*
%13 = bitcast [4 x double]* %9 to i8*
%14 = bitcast [4 x double]* %10 to i8*
%15 = bitcast [9 x i64]* %11 to i8*
%16 = icmp slt i64 %0, 1
br i1 %16, label %433, label %17
17: ; preds = %7
%18 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 0
%19 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 1
%20 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 2
%21 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 1
%22 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%23 = bitcast i64* %19 to i8*
%24 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 2
%25 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 3
%26 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 4
%27 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 5
%28 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 6
%29 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 7
%30 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 8
%31 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 1
%32 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 3
%33 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 8
%34 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 1
%35 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 3
%36 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%37 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%38 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 1
%39 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 3
%40 = bitcast double* %21 to <2 x double>*
%41 = bitcast double* %25 to <2 x double>*
%42 = bitcast double* %27 to <2 x double>*
%43 = bitcast double* %29 to <2 x double>*
%44 = bitcast double* %31 to <2 x double>*
%45 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 7
%46 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 7
%47 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 8
%48 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 8
%49 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 6
%50 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 6
%51 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 7
%52 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 7
%53 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 5
%54 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 5
%55 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 6
%56 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 6
%57 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 4
%58 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 4
%59 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 5
%60 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 5
%61 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 3
%62 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 3
%63 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 4
%64 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 4
%65 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 2
%66 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 2
%67 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 3
%68 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 3
%69 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 1
%70 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 1
%71 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 2
%72 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 2
%73 = bitcast double* %34 to <2 x double>*
%74 = bitcast double* %36 to <2 x double>*
%75 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 3
%76 = bitcast double* %36 to <2 x double>*
%77 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 4
%78 = bitcast double* %36 to <2 x double>*
%79 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 5
%80 = bitcast double* %36 to <2 x double>*
%81 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 6
%82 = bitcast double* %36 to <2 x double>*
%83 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 7
%84 = bitcast double* %36 to <2 x double>*
%85 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 8
%86 = bitcast double* %36 to <2 x double>*
%87 = bitcast double* %38 to <2 x double>*
br label %88
88: ; preds = %430, %17
%89 = phi double [ 0.000000e+00, %17 ], [ %190, %430 ]
%90 = phi i64 [ 1, %17 ], [ %431, %430 ]
store <2 x double> <double 1.000000e+18, double 1.000000e+18>, <2 x double>* %40
store <2 x double> <double 1.000000e+18, double 1.000000e+18>, <2 x double>* %41
store <2 x double> <double 1.000000e+18, double 1.000000e+18>, <2 x double>* %42
store <2 x double> <double 1.000000e+18, double 1.000000e+18>, <2 x double>* %43
%91 = getelementptr inbounds double*, double** %3, i64 %90
br label %92
92: ; preds = %88, %189
%93 = phi double [ %89, %88 ], [ %190, %189 ]
%94 = phi i64 [ 1, %88 ], [ %191, %189 ]
%95 = icmp eq i64 %94, %90
br i1 %95, label %189, label %96
96: ; preds = %92
%97 = load double*, double** %91
%98 = getelementptr inbounds double*, double** %3, i64 %94
%99 = load double*, double** %98
%100 = getelementptr inbounds double, double* %97, i64 1
%101 = getelementptr inbounds double, double* %99, i64 1
%102 = bitcast double* %100 to <2 x double>*
%103 = load <2 x double>, <2 x double>* %102
%104 = bitcast double* %101 to <2 x double>*
%105 = load <2 x double>, <2 x double>* %104
%106 = fsub <2 x double> %103, %105
store <2 x double> %106, <2 x double>* %44
%107 = getelementptr inbounds double, double* %97, i64 3
%108 = load double, double* %107
%109 = getelementptr inbounds double, double* %99, i64 3
%110 = load double, double* %109
%111 = fsub double %108, %110
store double %111, double* %32
%112 = call double @veclen(double* %18)
%113 = load double, double* %21
%114 = fcmp olt double %112, %113
br i1 %114, label %115, label %168
115: ; preds = %183, %180, %177, %174, %171, %168, %96
%116 = phi i1 [ false, %183 ], [ true, %180 ], [ true, %177 ], [ true, %174 ], [ true, %171 ], [ true, %168 ], [ true, %96 ]
%117 = phi i1 [ false, %183 ], [ false, %180 ], [ true, %177 ], [ true, %174 ], [ true, %171 ], [ true, %168 ], [ true, %96 ]
%118 = phi i1 [ false, %183 ], [ false, %180 ], [ false, %177 ], [ true, %174 ], [ true, %171 ], [ true, %168 ], [ true, %96 ]
%119 = phi i1 [ false, %183 ], [ false, %180 ], [ false, %177 ], [ false, %174 ], [ true, %171 ], [ true, %168 ], [ true, %96 ]
%120 = phi i1 [ false, %183 ], [ false, %180 ], [ false, %177 ], [ false, %174 ], [ false, %171 ], [ true, %168 ], [ true, %96 ]
%121 = phi i1 [ false, %183 ], [ false, %180 ], [ false, %177 ], [ false, %174 ], [ false, %171 ], [ false, %168 ], [ true, %96 ]
%122 = phi i64 [ 7, %183 ], [ 6, %180 ], [ 5, %177 ], [ 4, %174 ], [ 3, %171 ], [ 2, %168 ], [ 1, %96 ]
%123 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 %122
%124 = load i64, i64* %45
%125 = icmp eq i64 %124, 0
br i1 %125, label %128, label %126
126: ; preds = %115
%127 = load double, double* %46
store double %127, double* %47
store i64 %124, i64* %48
br label %128
128: ; preds = %115, %126
br i1 %116, label %129, label %164
129: ; preds = %128
%130 = load i64, i64* %49
%131 = icmp eq i64 %130, 0
br i1 %131, label %134, label %132
132: ; preds = %129
%133 = load double, double* %50
store double %133, double* %51
store i64 %130, i64* %52
br label %134
134: ; preds = %132, %129
br i1 %117, label %135, label %164
135: ; preds = %134
%136 = load i64, i64* %53
%137 = icmp eq i64 %136, 0
br i1 %137, label %140, label %138
138: ; preds = %135
%139 = load double, double* %54
store double %139, double* %55
store i64 %136, i64* %56
br label %140
140: ; preds = %138, %135
br i1 %118, label %141, label %164
141: ; preds = %140
%142 = load i64, i64* %57
%143 = icmp eq i64 %142, 0
br i1 %143, label %146, label %144
144: ; preds = %141
%145 = load double, double* %58
store double %145, double* %59
store i64 %142, i64* %60
br label %146
146: ; preds = %144, %141
br i1 %119, label %147, label %164
147: ; preds = %146
%148 = load i64, i64* %61
%149 = icmp eq i64 %148, 0
br i1 %149, label %152, label %150
150: ; preds = %147
%151 = load double, double* %62
store double %151, double* %63
store i64 %148, i64* %64
br label %152
152: ; preds = %150, %147
br i1 %120, label %153, label %164
153: ; preds = %152
%154 = load i64, i64* %65
%155 = icmp eq i64 %154, 0
br i1 %155, label %158, label %156
156: ; preds = %153
%157 = load double, double* %66
store double %157, double* %67
store i64 %154, i64* %68
br label %158
158: ; preds = %156, %153
br i1 %121, label %159, label %164
159: ; preds = %158
%160 = load i64, i64* %69
%161 = icmp eq i64 %160, 0
br i1 %161, label %164, label %162
162: ; preds = %159
%163 = load double, double* %70
store double %163, double* %71
store i64 %160, i64* %72
br label %164
164: ; preds = %128, %134, %140, %146, %152, %158, %162, %159, %186
%165 = phi double* [ %33, %186 ], [ %123, %159 ], [ %123, %162 ], [ %123, %158 ], [ %123, %152 ], [ %123, %146 ], [ %123, %140 ], [ %123, %134 ], [ %123, %128 ]
%166 = phi i64 [ 8, %186 ], [ %122, %159 ], [ %122, %162 ], [ %122, %158 ], [ %122, %152 ], [ %122, %146 ], [ %122, %140 ], [ %122, %134 ], [ %122, %128 ]
store double %112, double* %165
%167 = getelementptr inbounds [9 x i64], [9 x i64]* %11, i64 0, i64 %166
store i64 %94, i64* %167
br label %189
168: ; preds = %96
%169 = load double, double* %24
%170 = fcmp olt double %112, %169
br i1 %170, label %115, label %171
171: ; preds = %168
%172 = load double, double* %25
%173 = fcmp olt double %112, %172
br i1 %173, label %115, label %174
174: ; preds = %171
%175 = load double, double* %26
%176 = fcmp olt double %112, %175
br i1 %176, label %115, label %177
177: ; preds = %174
%178 = load double, double* %27
%179 = fcmp olt double %112, %178
br i1 %179, label %115, label %180
180: ; preds = %177
%181 = load double, double* %28
%182 = fcmp olt double %112, %181
br i1 %182, label %115, label %183
183: ; preds = %180
%184 = load double, double* %29
%185 = fcmp olt double %112, %184
br i1 %185, label %115, label %186
186: ; preds = %183
%187 = load double, double* %30
%188 = fcmp olt double %112, %187
br i1 %188, label %164, label %189
189: ; preds = %186, %164, %92
%190 = phi double [ %93, %92 ], [ %112, %164 ], [ %112, %186 ]
%191 = add nuw i64 %94, 1
%192 = icmp eq i64 %94, %0
br i1 %192, label %193, label %92
193: ; preds = %189
%194 = load i64, i64* %19
%195 = load i64, i64* %20
%196 = icmp ne i64 %194, 0
%197 = icmp ne i64 %195, 0
%198 = select i1 %196, i1 %197, i1 false
br i1 %198, label %199, label %430
199: ; preds = %193
%200 = load double, double* %21
%201 = fcmp ogt double %200, %2
br i1 %201, label %202, label %206
202: ; preds = %199
%203 = load i64, i64* %6
%204 = add nsw i64 %203, 1
store i64 %204, i64* %6
%205 = getelementptr inbounds i64*, i64** %5, i64 %204
br label %424
206: ; preds = %199
%207 = getelementptr inbounds double*, double** %3, i64 %90
%208 = load double*, double** %207
%209 = getelementptr inbounds double*, double** %3, i64 %194
%210 = load double*, double** %209
%211 = getelementptr inbounds double, double* %208, i64 1
%212 = getelementptr inbounds double, double* %210, i64 1
%213 = bitcast double* %211 to <2 x double>*
%214 = load <2 x double>, <2 x double>* %213
%215 = bitcast double* %212 to <2 x double>*
%216 = load <2 x double>, <2 x double>* %215
%217 = fsub <2 x double> %214, %216
store <2 x double> %217, <2 x double>* %73
%218 = getelementptr inbounds double, double* %208, i64 3
%219 = load double, double* %218
%220 = getelementptr inbounds double, double* %210, i64 3
%221 = load double, double* %220
%222 = fsub double %219, %221
store double %222, double* %35
%223 = call i32 @vec_norm(double* %18)
%224 = load double*, double** %207
%225 = getelementptr inbounds double*, double** %3, i64 %195
%226 = load double*, double** %225
%227 = getelementptr inbounds double, double* %224, i64 1
%228 = getelementptr inbounds double, double* %226, i64 1
%229 = bitcast double* %227 to <2 x double>*
%230 = load <2 x double>, <2 x double>* %229
%231 = bitcast double* %228 to <2 x double>*
%232 = load <2 x double>, <2 x double>* %231
%233 = fsub <2 x double> %230, %232
store <2 x double> %233, <2 x double>* %74
%234 = getelementptr inbounds double, double* %224, i64 3
%235 = load double, double* %234
%236 = getelementptr inbounds double, double* %226, i64 3
%237 = load double, double* %236
%238 = fsub double %235, %237
store double %238, double* %37
%239 = call i32 @vec_norm(double* %22)
%240 = call double @dot(double* %18, double* %22)
%241 = fcmp olt double %240, 2.600000e-01
br i1 %241, label %242, label %248
242: ; preds = %361, %339, %317, %295, %273, %251, %206
%243 = phi i64 [ 2, %206 ], [ 3, %251 ], [ 4, %273 ], [ 5, %295 ], [ 6, %317 ], [ 7, %339 ], [ 8, %361 ]
%244 = phi i64 [ %195, %206 ], [ %249, %251 ], [ %271, %273 ], [ %293, %295 ], [ %315, %317 ], [ %337, %339 ], [ %359, %361 ]
%245 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 %243
%246 = load double, double* %245
%247 = fcmp ugt double %246, %2
br i1 %247, label %386, label %380
248: ; preds = %206
%249 = load i64, i64* %75
%250 = icmp eq i64 %249, 0
br i1 %250, label %386, label %251
251: ; preds = %248
%252 = load double*, double** %207
%253 = getelementptr inbounds double*, double** %3, i64 %249
%254 = load double*, double** %253
%255 = getelementptr inbounds double, double* %252, i64 1
%256 = getelementptr inbounds double, double* %254, i64 1
%257 = bitcast double* %255 to <2 x double>*
%258 = load <2 x double>, <2 x double>* %257
%259 = bitcast double* %256 to <2 x double>*
%260 = load <2 x double>, <2 x double>* %259
%261 = fsub <2 x double> %258, %260
store <2 x double> %261, <2 x double>* %76
%262 = getelementptr inbounds double, double* %252, i64 3
%263 = load double, double* %262
%264 = getelementptr inbounds double, double* %254, i64 3
%265 = load double, double* %264
%266 = fsub double %263, %265
store double %266, double* %37
%267 = call i32 @vec_norm(double* %22)
%268 = call double @dot(double* %18, double* %22)
%269 = fcmp olt double %268, 2.600000e-01
br i1 %269, label %242, label %270
270: ; preds = %251
%271 = load i64, i64* %77
%272 = icmp eq i64 %271, 0
br i1 %272, label %386, label %273
273: ; preds = %270
%274 = load double*, double** %207
%275 = getelementptr inbounds double*, double** %3, i64 %271
%276 = load double*, double** %275
%277 = getelementptr inbounds double, double* %274, i64 1
%278 = getelementptr inbounds double, double* %276, i64 1
%279 = bitcast double* %277 to <2 x double>*
%280 = load <2 x double>, <2 x double>* %279
%281 = bitcast double* %278 to <2 x double>*
%282 = load <2 x double>, <2 x double>* %281
%283 = fsub <2 x double> %280, %282
store <2 x double> %283, <2 x double>* %78
%284 = getelementptr inbounds double, double* %274, i64 3
%285 = load double, double* %284
%286 = getelementptr inbounds double, double* %276, i64 3
%287 = load double, double* %286
%288 = fsub double %285, %287
store double %288, double* %37
%289 = call i32 @vec_norm(double* %22)
%290 = call double @dot(double* %18, double* %22)
%291 = fcmp olt double %290, 2.600000e-01
br i1 %291, label %242, label %292
292: ; preds = %273
%293 = load i64, i64* %79
%294 = icmp eq i64 %293, 0
br i1 %294, label %386, label %295
295: ; preds = %292
%296 = load double*, double** %207
%297 = getelementptr inbounds double*, double** %3, i64 %293
%298 = load double*, double** %297
%299 = getelementptr inbounds double, double* %296, i64 1
%300 = getelementptr inbounds double, double* %298, i64 1
%301 = bitcast double* %299 to <2 x double>*
%302 = load <2 x double>, <2 x double>* %301
%303 = bitcast double* %300 to <2 x double>*
%304 = load <2 x double>, <2 x double>* %303
%305 = fsub <2 x double> %302, %304
store <2 x double> %305, <2 x double>* %80
%306 = getelementptr inbounds double, double* %296, i64 3
%307 = load double, double* %306
%308 = getelementptr inbounds double, double* %298, i64 3
%309 = load double, double* %308
%310 = fsub double %307, %309
store double %310, double* %37
%311 = call i32 @vec_norm(double* %22)
%312 = call double @dot(double* %18, double* %22)
%313 = fcmp olt double %312, 2.600000e-01
br i1 %313, label %242, label %314
314: ; preds = %295
%315 = load i64, i64* %81
%316 = icmp eq i64 %315, 0
br i1 %316, label %386, label %317
317: ; preds = %314
%318 = load double*, double** %207
%319 = getelementptr inbounds double*, double** %3, i64 %315
%320 = load double*, double** %319
%321 = getelementptr inbounds double, double* %318, i64 1
%322 = getelementptr inbounds double, double* %320, i64 1
%323 = bitcast double* %321 to <2 x double>*
%324 = load <2 x double>, <2 x double>* %323
%325 = bitcast double* %322 to <2 x double>*
%326 = load <2 x double>, <2 x double>* %325
%327 = fsub <2 x double> %324, %326
store <2 x double> %327, <2 x double>* %82
%328 = getelementptr inbounds double, double* %318, i64 3
%329 = load double, double* %328
%330 = getelementptr inbounds double, double* %320, i64 3
%331 = load double, double* %330
%332 = fsub double %329, %331
store double %332, double* %37
%333 = call i32 @vec_norm(double* %22)
%334 = call double @dot(double* %18, double* %22)
%335 = fcmp olt double %334, 2.600000e-01
br i1 %335, label %242, label %336
336: ; preds = %317
%337 = load i64, i64* %83
%338 = icmp eq i64 %337, 0
br i1 %338, label %386, label %339
339: ; preds = %336
%340 = load double*, double** %207
%341 = getelementptr inbounds double*, double** %3, i64 %337
%342 = load double*, double** %341
%343 = getelementptr inbounds double, double* %340, i64 1
%344 = getelementptr inbounds double, double* %342, i64 1
%345 = bitcast double* %343 to <2 x double>*
%346 = load <2 x double>, <2 x double>* %345
%347 = bitcast double* %344 to <2 x double>*
%348 = load <2 x double>, <2 x double>* %347
%349 = fsub <2 x double> %346, %348
store <2 x double> %349, <2 x double>* %84
%350 = getelementptr inbounds double, double* %340, i64 3
%351 = load double, double* %350
%352 = getelementptr inbounds double, double* %342, i64 3
%353 = load double, double* %352
%354 = fsub double %351, %353
store double %354, double* %37
%355 = call i32 @vec_norm(double* %22)
%356 = call double @dot(double* %18, double* %22)
%357 = fcmp olt double %356, 2.600000e-01
br i1 %357, label %242, label %358
358: ; preds = %339
%359 = load i64, i64* %85
%360 = icmp eq i64 %359, 0
br i1 %360, label %386, label %361
361: ; preds = %358
%362 = load double*, double** %207
%363 = getelementptr inbounds double*, double** %3, i64 %359
%364 = load double*, double** %363
%365 = getelementptr inbounds double, double* %362, i64 1
%366 = getelementptr inbounds double, double* %364, i64 1
%367 = bitcast double* %365 to <2 x double>*
%368 = load <2 x double>, <2 x double>* %367
%369 = bitcast double* %366 to <2 x double>*
%370 = load <2 x double>, <2 x double>* %369
%371 = fsub <2 x double> %368, %370
store <2 x double> %371, <2 x double>* %86
%372 = getelementptr inbounds double, double* %362, i64 3
%373 = load double, double* %372
%374 = getelementptr inbounds double, double* %364, i64 3
%375 = load double, double* %374
%376 = fsub double %373, %375
store double %376, double* %37
%377 = call i32 @vec_norm(double* %22)
%378 = call double @dot(double* %18, double* %22)
%379 = fcmp olt double %378, 2.600000e-01
br i1 %379, label %242, label %386
380: ; preds = %242
%381 = getelementptr inbounds i64*, i64** %4, i64 %90
%382 = load i64*, i64** %381
%383 = getelementptr inbounds i64, i64* %382, i64 1
store i64 -1, i64* %383
%384 = getelementptr inbounds i64, i64* %382, i64 2
store i64 %194, i64* %384
%385 = getelementptr inbounds i64, i64* %382, i64 3
store i64 %244, i64* %385
br label %430
386: ; preds = %248, %270, %292, %314, %336, %358, %361, %242
%387 = load i64, i64* %6
%388 = add nsw i64 %387, 1
store i64 %388, i64* %6
%389 = getelementptr inbounds i64*, i64** %5, i64 %388
%390 = load i64*, i64** %389
%391 = getelementptr inbounds i64, i64* %390, i64 1
store i64 %90, i64* %391
%392 = load i64, i64* %6
%393 = getelementptr inbounds i64*, i64** %5, i64 %392
%394 = load i64*, i64** %393
%395 = getelementptr inbounds i64, i64* %394, i64 2
store i64 %194, i64* %395
%396 = getelementptr inbounds i64*, i64** %4, i64 %90
%397 = load i64*, i64** %396
%398 = getelementptr inbounds i64, i64* %397, i64 2
store i64 %194, i64* %398
%399 = getelementptr inbounds double*, double** %3, i64 %195
%400 = load double*, double** %399
%401 = load double*, double** %209
%402 = getelementptr inbounds double, double* %400, i64 1
%403 = getelementptr inbounds double, double* %401, i64 1
%404 = bitcast double* %402 to <2 x double>*
%405 = load <2 x double>, <2 x double>* %404
%406 = bitcast double* %403 to <2 x double>*
%407 = load <2 x double>, <2 x double>* %406
%408 = fsub <2 x double> %405, %407
store <2 x double> %408, <2 x double>* %87
%409 = getelementptr inbounds double, double* %400, i64 3
%410 = load double, double* %409
%411 = getelementptr inbounds double, double* %401, i64 3
%412 = load double, double* %411
%413 = fsub double %410, %412
store double %413, double* %39
%414 = call double @dot(double* %18, double* %22)
%415 = fcmp olt double %414, 0.000000e+00
br i1 %415, label %416, label %430
416: ; preds = %386
%417 = call double @veclen(double* %22)
%418 = fcmp ugt double %417, %2
br i1 %418, label %430, label %419
419: ; preds = %416
%420 = load i64, i64* %6
%421 = getelementptr inbounds i64*, i64** %5, i64 %420
%422 = load i64*, i64** %421
%423 = getelementptr inbounds i64, i64* %422, i64 3
store i64 %195, i64* %423
br label %424
424: ; preds = %202, %419
%425 = phi i64** [ %396, %419 ], [ %205, %202 ]
%426 = phi i64 [ 3, %419 ], [ 1, %202 ]
%427 = phi i64 [ %195, %419 ], [ %90, %202 ]
%428 = load i64*, i64** %425
%429 = getelementptr inbounds i64, i64* %428, i64 %426
store i64 %427, i64* %429
br label %430
430: ; preds = %380, %424, %193, %416, %386
%431 = add nuw i64 %90, 1
%432 = icmp eq i64 %90, %0
br i1 %432, label %433, label %88
433: ; preds = %430, %7
%434 = phi double [ 0.000000e+00, %7 ], [ %190, %430 ]
%435 = load i64, i64* %6
%436 = icmp eq i64 %435, 0
br i1 %436, label %437, label %464
437: ; preds = %433
store i64 1, i64* %6
%438 = getelementptr inbounds i64*, i64** %5, i64 1
%439 = load i64*, i64** %438
%440 = getelementptr inbounds i64, i64* %439, i64 1
store i64 1, i64* %440
%441 = icmp eq i64 %0, 2
br i1 %441, label %442, label %464
442: ; preds = %437
%443 = fcmp ugt double %434, %2
%444 = load i64, i64* %6
br i1 %443, label %455, label %445
445: ; preds = %442
%446 = getelementptr inbounds i64*, i64** %5, i64 %444
%447 = load i64*, i64** %446
%448 = getelementptr inbounds i64, i64* %447, i64 2
store i64 2, i64* %448
%449 = load i64, i64* %6
%450 = add nsw i64 %449, 1
store i64 %450, i64* %6
%451 = getelementptr inbounds i64*, i64** %5, i64 %450
%452 = load i64*, i64** %451
%453 = getelementptr inbounds i64, i64* %452, i64 1
store i64 2, i64* %453
%454 = load i64, i64* %6
br label %457
455: ; preds = %442
%456 = add nsw i64 %444, 1
store i64 %456, i64* %6
br label %457
457: ; preds = %445, %455
%458 = phi i64 [ %456, %455 ], [ %454, %445 ]
%459 = phi i64 [ 1, %455 ], [ 2, %445 ]
%460 = phi i64 [ 2, %455 ], [ 1, %445 ]
%461 = getelementptr inbounds i64*, i64** %5, i64 %458
%462 = load i64*, i64** %461
%463 = getelementptr inbounds i64, i64* %462, i64 %459
store i64 %460, i64* %463
br label %464
464: ; preds = %457, %437, %433
ret void
}