#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*/ exit(int);
double fabs(double);
double paw_Corrector_Out(int, double *, double *);
int paw_N_LogGrid();
double paw_Predictor_Out(int, double *, double *);
scalar_t__ paw_alloc_LogGrid();
int /*<<< orphan*/ paw_dealloc_LogGrid(double *);
double paw_log_amesh_LogGrid();
scalar_t__ paw_r_LogGrid();
double pow(double, double);
int /*<<< orphan*/ printf(char *);
void paw_R_Schrodinger_Fixed_E1(int l, double *v, double *f, int match,
                                double E, double *u, double *uprime) {
  int i, j, Ngrid;
  double log_amesh, log_amesh2, gamma, L2, r2, *r, *f_upp, *upp;
  double max_u;
  max_u = 10000000;
  gamma = ((double)(l + 1));
  L2 = ((double)(l * (l + 1)));
  Ngrid = paw_N_LogGrid();
  log_amesh = paw_log_amesh_LogGrid();
  log_amesh2 = log_amesh * log_amesh;
  if (match > Ngrid - 1) {
    printf("match point is outside the allowed region\n");
    printf("abborting the program\n");
    exit(1);
  }
  r = (double *)paw_r_LogGrid();
  f_upp = (double *)paw_alloc_LogGrid();
  upp = (double *)paw_alloc_LogGrid();
  for (i = 0; i <= match; i++) {
    u[i] = 0.0;
    uprime[i] = 0.0;
  }
  for (i = 0; i < match + 1; ++i) {
    r2 = r[i] * r[i];
    f_upp[i] = log_amesh2 * (L2 + 2.0 * (v[i] - E) * r2);
  }
  for (i = 0; i < 4; ++i) {
    u[i] = pow(r[i], gamma);
    uprime[i] = log_amesh * gamma * u[i];
    upp[i] = log_amesh * uprime[i] + f_upp[i] * u[i];
  }
  i = 3;
  while (i < match && fabs(u[i]) < max_u) {
    u[i + 1] = paw_Predictor_Out(i, u, uprime);
    uprime[i + 1] = paw_Predictor_Out(i, uprime, upp);
    for (j = 0; j < 6; ++j) {
      upp[i + 1] = log_amesh * uprime[i + 1] + f_upp[i + 1] * u[i + 1] -
                   2.0 * log_amesh2 * r[i + 1] * r[i + 1] * f[i + 1];
      uprime[i + 1] = paw_Corrector_Out(i, uprime, upp);
      u[i + 1] = paw_Corrector_Out(i, u, uprime);
    }
    i = i + 1;
  }
  paw_dealloc_LogGrid(upp);
  paw_dealloc_LogGrid(f_upp);
  return;
}


x86 assembly (clang, -O0):
<paw_R_Schrodinger_Fixed_E1>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movsd  %xmm0,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
movsd  0xe32(%rip),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x4(%rbp),%eax
add    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x4(%rbp),%ecx
add    $0x1,%ecx
imul   %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    $0x0,%al
call   1050 <paw_N_LogGrid@plt>
mov    %eax,-0x44(%rbp)
mov    $0x0,%al
call   1060 <paw_log_amesh_LogGrid@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x1c(%rbp),%eax
mov    -0x44(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jle    1252 <paw_R_Schrodinger_Fixed_E1+0xb2>
lea    0xde9(%rip),%rdi
call   1040 <printf@plt>
lea    0xe08(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    $0x0,%al
call   1070 <paw_r_LogGrid@plt>
mov    %rax,-0x78(%rbp)
mov    $0x0,%al
call   1090 <paw_alloc_LogGrid@plt>
mov    %rax,-0x80(%rbp)
mov    $0x0,%al
call   1090 <paw_alloc_LogGrid@plt>
mov    %rax,-0x88(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     12b7 <paw_R_Schrodinger_Fixed_E1+0x117>
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    127d <paw_R_Schrodinger_Fixed_E1+0xdd>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1342 <paw_R_Schrodinger_Fixed_E1+0x1a2>
mov    -0x78(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x78(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm2
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm3
subsd  -0x28(%rbp),%xmm3
movsd  0xcf6(%rip),%xmm1
mulsd  %xmm3,%xmm1
movsd  -0x70(%rbp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x80(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12be <paw_R_Schrodinger_Fixed_E1+0x11e>
movl   $0x0,-0x3c(%rbp)
cmpl   $0x4,-0x3c(%rbp)
jge    13ed <paw_R_Schrodinger_Fixed_E1+0x24d>
mov    -0x78(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x60(%rbp),%xmm1
call   10a0 <pow@plt>
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x50(%rbp),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x80(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x88(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1349 <paw_R_Schrodinger_Fixed_E1+0x1a9>
movl   $0x3,-0x3c(%rbp)
mov    -0x3c(%rbp),%ecx
xor    %eax,%eax
cmp    -0x1c(%rbp),%ecx
mov    %al,-0x91(%rbp)
jge    1435 <paw_R_Schrodinger_Fixed_E1+0x295>
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xbf4(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  -0x90(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x91(%rbp)
mov    -0x91(%rbp),%al
test   $0x1,%al
jne    1448 <paw_R_Schrodinger_Fixed_E1+0x2a8>
jmp    15bd <paw_R_Schrodinger_Fixed_E1+0x41d>
mov    -0x3c(%rbp),%edi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   1080 <paw_Predictor_Out@plt>
mov    -0x30(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x88(%rbp),%rdx
call   1080 <paw_Predictor_Out@plt>
mov    -0x38(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x40(%rbp)
cmpl   $0x6,-0x40(%rbp)
jge    15af <paw_R_Schrodinger_Fixed_E1+0x40f>
movsd  -0x50(%rbp),%xmm1
mov    -0x38(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x80(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  0xb1d(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    -0x78(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x78(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x88(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x88(%rbp),%rdx
call   1030 <paw_Corrector_Out@plt>
mov    -0x38(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%edi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   1030 <paw_Corrector_Out@plt>
mov    -0x30(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1496 <paw_R_Schrodinger_Fixed_E1+0x2f6>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    13f4 <paw_R_Schrodinger_Fixed_E1+0x254>
mov    -0x88(%rbp),%rdi
call   10b0 <paw_dealloc_LogGrid@plt>
mov    -0x80(%rbp),%rdi
call   10b0 <paw_dealloc_LogGrid@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<paw_R_Schrodinger_Fixed_E1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9,%rbx
mov    %r8,%r14
movapd %xmm0,0x30(%rsp)
mov    %ecx,%ebp
mov    %rdx,0x50(%rsp)
mov    %rsi,(%rsp)
mov    %edi,%r12d
xor    %eax,%eax
call   1050 <paw_N_LogGrid@plt>
mov    %eax,%r15d
xor    %eax,%eax
call   1060 <paw_log_amesh_LogGrid@plt>
cmp    %ebp,%r15d
jle    1807 <paw_R_Schrodinger_Fixed_E1+0x667>
mov    %r12,0x48(%rsp)
lea    0x1(%r12),%r15d
cvtsi2sd %r15d,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x10(%rsp)
mulsd  %xmm0,%xmm0
movapd %xmm0,0x20(%rsp)
xor    %eax,%eax
call   1070 <paw_r_LogGrid@plt>
mov    %rax,%r12
xor    %eax,%eax
call   1090 <paw_alloc_LogGrid@plt>
mov    %rax,%r13
xor    %eax,%eax
call   1090 <paw_alloc_LogGrid@plt>
movapd 0x20(%rsp),%xmm8
mov    %rax,0x18(%rsp)
test   %ebp,%ebp
movapd 0x30(%rsp),%xmm9
mov    (%rsp),%rax
js     15a3 <paw_R_Schrodinger_Fixed_E1+0x403>
lea    0x1(%rbp),%r9d
cmp    $0x3,%ebp
jb     1264 <paw_R_Schrodinger_Fixed_E1+0xc4>
lea    (%rbx,%r9,8),%rcx
cmp    %r14,%rcx
jbe    1304 <paw_R_Schrodinger_Fixed_E1+0x164>
lea    (%r14,%r9,8),%rcx
cmp    %rbx,%rcx
jbe    1304 <paw_R_Schrodinger_Fixed_E1+0x164>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %r9,%rdx
mov    %r9,%rsi
and    $0x3,%rsi
je     129a <paw_R_Schrodinger_Fixed_E1+0xfa>
nopl   0x0(%rax,%rax,1)
movq   $0x0,(%r14,%rcx,8)
movq   $0x0,(%rbx,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    1280 <paw_R_Schrodinger_Fixed_E1+0xe0>
cmp    $0x3,%rdx
jb     13f8 <paw_R_Schrodinger_Fixed_E1+0x258>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movq   $0x0,(%r14,%rcx,8)
movq   $0x0,(%rbx,%rcx,8)
movq   $0x0,0x8(%r14,%rcx,8)
movq   $0x0,0x8(%rbx,%rcx,8)
movq   $0x0,0x10(%r14,%rcx,8)
movq   $0x0,0x10(%rbx,%rcx,8)
movq   $0x0,0x18(%r14,%rcx,8)
movq   $0x0,0x18(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%r9
jne    12b0 <paw_R_Schrodinger_Fixed_E1+0x110>
jmp    13f8 <paw_R_Schrodinger_Fixed_E1+0x258>
mov    %r9d,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
mov    %esi,%r8d
and    $0x3,%r8d
cmp    $0xc,%rdx
jae    132d <paw_R_Schrodinger_Fixed_E1+0x18d>
xor    %edi,%edi
jmp    13b0 <paw_R_Schrodinger_Fixed_E1+0x210>
and    $0xfffffffffffffffc,%rsi
xor    %edi,%edi
xorpd  %xmm0,%xmm0
nopw   0x0(%rax,%rax,1)
movupd %xmm0,(%r14,%rdi,8)
movupd %xmm0,0x10(%r14,%rdi,8)
movupd %xmm0,(%rbx,%rdi,8)
movupd %xmm0,0x10(%rbx,%rdi,8)
movupd %xmm0,0x20(%r14,%rdi,8)
movupd %xmm0,0x30(%r14,%rdi,8)
movupd %xmm0,0x20(%rbx,%rdi,8)
movupd %xmm0,0x30(%rbx,%rdi,8)
movupd %xmm0,0x40(%r14,%rdi,8)
movupd %xmm0,0x50(%r14,%rdi,8)
movupd %xmm0,0x40(%rbx,%rdi,8)
movupd %xmm0,0x50(%rbx,%rdi,8)
movupd %xmm0,0x60(%r14,%rdi,8)
movupd %xmm0,0x70(%r14,%rdi,8)
movupd %xmm0,0x60(%rbx,%rdi,8)
movupd %xmm0,0x70(%rbx,%rdi,8)
add    $0x10,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1340 <paw_R_Schrodinger_Fixed_E1+0x1a0>
test   %r8,%r8
je     13ef <paw_R_Schrodinger_Fixed_E1+0x24f>
lea    (%rbx,%rdi,8),%rsi
add    $0x10,%rsi
lea    (%r14,%rdi,8),%rdi
add    $0x10,%rdi
shl    $0x5,%r8
xor    %edx,%edx
xorpd  %xmm0,%xmm0
nop
movupd %xmm0,-0x10(%rdi,%rdx,1)
movupd %xmm0,(%rdi,%rdx,1)
movupd %xmm0,-0x10(%rsi,%rdx,1)
movupd %xmm0,(%rsi,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%r8
jne    13d0 <paw_R_Schrodinger_Fixed_E1+0x230>
cmp    %r9,%rcx
jne    1266 <paw_R_Schrodinger_Fixed_E1+0xc6>
test   %ebp,%ebp
js     15a3 <paw_R_Schrodinger_Fixed_E1+0x403>
imul   0x48(%rsp),%r15d
xorps  %xmm0,%xmm0
cvtsi2sd %r15d,%xmm0
cmp    $0x3,%ebp
jae    141a <paw_R_Schrodinger_Fixed_E1+0x27a>
xor    %ecx,%ecx
jmp    14f8 <paw_R_Schrodinger_Fixed_E1+0x358>
lea    0x0(,%r9,8),%rcx
add    %r13,%rcx
lea    (%r12,%r9,8),%rdx
lea    (%rax,%r9,8),%rsi
cmp    %rdx,%r13
setb   %dil
cmp    %rcx,%r12
setb   %r8b
cmp    %rsi,%r13
setb   %dl
cmp    %rax,%rcx
seta   %sil
xor    %ecx,%ecx
test   %r8b,%dil
jne    14f8 <paw_R_Schrodinger_Fixed_E1+0x358>
and    %sil,%dl
jne    14f8 <paw_R_Schrodinger_Fixed_E1+0x358>
mov    %r9d,%ecx
and    $0xfffffffc,%ecx
movapd %xmm9,%xmm1
unpcklpd %xmm9,%xmm1
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
movapd %xmm8,%xmm3
unpcklpd %xmm8,%xmm3
lea    0x0(,%r9,8),%rdx
and    $0xffffffffffffffe0,%rdx
xor    %esi,%esi
nopl   0x0(%rax)
movupd (%r12,%rsi,1),%xmm4
movupd 0x10(%r12,%rsi,1),%xmm5
mulpd  %xmm4,%xmm4
mulpd  %xmm5,%xmm5
movupd (%rax,%rsi,1),%xmm6
movupd 0x10(%rax,%rsi,1),%xmm7
subpd  %xmm1,%xmm6
subpd  %xmm1,%xmm7
addpd  %xmm6,%xmm6
mulpd  %xmm4,%xmm6
addpd  %xmm7,%xmm7
mulpd  %xmm5,%xmm7
addpd  %xmm2,%xmm6
addpd  %xmm2,%xmm7
mulpd  %xmm3,%xmm6
mulpd  %xmm3,%xmm7
movupd %xmm6,0x0(%r13,%rsi,1)
movupd %xmm7,0x10(%r13,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%rdx
jne    1490 <paw_R_Schrodinger_Fixed_E1+0x2f0>
cmp    %r9,%rcx
je     15a3 <paw_R_Schrodinger_Fixed_E1+0x403>
mov    %rcx,%rdx
not    %rdx
test   $0x1,%r9b
je     1534 <paw_R_Schrodinger_Fixed_E1+0x394>
movsd  (%r12,%rcx,8),%xmm1
mulsd  %xmm1,%xmm1
movsd  (%rax,%rcx,8),%xmm2
subsd  %xmm9,%xmm2
addsd  %xmm2,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
mulsd  %xmm8,%xmm2
movsd  %xmm2,0x0(%r13,%rcx,8)
or     $0x1,%rcx
add    %r9,%rdx
je     15a3 <paw_R_Schrodinger_Fixed_E1+0x403>
nopl   0x0(%rax)
movsd  (%r12,%rcx,8),%xmm1
mulsd  %xmm1,%xmm1
movsd  (%rax,%rcx,8),%xmm2
subsd  %xmm9,%xmm2
addsd  %xmm2,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
mulsd  %xmm8,%xmm2
movsd  %xmm2,0x0(%r13,%rcx,8)
movsd  0x8(%r12,%rcx,8),%xmm1
mulsd  %xmm1,%xmm1
movsd  0x8(%rax,%rcx,8),%xmm2
subsd  %xmm9,%xmm2
addsd  %xmm2,%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
mulsd  %xmm8,%xmm2
movsd  %xmm2,0x8(%r13,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%r9
jne    1540 <paw_R_Schrodinger_Fixed_E1+0x3a0>
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
movsd  (%r12),%xmm0
call   10a0 <pow@plt>
movsd  %xmm0,(%r14)
mulsd  (%rsp),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x0(%r13),%xmm1
mulsd  (%r14),%xmm1
mulsd  0x10(%rsp),%xmm0
addsd  %xmm1,%xmm0
mov    %rbp,%r15
mov    0x18(%rsp),%rbp
movsd  %xmm0,0x0(%rbp)
movsd  0x8(%r12),%xmm0
movsd  0x8(%rsp),%xmm1
call   10a0 <pow@plt>
movsd  %xmm0,0x8(%r14)
mulsd  (%rsp),%xmm0
movsd  %xmm0,0x8(%rbx)
movsd  0x8(%r13),%xmm1
mulsd  0x8(%r14),%xmm1
mulsd  0x10(%rsp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rbp)
movsd  0x10(%r12),%xmm0
movsd  0x8(%rsp),%xmm1
call   10a0 <pow@plt>
movsd  %xmm0,0x10(%r14)
mulsd  (%rsp),%xmm0
movsd  %xmm0,0x10(%rbx)
movsd  0x10(%r13),%xmm1
mulsd  0x10(%r14),%xmm1
mulsd  0x10(%rsp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x10(%rbp)
mov    %r12,0x30(%rsp)
movsd  0x18(%r12),%xmm0
movsd  0x8(%rsp),%xmm1
call   10a0 <pow@plt>
movsd  %xmm0,0x18(%r14)
movsd  (%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rbx)
mov    %r14,%rax
mov    %r13,0x8(%rsp)
movsd  0x18(%r13),%xmm0
mulsd  0x18(%r14),%xmm0
mulsd  0x10(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x18(%rbp)
cmp    $0x3,%r15d
jle    17e5 <paw_R_Schrodinger_Fixed_E1+0x645>
movapd 0x20(%rsp),%xmm0
mulsd  0x92d(%rip),%xmm0
movapd %xmm0,0x20(%rsp)
mov    %r15d,%eax
mov    %rax,(%rsp)
movsd  0x18(%r14),%xmm0
mov    $0x3,%r12d
jmp    16fd <paw_R_Schrodinger_Fixed_E1+0x55d>
xchg   %ax,%ax
mov    %r15,%r12
cmp    (%rsp),%r15
je     17e5 <paw_R_Schrodinger_Fixed_E1+0x645>
andpd  0x90b(%rip),%xmm0
movsd  0x8fb(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    17e5 <paw_R_Schrodinger_Fixed_E1+0x645>
mov    %r12d,%edi
mov    %r14,%r13
mov    %r14,%rsi
mov    %rbx,%rdx
call   1080 <paw_Predictor_Out@plt>
lea    0x1(%r12),%r15
movsd  %xmm0,0x8(%r14,%r12,8)
mov    %r12d,%edi
mov    %rbx,%rsi
mov    0x18(%rsp),%rdx
call   1080 <paw_Predictor_Out@plt>
movapd %xmm0,%xmm1
movsd  %xmm0,0x8(%rbx,%r12,8)
movsd  0x8(%r14,%r12,8),%xmm0
mov    $0x5,%r13d
nopl   0x0(%rax)
movapd 0x20(%rsp),%xmm2
mov    0x8(%rsp),%rax
mulsd  (%rax,%r15,8),%xmm0
mulsd  0x10(%rsp),%xmm1
addsd  %xmm0,%xmm1
mov    0x30(%rsp),%rax
movsd  (%rax,%r15,8),%xmm0
mulsd  %xmm0,%xmm2
mulsd  %xmm0,%xmm2
mov    0x50(%rsp),%rax
mulsd  (%rax,%r15,8),%xmm2
addsd  %xmm1,%xmm2
mov    0x18(%rsp),%rdx
movsd  %xmm2,(%rdx,%r15,8)
mov    %r12d,%edi
mov    %rbx,%rsi
call   1030 <paw_Corrector_Out@plt>
movsd  %xmm0,(%rbx,%r15,8)
mov    %r12d,%edi
mov    %r14,%rbp
mov    %r14,%rsi
mov    %rbx,%rdx
call   1030 <paw_Corrector_Out@plt>
movsd  %xmm0,(%r14,%r15,8)
sub    $0x1,%r13d
jb     16f0 <paw_R_Schrodinger_Fixed_E1+0x550>
movsd  (%rbx,%r15,8),%xmm1
jmp    1760 <paw_R_Schrodinger_Fixed_E1+0x5c0>
mov    0x18(%rsp),%rdi
call   10b0 <paw_dealloc_LogGrid@plt>
mov    0x8(%rsp),%rdi
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10b0 <paw_dealloc_LogGrid@plt>
lea    0x812(%rip),%rdi
call   1040 <puts@plt>
lea    0x830(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"match point is outside the allowed region\0A\00"
@.str.1 = [23 x i8] c"abborting the program\0A\00"
define void @paw_R_Schrodinger_Fixed_E1(i32 %0, double* %1, double* %2, i32 %3, double %4, double* %5, double* %6) {
%8 = alloca i32
%9 = alloca double*
%10 = alloca double*
%11 = alloca i32
%12 = alloca double
%13 = alloca double*
%14 = alloca double*
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double*
%24 = alloca double*
%25 = alloca double*
%26 = alloca double
store i32 %0, i32* %8
store double* %1, double** %9
store double* %2, double** %10
store i32 %3, i32* %11
store double %4, double* %12
store double* %5, double** %13
store double* %6, double** %14
store double 1.000000e+07, double* %26
%27 = load i32, i32* %8
%28 = add nsw i32 %27, 1
%29 = sitofp i32 %28 to double
store double %29, double* %20
%30 = load i32, i32* %8
%31 = load i32, i32* %8
%32 = add nsw i32 %31, 1
%33 = mul nsw i32 %30, %32
%34 = sitofp i32 %33 to double
store double %34, double* %21
%35 = call i32 (...) @paw_N_LogGrid()
store i32 %35, i32* %17
%36 = call double (...) @paw_log_amesh_LogGrid()
store double %36, double* %18
%37 = load double, double* %18
%38 = load double, double* %18
%39 = fmul double %37, %38
store double %39, double* %19
%40 = load i32, i32* %11
%41 = load i32, i32* %17
%42 = sub nsw i32 %41, 1
%43 = icmp sgt i32 %40, %42
br i1 %43, label %44, label %48
44: ; preds = %7
%45 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%46 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%47 = call i32 @exit(i32 1)
unreachable
48: ; preds = %7
%49 = call i64 (...) @paw_r_LogGrid()
%50 = inttoptr i64 %49 to double*
store double* %50, double** %23
%51 = call i64 (...) @paw_alloc_LogGrid()
%52 = inttoptr i64 %51 to double*
store double* %52, double** %24
%53 = call i64 (...) @paw_alloc_LogGrid()
%54 = inttoptr i64 %53 to double*
store double* %54, double** %25
store i32 0, i32* %15
br label %55
55: ; preds = %68, %48
%56 = load i32, i32* %15
%57 = load i32, i32* %11
%58 = icmp sle i32 %56, %57
br i1 %58, label %59, label %71
59: ; preds = %55
%60 = load double*, double** %13
%61 = load i32, i32* %15
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds double, double* %60, i64 %62
store double 0.000000e+00, double* %63
%64 = load double*, double** %14
%65 = load i32, i32* %15
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, double* %64, i64 %66
store double 0.000000e+00, double* %67
br label %68
68: ; preds = %59
%69 = load i32, i32* %15
%70 = add nsw i32 %69, 1
store i32 %70, i32* %15
br label %55
71: ; preds = %55
store i32 0, i32* %15
br label %72
72: ; preds = %106, %71
%73 = load i32, i32* %15
%74 = load i32, i32* %11
%75 = add nsw i32 %74, 1
%76 = icmp slt i32 %73, %75
br i1 %76, label %77, label %109
77: ; preds = %72
%78 = load double*, double** %23
%79 = load i32, i32* %15
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, double* %78, i64 %80
%82 = load double, double* %81
%83 = load double*, double** %23
%84 = load i32, i32* %15
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, double* %83, i64 %85
%87 = load double, double* %86
%88 = fmul double %82, %87
store double %88, double* %22
%89 = load double, double* %19
%90 = load double, double* %21
%91 = load double*, double** %9
%92 = load i32, i32* %15
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, double* %91, i64 %93
%95 = load double, double* %94
%96 = load double, double* %12
%97 = fsub double %95, %96
%98 = fmul double 2.000000e+00, %97
%99 = load double, double* %22
%100 = call double @llvm.fmuladd.f64(double %98, double %99, double %90)
%101 = fmul double %89, %100
%102 = load double*, double** %24
%103 = load i32, i32* %15
%104 = sext i32 %103 to i64
%105 = getelementptr inbounds double, double* %102, i64 %104
store double %101, double* %105
br label %106
106: ; preds = %77
%107 = load i32, i32* %15
%108 = add nsw i32 %107, 1
store i32 %108, i32* %15
br label %72
109: ; preds = %72
store i32 0, i32* %15
br label %110
110: ; preds = %160, %109
%111 = load i32, i32* %15
%112 = icmp slt i32 %111, 4
br i1 %112, label %113, label %163
113: ; preds = %110
%114 = load double*, double** %23
%115 = load i32, i32* %15
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds double, double* %114, i64 %116
%118 = load double, double* %117
%119 = load double, double* %20
%120 = call double @pow(double %118, double %119)
%121 = load double*, double** %13
%122 = load i32, i32* %15
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds double, double* %121, i64 %123
store double %120, double* %124
%125 = load double, double* %18
%126 = load double, double* %20
%127 = fmul double %125, %126
%128 = load double*, double** %13
%129 = load i32, i32* %15
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds double, double* %128, i64 %130
%132 = load double, double* %131
%133 = fmul double %127, %132
%134 = load double*, double** %14
%135 = load i32, i32* %15
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds double, double* %134, i64 %136
store double %133, double* %137
%138 = load double, double* %18
%139 = load double*, double** %14
%140 = load i32, i32* %15
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds double, double* %139, i64 %141
%143 = load double, double* %142
%144 = load double*, double** %24
%145 = load i32, i32* %15
%146 = sext i32 %145 to i64
%147 = getelementptr inbounds double, double* %144, i64 %146
%148 = load double, double* %147
%149 = load double*, double** %13
%150 = load i32, i32* %15
%151 = sext i32 %150 to i64
%152 = getelementptr inbounds double, double* %149, i64 %151
%153 = load double, double* %152
%154 = fmul double %148, %153
%155 = call double @llvm.fmuladd.f64(double %138, double %143, double %154)
%156 = load double*, double** %25
%157 = load i32, i32* %15
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds double, double* %156, i64 %158
store double %155, double* %159
br label %160
160: ; preds = %113
%161 = load i32, i32* %15
%162 = add nsw i32 %161, 1
store i32 %162, i32* %15
br label %110
163: ; preds = %110
store i32 3, i32* %15
br label %164
164: ; preds = %273, %163
%165 = load i32, i32* %15
%166 = load i32, i32* %11
%167 = icmp slt i32 %165, %166
br i1 %167, label %168, label %177
168: ; preds = %164
%169 = load double*, double** %13
%170 = load i32, i32* %15
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds double, double* %169, i64 %171
%173 = load double, double* %172
%174 = call double @llvm.fabs.f64(double %173)
%175 = load double, double* %26
%176 = fcmp olt double %174, %175
br label %177
177: ; preds = %168, %164
%178 = phi i1 [ false, %164 ], [ %176, %168 ]
br i1 %178, label %179, label %276
179: ; preds = %177
%180 = load i32, i32* %15
%181 = load double*, double** %13
%182 = load double*, double** %14
%183 = call double @paw_Predictor_Out(i32 %180, double* %181, double* %182)
%184 = load double*, double** %13
%185 = load i32, i32* %15
%186 = add nsw i32 %185, 1
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds double, double* %184, i64 %187
store double %183, double* %188
%189 = load i32, i32* %15
%190 = load double*, double** %14
%191 = load double*, double** %25
%192 = call double @paw_Predictor_Out(i32 %189, double* %190, double* %191)
%193 = load double*, double** %14
%194 = load i32, i32* %15
%195 = add nsw i32 %194, 1
%196 = sext i32 %195 to i64
%197 = getelementptr inbounds double, double* %193, i64 %196
store double %192, double* %197
store i32 0, i32* %16
br label %198
198: ; preds = %270, %179
%199 = load i32, i32* %16
%200 = icmp slt i32 %199, 6
br i1 %200, label %201, label %273
201: ; preds = %198
%202 = load double, double* %18
%203 = load double*, double** %14
%204 = load i32, i32* %15
%205 = add nsw i32 %204, 1
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds double, double* %203, i64 %206
%208 = load double, double* %207
%209 = load double*, double** %24
%210 = load i32, i32* %15
%211 = add nsw i32 %210, 1
%212 = sext i32 %211 to i64
%213 = getelementptr inbounds double, double* %209, i64 %212
%214 = load double, double* %213
%215 = load double*, double** %13
%216 = load i32, i32* %15
%217 = add nsw i32 %216, 1
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds double, double* %215, i64 %218
%220 = load double, double* %219
%221 = fmul double %214, %220
%222 = call double @llvm.fmuladd.f64(double %202, double %208, double %221)
%223 = load double, double* %19
%224 = fmul double 2.000000e+00, %223
%225 = load double*, double** %23
%226 = load i32, i32* %15
%227 = add nsw i32 %226, 1
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds double, double* %225, i64 %228
%230 = load double, double* %229
%231 = fmul double %224, %230
%232 = load double*, double** %23
%233 = load i32, i32* %15
%234 = add nsw i32 %233, 1
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds double, double* %232, i64 %235
%237 = load double, double* %236
%238 = fmul double %231, %237
%239 = load double*, double** %10
%240 = load i32, i32* %15
%241 = add nsw i32 %240, 1
%242 = sext i32 %241 to i64
%243 = getelementptr inbounds double, double* %239, i64 %242
%244 = load double, double* %243
%245 = fneg double %238
%246 = call double @llvm.fmuladd.f64(double %245, double %244, double %222)
%247 = load double*, double** %25
%248 = load i32, i32* %15
%249 = add nsw i32 %248, 1
%250 = sext i32 %249 to i64
%251 = getelementptr inbounds double, double* %247, i64 %250
store double %246, double* %251
%252 = load i32, i32* %15
%253 = load double*, double** %14
%254 = load double*, double** %25
%255 = call double @paw_Corrector_Out(i32 %252, double* %253, double* %254)
%256 = load double*, double** %14
%257 = load i32, i32* %15
%258 = add nsw i32 %257, 1
%259 = sext i32 %258 to i64
%260 = getelementptr inbounds double, double* %256, i64 %259
store double %255, double* %260
%261 = load i32, i32* %15
%262 = load double*, double** %13
%263 = load double*, double** %14
%264 = call double @paw_Corrector_Out(i32 %261, double* %262, double* %263)
%265 = load double*, double** %13
%266 = load i32, i32* %15
%267 = add nsw i32 %266, 1
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds double, double* %265, i64 %268
store double %264, double* %269
br label %270
270: ; preds = %201
%271 = load i32, i32* %16
%272 = add nsw i32 %271, 1
store i32 %272, i32* %16
br label %198
273: ; preds = %198
%274 = load i32, i32* %15
%275 = add nsw i32 %274, 1
store i32 %275, i32* %15
br label %164
276: ; preds = %177
%277 = load double*, double** %25
%278 = call i32 @paw_dealloc_LogGrid(double* %277)
%279 = load double*, double** %24
%280 = call i32 @paw_dealloc_LogGrid(double* %279)
ret void
}

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