#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 *calloc(int, int);
int /*<<< orphan*/ exit(int);
double fabs(double);
int /*<<< orphan*/ free(double *);
int /*<<< orphan*/ gen_sym_eigen(int, double const *, double *, double *,
                                 double *);
int /*<<< orphan*/ printf(char *);
double sqrt(double);
void stepVector_Eigen(int nDim, double C, const double *H, const double *g,
                      const double *J, double maxStepSize, double *gL,
                      double *dR) {
  int i, j;
  double r;
  double *I;
  double *h;
  double *e;
  double *alpha;
  double *beta;
  double gamma;
  I = calloc(nDim * nDim, sizeof(double));
  h = calloc(nDim * nDim, sizeof(double));
  e = calloc(nDim, sizeof(double));
  alpha = calloc(nDim, sizeof(double));
  beta = calloc(nDim, sizeof(double));
  if (I == NULL || h == NULL || e == NULL || alpha == NULL || beta == NULL) {
    printf("stepVector_Eigen - error cannot allocate memory\n");
    exit(-1);
  }
  for (i = 0; i < nDim; i++)
    I[i * nDim + i] = 1.0;
  gen_sym_eigen(nDim, H, I, e, h);
  for (i = 0; i < nDim; i++)
    for (j = 0; j < nDim; j++) {
      alpha[i] += g[j] * h[i * nDim + j];
      beta[i] += J[j] * h[i * nDim + j];
    }
  gamma = 0.0;
  r = 0.0;
  for (i = 0; i < nDim; i++)
    if (fabs(e[i]) > 0.0) {
      gamma += alpha[i] * beta[i] / e[i];
      r += beta[i] * beta[i] / e[i];
    }
  if (r == 0.0)
    gamma = 0.0;
  else
    gamma = (C - gamma) / r;
  for (i = 0; i < nDim; i++)
    dR[i] = 0.0;
  for (i = 0; i < nDim; i++)
    if (fabs(e[i]) > 0.0) {
      r = (alpha[i] + gamma * beta[i]) / e[i];
      for (j = 0; j < nDim; j++)
        dR[j] -= r * h[i * nDim + j];
    }
  if (maxStepSize <= 0.0) {
    printf("stepVector_Eigen: invalid range of maxStepSize");
    exit(-1);
  }
  r = 0;
  for (i = 0; i < nDim; i++)
    r += dR[i] * dR[i];
  r = sqrt(r);
  if (r > maxStepSize)
    for (i = 0; i < nDim; i++)
      dR[i] = dR[i] * maxStepSize / r;
  for (i = 0; i < nDim; i++)
    gL[i] = g[i] + gamma * J[i];
  free(I);
  free(h);
  free(e);
  free(alpha);
  free(beta);
}


x86 assembly (clang, -O0):
<stepVector_Eigen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
movsd  %xmm1,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
mov    -0x4(%rbp),%edi
imul   -0x4(%rbp),%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x4(%rbp),%edi
imul   -0x4(%rbp),%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,-0x60(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,-0x68(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,-0x70(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x8,%esi
call   1060 <calloc@plt>
mov    %rax,-0x78(%rbp)
cmpq   $0x0,-0x58(%rbp)
je     1220 <stepVector_Eigen+0xc0>
cmpq   $0x0,-0x60(%rbp)
je     1220 <stepVector_Eigen+0xc0>
cmpq   $0x0,-0x68(%rbp)
je     1220 <stepVector_Eigen+0xc0>
cmpq   $0x0,-0x70(%rbp)
je     1220 <stepVector_Eigen+0xc0>
cmpq   $0x0,-0x78(%rbp)
jne    1236 <stepVector_Eigen+0xd6>
lea    0xdf1(%rip),%rdi
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1275 <stepVector_Eigen+0x115>
mov    -0x58(%rbp),%rax
mov    -0x44(%rbp),%ecx
imul   -0x4(%rbp),%ecx
add    -0x44(%rbp),%ecx
movslq %ecx,%rcx
movsd  0xdae(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    123d <stepVector_Eigen+0xdd>
mov    -0x4(%rbp),%edi
mov    -0x18(%rbp),%rsi
mov    -0x58(%rbp),%rdx
mov    -0x68(%rbp),%rcx
mov    -0x60(%rbp),%r8
call   1030 <gen_sym_eigen@plt>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    134e <stepVector_Eigen+0x1ee>
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    133b <stepVector_Eigen+0x1db>
mov    -0x20(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x60(%rbp),%rax
mov    -0x44(%rbp),%ecx
imul   -0x4(%rbp),%ecx
add    -0x48(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x70(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x60(%rbp),%rax
mov    -0x44(%rbp),%ecx
imul   -0x4(%rbp),%ecx
add    -0x48(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x78(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    12a7 <stepVector_Eigen+0x147>
jmp    1340 <stepVector_Eigen+0x1e0>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1294 <stepVector_Eigen+0x134>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    140b <stepVector_Eigen+0x2ab>
mov    -0x68(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xc7b(%rip),%xmm1
pand   %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    13f8 <stepVector_Eigen+0x298>
mov    -0x70(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x78(%rbp),%rax
movslq -0x44(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x68(%rbp),%rax
movslq -0x44(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x78(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x78(%rbp),%rax
movslq -0x44(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x68(%rbp),%rax
movslq -0x44(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    13fd <stepVector_Eigen+0x29d>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1365 <stepVector_Eigen+0x205>
movsd  -0x50(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1430 <stepVector_Eigen+0x2d0>
jp     1430 <stepVector_Eigen+0x2d0>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
jmp    1444 <stepVector_Eigen+0x2e4>
movsd  -0x10(%rbp),%xmm0
subsd  -0x80(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1475 <stepVector_Eigen+0x315>
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    144b <stepVector_Eigen+0x2eb>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    156b <stepVector_Eigen+0x40b>
mov    -0x68(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xb64(%rip),%xmm1
pand   %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1558 <stepVector_Eigen+0x3f8>
mov    -0x70(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x80(%rbp),%xmm0
mov    -0x78(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x68(%rbp),%rax
movslq -0x44(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1553 <stepVector_Eigen+0x3f3>
movsd  -0x50(%rbp),%xmm0
mov    -0x60(%rbp),%rax
mov    -0x44(%rbp),%ecx
imul   -0x4(%rbp),%ecx
add    -0x48(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x40(%rbp),%rax
movslq -0x48(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    14ed <stepVector_Eigen+0x38d>
jmp    1558 <stepVector_Eigen+0x3f8>
jmp    155d <stepVector_Eigen+0x3fd>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    147c <stepVector_Eigen+0x31c>
xorps  %xmm0,%xmm0
ucomisd -0x30(%rbp),%xmm0
jb     158f <stepVector_Eigen+0x42f>
lea    0xac9(%rip),%rdi
call   1050 <printf@plt>
mov    $0xffffffff,%edi
call   1080 <exit@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    15e4 <stepVector_Eigen+0x484>
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    159e <stepVector_Eigen+0x43e>
movsd  -0x50(%rbp),%xmm0
call   1070 <sqrt@plt>
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
jbe    164d <stepVector_Eigen+0x4ed>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1648 <stepVector_Eigen+0x4e8>
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x30(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    160a <stepVector_Eigen+0x4aa>
jmp    164d <stepVector_Eigen+0x4ed>
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    16a2 <stepVector_Eigen+0x542>
mov    -0x20(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x80(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x38(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1654 <stepVector_Eigen+0x4f4>
mov    -0x58(%rbp),%rdi
call   1040 <free@plt>
mov    -0x60(%rbp),%rdi
call   1040 <free@plt>
mov    -0x68(%rbp),%rdi
call   1040 <free@plt>
mov    -0x70(%rbp),%rdi
call   1040 <free@plt>
mov    -0x78(%rbp),%rdi
call   1040 <free@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stepVector_Eigen>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %r9,%rbp
mov    %r8,0x58(%rsp)
movapd %xmm1,0x60(%rsp)
mov    %rcx,%r15
mov    %rdx,%r14
mov    %rsi,0x20(%rsp)
movsd  %xmm0,0x80(%rsp)
mov    %edi,%r12d
mov    %edi,%ebx
imul   %edi,%ebx
mov    %ebx,%edi
mov    $0x8,%esi
call   1080 <calloc@plt>
mov    %rax,0x50(%rsp)
mov    %ebx,%edi
mov    $0x8,%esi
call   1080 <calloc@plt>
mov    %rax,0x10(%rsp)
mov    %r12d,%edi
mov    $0x8,%esi
call   1080 <calloc@plt>
mov    %rax,%rbx
mov    %r12d,%edi
mov    $0x8,%esi
call   1080 <calloc@plt>
mov    %rax,%r13
mov    %r12d,%edi
mov    $0x8,%esi
call   1080 <calloc@plt>
mov    0x10(%rsp),%r8
mov    0x50(%rsp),%rdx
test   %rdx,%rdx
je     1b6d <stepVector_Eigen+0x9ed>
test   %r8,%r8
je     1b6d <stepVector_Eigen+0x9ed>
mov    %rbx,%rcx
test   %rbx,%rbx
je     1b6d <stepVector_Eigen+0x9ed>
test   %r13,%r13
je     1b6d <stepVector_Eigen+0x9ed>
test   %rax,%rax
je     1b6d <stepVector_Eigen+0x9ed>
mov    %rdx,%r9
mov    %rax,0x38(%rsp)
test   %r12d,%r12d
mov    %rcx,0x30(%rsp)
mov    %r13,0x40(%rsp)
jle    1299 <stepVector_Eigen+0x119>
mov    %r12d,%eax
lea    -0x1(%rax),%rsi
mov    %eax,%ebx
and    $0x3,%ebx
xor    %edx,%edx
movabs $0x3ff0000000000000,%rdi
cmp    $0x3,%rsi
mov    %rax,0x8(%rsp)
mov    %r12,0x28(%rsp)
mov    %rsi,0x78(%rsp)
jae    12b1 <stepVector_Eigen+0x131>
mov    %r9,%r13
test   %rbx,%rbx
jne    139d <stepVector_Eigen+0x21d>
jmp    13c8 <stepVector_Eigen+0x248>
mov    %r12d,%edi
mov    0x20(%rsp),%rsi
mov    %r9,%r13
mov    %r9,%rdx
call   1030 <gen_sym_eigen@plt>
jmp    17c6 <stepVector_Eigen+0x646>
mov    %rbx,0x98(%rsp)
mov    %rbp,0xa0(%rsp)
lea    (%r12,%r12,1),%esi
lea    0x0(,%r12,4),%ecx
mov    %ecx,0x18(%rsp)
lea    (%r12,%r12,2),%ecx
and    $0xfffffffc,%eax
neg    %rax
mov    %rax,0x48(%rsp)
mov    $0x2,%r13d
mov    $0x1,%r10d
mov    $0x3,%ebp
xor    %eax,%eax
mov    %r12d,%edi
xor    %r9d,%r9d
mov    0x50(%rsp),%r12
movabs $0x3ff0000000000000,%r11
nopl   0x0(%rax,%rax,1)
movslq %esi,%rsi
movslq %edi,%rdi
movslq %edx,%rdx
lea    (%r9,%rdx,1),%r8
mov    %r11,(%r12,%r8,8)
lea    (%r10,%rdi,1),%rbx
mov    %r11,(%r12,%rbx,8)
lea    0x0(%r13,%rsi,1),%rbx
movslq %ecx,%rcx
mov    %r11,(%r12,%rbx,8)
lea    (%rcx,%rbp,1),%rbx
mov    %r11,(%r12,%rbx,8)
add    $0x4,%r9
mov    0x18(%rsp),%ebx
add    %ebx,%edx
add    $0x4,%r13
add    %ebx,%esi
add    $0x4,%r10
add    %ebx,%edi
add    $0x4,%rbp
add    %ebx,%ecx
add    $0xfffffffffffffffc,%rax
cmp    %rax,0x48(%rsp)
jne    1310 <stepVector_Eigen+0x190>
neg    %rax
mov    %rax,%rdx
mov    0x50(%rsp),%r13
mov    0x10(%rsp),%r8
mov    0x30(%rsp),%rcx
mov    0x28(%rsp),%r12
movabs $0x3ff0000000000000,%rdi
mov    0xa0(%rsp),%rbp
mov    0x98(%rsp),%rbx
test   %rbx,%rbx
je     13c8 <stepVector_Eigen+0x248>
mov    %r12d,%eax
imul   %edx,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cltq
lea    (%rdx,%rax,1),%rsi
mov    %rdi,0x0(%r13,%rsi,8)
add    $0x1,%rdx
add    %r12d,%eax
add    $0xffffffffffffffff,%rbx
jne    13b0 <stepVector_Eigen+0x230>
mov    %r12d,%edi
mov    0x20(%rsp),%rsi
mov    %r13,%rdx
call   1030 <gen_sym_eigen@plt>
test   %r12d,%r12d
mov    0x8(%rsp),%rdi
mov    0x78(%rsp),%r9
jle    17c6 <stepVector_Eigen+0x646>
mov    %edi,%eax
and    $0xfffffffe,%eax
mov    0x10(%rsp),%r8
lea    0x8(%r8),%rcx
lea    0x0(,%rdi,8),%r10
xor    %edx,%edx
mov    0x40(%rsp),%r11
mov    0x38(%rsp),%rbx
jmp    142b <stepVector_Eigen+0x2ab>
nop
movsd  %xmm0,(%r11,%rdx,8)
movsd  %xmm1,(%rbx,%rdx,8)
add    $0x1,%rdx
add    %r10,%rcx
cmp    %rdi,%rdx
je     14d8 <stepVector_Eigen+0x358>
movsd  (%r11,%rdx,8),%xmm0
movsd  (%rbx,%rdx,8),%xmm1
xor    %esi,%esi
test   %r9,%r9
je     149a <stepVector_Eigen+0x31a>
movapd %xmm1,%xmm2
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%rcx,%rsi,8),%xmm3
movsd  (%rcx,%rsi,8),%xmm1
movsd  (%r14,%rsi,8),%xmm4
mulsd  %xmm3,%xmm4
addsd  %xmm0,%xmm4
mulsd  (%r15,%rsi,8),%xmm3
addsd  %xmm2,%xmm3
movsd  0x8(%r14,%rsi,8),%xmm0
mulsd  %xmm1,%xmm0
mulsd  0x8(%r15,%rsi,8),%xmm1
addsd  %xmm4,%xmm0
addsd  %xmm3,%xmm1
add    $0x2,%rsi
movapd %xmm1,%xmm2
cmp    %rsi,%rax
jne    1450 <stepVector_Eigen+0x2d0>
test   $0x1,%dil
je     1410 <stepVector_Eigen+0x290>
mov    %rdx,%rdi
imul   0x8(%rsp),%rdi
add    %rsi,%rdi
movsd  (%r8,%rdi,8),%xmm2
mov    0x8(%rsp),%rdi
movsd  (%r14,%rsi,8),%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm3,%xmm0
mulsd  (%r15,%rsi,8),%xmm2
addsd  %xmm2,%xmm1
jmp    1410 <stepVector_Eigen+0x290>
mov    0x28(%rsp),%rbx
test   %ebx,%ebx
jle    17c6 <stepVector_Eigen+0x646>
xorpd  %xmm0,%xmm0
xor    %eax,%eax
xorpd  %xmm1,%xmm1
mov    0x30(%rsp),%rcx
mov    0x40(%rsp),%rdx
mov    0x38(%rsp),%rsi
jmp    1509 <stepVector_Eigen+0x389>
add    $0x1,%rax
cmp    %rax,%rdi
je     1538 <stepVector_Eigen+0x3b8>
movsd  (%rcx,%rax,8),%xmm2
ucomisd %xmm2,%xmm1
je     1500 <stepVector_Eigen+0x380>
movsd  (%rsi,%rax,8),%xmm3
movapd %xmm3,%xmm4
movhpd (%rdx,%rax,8),%xmm4
unpcklpd %xmm3,%xmm3
mulpd  %xmm4,%xmm3
unpcklpd %xmm2,%xmm2
divpd  %xmm2,%xmm3
addpd  %xmm3,%xmm0
jmp    1500 <stepVector_Eigen+0x380>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    17a1 <stepVector_Eigen+0x621>
jp     17a1 <stepVector_Eigen+0x621>
test   %ebx,%ebx
jle    17c6 <stepVector_Eigen+0x646>
mov    %r10,0x18(%rsp)
lea    0x0(,%rdi,8),%rdx
mov    0x10(%rsp),%r12
xor    %r13d,%r13d
mov    %rbp,%rdi
xor    %esi,%esi
movapd %xmm1,0x80(%rsp)
call   1070 <memset@plt>
movapd 0x80(%rsp),%xmm9
mov    0x8(%rsp),%rdi
mov    %edi,%r9d
and    $0xfffffffc,%r9d
lea    -0x4(%r9),%r8
mov    %r8,0x48(%rsp)
shr    $0x2,%r8
add    $0x1,%r8
mov    %r8,%rax
and    $0xfffffffffffffffe,%rax
mov    %rax,0x20(%rsp)
mov    %r12,%rdx
add    $0x30,%rdx
xorpd  %xmm0,%xmm0
movapd 0xa3d(%rip),%xmm8
mov    %r12,%rsi
mov    0x28(%rsp),%r12
mov    0x30(%rsp),%rax
mov    0x40(%rsp),%r10
mov    0x38(%rsp),%r11
mov    0x10(%rsp),%rbx
jmp    1608 <stepVector_Eigen+0x488>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r13
mov    0x18(%rsp),%rcx
add    %rcx,%rdx
add    %rcx,%rsi
cmp    %rdi,%r13
je     1761 <stepVector_Eigen+0x5e1>
movsd  (%rax,%r13,8),%xmm3
ucomisd %xmm3,%xmm0
je     15f0 <stepVector_Eigen+0x470>
movsd  (%r11,%r13,8),%xmm2
mulsd  %xmm9,%xmm2
addsd  (%r10,%r13,8),%xmm2
xorpd  %xmm8,%xmm2
divsd  %xmm3,%xmm2
cmp    $0x4,%r12d
jae    1640 <stepVector_Eigen+0x4c0>
xor    %ecx,%ecx
jmp    1730 <stepVector_Eigen+0x5b0>
nopl   0x0(%rax,%rax,1)
movapd %xmm2,%xmm3
unpcklpd %xmm2,%xmm3
cmpq   $0x0,0x48(%rsp)
je     1753 <stepVector_Eigen+0x5d3>
mov    0x20(%rsp),%rcx
xor    %edi,%edi
nopl   0x0(%rax,%rax,1)
movupd -0x30(%rdx,%rdi,8),%xmm4
movupd -0x20(%rdx,%rdi,8),%xmm5
mulpd  %xmm3,%xmm4
movupd 0x0(%rbp,%rdi,8),%xmm6
addpd  %xmm4,%xmm6
movupd 0x10(%rbp,%rdi,8),%xmm4
movupd 0x20(%rbp,%rdi,8),%xmm7
movupd 0x30(%rbp,%rdi,8),%xmm1
mulpd  %xmm3,%xmm5
addpd  %xmm4,%xmm5
movupd %xmm6,0x0(%rbp,%rdi,8)
movupd %xmm5,0x10(%rbp,%rdi,8)
movupd -0x10(%rdx,%rdi,8),%xmm4
movupd (%rdx,%rdi,8),%xmm5
mulpd  %xmm3,%xmm4
addpd  %xmm7,%xmm4
mulpd  %xmm3,%xmm5
addpd  %xmm1,%xmm5
movupd %xmm4,0x20(%rbp,%rdi,8)
movupd %xmm5,0x30(%rbp,%rdi,8)
add    $0x8,%rdi
add    $0xfffffffffffffffe,%rcx
jne    1660 <stepVector_Eigen+0x4e0>
test   $0x1,%r8b
je     171b <stepVector_Eigen+0x59b>
mov    %r13,%rcx
imul   0x8(%rsp),%rcx
add    %rdi,%rcx
movupd (%rbx,%rcx,8),%xmm1
movupd 0x10(%rbx,%rcx,8),%xmm4
mov    0x28(%rsp),%r12
movupd 0x0(%rbp,%rdi,8),%xmm5
movupd 0x10(%rbp,%rdi,8),%xmm6
mulpd  %xmm3,%xmm1
addpd  %xmm5,%xmm1
mulpd  %xmm3,%xmm4
addpd  %xmm6,%xmm4
movupd %xmm1,0x0(%rbp,%rdi,8)
movupd %xmm4,0x10(%rbp,%rdi,8)
mov    %r9,%rcx
mov    0x8(%rsp),%rdi
cmp    %rdi,%r9
je     15f0 <stepVector_Eigen+0x470>
nopl   0x0(%rax)
movsd  (%rsi,%rcx,8),%xmm1
mulsd  %xmm2,%xmm1
addsd  0x0(%rbp,%rcx,8),%xmm1
movsd  %xmm1,0x0(%rbp,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rdi
jne    1730 <stepVector_Eigen+0x5b0>
jmp    15f0 <stepVector_Eigen+0x470>
xor    %edi,%edi
test   $0x1,%r8b
jne    16d7 <stepVector_Eigen+0x557>
jmp    171b <stepVector_Eigen+0x59b>
mov    %r8,0x18(%rsp)
xorpd  %xmm0,%xmm0
ucomisd 0x60(%rsp),%xmm0
mov    0x50(%rsp),%r13
mov    0x58(%rsp),%rbx
jae    1b83 <stepVector_Eigen+0xa03>
test   %r12d,%r12d
jle    17d6 <stepVector_Eigen+0x656>
mov    %edi,%eax
and    $0x3,%eax
cmpq   $0x3,0x78(%rsp)
jae    1817 <stepVector_Eigen+0x697>
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
jmp    1871 <stepVector_Eigen+0x6f1>
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
movsd  0x80(%rsp),%xmm2
subsd  %xmm1,%xmm2
divsd  %xmm0,%xmm2
movapd %xmm2,%xmm1
test   %ebx,%ebx
jg     1554 <stepVector_Eigen+0x3d4>
xorpd  %xmm0,%xmm0
ucomisd 0x60(%rsp),%xmm0
jae    1b83 <stepVector_Eigen+0xa03>
mov    %r13,%rdi
call   1040 <free@plt>
mov    0x10(%rsp),%rdi
call   1040 <free@plt>
mov    0x30(%rsp),%rdi
call   1040 <free@plt>
mov    0x40(%rsp),%rdi
call   1040 <free@plt>
mov    0x38(%rsp),%rdi
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <free@plt>
mov    %edi,%edx
and    $0xfffffffc,%edx
xorpd  %xmm0,%xmm0
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0x0(%rbp,%rcx,8),%xmm1
movsd  0x8(%rbp,%rcx,8),%xmm2
mulsd  %xmm1,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
movsd  0x10(%rbp,%rcx,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
movsd  0x18(%rbp,%rcx,8),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
add    $0x4,%rcx
cmp    %rcx,%rdx
jne    1830 <stepVector_Eigen+0x6b0>
test   %rax,%rax
je     18a6 <stepVector_Eigen+0x726>
lea    0x0(,%rcx,8),%rcx
add    %rbp,%rcx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rcx,%rdx,8),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rdx
cmp    %rdx,%rax
jne    1890 <stepVector_Eigen+0x710>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     18b6 <stepVector_Eigen+0x736>
sqrtsd %xmm0,%xmm0
jmp    18ca <stepVector_Eigen+0x74a>
call   1090 <sqrt@plt>
movapd 0x80(%rsp),%xmm9
mov    0x8(%rsp),%rdi
movapd 0x60(%rsp),%xmm2
ucomisd %xmm2,%xmm0
jbe    19ad <stepVector_Eigen+0x82d>
test   %r12d,%r12d
jle    19ad <stepVector_Eigen+0x82d>
cmp    $0x2,%r12d
jae    18f0 <stepVector_Eigen+0x770>
xor    %eax,%eax
jmp    1990 <stepVector_Eigen+0x810>
mov    %edi,%eax
and    $0xfffffffe,%eax
movapd %xmm2,%xmm1
unpcklpd %xmm2,%xmm1
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
lea    -0x2(%rax),%rdx
mov    %rdx,%rcx
shr    %rcx
add    $0x1,%rcx
test   %rdx,%rdx
je     1964 <stepVector_Eigen+0x7e4>
mov    %rcx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movupd 0x0(%rbp,%rdx,8),%xmm3
movupd 0x10(%rbp,%rdx,8),%xmm4
mulpd  %xmm1,%xmm3
divpd  %xmm2,%xmm3
movupd %xmm3,0x0(%rbp,%rdx,8)
mulpd  %xmm1,%xmm4
divpd  %xmm2,%xmm4
movupd %xmm4,0x10(%rbp,%rdx,8)
add    $0x4,%rdx
add    $0xfffffffffffffffe,%rsi
jne    1930 <stepVector_Eigen+0x7b0>
jmp    1966 <stepVector_Eigen+0x7e6>
xor    %edx,%edx
test   $0x1,%cl
je     197f <stepVector_Eigen+0x7ff>
movupd 0x0(%rbp,%rdx,8),%xmm3
mulpd  %xmm1,%xmm3
divpd  %xmm2,%xmm3
movupd %xmm3,0x0(%rbp,%rdx,8)
cmp    %rdi,%rax
movapd 0x60(%rsp),%xmm2
je     19ad <stepVector_Eigen+0x82d>
nopw   0x0(%rax,%rax,1)
movsd  0x0(%rbp,%rax,8),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x0(%rbp,%rax,8)
add    $0x1,%rax
cmp    %rax,%rdi
jne    1990 <stepVector_Eigen+0x810>
test   %r12d,%r12d
jle    17d6 <stepVector_Eigen+0x656>
cmp    $0x4,%r12d
jae    19c3 <stepVector_Eigen+0x843>
xor    %eax,%eax
jmp    1af7 <stepVector_Eigen+0x977>
lea    (%rbx,%rdi,8),%rax
lea    (%r14,%rdi,8),%rcx
cmp    %rbx,%rcx
mov    %rbx,%rsi
seta   %bl
lea    (%r15,%rdi,8),%rcx
cmp    %r14,%rax
seta   %dl
cmp    %rsi,%rcx
seta   %cl
cmp    %r15,%rax
seta   %sil
xor    %eax,%eax
test   %dl,%bl
jne    1aa9 <stepVector_Eigen+0x929>
and    %sil,%cl
mov    0x58(%rsp),%rbx
jne    1af7 <stepVector_Eigen+0x977>
mov    %edi,%eax
and    $0xfffffffc,%eax
movapd %xmm9,%xmm0
unpcklpd %xmm9,%xmm0
cmpq   $0x0,0x48(%rsp)
je     1ab0 <stepVector_Eigen+0x930>
movabs $0x7ffffffffffffffe,%rdx
ff ff 7f
and    0x18(%rsp),%rdx
xor    %ecx,%ecx
nop
movupd (%r14,%rcx,8),%xmm1
movupd 0x10(%r14,%rcx,8),%xmm2
movupd (%r15,%rcx,8),%xmm3
movupd 0x10(%r15,%rcx,8),%xmm4
mulpd  %xmm0,%xmm3
addpd  %xmm1,%xmm3
mulpd  %xmm0,%xmm4
addpd  %xmm2,%xmm4
movupd %xmm3,(%rbx,%rcx,8)
movupd %xmm4,0x10(%rbx,%rcx,8)
movupd 0x20(%r14,%rcx,8),%xmm1
movupd 0x30(%r14,%rcx,8),%xmm2
movupd 0x20(%r15,%rcx,8),%xmm3
movupd 0x30(%r15,%rcx,8),%xmm4
mulpd  %xmm0,%xmm3
addpd  %xmm1,%xmm3
mulpd  %xmm0,%xmm4
addpd  %xmm2,%xmm4
movupd %xmm3,0x20(%rbx,%rcx,8)
movupd %xmm4,0x30(%rbx,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rdx
jne    1a30 <stepVector_Eigen+0x8b0>
jmp    1ab2 <stepVector_Eigen+0x932>
mov    0x58(%rsp),%rbx
jmp    1af7 <stepVector_Eigen+0x977>
xor    %ecx,%ecx
testb  $0x1,0x18(%rsp)
je     1aee <stepVector_Eigen+0x96e>
movupd (%r14,%rcx,8),%xmm1
movupd 0x10(%r14,%rcx,8),%xmm2
movupd (%r15,%rcx,8),%xmm3
movupd 0x10(%r15,%rcx,8),%xmm4
mulpd  %xmm0,%xmm3
addpd  %xmm1,%xmm3
mulpd  %xmm0,%xmm4
addpd  %xmm2,%xmm4
movupd %xmm3,(%rbx,%rcx,8)
movupd %xmm4,0x10(%rbx,%rcx,8)
cmp    %rdi,%rax
je     17d6 <stepVector_Eigen+0x656>
mov    %rax,%rcx
not    %rcx
test   $0x1,%dil
je     1b1d <stepVector_Eigen+0x99d>
movsd  (%r15,%rax,8),%xmm0
mulsd  %xmm9,%xmm0
addsd  (%r14,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
or     $0x1,%rax
add    %rdi,%rcx
je     17d6 <stepVector_Eigen+0x656>
cs nopw 0x0(%rax,%rax,1)
movsd  (%r15,%rax,8),%xmm0
mulsd  %xmm9,%xmm0
addsd  (%r14,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
movsd  0x8(%r15,%rax,8),%xmm0
mulsd  %xmm9,%xmm0
addsd  0x8(%r14,%rax,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rax,8)
add    $0x2,%rax
cmp    %rax,%rdi
jne    1b30 <stepVector_Eigen+0x9b0>
jmp    17d6 <stepVector_Eigen+0x656>
lea    0x4cb(%rip),%rdi
call   1050 <puts@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
lea    0x486(%rip),%rdi
call   1060 <printf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>

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

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