#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 exp(double);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc_aligned(int const);
void coreCAT_FLEX(int upper, int numberOfCategories, double *sum,
                  volatile double *d1, volatile double *d2, int *wgt,
                  double *rptr, double *EIGN, int *cptr, double lz,
                  const int states) {
  int i, l;
  double *d,
      *d_start = (double *)malloc_aligned(numberOfCategories * states *
                                          sizeof(double)),
      *e = (double *)malloc_aligned(states * sizeof(double)),
      *s = (double *)malloc_aligned(states * sizeof(double)),
      *dd = (double *)malloc_aligned(states * sizeof(double)), inv_Li, dlnLidlz,
      d2lnLidlz2, dlnLdlz = 0.0, d2lnLdlz2 = 0.0;
  d = d_start;
  e[0] = 0.0;
  s[0] = 0.0;
  dd[0] = 0.0;
  for (l = 1; l < states; l++) {
    s[l] = EIGN[l];
    e[l] = EIGN[l] * EIGN[l];
    dd[l] = s[l] * lz;
  }
  for (i = 0; i < numberOfCategories; i++) {
    d[states * i] = 1.0;
    for (l = 1; l < states; l++)
      d[states * i + l] = exp(dd[l] * rptr[i]);
  }
  for (i = 0; i < upper; i++) {
    d = &d_start[states * cptr[i]];
    inv_Li = sum[states * i];
    dlnLidlz = 0.0;
    d2lnLidlz2 = 0.0;
    for (l = 1; l < states; l++) {
      double tmpv = d[l] * sum[states * i + l];
      inv_Li += tmpv;
      dlnLidlz += tmpv * s[l];
      d2lnLidlz2 += tmpv * e[l];
    }
    inv_Li = 1.0 / inv_Li;
    dlnLidlz *= inv_Li;
    d2lnLidlz2 *= inv_Li;
    dlnLdlz += wgt[i] * rptr[cptr[i]] * dlnLidlz;
    d2lnLdlz2 += wgt[i] * rptr[cptr[i]] * rptr[cptr[i]] *
                 (d2lnLidlz2 - dlnLidlz * dlnLidlz);
  }
  *d1 = dlnLdlz;
  *d2 = d2lnLdlz2;
  free(d_start);
  free(e);
  free(s);
  free(dd);
}


x86 assembly (clang, -O0):
<coreCAT_FLEX>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movsd  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%eax
imul   0x28(%rbp),%eax
cltq
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc_aligned@plt>
mov    %rax,-0x48(%rbp)
movslq 0x28(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc_aligned@plt>
mov    %rax,-0x50(%rbp)
movslq 0x28(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc_aligned@plt>
mov    %rax,-0x58(%rbp)
movslq 0x28(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1040 <malloc_aligned@plt>
mov    %rax,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x48(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x50(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x60(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    0x28(%rbp),%eax
jge    1273 <coreCAT_FLEX+0x143>
mov    0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x30(%rbp),%xmm0
mov    -0x60(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11f9 <coreCAT_FLEX+0xc9>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    130a <coreCAT_FLEX+0x1da>
mov    -0x40(%rbp),%rax
mov    0x28(%rbp),%ecx
imul   -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  0xd64(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    0x28(%rbp),%eax
jge    12f7 <coreCAT_FLEX+0x1c7>
mov    -0x60(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
call   1050 <exp@plt>
mov    -0x40(%rbp),%rax
mov    0x28(%rbp),%ecx
imul   -0x34(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12a8 <coreCAT_FLEX+0x178>
jmp    12fc <coreCAT_FLEX+0x1cc>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    127a <coreCAT_FLEX+0x14a>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1506 <coreCAT_FLEX+0x3d6>
mov    -0x48(%rbp),%rax
mov    0x28(%rbp),%ecx
mov    0x20(%rbp),%rdx
movslq -0x34(%rbp),%rsi
imul   (%rdx,%rsi,4),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x28(%rbp),%ecx
imul   -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
movl   $0x1,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    0x28(%rbp),%eax
jge    1412 <coreCAT_FLEX+0x2e2>
mov    -0x40(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    0x28(%rbp),%ecx
imul   -0x34(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
addsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x90(%rbp),%xmm0
ff
mov    -0x58(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x90(%rbp),%xmm0
ff
mov    -0x50(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    136d <coreCAT_FLEX+0x23d>
movsd  0xbe6(%rip),%xmm0
divsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x68(%rbp),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
mov    0x10(%rbp),%rax
mov    0x20(%rbp),%rcx
movslq -0x34(%rbp),%rdx
movslq (%rcx,%rdx,4),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
cvtsi2sdl (%rax,%rcx,4),%xmm0
mov    0x10(%rbp),%rax
mov    0x20(%rbp),%rcx
movslq -0x34(%rbp),%rdx
movslq (%rcx,%rdx,4),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x10(%rbp),%rax
mov    0x20(%rbp),%rcx
movslq -0x34(%rbp),%rdx
movslq (%rcx,%rdx,4),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  -0x78(%rbp),%xmm1
movsd  -0x70(%rbp),%xmm2
movsd  -0x70(%rbp),%xmm3
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1311 <coreCAT_FLEX+0x1e1>
movsd  -0x80(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<coreCAT_FLEX>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
movapd %xmm0,0x60(%rsp)
mov    %r9,0x90(%rsp)
mov    %r8,0xa0(%rsp)
mov    %rcx,0x98(%rsp)
mov    %rdx,0x88(%rsp)
mov    %esi,%r15d
mov    %edi,0x5c(%rsp)
mov    0xf8(%rsp),%r14d
mov    0xf0(%rsp),%rax
mov    %rax,0x80(%rsp)
mov    0xe8(%rsp),%r13
mov    0xe0(%rsp),%rax
mov    %rax,0x50(%rsp)
mov    %esi,%edi
imul   %r14d,%edi
shl    $0x3,%edi
call   1040 <malloc_aligned@plt>
mov    %rax,0x38(%rsp)
lea    0x0(,%r14,8),%ebx
mov    %ebx,%edi
call   1040 <malloc_aligned@plt>
mov    %rax,%r12
mov    %rax,0x18(%rsp)
mov    %ebx,%edi
call   1040 <malloc_aligned@plt>
mov    %rax,%rbp
mov    %ebx,%edi
call   1040 <malloc_aligned@plt>
movapd 0x60(%rsp),%xmm3
mov    %r14,%r8
movq   $0x0,(%r12)
movq   $0x0,0x0(%rbp)
movq   $0x0,(%rax)
mov    %r8d,%ebx
cmp    $0x2,%r8d
mov    %rbp,0x20(%rsp)
mov    %rbx,0x30(%rsp)
jl     14b3 <coreCAT_FLEX+0x383>
lea    -0x1(%rbx),%rdx
mov    $0x1,%ecx
cmp    $0x2,%rdx
jb     13ff <coreCAT_FLEX+0x2cf>
mov    %rdx,0x78(%rsp)
mov    %r15d,0x10(%rsp)
mov    %r8,0x28(%rsp)
lea    0x0(,%rbx,8),%r14
add    %rbp,%r14
mov    %rbp,%rsi
add    $0x8,%rsi
mov    0x18(%rsp),%rdi
lea    (%rdi,%rbx,8),%r9
add    $0x8,%rdi
lea    (%rax,%rbx,8),%r8
mov    %rax,%rdx
add    $0x8,%rdx
lea    0x8(%r13),%r11
lea    0x0(,%rbx,8),%rbp
add    %r13,%rbp
cmp    %r9,%rsi
setb   %bl
cmp    %r14,%rdi
setb   %r10b
cmp    %r8,%rsi
setb   %r12b
cmp    %r14,%rdx
setb   0x48(%rsp)
cmp    %rbp,%rsi
setb   %r15b
cmp    %r14,%r11
setb   %r14b
cmp    %r8,%rdi
setb   %sil
cmp    %r9,%rdx
setb   0x40(%rsp)
cmp    %rbp,%rdi
setb   %dil
cmp    %r9,%r11
setb   0xf(%rsp)
cmp    %rbp,%rdx
setb   %r9b
cmp    %r8,%r11
setb   %dl
test   %r10b,%bl
jne    13eb <coreCAT_FLEX+0x2bb>
and    0x48(%rsp),%r12b
mov    0x28(%rsp),%r8
mov    0x20(%rsp),%rbp
mov    0x30(%rsp),%rbx
jne    13fa <coreCAT_FLEX+0x2ca>
and    %r14b,%r15b
jne    13fa <coreCAT_FLEX+0x2ca>
and    0x40(%rsp),%sil
mov    0x10(%rsp),%r15d
jne    13ff <coreCAT_FLEX+0x2cf>
and    0xf(%rsp),%dil
jne    13ff <coreCAT_FLEX+0x2cf>
and    %dl,%r9b
jne    13ff <coreCAT_FLEX+0x2cf>
mov    0x78(%rsp),%r10
mov    %r10,%r9
and    $0xfffffffffffffffe,%r9
movapd %xmm3,%xmm0
unpcklpd %xmm3,%xmm0
lea    -0x2(%r9),%rcx
mov    %rcx,%rsi
shr    %rsi
add    $0x1,%rsi
test   %rcx,%rcx
je     13de <coreCAT_FLEX+0x2ae>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
mov    $0x1,%edx
mov    0x18(%rsp),%rcx
nopl   0x0(%rax)
movupd 0x0(%r13,%rdx,8),%xmm1
movupd %xmm1,0x0(%rbp,%rdx,8)
movapd %xmm1,%xmm2
mulpd  %xmm1,%xmm2
movupd %xmm2,(%rcx,%rdx,8)
mulpd  %xmm0,%xmm1
movupd %xmm1,(%rax,%rdx,8)
movupd 0x10(%r13,%rdx,8),%xmm1
movupd %xmm1,0x10(%rbp,%rdx,8)
movapd %xmm1,%xmm2
mulpd  %xmm1,%xmm2
movupd %xmm2,0x10(%rcx,%rdx,8)
mulpd  %xmm0,%xmm1
movupd %xmm1,0x10(%rax,%rdx,8)
add    $0x4,%rdx
add    $0xfffffffffffffffe,%rdi
jne    1350 <coreCAT_FLEX+0x220>
test   $0x1,%sil
je     13cc <coreCAT_FLEX+0x29c>
movupd 0x0(%r13,%rdx,8),%xmm1
movupd %xmm1,0x0(%rbp,%rdx,8)
mulpd  %xmm1,%xmm0
mulpd  %xmm1,%xmm1
mov    0x18(%rsp),%rcx
movupd %xmm1,(%rcx,%rdx,8)
movupd %xmm0,(%rax,%rdx,8)
cmp    %r9,%r10
je     14b3 <coreCAT_FLEX+0x383>
or     $0x1,%r10
mov    %r10,%rcx
jmp    13ff <coreCAT_FLEX+0x2cf>
mov    $0x1,%edx
test   $0x1,%sil
jne    13a8 <coreCAT_FLEX+0x278>
jmp    13cc <coreCAT_FLEX+0x29c>
mov    0x28(%rsp),%r8
mov    0x20(%rsp),%rbp
mov    0x30(%rsp),%rbx
mov    0x10(%rsp),%r15d
mov    %rcx,%rsi
not    %rsi
test   $0x1,%bl
jne    143f <coreCAT_FLEX+0x30f>
movsd  0x0(%r13,%rcx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rcx,8)
movsd  0x0(%r13,%rcx,8),%xmm0
mulsd  %xmm0,%xmm0
mov    0x18(%rsp),%rdx
movsd  %xmm0,(%rdx,%rcx,8)
movsd  0x0(%rbp,%rcx,8),%xmm0
mulsd  %xmm3,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
add    $0x1,%rcx
add    %rbx,%rsi
mov    0x18(%rsp),%rdx
je     14b3 <coreCAT_FLEX+0x383>
nopl   0x0(%rax)
movsd  0x0(%r13,%rcx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rcx,8)
movsd  0x0(%r13,%rcx,8),%xmm0
mulsd  %xmm0,%xmm0
movsd  %xmm0,(%rdx,%rcx,8)
movsd  0x0(%rbp,%rcx,8),%xmm0
mulsd  %xmm3,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  0x8(%r13,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbp,%rcx,8)
movsd  0x8(%r13,%rcx,8),%xmm0
mulsd  %xmm0,%xmm0
movsd  %xmm0,0x8(%rdx,%rcx,8)
movsd  0x8(%rbp,%rcx,8),%xmm0
mulsd  %xmm3,%xmm0
movsd  %xmm0,0x8(%rax,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%rbx
jne    1450 <coreCAT_FLEX+0x320>
mov    %rax,0x10(%rsp)
movslq %r8d,%rcx
test   %r15d,%r15d
mov    %rcx,0x60(%rsp)
jle    1562 <coreCAT_FLEX+0x432>
mov    %r15d,%eax
mov    %rax,0x48(%rsp)
lea    0x0(,%rcx,8),%rax
mov    %rax,0x40(%rsp)
xor    %r13d,%r13d
mov    0x38(%rsp),%r12
mov    %r8,0x28(%rsp)
mov    0x50(%rsp),%r15
mov    0x10(%rsp),%r14
mov    0x30(%rsp),%rbx
jmp    151a <coreCAT_FLEX+0x3ea>
nopl   0x0(%rax)
add    $0x1,%r13
add    0x40(%rsp),%r12
cmp    0x48(%rsp),%r13
mov    0x28(%rsp),%r8
mov    0x60(%rsp),%rcx
je     1562 <coreCAT_FLEX+0x432>
mov    %r13,%rax
imul   %rcx,%rax
mov    0x38(%rsp),%rcx
movabs $0x3ff0000000000000,%rdx
mov    %rdx,(%rcx,%rax,8)
cmp    $0x2,%r8d
jl     1500 <coreCAT_FLEX+0x3d0>
mov    $0x1,%ebp
nop
movsd  (%r14,%rbp,8),%xmm0
mulsd  (%r15,%r13,8),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,(%r12,%rbp,8)
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1540 <coreCAT_FLEX+0x410>
jmp    1500 <coreCAT_FLEX+0x3d0>
mov    0x5c(%rsp),%eax
test   %eax,%eax
jle    16af <coreCAT_FLEX+0x57f>
mov    %eax,%r13d
lea    0x0(,%rcx,8),%r9
xorpd  %xmm3,%xmm3
xor    %edx,%edx
movsd  0xa79(%rip),%xmm0
mov    0x88(%rsp),%r11
mov    %r11,%rsi
mov    0x90(%rsp),%r10
mov    0x80(%rsp),%r12
mov    0x18(%rsp),%rbp
mov    0x50(%rsp),%rcx
mov    0x20(%rsp),%rbx
mov    0x30(%rsp),%rdi
mov    0x60(%rsp),%r15
jmp    1623 <coreCAT_FLEX+0x4f3>
nopl   (%rax)
xorpd  %xmm3,%xmm3
movapd %xmm0,%xmm4
divsd  %xmm2,%xmm4
movapd %xmm3,%xmm2
mulsd  %xmm4,%xmm2
unpckhpd %xmm3,%xmm3
mulsd  %xmm4,%xmm3
xorps  %xmm4,%xmm4
cvtsi2sdl (%r10,%rdx,4),%xmm4
movsd  (%rcx,%r14,8),%xmm5
mulsd  %xmm5,%xmm4
mulsd  %xmm4,%xmm5
movapd %xmm2,%xmm6
mulsd  %xmm2,%xmm6
subsd  %xmm6,%xmm3
unpcklpd %xmm5,%xmm4
unpcklpd %xmm3,%xmm2
mulpd  %xmm4,%xmm2
movapd %xmm2,%xmm3
addpd  %xmm1,%xmm3
add    $0x1,%rdx
add    %r9,%rsi
cmp    %r13,%rdx
je     16a4 <coreCAT_FLEX+0x574>
movapd %xmm3,%xmm1
movslq (%r12,%rdx,4),%r14
mov    %rdx,%rax
imul   %r15,%rax
movsd  (%r11,%rax,8),%xmm2
cmp    $0x2,%r8d
jl     15c0 <coreCAT_FLEX+0x490>
mov    %r14,%rax
imul   %r15,%rax
mov    0x38(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
xorpd  %xmm5,%xmm5
mov    $0x1,%ecx
nopw   0x0(%rax,%rax,1)
movapd %xmm5,%xmm4
movsd  (%rax,%rcx,8),%xmm5
mulsd  (%rsi,%rcx,8),%xmm5
addsd  %xmm5,%xmm2
unpcklpd %xmm5,%xmm5
movsd  (%rbx,%rcx,8),%xmm3
movhpd 0x0(%rbp,%rcx,8),%xmm3
mulpd  %xmm5,%xmm3
movapd %xmm3,%xmm5
addpd  %xmm4,%xmm5
add    $0x1,%rcx
cmp    %rcx,%rdi
jne    1660 <coreCAT_FLEX+0x530>
addpd  %xmm4,%xmm3
mov    0x50(%rsp),%rcx
jmp    15c4 <coreCAT_FLEX+0x494>
addpd  %xmm1,%xmm2
mov    0x10(%rsp),%r14
jmp    16c2 <coreCAT_FLEX+0x592>
xorpd  %xmm2,%xmm2
mov    0x18(%rsp),%rbp
mov    0x10(%rsp),%r14
mov    0x20(%rsp),%rbx
mov    0x98(%rsp),%rax
movlpd %xmm2,(%rax)
mov    0xa0(%rsp),%rax
movhpd %xmm2,(%rax)
mov    0x38(%rsp),%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @coreCAT_FLEX(i32 %0, i32 %1, double* nocapture %2, double* %3, double* %4, i32* nocapture %5, double* nocapture %6, double* nocapture %7, i32* nocapture %8, double %9, i32 %10) {
%12 = shl i32 %1, 3
%13 = mul i32 %12, %10
%14 = tail call i64 @malloc_aligned(i32 %13)
%15 = inttoptr i64 %14 to double*
%16 = shl i32 %10, 3
%17 = tail call i64 @malloc_aligned(i32 %16)
%18 = inttoptr i64 %17 to double*
%19 = tail call i64 @malloc_aligned(i32 %16)
%20 = inttoptr i64 %19 to double*
%21 = tail call i64 @malloc_aligned(i32 %16)
%22 = inttoptr i64 %21 to double*
store double 0.000000e+00, double* %18
store double 0.000000e+00, double* %20
store double 0.000000e+00, double* %22
%23 = icmp sgt i32 %10, 1
br i1 %23, label %24, label %141
24: ; preds = %11
%25 = zext i32 %10 to i64
%26 = add nsw i64 %25, -1
%27 = icmp ult i64 %26, 2
br i1 %27, label %121, label %28
28: ; preds = %24
%29 = getelementptr double, double* %20, i64 1
%30 = getelementptr double, double* %20, i64 %25
%31 = getelementptr double, double* %18, i64 1
%32 = getelementptr double, double* %18, i64 %25
%33 = getelementptr double, double* %22, i64 1
%34 = getelementptr double, double* %22, i64 %25
%35 = getelementptr double, double* %7, i64 1
%36 = getelementptr double, double* %7, i64 %25
%37 = icmp ult double* %29, %32
%38 = icmp ult double* %31, %30
%39 = and i1 %37, %38
%40 = icmp ult double* %29, %34
%41 = icmp ult double* %33, %30
%42 = and i1 %40, %41
%43 = or i1 %39, %42
%44 = icmp ult double* %29, %36
%45 = icmp ult double* %35, %30
%46 = and i1 %44, %45
%47 = or i1 %43, %46
%48 = icmp ult double* %31, %34
%49 = icmp ult double* %33, %32
%50 = and i1 %48, %49
%51 = or i1 %47, %50
%52 = icmp ult double* %31, %36
%53 = icmp ult double* %35, %32
%54 = and i1 %52, %53
%55 = or i1 %51, %54
%56 = icmp ult double* %33, %36
%57 = icmp ult double* %35, %34
%58 = and i1 %56, %57
%59 = or i1 %55, %58
br i1 %59, label %121, label %60
60: ; preds = %28
%61 = and i64 %26, -2
%62 = or i64 %26, 1
%63 = insertelement <2 x double> poison, double %9, i64 0
%64 = shufflevector <2 x double> %63, <2 x double> poison, <2 x i32> zeroinitializer
%65 = add nsw i64 %61, -2
%66 = lshr exact i64 %65, 1
%67 = add nuw i64 %66, 1
%68 = and i64 %67, 1
%69 = icmp eq i64 %65, 0
br i1 %69, label %104, label %70
70: ; preds = %60
%71 = and i64 %67, -2
br label %72
72: ; preds = %72, %70
%73 = phi i64 [ 0, %70 ], [ %99, %72 ]
%74 = phi i64 [ 0, %70 ], [ %100, %72 ]
%75 = or i64 %73, 1
%76 = getelementptr inbounds double, double* %7, i64 %75
%77 = bitcast double* %76 to <2 x double>*
%78 = load <2 x double>, <2 x double>* %77
%79 = getelementptr inbounds double, double* %20, i64 %75
%80 = bitcast double* %79 to <2 x double>*
store <2 x double> %78, <2 x double>* %80
%81 = fmul <2 x double> %78, %78
%82 = getelementptr inbounds double, double* %18, i64 %75
%83 = bitcast double* %82 to <2 x double>*
store <2 x double> %81, <2 x double>* %83
%84 = fmul <2 x double> %78, %64
%85 = getelementptr inbounds double, double* %22, i64 %75
%86 = bitcast double* %85 to <2 x double>*
store <2 x double> %84, <2 x double>* %86
%87 = or i64 %73, 3
%88 = getelementptr inbounds double, double* %7, i64 %87
%89 = bitcast double* %88 to <2 x double>*
%90 = load <2 x double>, <2 x double>* %89
%91 = getelementptr inbounds double, double* %20, i64 %87
%92 = bitcast double* %91 to <2 x double>*
store <2 x double> %90, <2 x double>* %92
%93 = fmul <2 x double> %90, %90
%94 = getelementptr inbounds double, double* %18, i64 %87
%95 = bitcast double* %94 to <2 x double>*
store <2 x double> %93, <2 x double>* %95
%96 = fmul <2 x double> %90, %64
%97 = getelementptr inbounds double, double* %22, i64 %87
%98 = bitcast double* %97 to <2 x double>*
store <2 x double> %96, <2 x double>* %98
%99 = add nuw i64 %73, 4
%100 = add nuw i64 %74, 2
%101 = icmp eq i64 %100, %71
br i1 %101, label %102, label %72
102: ; preds = %72
%103 = or i64 %99, 1
br label %104
104: ; preds = %102, %60
%105 = phi i64 [ 1, %60 ], [ %103, %102 ]
%106 = icmp eq i64 %68, 0
br i1 %106, label %119, label %107
107: ; preds = %104
%108 = getelementptr inbounds double, double* %7, i64 %105
%109 = bitcast double* %108 to <2 x double>*
%110 = load <2 x double>, <2 x double>* %109
%111 = getelementptr inbounds double, double* %20, i64 %105
%112 = bitcast double* %111 to <2 x double>*
store <2 x double> %110, <2 x double>* %112
%113 = fmul <2 x double> %110, %110
%114 = getelementptr inbounds double, double* %18, i64 %105
%115 = bitcast double* %114 to <2 x double>*
store <2 x double> %113, <2 x double>* %115
%116 = fmul <2 x double> %110, %64
%117 = getelementptr inbounds double, double* %22, i64 %105
%118 = bitcast double* %117 to <2 x double>*
store <2 x double> %116, <2 x double>* %118
br label %119
119: ; preds = %104, %107
%120 = icmp eq i64 %26, %61
br i1 %120, label %141, label %121
121: ; preds = %28, %24, %119
%122 = phi i64 [ 1, %28 ], [ 1, %24 ], [ %62, %119 ]
%123 = xor i64 %122, -1
%124 = and i64 %25, 1
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %137
126: ; preds = %121
%127 = getelementptr inbounds double, double* %7, i64 %122
%128 = load double, double* %127
%129 = getelementptr inbounds double, double* %20, i64 %122
store double %128, double* %129
%130 = load double, double* %127
%131 = fmul double %130, %130
%132 = getelementptr inbounds double, double* %18, i64 %122
store double %131, double* %132
%133 = load double, double* %129
%134 = fmul double %133, %9
%135 = getelementptr inbounds double, double* %22, i64 %122
store double %134, double* %135
%136 = add nuw nsw i64 %122, 1
br label %137
137: ; preds = %126, %121
%138 = phi i64 [ %122, %121 ], [ %136, %126 ]
%139 = sub nsw i64 0, %25
%140 = icmp eq i64 %123, %139
br i1 %140, label %141, label %147
141: ; preds = %137, %147, %119, %11
%142 = icmp sgt i32 %1, 0
br i1 %142, label %143, label %170
143: ; preds = %141
%144 = sext i32 %10 to i64
%145 = zext i32 %1 to i64
%146 = zext i32 %10 to i64
br label %176
147: ; preds = %137, %147
%148 = phi i64 [ %168, %147 ], [ %138, %137 ]
%149 = getelementptr inbounds double, double* %7, i64 %148
%150 = load double, double* %149
%151 = getelementptr inbounds double, double* %20, i64 %148
store double %150, double* %151
%152 = load double, double* %149
%153 = fmul double %152, %152
%154 = getelementptr inbounds double, double* %18, i64 %148
store double %153, double* %154
%155 = load double, double* %151
%156 = fmul double %155, %9
%157 = getelementptr inbounds double, double* %22, i64 %148
store double %156, double* %157
%158 = add nuw nsw i64 %148, 1
%159 = getelementptr inbounds double, double* %7, i64 %158
%160 = load double, double* %159
%161 = getelementptr inbounds double, double* %20, i64 %158
store double %160, double* %161
%162 = load double, double* %159
%163 = fmul double %162, %162
%164 = getelementptr inbounds double, double* %18, i64 %158
store double %163, double* %164
%165 = load double, double* %161
%166 = fmul double %165, %9
%167 = getelementptr inbounds double, double* %22, i64 %158
store double %166, double* %167
%168 = add nuw nsw i64 %148, 2
%169 = icmp eq i64 %168, %25
br i1 %169, label %141, label %147
170: ; preds = %193, %141
%171 = icmp sgt i32 %0, 0
br i1 %171, label %172, label %258
172: ; preds = %170
%173 = sext i32 %10 to i64
%174 = zext i32 %0 to i64
%175 = zext i32 %10 to i64
br label %196
176: ; preds = %143, %193
%177 = phi i64 [ 0, %143 ], [ %194, %193 ]
%178 = mul nsw i64 %177, %144
%179 = getelementptr inbounds double, double* %15, i64 %178
store double 1.000000e+00, double* %179
br i1 %23, label %180, label %193
180: ; preds = %176
%181 = getelementptr inbounds double, double* %6, i64 %177
br label %182
182: ; preds = %180, %182
%183 = phi i64 [ 1, %180 ], [ %191, %182 ]
%184 = getelementptr inbounds double, double* %22, i64 %183
%185 = load double, double* %184
%186 = load double, double* %181
%187 = fmul double %185, %186
%188 = tail call double @exp(double %187)
%189 = add nsw i64 %183, %178
%190 = getelementptr inbounds double, double* %15, i64 %189
store double %188, double* %190
%191 = add nuw nsw i64 %183, 1
%192 = icmp eq i64 %191, %146
br i1 %192, label %193, label %182
193: ; preds = %182, %176
%194 = add nuw nsw i64 %177, 1
%195 = icmp eq i64 %194, %145
br i1 %195, label %170, label %176
196: ; preds = %172, %231
%197 = phi i64 [ 0, %172 ], [ %254, %231 ]
%198 = phi <2 x double> [ zeroinitializer, %172 ], [ %253, %231 ]
%199 = getelementptr inbounds i32, i32* %8, i64 %197
%200 = load i32, i32* %199
%201 = mul nsw i32 %200, %10
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds double, double* %15, i64 %202
%204 = mul nsw i64 %197, %173
%205 = getelementptr inbounds double, double* %2, i64 %204
%206 = load double, double* %205
br i1 %23, label %207, label %231
207: ; preds = %196, %207
%208 = phi i64 [ %227, %207 ], [ 1, %196 ]
%209 = phi double [ %217, %207 ], [ %206, %196 ]
%210 = phi <2 x double> [ %226, %207 ], [ zeroinitializer, %196 ]
%211 = getelementptr inbounds double, double* %203, i64 %208
%212 = load double, double* %211
%213 = add nsw i64 %208, %204
%214 = getelementptr inbounds double, double* %2, i64 %213
%215 = load double, double* %214
%216 = fmul double %212, %215
%217 = fadd double %209, %216
%218 = getelementptr inbounds double, double* %20, i64 %208
%219 = load double, double* %218
%220 = getelementptr inbounds double, double* %18, i64 %208
%221 = load double, double* %220
%222 = insertelement <2 x double> poison, double %216, i64 0
%223 = shufflevector <2 x double> %222, <2 x double> poison, <2 x i32> zeroinitializer
%224 = insertelement <2 x double> poison, double %219, i64 0
%225 = insertelement <2 x double> %224, double %221, i64 1
%226 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %223, <2 x double> %225, <2 x double> %210)
%227 = add nuw nsw i64 %208, 1
%228 = icmp eq i64 %227, %175
br i1 %228, label %229, label %207
229: ; preds = %207
%230 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %223, <2 x double> %225, <2 x double> %210)
br label %231
231: ; preds = %229, %196
%232 = phi double [ %206, %196 ], [ %217, %229 ]
%233 = phi <2 x double> [ zeroinitializer, %196 ], [ %230, %229 ]
%234 = fdiv double 1.000000e+00, %232
%235 = extractelement <2 x double> %233, i64 0
%236 = fmul double %235, %234
%237 = extractelement <2 x double> %233, i64 1
%238 = fmul double %234, %237
%239 = getelementptr inbounds i32, i32* %5, i64 %197
%240 = load i32, i32* %239
%241 = sitofp i32 %240 to double
%242 = sext i32 %200 to i64
%243 = getelementptr inbounds double, double* %6, i64 %242
%244 = load double, double* %243
%245 = fmul double %244, %241
%246 = fmul double %244, %245
%247 = fneg double %236
%248 = tail call double @llvm.fmuladd.f64(double %247, double %236, double %238)
%249 = insertelement <2 x double> poison, double %245, i64 0
%250 = insertelement <2 x double> %249, double %246, i64 1
%251 = insertelement <2 x double> poison, double %236, i64 0
%252 = insertelement <2 x double> %251, double %248, i64 1
%253 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %250, <2 x double> %252, <2 x double> %198)
%254 = add nuw nsw i64 %197, 1
%255 = icmp eq i64 %254, %174
br i1 %255, label %256, label %196
256: ; preds = %231
%257 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %250, <2 x double> %252, <2 x double> %198)
br label %258
258: ; preds = %256, %170
%259 = phi <2 x double> [ zeroinitializer, %170 ], [ %257, %256 ]
%260 = extractelement <2 x double> %259, i64 0
store volatile double %260, double* %3
%261 = extractelement <2 x double> %259, i64 1
store volatile double %261, double* %4
%262 = tail call i32 @free(double* %15)
%263 = tail call i32 @free(double* %18)
%264 = tail call i32 @free(double* %20)
%265 = tail call i32 @free(double* %22)
ret void
}