#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 */
unsigned int *alloc_uivector(unsigned int);
int /*<<< orphan*/ dealloc_uivector(unsigned int *, unsigned int);
double fabs(double);
double sqrt(double);
double getCustomSplitStatisticSurvival(
    unsigned int n, char *membership, double *time, double *event,
    unsigned int eventTypeSize, unsigned int eventTimeSize, double *eventTime,
    double *response, double mean, double variance, unsigned int maxLevel,
    double **feature, unsigned int featureCount) {
  unsigned int *nodeLeftEvent, *nodeParentEvent;
  unsigned int *nodeLeftAtRisk, *nodeParentAtRisk;
  double delta, deltaNum, deltaDen;
  unsigned int i, k;
  deltaNum = deltaDen = 0.0;
  nodeLeftEvent = alloc_uivector(eventTimeSize);
  nodeParentEvent = alloc_uivector(eventTimeSize);
  nodeLeftAtRisk = alloc_uivector(eventTimeSize);
  nodeParentAtRisk = alloc_uivector(eventTimeSize);
  for (k = 1; k <= eventTimeSize; k++) {
    nodeParentEvent[k] = 0;
    nodeParentAtRisk[k] = 0;
    nodeLeftEvent[k] = 0;
    nodeLeftAtRisk[k] = 0;
  }
  k = eventTimeSize;
  i = n;
  while ((i > 0) && (k > 0)) {
    if (eventTime[k] <= time[i]) {
      nodeParentAtRisk[k]++;
      if (membership[i] == 0x01) {
        nodeLeftAtRisk[k]++;
      }
      if (eventTime[k] == time[i]) {
        if (event[i] > 0) {
          nodeParentEvent[k]++;
          if (membership[i] == 0x01) {
            nodeLeftEvent[k]++;
          }
        }
      }
      i--;
    } else {
      k--;
    }
  }
  for (k = eventTimeSize; k > 1; k--) {
    nodeParentAtRisk[k - 1] = nodeParentAtRisk[k] + nodeParentAtRisk[k - 1];
    nodeLeftAtRisk[k - 1] = nodeLeftAtRisk[k] + nodeLeftAtRisk[k - 1];
  }
  for (k = 1; k <= eventTimeSize; k++) {
    deltaNum = deltaNum + ((double)nodeLeftEvent[k] -
                           ((double)(nodeLeftAtRisk[k] * nodeParentEvent[k]) /
                            nodeParentAtRisk[k]));
    if (nodeParentAtRisk[k] >= 2) {
      deltaDen = deltaDen +
                 (((double)nodeLeftAtRisk[k] / nodeParentAtRisk[k]) *
                  (1.0 - ((double)nodeLeftAtRisk[k] / nodeParentAtRisk[k])) *
                  ((double)(nodeParentAtRisk[k] - nodeParentEvent[k]) /
                   (nodeParentAtRisk[k] - 1)) *
                  nodeParentEvent[k]);
    }
  }
  dealloc_uivector(nodeLeftEvent, eventTimeSize);
  dealloc_uivector(nodeParentEvent, eventTimeSize);
  dealloc_uivector(nodeLeftAtRisk, eventTimeSize);
  dealloc_uivector(nodeParentAtRisk, eventTimeSize);
  deltaNum = fabs(deltaNum);
  deltaDen = sqrt(deltaDen);
  if (deltaDen <= 1.0e-9) {
    if (deltaNum <= 1.0e-9) {
      delta = 0.0;
    } else {
      delta = deltaNum / deltaDen;
    }
  } else {
    delta = deltaNum / deltaDen;
  }
  return delta;
}


x86 assembly (clang, -O0):
<getCustomSplitStatisticSurvival>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
movsd  %xmm0,-0x30(%rbp)
movsd  %xmm1,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x28(%rbp),%edi
call   1030 <alloc_uivector@plt>
mov    %rax,-0x40(%rbp)
mov    -0x28(%rbp),%edi
call   1030 <alloc_uivector@plt>
mov    %rax,-0x48(%rbp)
mov    -0x28(%rbp),%edi
call   1030 <alloc_uivector@plt>
mov    %rax,-0x50(%rbp)
mov    -0x28(%rbp),%edi
call   1030 <alloc_uivector@plt>
mov    %rax,-0x58(%rbp)
movl   $0x1,-0x78(%rbp)
mov    -0x78(%rbp),%eax
cmp    -0x28(%rbp),%eax
ja     1207 <getCustomSplitStatisticSurvival+0xd7>
mov    -0x48(%rbp),%rax
mov    -0x78(%rbp),%ecx
movl   $0x0,(%rax,%rcx,4)
mov    -0x58(%rbp),%rax
mov    -0x78(%rbp),%ecx
movl   $0x0,(%rax,%rcx,4)
mov    -0x40(%rbp),%rax
mov    -0x78(%rbp),%ecx
movl   $0x0,(%rax,%rcx,4)
mov    -0x50(%rbp),%rax
mov    -0x78(%rbp),%ecx
movl   $0x0,(%rax,%rcx,4)
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    11b5 <getCustomSplitStatisticSurvival+0x85>
mov    -0x28(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x74(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x74(%rbp)
mov    %al,-0x79(%rbp)
jbe    122c <getCustomSplitStatisticSurvival+0xfc>
cmpl   $0x0,-0x78(%rbp)
seta   %al
mov    %al,-0x79(%rbp)
mov    -0x79(%rbp),%al
test   $0x1,%al
jne    123c <getCustomSplitStatisticSurvival+0x10c>
jmp    1329 <getCustomSplitStatisticSurvival+0x1f9>
mov    0x10(%rbp),%rax
mov    -0x78(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x74(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
ucomisd %xmm1,%xmm0
jb     131b <getCustomSplitStatisticSurvival+0x1eb>
mov    -0x58(%rbp),%rax
mov    -0x78(%rbp),%ecx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x10(%rbp),%rax
mov    -0x74(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x1,%eax
jne    1292 <getCustomSplitStatisticSurvival+0x162>
mov    -0x50(%rbp),%rax
mov    -0x78(%rbp),%ecx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    %edx,(%rax,%rcx,4)
mov    0x10(%rbp),%rax
mov    -0x78(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x74(%rbp),%ecx
ucomisd (%rax,%rcx,8),%xmm0
jne    130d <getCustomSplitStatisticSurvival+0x1dd>
jp     130d <getCustomSplitStatisticSurvival+0x1dd>
mov    -0x20(%rbp),%rax
mov    -0x74(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1308 <getCustomSplitStatisticSurvival+0x1d8>
mov    -0x48(%rbp),%rax
mov    -0x78(%rbp),%ecx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    %edx,(%rax,%rcx,4)
mov    -0x10(%rbp),%rax
mov    -0x74(%rbp),%ecx
movsbl (%rax,%rcx,1),%eax
cmp    $0x1,%eax
jne    1303 <getCustomSplitStatisticSurvival+0x1d3>
mov    -0x40(%rbp),%rax
mov    -0x78(%rbp),%ecx
mov    (%rax,%rcx,4),%edx
add    $0x1,%edx
mov    %edx,(%rax,%rcx,4)
jmp    1308 <getCustomSplitStatisticSurvival+0x1d8>
jmp    130d <getCustomSplitStatisticSurvival+0x1dd>
mov    -0x74(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x74(%rbp)
jmp    1324 <getCustomSplitStatisticSurvival+0x1f4>
mov    -0x78(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x78(%rbp)
jmp    1213 <getCustomSplitStatisticSurvival+0xe3>
mov    -0x28(%rbp),%eax
mov    %eax,-0x78(%rbp)
cmpl   $0x1,-0x78(%rbp)
jbe    1397 <getCustomSplitStatisticSurvival+0x267>
mov    -0x58(%rbp),%rax
mov    -0x78(%rbp),%ecx
mov    (%rax,%rcx,4),%edx
mov    -0x58(%rbp),%rax
mov    -0x78(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
add    (%rax,%rcx,4),%edx
mov    -0x58(%rbp),%rax
mov    -0x78(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    %edx,(%rax,%rcx,4)
mov    -0x50(%rbp),%rax
mov    -0x78(%rbp),%ecx
mov    (%rax,%rcx,4),%edx
mov    -0x50(%rbp),%rax
mov    -0x78(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
add    (%rax,%rcx,4),%edx
mov    -0x50(%rbp),%rax
mov    -0x78(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
mov    %edx,(%rax,%rcx,4)
mov    -0x78(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x78(%rbp)
jmp    132f <getCustomSplitStatisticSurvival+0x1ff>
movl   $0x1,-0x78(%rbp)
mov    -0x78(%rbp),%eax
cmp    -0x28(%rbp),%eax
ja     1481 <getCustomSplitStatisticSurvival+0x351>
movsd  -0x68(%rbp),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x78(%rbp),%ecx
mov    (%rax,%rcx,4),%eax
cvtsi2sd %rax,%xmm1
mov    -0x50(%rbp),%rax
mov    (%rax,%rcx,4),%eax
mov    -0x48(%rbp),%rdx
mov    (%rdx,%rcx,4),%edx
imul   %edx,%eax
cvtsi2sd %rax,%xmm2
mov    -0x58(%rbp),%rax
mov    (%rax,%rcx,4),%eax
cvtsi2sd %rax,%xmm3
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x58(%rbp),%rax
mov    -0x78(%rbp),%ecx
cmpl   $0x2,(%rax,%rcx,4)
jb     146e <getCustomSplitStatisticSurvival+0x33e>
movsd  -0x70(%rbp),%xmm1
mov    -0x50(%rbp),%rax
mov    -0x78(%rbp),%ecx
mov    %ecx,%edx
mov    (%rax,%rdx,4),%eax
cvtsi2sd %rax,%xmm0
mov    -0x58(%rbp),%rax
mov    (%rax,%rdx,4),%eax
mov    %eax,%ecx
cvtsi2sd %rax,%xmm2
divsd  %xmm2,%xmm0
movsd  0xbd6(%rip),%xmm2
subsd  %xmm0,%xmm2
mulsd  %xmm2,%xmm0
mov    -0x48(%rbp),%rax
mov    (%rax,%rdx,4),%eax
mov    %eax,%esi
mov    %ecx,%edx
sub    %esi,%edx
cvtsi2sd %rdx,%xmm2
add    $0xffffffff,%ecx
cvtsi2sd %rcx,%xmm3
divsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
cvtsi2sd %rax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    1473 <getCustomSplitStatisticSurvival+0x343>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    139e <getCustomSplitStatisticSurvival+0x26e>
mov    -0x40(%rbp),%rdi
mov    -0x28(%rbp),%esi
call   1040 <dealloc_uivector@plt>
mov    -0x48(%rbp),%rdi
mov    -0x28(%rbp),%esi
call   1040 <dealloc_uivector@plt>
mov    -0x50(%rbp),%rdi
mov    -0x28(%rbp),%esi
call   1040 <dealloc_uivector@plt>
mov    -0x58(%rbp),%rdi
mov    -0x28(%rbp),%esi
call   1040 <dealloc_uivector@plt>
movsd  -0x68(%rbp),%xmm0
movaps 0xb53(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x70(%rbp),%xmm0
call   1050 <sqrt@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  0xb23(%rip),%xmm0
ucomisd -0x70(%rbp),%xmm0
jb     151c <getCustomSplitStatisticSurvival+0x3ec>
movsd  0xb10(%rip),%xmm0
ucomisd -0x68(%rbp),%xmm0
jb     1508 <getCustomSplitStatisticSurvival+0x3d8>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    1517 <getCustomSplitStatisticSurvival+0x3e7>
movsd  -0x68(%rbp),%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    152b <getCustomSplitStatisticSurvival+0x3fb>
movsd  -0x68(%rbp),%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getCustomSplitStatisticSurvival>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9d,%ebx
mov    %rcx,0x8(%rsp)
mov    %rdx,0x20(%rsp)
mov    %rsi,0x18(%rsp)
mov    %edi,%r14d
mov    %r9d,%edi
call   1030 <alloc_uivector@plt>
mov    %rax,%rbp
mov    %ebx,%edi
call   1030 <alloc_uivector@plt>
mov    %rax,%r12
mov    %ebx,%edi
call   1030 <alloc_uivector@plt>
mov    %rax,%r13
mov    %ebx,%edi
call   1030 <alloc_uivector@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %rax,%r15
xorpd  %xmm6,%xmm6
xorpd  %xmm7,%xmm7
test   %esi,%esi
je     1604 <getCustomSplitStatisticSurvival+0x4d4>
mov    %esi,%eax
lea    0x1(%rax),%rcx
mov    $0x1,%edx
cmp    $0x8,%esi
jae    1241 <getCustomSplitStatisticSurvival+0x111>
mov    0x8(%rsp),%r9
mov    0x20(%rsp),%r10
mov    0x18(%rsp),%r11
mov    %rdx,%rbp
not    %rbp
test   $0x1,%cl
jne    11e4 <getCustomSplitStatisticSurvival+0xb4>
movl   $0x0,(%r12,%rdx,4)
movl   $0x0,(%r15,%rdx,4)
movl   $0x0,(%rdi,%rdx,4)
movl   $0x0,0x0(%r13,%rdx,4)
add    $0x1,%rdx
add    %rcx,%rbp
je     1434 <getCustomSplitStatisticSurvival+0x304>
nopl   (%rax)
movl   $0x0,(%r12,%rdx,4)
movl   $0x0,(%r15,%rdx,4)
movl   $0x0,(%rdi,%rdx,4)
movl   $0x0,0x0(%r13,%rdx,4)
movl   $0x0,0x4(%r12,%rdx,4)
movl   $0x0,0x4(%r15,%rdx,4)
movl   $0x0,0x4(%rdi,%rdx,4)
movl   $0x0,0x4(%r13,%rdx,4)
add    $0x2,%rdx
cmp    %rdx,%rcx
jne    11f0 <getCustomSplitStatisticSurvival+0xc0>
jmp    1434 <getCustomSplitStatisticSurvival+0x304>
mov    %rsi,0x10(%rsp)
lea    (%r12,%rcx,4),%r9
mov    %r12,%rsi
add    $0x4,%rsi
lea    (%r15,%rcx,4),%rbx
mov    %r15,%r8
add    $0x4,%r8
lea    (%rdi,%rcx,4),%rbp
mov    %rdi,0x30(%rsp)
mov    %rdi,%r10
add    $0x4,%r10
lea    0x0(,%rcx,4),%r11
add    %r13,%r11
mov    %r13,%rdi
add    $0x4,%rdi
cmp    %rbx,%rsi
setb   0x7(%rsp)
cmp    %r9,%r8
setb   0x6(%rsp)
cmp    %rbp,%rsi
setb   0x5(%rsp)
cmp    %r9,%r10
setb   0x4(%rsp)
cmp    %r11,%rsi
setb   %sil
cmp    %r9,%rdi
setb   0x3(%rsp)
cmp    %rbp,%r8
setb   0x2(%rsp)
cmp    %rbx,%r10
setb   0x1(%rsp)
cmp    %r11,%r8
setb   %r8b
cmp    %rbx,%rdi
setb   (%rsp)
cmp    %r11,%r10
setb   %r9b
cmp    %rbp,%rdi
setb   %bpl
mov    0x6(%rsp),%bl
test   %bl,0x7(%rsp)
jne    16c7 <getCustomSplitStatisticSurvival+0x597>
mov    0x4(%rsp),%bl
and    %bl,0x5(%rsp)
mov    0x30(%rsp),%rdi
mov    0x20(%rsp),%r10
mov    0x18(%rsp),%r11
jne    16a7 <getCustomSplitStatisticSurvival+0x577>
and    0x3(%rsp),%sil
jne    16a7 <getCustomSplitStatisticSurvival+0x577>
mov    0x1(%rsp),%bl
and    %bl,0x2(%rsp)
jne    16a7 <getCustomSplitStatisticSurvival+0x577>
and    (%rsp),%r8b
jne    16a7 <getCustomSplitStatisticSurvival+0x577>
and    %bpl,%r9b
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%r9
jne    11b5 <getCustomSplitStatisticSurvival+0x85>
mov    %eax,%edx
and    $0xfffffff8,%edx
lea    -0x8(%rdx),%rbp
mov    %rbp,%r8
shr    $0x3,%r8
add    $0x1,%r8
test   %rbp,%rbp
je     16b6 <getCustomSplitStatisticSurvival+0x586>
mov    %r8,%rbx
and    $0xfffffffffffffffe,%rbx
xor    %ebp,%ebp
xorpd  %xmm0,%xmm0
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd %xmm0,0x4(%r12,%rbp,4)
movupd %xmm0,0x14(%r12,%rbp,4)
movupd %xmm0,0x4(%r15,%rbp,4)
movupd %xmm0,0x14(%r15,%rbp,4)
movupd %xmm0,0x4(%rdi,%rbp,4)
movupd %xmm0,0x14(%rdi,%rbp,4)
movupd %xmm0,0x4(%r13,%rbp,4)
movupd %xmm0,0x14(%r13,%rbp,4)
movupd %xmm0,0x24(%r12,%rbp,4)
movupd %xmm0,0x34(%r12,%rbp,4)
movupd %xmm0,0x24(%r15,%rbp,4)
movupd %xmm0,0x34(%r15,%rbp,4)
movupd %xmm0,0x24(%rdi,%rbp,4)
movupd %xmm0,0x34(%rdi,%rbp,4)
movupd %xmm0,0x24(%r13,%rbp,4)
movupd %xmm0,0x34(%r13,%rbp,4)
add    $0x10,%rbp
add    $0xfffffffffffffffe,%rbx
jne    1370 <getCustomSplitStatisticSurvival+0x240>
test   $0x1,%r8b
je     142b <getCustomSplitStatisticSurvival+0x2fb>
shl    $0x2,%rbp
or     $0x4,%rbp
xorpd  %xmm0,%xmm0
movupd %xmm0,(%r12,%rbp,1)
movupd %xmm0,0x10(%r12,%rbp,1)
movupd %xmm0,(%r15,%rbp,1)
movupd %xmm0,0x10(%r15,%rbp,1)
movupd %xmm0,(%rdi,%rbp,1)
movupd %xmm0,0x10(%rdi,%rbp,1)
movupd %xmm0,0x0(%r13,%rbp,1)
movupd %xmm0,0x10(%r13,%rbp,1)
cmp    %rdx,%rax
jne    169e <getCustomSplitStatisticSurvival+0x56e>
test   %r14d,%r14d
je     14bd <getCustomSplitStatisticSurvival+0x38d>
mov    0x70(%rsp),%rcx
xorpd  %xmm0,%xmm0
mov    %esi,%edx
nopl   0x0(%rax,%rax,1)
mov    %edx,%ebp
movsd  (%rcx,%rbp,8),%xmm1
mov    %r14d,%ebx
movsd  (%r10,%rbx,8),%xmm2
ucomisd %xmm1,%xmm2
jae    1470 <getCustomSplitStatisticSurvival+0x340>
add    $0xffffffff,%edx
test   %r14d,%r14d
jne    14b9 <getCustomSplitStatisticSurvival+0x389>
jmp    14bd <getCustomSplitStatisticSurvival+0x38d>
addl   $0x1,(%r15,%rbp,4)
cmpb   $0x1,(%r11,%rbx,1)
jne    1482 <getCustomSplitStatisticSurvival+0x352>
addl   $0x1,0x0(%r13,%rbp,4)
ucomisd %xmm2,%xmm1
jne    14b0 <getCustomSplitStatisticSurvival+0x380>
jp     14b0 <getCustomSplitStatisticSurvival+0x380>
movsd  (%r9,%rbx,8),%xmm1
ucomisd %xmm0,%xmm1
jbe    14b0 <getCustomSplitStatisticSurvival+0x380>
addl   $0x1,(%r12,%rbp,4)
cmpb   $0x1,(%r11,%rbx,1)
jne    14b0 <getCustomSplitStatisticSurvival+0x380>
addl   $0x1,(%rdi,%rbp,4)
cs nopw 0x0(%rax,%rax,1)
add    $0xffffffff,%r14d
test   %r14d,%r14d
je     14bd <getCustomSplitStatisticSurvival+0x38d>
test   %edx,%edx
jne    1450 <getCustomSplitStatisticSurvival+0x320>
cmp    $0x2,%esi
jb     1524 <getCustomSplitStatisticSurvival+0x3f4>
test   $0x1,%sil
jne    14df <getCustomSplitStatisticSurvival+0x3af>
mov    (%r15,%rax,4),%ecx
add    %ecx,-0x4(%r15,%rax,4)
mov    0x0(%r13,%rax,4),%ecx
add    %ecx,-0x4(%r13,%rax,4)
add    $0xffffffffffffffff,%rax
cmp    $0x2,%esi
je     1524 <getCustomSplitStatisticSurvival+0x3f4>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%r15,%rax,4),%ecx
add    %ecx,-0x4(%r15,%rax,4)
mov    0x0(%r13,%rax,4),%ecx
add    %ecx,-0x4(%r13,%rax,4)
mov    -0x4(%r15,%rax,4),%ecx
add    %ecx,-0x8(%r15,%rax,4)
mov    -0x4(%r13,%rax,4),%ecx
add    %ecx,-0x8(%r13,%rax,4)
lea    -0x2(%rax),%rcx
mov    %rcx,%rax
cmp    $0x1,%rcx
ja     14f0 <getCustomSplitStatisticSurvival+0x3c0>
xorpd  %xmm6,%xmm6
xorpd  %xmm7,%xmm7
test   %esi,%esi
je     1604 <getCustomSplitStatisticSurvival+0x4d4>
lea    0x1(%rsi),%r8d
xorpd  %xmm7,%xmm7
mov    $0x1,%ecx
movdqa 0xab7(%rip),%xmm0
movsd  0xacf(%rip),%xmm1
xorpd  %xmm6,%xmm6
jmp    1588 <getCustomSplitStatisticSurvival+0x458>
nopw   0x0(%rax,%rax,1)
mov    (%rdi,%rcx,4),%eax
xorps  %xmm3,%xmm3
cvtsi2sd %rax,%xmm3
xorps  %xmm4,%xmm4
cvtsi2sd %rdx,%xmm4
divsd  %xmm2,%xmm4
subsd  %xmm4,%xmm3
addsd  %xmm3,%xmm6
add    $0x1,%rcx
cmp    %rcx,%r8
je     1604 <getCustomSplitStatisticSurvival+0x4d4>
mov    0x0(%r13,%rcx,4),%ebp
mov    (%r12,%rcx,4),%r9d
mov    %r9d,%edx
imul   %ebp,%edx
mov    (%r15,%rcx,4),%ebx
xorps  %xmm2,%xmm2
cvtsi2sd %rbx,%xmm2
cmp    $0x2,%ebx
jb     1560 <getCustomSplitStatisticSurvival+0x430>
mov    %ebx,%eax
sub    %r9d,%eax
movd   %eax,%xmm3
movd   %ebp,%xmm4
punpcklqdq %xmm4,%xmm3
por    %xmm0,%xmm3
lea    -0x1(%rbx),%eax
xorps  %xmm4,%xmm4
cvtsi2sd %rax,%xmm4
subpd  %xmm0,%xmm3
unpcklpd %xmm2,%xmm4
divpd  %xmm4,%xmm3
movapd %xmm3,%xmm4
unpckhpd %xmm3,%xmm4
movapd %xmm1,%xmm5
subsd  %xmm4,%xmm5
mulsd  %xmm4,%xmm5
mulsd  %xmm3,%xmm5
mov    %r9d,%eax
xorps  %xmm3,%xmm3
cvtsi2sd %rax,%xmm3
mulsd  %xmm5,%xmm3
addsd  %xmm3,%xmm7
jmp    1560 <getCustomSplitStatisticSurvival+0x430>
movsd  %xmm7,0x18(%rsp)
movapd %xmm6,0x20(%rsp)
mov    %rsi,%rbp
call   1040 <dealloc_uivector@plt>
mov    %r12,%rdi
mov    %ebp,%esi
call   1040 <dealloc_uivector@plt>
mov    %r13,%rdi
mov    %ebp,%esi
call   1040 <dealloc_uivector@plt>
mov    %r15,%rdi
mov    %ebp,%esi
call   1040 <dealloc_uivector@plt>
movsd  0x18(%rsp),%xmm0
movapd 0x20(%rsp),%xmm3
andpd  0x9c6(%rip),%xmm3
ucomisd 0x9de(%rip),%xmm0
jb     165a <getCustomSplitStatisticSurvival+0x52a>
sqrtsd %xmm0,%xmm0
jmp    166b <getCustomSplitStatisticSurvival+0x53b>
movapd %xmm3,0x20(%rsp)
call   1050 <sqrt@plt>
movapd 0x20(%rsp),%xmm3
movsd  0x9b5(%rip),%xmm2
ucomisd %xmm0,%xmm2
jb     1683 <getCustomSplitStatisticSurvival+0x553>
xorpd  %xmm1,%xmm1
ucomisd %xmm3,%xmm2
jae    168b <getCustomSplitStatisticSurvival+0x55b>
divsd  %xmm0,%xmm3
movapd %xmm3,%xmm1
movapd %xmm1,%xmm0
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
or     $0x1,%rdx
jmp    11b5 <getCustomSplitStatisticSurvival+0x85>
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%r9
jmp    11b5 <getCustomSplitStatisticSurvival+0x85>
xor    %ebp,%ebp
test   $0x1,%r8b
jne    13ec <getCustomSplitStatisticSurvival+0x2bc>
jmp    142b <getCustomSplitStatisticSurvival+0x2fb>
mov    0x10(%rsp),%rsi
mov    0x30(%rsp),%rdi
jmp    11a6 <getCustomSplitStatisticSurvival+0x76>

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

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