#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*/ BasisFuns(int, double, int, double *, double *, double *,
                             double *);
int FindSpan(int, int, double, double *);
void BspEval(int deg, double *cp, int mcp, int ncp, double *knot, double *us,
             int nus, double *ep, double *left, double *right, double *N) {
  int i, ii, jj, span, myint, jjmcp = 0;
  for (jj = 0; jj < nus; jj++) {
    if (us[jj] <= knot[deg]) {
      for (ii = 0; ii < mcp; ii++) {
        ep[jjmcp + ii] = cp[ii];
      }
    } else if (us[jj] >= knot[ncp]) {
      myint = mcp * ncp - mcp;
      for (ii = 0; ii < mcp; ii++) {
        ep[jjmcp + ii] = cp[myint + ii];
      }
    } else {
      for (ii = 0; ii < mcp; ii++) {
        ep[jjmcp + ii] = 0.0;
      }
      span = FindSpan(ncp, deg, us[jj], knot);
      BasisFuns(span, us[jj], deg, knot, N, left, right);
      myint = (span - deg) * mcp;
      for (i = 0; i <= deg; i++) {
        for (ii = 0; ii < mcp; ii++) {
          ep[jjmcp + ii] += N[i] * cp[myint + ii];
        }
        myint += mcp;
      }
    }
    jjmcp += mcp;
  }
}


x86 assembly (clang, -O0):
<BspEval>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    137e <BspEval+0x25e>
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movslq -0x4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jb     11d3 <BspEval+0xb3>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11ce <BspEval+0xae>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1195 <BspEval+0x75>
jmp    1367 <BspEval+0x247>
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x18(%rbp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jb     124a <BspEval+0x12a>
mov    -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
sub    -0x14(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1245 <BspEval+0x125>
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1207 <BspEval+0xe7>
jmp    1362 <BspEval+0x242>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1280 <BspEval+0x160>
mov    0x18(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1251 <BspEval+0x131>
mov    -0x18(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rdx
call   1040 <FindSpan@plt>
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x4(%rbp),%esi
mov    -0x20(%rbp),%rdx
mov    0x30(%rbp),%rcx
mov    0x20(%rbp),%r8
mov    0x28(%rbp),%r9
call   1030 <BasisFuns@plt>
mov    -0x38(%rbp),%eax
sub    -0x4(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     135d <BspEval+0x23d>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1346 <BspEval+0x226>
mov    0x30(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    0x18(%rbp),%rax
mov    -0x40(%rbp),%ecx
add    -0x30(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    12ee <BspEval+0x1ce>
mov    -0x14(%rbp),%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12db <BspEval+0x1bb>
jmp    1362 <BspEval+0x242>
jmp    1367 <BspEval+0x247>
mov    -0x14(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    115e <BspEval+0x3e>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BspEval>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    %r8,0x30(%rsp)
mov    %ecx,0xc(%rsp)
mov    %edi,0x4(%rsp)
mov    0x140(%rsp),%eax
test   %eax,%eax
jle    18ff <BspEval+0x7cf>
mov    %r9,%r11
mov    %rsi,%r14
mov    0xc(%rsp),%r8d
mov    %r8d,%ecx
imul   %edx,%ecx
sub    %edx,%ecx
movslq %ecx,%rcx
movslq %edx,%r10
mov    %r10d,%r12d
lea    0x0(,%r12,8),%r9
mov    %eax,%eax
mov    %rax,0xe0(%rsp)
lea    (%rcx,%r12,1),%rax
lea    (%rsi,%rax,8),%rax
mov    %rax,0xb0(%rsp)
mov    %r12d,%eax
and    $0xfffffffc,%eax
mov    %rax,0x20(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0x58(%rsp)
mov    %rax,%rbp
shr    $0x2,%rbp
add    $0x1,%rbp
mov    %ebp,%esi
and    $0x3,%esi
mov    %rbp,%rax
and    $0xfffffffffffffffc,%rax
mov    %rax,0x98(%rsp)
mov    %r12d,%eax
and    $0x3,%eax
mov    %rax,0x68(%rsp)
movabs $0x7ffffffffffffffc,%rdi
ff ff 7f
or     $0x2,%rdi
mov    %rbp,%rax
mov    %rbp,0xa0(%rsp)
and    %rbp,%rdi
mov    %rdi,0x90(%rsp)
mov    %r12,%rax
neg    %rax
mov    %rax,0xf8(%rsp)
mov    %rsi,0xa8(%rsp)
shl    $0x5,%rsi
mov    %rsi,0x50(%rsp)
mov    %r9,0xc0(%rsp)
and    $0xffffffffffffffe0,%r9
mov    %r9,0xd0(%rsp)
mov    0x160(%rsp),%r15
mov    0x148(%rsp),%rbp
movslq 0x4(%rsp),%rsi
movslq %r8d,%rax
mov    %rax,0xc8(%rsp)
mov    %rsi,%rax
mov    %rsi,0xd8(%rsp)
lea    0x1(%rsi),%eax
mov    %rax,0x100(%rsp)
mov    %rcx,0x88(%rsp)
lea    (%r14,%rcx,8),%rax
mov    %rax,0x38(%rsp)
lea    (%r14,%r12,8),%rax
mov    %rax,0xb8(%rsp)
lea    0x70(%rbp),%rsi
lea    0x0(,%r10,8),%rax
mov    %rax,0x80(%rsp)
lea    0x10(%rbp),%r13
lea    0x10(%r14),%rax
mov    %rax,0x60(%rsp)
xor    %edi,%edi
xor    %ebx,%ebx
mov    %r11,0x28(%rsp)
mov    %edx,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %r14,0x70(%rsp)
jmp    12fd <BspEval+0x1cd>
nopl   (%rax)
mov    0x18(%rsp),%rdi
add    %r10,%rdi
mov    0xf0(%rsp),%rbx
add    $0x1,%rbx
mov    0x78(%rsp),%rsi
mov    0x80(%rsp),%rax
add    %rax,%rsi
add    %rax,%r13
add    %rax,%rbp
cmp    0xe0(%rsp),%rbx
mov    0x28(%rsp),%r11
je     18ff <BspEval+0x7cf>
mov    0x148(%rsp),%rcx
lea    (%rcx,%rdi,8),%rax
mov    %rax,0x48(%rsp)
lea    (%rdi,%r12,1),%rax
lea    (%rcx,%rax,8),%rax
mov    %rax,0x40(%rsp)
movsd  (%r11,%rbx,8),%xmm0
mov    0x30(%rsp),%rax
mov    0xd8(%rsp),%rcx
movsd  (%rax,%rcx,8),%xmm1
ucomisd %xmm0,%xmm1
mov    %rsi,0x78(%rsp)
mov    %rdi,0x18(%rsp)
mov    %rbx,0xf0(%rsp)
jae    15e0 <BspEval+0x4b0>
mov    0xc8(%rsp),%rcx
ucomisd (%rax,%rcx,8),%xmm0
jae    1690 <BspEval+0x560>
test   %edx,%edx
jle    1394 <BspEval+0x264>
mov    %rbx,%rax
imul   0x10(%rsp),%rax
mov    0x148(%rsp),%rcx
lea    (%rcx,%rax,8),%rdi
xor    %esi,%esi
mov    0xc0(%rsp),%rdx
call   1030 <memset@plt>
mov    0x28(%rsp),%rax
movsd  (%rax,%rbx,8),%xmm0
mov    0xc(%rsp),%edi
mov    0x4(%rsp),%esi
mov    0x30(%rsp),%rdx
call   1050 <FindSpan@plt>
mov    %eax,%ecx
mov    0x28(%rsp),%rax
movsd  (%rax,%rbx,8),%xmm0
mov    %ecx,%ebx
mov    %ecx,%edi
mov    0x4(%rsp),%esi
mov    0x30(%rsp),%rdx
mov    %r15,%rcx
mov    0x150(%rsp),%r8
mov    0x158(%rsp),%r9
call   1040 <BasisFuns@plt>
cmpl   $0x0,0x4(%rsp)
mov    0x8(%rsp),%edx
mov    0x10(%rsp),%r10
js     12c0 <BspEval+0x190>
sub    0x4(%rsp),%ebx
imul   %edx,%ebx
movslq %ebx,%rax
lea    (%r12,%rax,1),%rcx
mov    %rcx,0xe8(%rsp)
mov    0x60(%rsp),%rcx
lea    (%rcx,%rax,8),%r8
lea    (%r14,%rax,8),%rsi
xor    %edi,%edi
jmp    1443 <BspEval+0x313>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    %r10,%rax
add    $0x1,%rdi
mov    0x80(%rsp),%rcx
add    %rcx,%r8
add    %rcx,%rsi
cmp    0x100(%rsp),%rdi
je     12c0 <BspEval+0x190>
test   %edx,%edx
jle    1420 <BspEval+0x2f0>
cmp    $0x4,%edx
jae    1460 <BspEval+0x330>
xor    %ebx,%ebx
jmp    1550 <BspEval+0x420>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rdi,%rcx
imul   %r10,%rcx
add    0xe8(%rsp),%rcx
lea    (%r15,%rdi,8),%r9
lea    (%r15,%rdi,8),%rbx
add    $0x8,%rbx
lea    (%r14,%rax,8),%r10
lea    (%r14,%rcx,8),%rcx
mov    0x48(%rsp),%r14
cmp    %rbx,%r14
setb   %r11b
mov    0x40(%rsp),%rdx
cmp    %rdx,%r9
setb   %bl
cmp    %rcx,%r14
setb   %cl
cmp    %rdx,%r10
setb   %r9b
test   %bl,%r11b
jne    1535 <BspEval+0x405>
mov    $0x0,%ebx
and    %r9b,%cl
mov    0x8(%rsp),%edx
mov    0x10(%rsp),%r10
mov    0x70(%rsp),%r14
jne    1550 <BspEval+0x420>
movsd  (%r15,%rdi,8),%xmm0
unpcklpd %xmm0,%xmm0
xor    %ecx,%ecx
mov    0xd0(%rsp),%rbx
movupd -0x10(%r8,%rcx,1),%xmm1
movupd (%r8,%rcx,1),%xmm2
movupd -0x10(%r13,%rcx,1),%xmm3
movupd 0x0(%r13,%rcx,1),%xmm4
mulpd  %xmm0,%xmm1
addpd  %xmm3,%xmm1
mulpd  %xmm0,%xmm2
addpd  %xmm4,%xmm2
movupd %xmm1,-0x10(%r13,%rcx,1)
movupd %xmm2,0x0(%r13,%rcx,1)
add    $0x20,%rcx
cmp    %rcx,%rbx
jne    14e0 <BspEval+0x3b0>
mov    0x20(%rsp),%rcx
mov    %rcx,%rbx
cmp    %r12,%rcx
je     1420 <BspEval+0x2f0>
jmp    1550 <BspEval+0x420>
xor    %ebx,%ebx
mov    0x8(%rsp),%edx
mov    0x10(%rsp),%r10
mov    0x70(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rcx
test   $0x1,%r12b
je     158d <BspEval+0x45d>
movsd  (%r15,%rdi,8),%xmm0
lea    (%rbx,%rax,1),%r9
mov    0x18(%rsp),%rcx
lea    (%rbx,%rcx,1),%r11
mulsd  (%r14,%r9,8),%xmm0
mov    0x148(%rsp),%rcx
addsd  (%rcx,%r11,8),%xmm0
movsd  %xmm0,(%rcx,%r11,8)
mov    %rbx,%rcx
or     $0x1,%rcx
not    %rbx
cmp    0xf8(%rsp),%rbx
je     1420 <BspEval+0x2f0>
xchg   %ax,%ax
movsd  (%r15,%rdi,8),%xmm0
mulsd  (%rsi,%rcx,8),%xmm0
addsd  0x0(%rbp,%rcx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rcx,8)
movsd  (%r15,%rdi,8),%xmm0
mulsd  0x8(%rsi,%rcx,8),%xmm0
addsd  0x8(%rbp,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbp,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%r12
jne    15a0 <BspEval+0x470>
jmp    1420 <BspEval+0x2f0>
nopl   (%rax)
test   %edx,%edx
jle    12c0 <BspEval+0x190>
cmp    $0x4,%edx
jb     160b <BspEval+0x4db>
mov    0x48(%rsp),%rax
cmp    0xb8(%rsp),%rax
jae    1746 <BspEval+0x616>
cmp    %r14,0x40(%rsp)
jbe    1746 <BspEval+0x616>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
add    %r12,%rcx
mov    0x68(%rsp),%rsi
test   %rsi,%rsi
je     1636 <BspEval+0x506>
movsd  (%r14,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rsi
jne    1620 <BspEval+0x4f0>
cmp    $0x3,%rcx
jb     12c0 <BspEval+0x190>
movsd  (%r14,%rax,8),%xmm0
movsd  %xmm0,-0x10(%r13,%rax,8)
movsd  0x8(%r14,%rax,8),%xmm0
movsd  %xmm0,-0x8(%r13,%rax,8)
movsd  0x10(%r14,%rax,8),%xmm0
movsd  %xmm0,0x0(%r13,%rax,8)
movsd  0x18(%r14,%rax,8),%xmm0
movsd  %xmm0,0x8(%r13,%rax,8)
add    $0x4,%rax
cmp    %rax,%r12
jne    1640 <BspEval+0x510>
jmp    12c0 <BspEval+0x190>
cs nopw 0x0(%rax,%rax,1)
nop
test   %edx,%edx
jle    12c0 <BspEval+0x190>
cmp    $0x4,%edx
jb     16c0 <BspEval+0x590>
mov    0x48(%rsp),%rax
cmp    0xb0(%rsp),%rax
mov    0x38(%rsp),%rsi
jae    175e <BspEval+0x62e>
cmp    0x40(%rsp),%rsi
jae    175e <BspEval+0x62e>
xor    %eax,%eax
mov    %rax,%rcx
not    %rcx
add    %r12,%rcx
test   $0x3,%r12b
je     16f5 <BspEval+0x5c5>
mov    0x68(%rsp),%rsi
mov    0x38(%rsp),%rdi
nopl   0x0(%rax,%rax,1)
movsd  (%rdi,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rsi
jne    16e0 <BspEval+0x5b0>
cmp    $0x3,%rcx
jb     12c0 <BspEval+0x190>
nop
mov    0x38(%rsp),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,-0x10(%r13,%rax,8)
movsd  0x8(%rcx,%rax,8),%xmm0
movsd  %xmm0,-0x8(%r13,%rax,8)
movsd  0x10(%rcx,%rax,8),%xmm0
movsd  %xmm0,0x0(%r13,%rax,8)
movsd  0x18(%rcx,%rax,8),%xmm0
movsd  %xmm0,0x8(%r13,%rax,8)
add    $0x4,%rax
cmp    %rax,%r12
jne    1700 <BspEval+0x5d0>
jmp    12c0 <BspEval+0x190>
cmpq   $0xc,0x58(%rsp)
jae    1803 <BspEval+0x6d3>
xor    %eax,%eax
mov    0x50(%rsp),%rdi
jmp    1884 <BspEval+0x754>
cmpq   $0x0,0x58(%rsp)
je     18e5 <BspEval+0x7b5>
mov    0x90(%rsp),%rcx
xor    %eax,%eax
mov    0x18(%rsp),%rdi
nopl   0x0(%rax)
movups (%rsi,%rax,8),%xmm0
movups 0x10(%rsi,%rax,8),%xmm1
movups %xmm0,0x0(%rbp,%rax,8)
movups %xmm1,0x10(%rbp,%rax,8)
movupd 0x20(%rsi,%rax,8),%xmm0
movupd 0x30(%rsi,%rax,8),%xmm1
movupd %xmm0,0x20(%rbp,%rax,8)
movupd %xmm1,0x30(%rbp,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    1780 <BspEval+0x650>
testb  $0x1,0xa0(%rsp)
01
je     17ed <BspEval+0x6bd>
mov    0x88(%rsp),%rcx
add    %rax,%rcx
movupd (%r14,%rcx,8),%xmm0
movupd 0x10(%r14,%rcx,8),%xmm1
add    %rdi,%rax
mov    0x148(%rsp),%rcx
movupd %xmm0,(%rcx,%rax,8)
movupd %xmm1,0x10(%rcx,%rax,8)
mov    0x20(%rsp),%rcx
mov    %rcx,%rax
cmp    %r12,%rcx
je     12c0 <BspEval+0x190>
jmp    16c2 <BspEval+0x592>
mov    0x98(%rsp),%rcx
xor    %eax,%eax
mov    0x50(%rsp),%rdi
mov    0x78(%rsp),%rsi
nopw   0x0(%rax,%rax,1)
movups (%r14,%rax,8),%xmm0
movups 0x10(%r14,%rax,8),%xmm1
movups %xmm0,-0x70(%rsi,%rax,8)
movups %xmm1,-0x60(%rsi,%rax,8)
movups 0x20(%r14,%rax,8),%xmm0
movups 0x30(%r14,%rax,8),%xmm1
movups %xmm0,-0x50(%rsi,%rax,8)
movups %xmm1,-0x40(%rsi,%rax,8)
movups 0x40(%r14,%rax,8),%xmm0
movups 0x50(%r14,%rax,8),%xmm1
movups %xmm0,-0x30(%rsi,%rax,8)
movups %xmm1,-0x20(%rsi,%rax,8)
movupd 0x60(%r14,%rax,8),%xmm0
movupd 0x70(%r14,%rax,8),%xmm1
movupd %xmm0,-0x10(%rsi,%rax,8)
movupd %xmm1,(%rsi,%rax,8)
add    $0x10,%rax
add    $0xfffffffffffffffc,%rcx
jne    1820 <BspEval+0x6f0>
cmpq   $0x0,0xa8(%rsp)
je     18cf <BspEval+0x79f>
lea    0x0(,%rax,8),%rcx
add    %r13,%rcx
mov    0x60(%rsp),%rsi
lea    (%rsi,%rax,8),%rax
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nop
movupd -0x10(%rax,%rsi,1),%xmm0
movupd (%rax,%rsi,1),%xmm1
movupd %xmm0,-0x10(%rcx,%rsi,1)
movupd %xmm1,(%rcx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%rdi
jne    18b0 <BspEval+0x780>
mov    0x20(%rsp),%rcx
mov    %rcx,%rax
cmp    %r12,%rcx
je     12c0 <BspEval+0x190>
jmp    160d <BspEval+0x4dd>
xor    %eax,%eax
mov    0x18(%rsp),%rdi
testb  $0x1,0xa0(%rsp)
01
jne    17bf <BspEval+0x68f>
jmp    17ed <BspEval+0x6bd>
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @BspEval(i32 %0, double* %1, i32 %2, i32 %3, double* %4, double* %5, i32 %6, double* %7, double* %8, double* %9, double* %10) {
%12 = alloca i32
%13 = alloca double*
%14 = alloca i32
%15 = alloca i32
%16 = alloca double*
%17 = alloca double*
%18 = alloca i32
%19 = alloca double*
%20 = alloca double*
%21 = alloca double*
%22 = alloca double*
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
store i32 %0, i32* %12
store double* %1, double** %13
store i32 %2, i32* %14
store i32 %3, i32* %15
store double* %4, double** %16
store double* %5, double** %17
store i32 %6, i32* %18
store double* %7, double** %19
store double* %8, double** %20
store double* %9, double** %21
store double* %10, double** %22
store i32 0, i32* %28
store i32 0, i32* %25
br label %29
29: ; preds = %194, %11
%30 = load i32, i32* %25
%31 = load i32, i32* %18
%32 = icmp slt i32 %30, %31
br i1 %32, label %33, label %197
33: ; preds = %29
%34 = load double*, double** %17
%35 = load i32, i32* %25
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds double, double* %34, i64 %36
%38 = load double, double* %37
%39 = load double*, double** %16
%40 = load i32, i32* %12
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, double* %39, i64 %41
%43 = load double, double* %42
%44 = fcmp ole double %38, %43
br i1 %44, label %45, label %66
45: ; preds = %33
store i32 0, i32* %24
br label %46
46: ; preds = %62, %45
%47 = load i32, i32* %24
%48 = load i32, i32* %14
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %65
50: ; preds = %46
%51 = load double*, double** %13
%52 = load i32, i32* %24
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, double* %51, i64 %53
%55 = load double, double* %54
%56 = load double*, double** %19
%57 = load i32, i32* %28
%58 = load i32, i32* %24
%59 = add nsw i32 %57, %58
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %56, i64 %60
store double %55, double* %61
br label %62
62: ; preds = %50
%63 = load i32, i32* %24
%64 = add nsw i32 %63, 1
store i32 %64, i32* %24
br label %46
65: ; preds = %46
br label %190
66: ; preds = %33
%67 = load double*, double** %17
%68 = load i32, i32* %25
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, double* %67, i64 %69
%71 = load double, double* %70
%72 = load double*, double** %16
%73 = load i32, i32* %15
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %72, i64 %74
%76 = load double, double* %75
%77 = fcmp oge double %71, %76
br i1 %77, label %78, label %106
78: ; preds = %66
%79 = load i32, i32* %14
%80 = load i32, i32* %15
%81 = mul nsw i32 %79, %80
%82 = load i32, i32* %14
%83 = sub nsw i32 %81, %82
store i32 %83, i32* %27
store i32 0, i32* %24
br label %84
84: ; preds = %102, %78
%85 = load i32, i32* %24
%86 = load i32, i32* %14
%87 = icmp slt i32 %85, %86
br i1 %87, label %88, label %105
88: ; preds = %84
%89 = load double*, double** %13
%90 = load i32, i32* %27
%91 = load i32, i32* %24
%92 = add nsw i32 %90, %91
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, double* %89, i64 %93
%95 = load double, double* %94
%96 = load double*, double** %19
%97 = load i32, i32* %28
%98 = load i32, i32* %24
%99 = add nsw i32 %97, %98
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds double, double* %96, i64 %100
store double %95, double* %101
br label %102
102: ; preds = %88
%103 = load i32, i32* %24
%104 = add nsw i32 %103, 1
store i32 %104, i32* %24
br label %84
105: ; preds = %84
br label %189
106: ; preds = %66
store i32 0, i32* %24
br label %107
107: ; preds = %118, %106
%108 = load i32, i32* %24
%109 = load i32, i32* %14
%110 = icmp slt i32 %108, %109
br i1 %110, label %111, label %121
111: ; preds = %107
%112 = load double*, double** %19
%113 = load i32, i32* %28
%114 = load i32, i32* %24
%115 = add nsw i32 %113, %114
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds double, double* %112, i64 %116
store double 0.000000e+00, double* %117
br label %118
118: ; preds = %111
%119 = load i32, i32* %24
%120 = add nsw i32 %119, 1
store i32 %120, i32* %24
br label %107
121: ; preds = %107
%122 = load i32, i32* %15
%123 = load i32, i32* %12
%124 = load double*, double** %17
%125 = load i32, i32* %25
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds double, double* %124, i64 %126
%128 = load double, double* %127
%129 = load double*, double** %16
%130 = call i32 @FindSpan(i32 %122, i32 %123, double %128, double* %129)
store i32 %130, i32* %26
%131 = load i32, i32* %26
%132 = load double*, double** %17
%133 = load i32, i32* %25
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds double, double* %132, i64 %134
%136 = load double, double* %135
%137 = load i32, i32* %12
%138 = load double*, double** %16
%139 = load double*, double** %22
%140 = load double*, double** %20
%141 = load double*, double** %21
%142 = call i32 @BasisFuns(i32 %131, double %136, i32 %137, double* %138, double* %139, double* %140, double* %141)
%143 = load i32, i32* %26
%144 = load i32, i32* %12
%145 = sub nsw i32 %143, %144
%146 = load i32, i32* %14
%147 = mul nsw i32 %145, %146
store i32 %147, i32* %27
store i32 0, i32* %23
br label %148
148: ; preds = %185, %121
%149 = load i32, i32* %23
%150 = load i32, i32* %12
%151 = icmp sle i32 %149, %150
br i1 %151, label %152, label %188
152: ; preds = %148
store i32 0, i32* %24
br label %153
153: ; preds = %178, %152
%154 = load i32, i32* %24
%155 = load i32, i32* %14
%156 = icmp slt i32 %154, %155
br i1 %156, label %157, label %181
157: ; preds = %153
%158 = load double*, double** %22
%159 = load i32, i32* %23
%160 = sext i32 %159 to i64
%161 = getelementptr inbounds double, double* %158, i64 %160
%162 = load double, double* %161
%163 = load double*, double** %13
%164 = load i32, i32* %27
%165 = load i32, i32* %24
%166 = add nsw i32 %164, %165
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds double, double* %163, i64 %167
%169 = load double, double* %168
%170 = load double*, double** %19
%171 = load i32, i32* %28
%172 = load i32, i32* %24
%173 = add nsw i32 %171, %172
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds double, double* %170, i64 %174
%176 = load double, double* %175
%177 = call double @llvm.fmuladd.f64(double %162, double %169, double %176)
store double %177, double* %175
br label %178
178: ; preds = %157
%179 = load i32, i32* %24
%180 = add nsw i32 %179, 1
store i32 %180, i32* %24
br label %153
181: ; preds = %153
%182 = load i32, i32* %14
%183 = load i32, i32* %27
%184 = add nsw i32 %183, %182
store i32 %184, i32* %27
br label %185
185: ; preds = %181
%186 = load i32, i32* %23
%187 = add nsw i32 %186, 1
store i32 %187, i32* %23
br label %148
188: ; preds = %148
br label %189
189: ; preds = %188, %105
br label %190
190: ; preds = %189, %65
%191 = load i32, i32* %14
%192 = load i32, i32* %28
%193 = add nsw i32 %192, %191
store i32 %193, i32* %28
br label %194
194: ; preds = %190
%195 = load i32, i32* %25
%196 = add nsw i32 %195, 1
store i32 %196, i32* %25
br label %29
197: ; preds = %29
ret void
}

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