#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 */
typedef double mm;

/* Variables and functions */
int /*<<< orphan*/ assert(int);
double log(double);
int ti_fisher_start(double const *);
int ti_fisher(int size, double const *const *inputs, double const *options,
              double *const *outputs) {
  const double *high = inputs[0];
  const double *low = inputs[1];
  double *fisher = outputs[0];
  double *signal = outputs[1];
  const int period = (int)options[0];
  if (period < 1)
    return 1;
  if (size <= ti_fisher_start(options))
    return 0;
  int trail = 0, maxi = -1, mini = -1;
  double max = (0.5 * (high[(0)] + low[(0)]));
  double min = (0.5 * (high[(0)] + low[(0)]));
  double val1 = 0.0;
  double bar;
  double fish = 0.0;
  int i, j;
  for (i = period - 1; i < size; ++i, ++trail) {
    bar = (0.5 * (high[(i)] + low[(i)]));
    if (maxi < trail) {
      maxi = trail;
      max = (0.5 * (high[(maxi)] + low[(maxi)]));
      j = trail;
      while (++j <= i) {
        bar = (0.5 * (high[(j)] + low[(j)]));
        if (bar >= max) {
          max = bar;
          maxi = j;
        }
      }
    } else if (bar >= max) {
      maxi = i;
      max = bar;
    }
    bar = (0.5 * (high[(i)] + low[(i)]));
    if (mini < trail) {
      mini = trail;
      min = (0.5 * (high[(mini)] + low[(mini)]));
      j = trail;
      while (++j <= i) {
        bar = (0.5 * (high[(j)] + low[(j)]));
        if (bar <= min) {
          min = bar;
          mini = j;
        }
      }
    } else if (bar <= min) {
      mini = i;
      min = bar;
    }
    double mm = max - min;
    if (mm == 0.0)
      mm = 0.001;
    val1 = 0.33 * 2.0 * (((0.5 * (high[(i)] + low[(i)])) - min) / (mm)-0.5) +
           0.67 * val1;
    if (val1 > 0.99)
      val1 = .999;
    if (val1 < -0.99)
      val1 = -.999;
    *signal++ = fish;
    fish = 0.5 * log((1.0 + val1) / (1.0 - val1)) + 0.5 * fish;
    *fisher++ = fish;
  }
  assert(fisher - outputs[0] == size - ti_fisher_start(options));
  assert(signal - outputs[1] == size - ti_fisher_start(options));
  return 0;
}


x86 assembly (clang, -O0):
<ti_fisher>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
cvttsd2si (%rax),%eax
mov    %eax,-0x44(%rbp)
cmpl   $0x1,-0x44(%rbp)
jge    1199 <ti_fisher+0x69>
movl   $0x1,-0x4(%rbp)
jmp    166e <ti_fisher+0x53e>
mov    -0x8(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <ti_fisher_start@plt>
mov    %eax,%ecx
mov    -0x8c(%rbp),%eax
cmp    %ecx,%eax
jg     11c7 <ti_fisher+0x97>
movl   $0x0,-0x4(%rbp)
jmp    166e <ti_fisher+0x53e>
movl   $0x0,-0x48(%rbp)
movl   $0xffffffff,-0x4c(%rbp)
movl   $0xffffffff,-0x50(%rbp)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x30(%rbp),%rax
addsd  (%rax),%xmm1
movsd  0xe0c(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x30(%rbp),%rax
addsd  (%rax),%xmm1
movsd  0xdeb(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x44(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    15c8 <ti_fisher+0x498>
mov    -0x28(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x7c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm1
movsd  0xd9b(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    1318 <ti_fisher+0x1e8>
mov    -0x48(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x4c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x4c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm1
movsd  0xd5e(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x48(%rbp),%eax
mov    %eax,-0x80(%rbp)
mov    -0x80(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x80(%rbp)
cmp    -0x7c(%rbp),%eax
jg     1313 <ti_fisher+0x1e3>
mov    -0x28(%rbp),%rax
movslq -0x80(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x80(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm1
movsd  0xd1b(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
ucomisd -0x58(%rbp),%xmm0
jb     130e <ti_fisher+0x1de>
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x80(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    12b1 <ti_fisher+0x181>
jmp    133d <ti_fisher+0x20d>
movsd  -0x70(%rbp),%xmm0
ucomisd -0x58(%rbp),%xmm0
jb     1338 <ti_fisher+0x208>
mov    -0x7c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
jmp    133d <ti_fisher+0x20d>
mov    -0x28(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x7c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm1
movsd  0xca1(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    1416 <ti_fisher+0x2e6>
mov    -0x48(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x28(%rbp),%rax
movslq -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x50(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm1
movsd  0xc64(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x48(%rbp),%eax
mov    %eax,-0x80(%rbp)
mov    -0x80(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x80(%rbp)
cmp    -0x7c(%rbp),%eax
jg     1411 <ti_fisher+0x2e1>
mov    -0x28(%rbp),%rax
movslq -0x80(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x30(%rbp),%rax
movslq -0x80(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm1
movsd  0xc21(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     140c <ti_fisher+0x2dc>
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x80(%rbp),%eax
mov    %eax,-0x50(%rbp)
jmp    13ab <ti_fisher+0x27b>
jmp    143f <ti_fisher+0x30f>
movsd  -0x70(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     143a <ti_fisher+0x30a>
mov    -0x7c(%rbp),%eax
mov    %eax,-0x50(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    143f <ti_fisher+0x30f>
movsd  -0x58(%rbp),%xmm0
subsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    147c <ti_fisher+0x34c>
jp     147c <ti_fisher+0x34c>
movsd  0xb94(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x28(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x7c(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  -0x60(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xb46(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
divsd  -0x88(%rbp),%xmm0
ff
movsd  0xb2e(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xb42(%rip),%xmm1
mulsd  -0x68(%rbp),%xmm1
movsd  0xb2d(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  0xb0b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    151c <ti_fisher+0x3ec>
movsd  0xb11(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xb0c(%rip),%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    153c <ti_fisher+0x40c>
movsd  0xb01(%rip),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x78(%rbp),%xmm0
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x40(%rbp)
movsd  %xmm0,(%rax)
movsd  0xae4(%rip),%xmm0
addsd  -0x68(%rbp),%xmm0
movsd  0xad7(%rip),%xmm1
subsd  -0x68(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1050 <log@plt>
movsd  0xa81(%rip),%xmm1
mulsd  -0x78(%rbp),%xmm1
movsd  0xa74(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x38(%rbp)
movsd  %xmm0,(%rax)
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1237 <ti_fisher+0x107>
mov    -0x38(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    (%rcx),%rcx
sub    %rcx,%rax
sar    $0x3,%rax
mov    %rax,-0xa8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xac(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <ti_fisher_start@plt>
mov    -0xac(%rbp),%ecx
mov    %eax,%edx
mov    -0xa8(%rbp),%rax
sub    %edx,%ecx
movslq %ecx,%rcx
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x40(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    0x8(%rcx),%rcx
sub    %rcx,%rax
sar    $0x3,%rax
mov    %rax,-0x98(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x9c(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <ti_fisher_start@plt>
mov    -0x9c(%rbp),%ecx
mov    %eax,%edx
mov    -0x98(%rbp),%rax
sub    %edx,%ecx
movslq %ecx,%rcx
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ti_fisher>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
cvttsd2si (%rdx),%r13d
test   %r13d,%r13d
jle    11e9 <ti_fisher+0xb9>
mov    %rdx,%rbx
mov    (%rsi),%r14
mov    0x8(%rsi),%r15
mov    (%rcx),%rbp
mov    %rcx,0x20(%rsp)
mov    0x8(%rcx),%rax
mov    %rax,0x8(%rsp)
mov    %edi,%r12d
mov    %rdx,%rdi
call   1030 <ti_fisher_start@plt>
xor    %ecx,%ecx
cmp    %r12d,%eax
jge    11ee <ti_fisher+0xbe>
mov    %r12d,%edx
mov    %rbx,0x18(%rsp)
cmp    %r12d,%r13d
mov    %r12d,0x14(%rsp)
jle    11ff <ti_fisher+0xcf>
mov    0x20(%rsp),%r15
sub    (%r15),%rbp
sar    $0x3,%rbp
mov    0x18(%rsp),%r14
mov    %r14,%rdi
call   1030 <ti_fisher_start@plt>
mov    0x14(%rsp),%ebx
mov    %ebx,%ecx
sub    %eax,%ecx
movslq %ecx,%rax
xor    %edi,%edi
cmp    %rax,%rbp
sete   %dil
call   1040 <assert@plt>
mov    0x8(%rsp),%rbp
sub    0x8(%r15),%rbp
sar    $0x3,%rbp
mov    %r14,%rdi
call   1030 <ti_fisher_start@plt>
sub    %eax,%ebx
movslq %ebx,%rax
xor    %edi,%edi
cmp    %rax,%rbp
sete   %dil
call   1040 <assert@plt>
xor    %ecx,%ecx
jmp    11ee <ti_fisher+0xbe>
mov    $0x1,%ecx
mov    %ecx,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movsd  (%r14),%xmm0
addsd  (%r15),%xmm0
mulsd  0xdef(%rip),%xmm0
lea    -0x1(%r13),%r12d
mov    %edx,%eax
sub    %r13d,%eax
add    $0x1,%eax
mov    %rax,0x28(%rsp)
mov    $0xffffffff,%r13d
xor    %ecx,%ecx
movsd  0xdce(%rip),%xmm6
xorpd  %xmm9,%xmm9
xorpd  %xmm8,%xmm8
movapd %xmm0,0x50(%rsp)
movapd %xmm0,0x40(%rsp)
mov    $0xffffffff,%ebx
jmp    1397 <ti_fisher+0x267>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ecx,%r13d
movapd %xmm1,%xmm5
movapd %xmm7,0x40(%rsp)
movapd %xmm7,%xmm1
subsd  %xmm5,%xmm1
movapd %xmm1,%xmm2
cmpeqsd 0xdce(%rip),%xmm2
movapd %xmm2,%xmm3
andnpd %xmm1,%xmm3
movsd  0xd76(%rip),%xmm1
andpd  %xmm1,%xmm2
orpd   %xmm3,%xmm2
mulsd  %xmm6,%xmm0
movapd %xmm5,0x50(%rsp)
subsd  %xmm5,%xmm0
divsd  %xmm2,%xmm0
addsd  0xd5c(%rip),%xmm0
mulsd  0xd5b(%rip),%xmm8
mulsd  0xd5b(%rip),%xmm0
addsd  %xmm8,%xmm0
movsd  0xd56(%rip),%xmm1
cmpltsd %xmm0,%xmm1
movapd %xmm1,%xmm2
andnpd %xmm0,%xmm2
movsd  0xd49(%rip),%xmm0
andpd  %xmm0,%xmm1
orpd   %xmm2,%xmm1
movapd %xmm1,%xmm3
cmpltsd 0xd3c(%rip),%xmm3
movapd %xmm3,%xmm0
andnpd %xmm1,%xmm0
movsd  0xd34(%rip),%xmm1
andpd  %xmm1,%xmm3
orpd   %xmm0,%xmm3
movapd %xmm3,0x60(%rsp)
movsd  0xd26(%rip),%xmm2
movapd %xmm2,%xmm1
subsd  %xmm3,%xmm1
movapd %xmm3,%xmm0
addsd  %xmm2,%xmm0
divsd  %xmm1,%xmm0
mov    0x8(%rsp),%rax
movsd  %xmm9,(%rax)
add    $0x8,%rax
mov    %rax,0x8(%rsp)
movsd  %xmm9,0x30(%rsp)
call   1050 <log@plt>
movapd 0x60(%rsp),%xmm8
movsd  0x30(%rsp),%xmm9
movsd  0xc95(%rip),%xmm6
mulsd  %xmm6,%xmm9
mulsd  %xmm6,%xmm0
addsd  %xmm0,%xmm9
movsd  %xmm9,0x0(%rbp)
add    $0x8,%rbp
add    $0x1,%r12
mov    0x38(%rsp),%rcx
cmp    0x28(%rsp),%rcx
je     118b <ti_fisher+0x5b>
mov    %r12d,%eax
mov    %r12,%rdx
sub    %rcx,%rdx
movsd  (%r14,%r12,8),%xmm0
addsd  (%r15,%r12,8),%xmm0
lea    0x1(%rcx),%r8
movapd %xmm0,%xmm1
mulsd  %xmm6,%xmm1
movslq %ebx,%rsi
cmp    %rsi,%rcx
jle    13f0 <ti_fisher+0x2c0>
movsd  (%r14,%rcx,8),%xmm2
addsd  (%r15,%rcx,8),%xmm2
mulsd  %xmm6,%xmm2
cmp    %rcx,%r12
jbe    1410 <ti_fisher+0x2e0>
test   $0x1,%dl
jne    141b <ti_fisher+0x2eb>
mov    %rcx,%rsi
mov    %ecx,%ebx
cmp    %r8,%rax
jne    1460 <ti_fisher+0x330>
jmp    14f0 <ti_fisher+0x3c0>
nopl   0x0(%rax)
movapd 0x40(%rsp),%xmm7
ucomisd %xmm7,%xmm1
jb     14f0 <ti_fisher+0x3c0>
mov    %r12d,%ebx
movapd %xmm1,%xmm7
jmp    14f0 <ti_fisher+0x3c0>
nopl   0x0(%rax)
mov    %ecx,%ebx
movapd %xmm2,%xmm7
jmp    14f0 <ti_fisher+0x3c0>
lea    0x1(%rcx),%rsi
movsd  0x8(%r14,%rcx,8),%xmm3
addsd  0x8(%r15,%rcx,8),%xmm3
mulsd  %xmm6,%xmm3
ucomisd %xmm2,%xmm3
mov    %esi,%ebx
cmovb  %ecx,%ebx
movapd %xmm2,%xmm7
cmpnlesd %xmm3,%xmm7
movapd %xmm7,%xmm4
andnpd %xmm3,%xmm4
andpd  %xmm2,%xmm7
orpd   %xmm4,%xmm7
movapd %xmm7,%xmm2
cmp    %r8,%rax
je     14f0 <ti_fisher+0x3c0>
movapd %xmm2,%xmm7
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x8(%r14,%rsi,8),%xmm3
movsd  0x10(%r14,%rsi,8),%xmm2
addsd  0x8(%r15,%rsi,8),%xmm3
mulsd  %xmm6,%xmm3
lea    0x1(%rsi),%edi
ucomisd %xmm7,%xmm3
cmovb  %ebx,%edi
movapd %xmm7,%xmm4
cmpnlesd %xmm3,%xmm4
movapd %xmm4,%xmm5
andnpd %xmm3,%xmm5
andpd  %xmm7,%xmm4
orpd   %xmm5,%xmm4
addsd  0x10(%r15,%rsi,8),%xmm2
add    $0x2,%rsi
mulsd  %xmm6,%xmm2
ucomisd %xmm4,%xmm2
mov    %esi,%ebx
cmovb  %edi,%ebx
movapd %xmm4,%xmm7
cmpnlesd %xmm2,%xmm7
movapd %xmm7,%xmm3
andpd  %xmm4,%xmm3
andnpd %xmm2,%xmm7
orpd   %xmm3,%xmm7
cmp    %rsi,%rax
jne    1470 <ti_fisher+0x340>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %r13d,%rsi
cmp    %rsi,%rcx
mov    %r8,0x38(%rsp)
jle    1530 <ti_fisher+0x400>
movsd  (%r14,%rcx,8),%xmm1
addsd  (%r15,%rcx,8),%xmm1
mulsd  %xmm6,%xmm1
cmp    %rcx,%r12
jbe    1260 <ti_fisher+0x130>
test   $0x1,%dl
jne    1548 <ti_fisher+0x418>
mov    %ecx,%r13d
cmp    %r8,%rax
je     1267 <ti_fisher+0x137>
jmp    1592 <ti_fisher+0x462>
nopl   0x0(%rax)
movapd 0x50(%rsp),%xmm5
ucomisd %xmm1,%xmm5
jb     1267 <ti_fisher+0x137>
mov    %r12d,%r13d
jmp    1263 <ti_fisher+0x133>
lea    0x1(%rcx),%rdx
movsd  0x8(%r14,%rcx,8),%xmm2
addsd  0x8(%r15,%rcx,8),%xmm2
mulsd  %xmm6,%xmm2
ucomisd %xmm2,%xmm1
mov    %edx,%r13d
cmovb  %ecx,%r13d
movapd %xmm2,%xmm5
cmpnlesd %xmm1,%xmm5
movapd %xmm5,%xmm3
andnpd %xmm2,%xmm3
andpd  %xmm1,%xmm5
orpd   %xmm3,%xmm5
mov    %rdx,%rcx
movapd %xmm5,%xmm1
cmp    %r8,%rax
je     1267 <ti_fisher+0x137>
movapd %xmm1,%xmm5
cs nopw 0x0(%rax,%rax,1)
movsd  0x8(%r14,%rcx,8),%xmm2
movsd  0x10(%r14,%rcx,8),%xmm1
addsd  0x8(%r15,%rcx,8),%xmm2
mulsd  %xmm6,%xmm2
lea    0x1(%rcx),%edx
ucomisd %xmm2,%xmm5
cmovb  %r13d,%edx
movapd %xmm2,%xmm3
cmpnlesd %xmm5,%xmm3
movapd %xmm3,%xmm4
andnpd %xmm2,%xmm4
andpd  %xmm5,%xmm3
orpd   %xmm4,%xmm3
addsd  0x10(%r15,%rcx,8),%xmm1
add    $0x2,%rcx
mulsd  %xmm6,%xmm1
ucomisd %xmm1,%xmm3
mov    %ecx,%r13d
cmovb  %edx,%r13d
movapd %xmm1,%xmm5
cmpnlesd %xmm3,%xmm5
movapd %xmm5,%xmm2
andpd  %xmm3,%xmm2
andnpd %xmm1,%xmm5
orpd   %xmm2,%xmm5
cmp    %rcx,%rax
jne    15a0 <ti_fisher+0x470>
jmp    1267 <ti_fisher+0x137>

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

LLVM IR (-O2):
define i32 @ti_fisher(i32 %0, double** nocapture %1, double* %2, double** nocapture %3) {
%5 = load double*, double** %1
%6 = getelementptr inbounds double*, double** %1, i64 1
%7 = load double*, double** %6
%8 = load double*, double** %3
%9 = getelementptr inbounds double*, double** %3, i64 1
%10 = load double*, double** %9
%11 = load double, double* %2
%12 = fptosi double %11 to i32
%13 = icmp slt i32 %12, 1
br i1 %13, label %237, label %14
14: ; preds = %4
%15 = tail call i32 @ti_fisher_start(double* %2)
%16 = icmp slt i32 %15, %0
br i1 %16, label %17, label %237
17: ; preds = %14
%18 = load double, double* %5
%19 = load double, double* %7
%20 = fadd double %18, %19
%21 = fmul double %20, 5.000000e-01
%22 = icmp sgt i32 %12, %0
br i1 %22, label %212, label %23
23: ; preds = %17
%24 = add nsw i32 %12, -1
%25 = zext i32 %24 to i64
%26 = add i32 %0, 1
%27 = sub i32 %26, %12
%28 = zext i32 %27 to i64
br label %29
29: ; preds = %23, %185
%30 = phi i64 [ %25, %23 ], [ %209, %185 ]
%31 = phi i64 [ 0, %23 ], [ %210, %185 ]
%32 = phi double [ 0.000000e+00, %23 ], [ %207, %185 ]
%33 = phi double [ 0.000000e+00, %23 ], [ %200, %185 ]
%34 = phi double [ %21, %23 ], [ %187, %185 ]
%35 = phi double [ %21, %23 ], [ %119, %185 ]
%36 = phi i32 [ -1, %23 ], [ %186, %185 ]
%37 = phi i32 [ -1, %23 ], [ %118, %185 ]
%38 = phi double* [ %10, %23 ], [ %201, %185 ]
%39 = phi double* [ %8, %23 ], [ %208, %185 ]
%40 = and i64 %30, 4294967295
%41 = sub nsw i64 %30, %31
%42 = add nuw i64 %31, 1
%43 = and i64 %30, 4294967295
%44 = sub nsw i64 %30, %31
%45 = add nuw i64 %31, 1
%46 = getelementptr inbounds double, double* %5, i64 %30
%47 = load double, double* %46
%48 = getelementptr inbounds double, double* %7, i64 %30
%49 = load double, double* %48
%50 = fadd double %47, %49
%51 = fmul double %50, 5.000000e-01
%52 = sext i32 %37 to i64
%53 = icmp sgt i64 %31, %52
br i1 %53, label %54, label %113
54: ; preds = %29
%55 = getelementptr inbounds double, double* %5, i64 %31
%56 = load double, double* %55
%57 = getelementptr inbounds double, double* %7, i64 %31
%58 = load double, double* %57
%59 = fadd double %56, %58
%60 = fmul double %59, 5.000000e-01
%61 = icmp ugt i64 %30, %31
%62 = trunc i64 %31 to i32
br i1 %61, label %63, label %117
63: ; preds = %54
%64 = and i64 %30, 4294967295
%65 = and i64 %44, 1
%66 = icmp eq i64 %65, 0
br i1 %66, label %79, label %67
67: ; preds = %63
%68 = add nuw nsw i64 %31, 1
%69 = getelementptr inbounds double, double* %5, i64 %68
%70 = load double, double* %69
%71 = getelementptr inbounds double, double* %7, i64 %68
%72 = load double, double* %71
%73 = fadd double %70, %72
%74 = fmul double %73, 5.000000e-01
%75 = fcmp ult double %74, %60
%76 = trunc i64 %68 to i32
%77 = select i1 %75, i32 %62, i32 %76
%78 = select i1 %75, double %60, double %74
br label %79
79: ; preds = %67, %63
%80 = phi i32 [ undef, %63 ], [ %77, %67 ]
%81 = phi double [ undef, %63 ], [ %78, %67 ]
%82 = phi i64 [ %31, %63 ], [ %68, %67 ]
%83 = phi double [ %60, %63 ], [ %78, %67 ]
%84 = phi i32 [ %62, %63 ], [ %77, %67 ]
%85 = icmp eq i64 %43, %45
br i1 %85, label %117, label %86
86: ; preds = %79, %86
%87 = phi i64 [ %101, %86 ], [ %82, %79 ]
%88 = phi double [ %111, %86 ], [ %83, %79 ]
%89 = phi i32 [ %110, %86 ], [ %84, %79 ]
%90 = add nuw nsw i64 %87, 1
%91 = getelementptr inbounds double, double* %5, i64 %90
%92 = load double, double* %91
%93 = getelementptr inbounds double, double* %7, i64 %90
%94 = load double, double* %93
%95 = fadd double %92, %94
%96 = fmul double %95, 5.000000e-01
%97 = fcmp ult double %96, %88
%98 = trunc i64 %90 to i32
%99 = select i1 %97, i32 %89, i32 %98
%100 = select i1 %97, double %88, double %96
%101 = add nuw nsw i64 %87, 2
%102 = getelementptr inbounds double, double* %5, i64 %101
%103 = load double, double* %102
%104 = getelementptr inbounds double, double* %7, i64 %101
%105 = load double, double* %104
%106 = fadd double %103, %105
%107 = fmul double %106, 5.000000e-01
%108 = fcmp ult double %107, %100
%109 = trunc i64 %101 to i32
%110 = select i1 %108, i32 %99, i32 %109
%111 = select i1 %108, double %100, double %107
%112 = icmp eq i64 %101, %64
br i1 %112, label %117, label %86
113: ; preds = %29
%114 = fcmp ult double %51, %35
br i1 %114, label %117, label %115
115: ; preds = %113
%116 = trunc i64 %30 to i32
br label %117
117: ; preds = %79, %86, %54, %113, %115
%118 = phi i32 [ %116, %115 ], [ %37, %113 ], [ %62, %54 ], [ %80, %79 ], [ %110, %86 ]
%119 = phi double [ %51, %115 ], [ %35, %113 ], [ %60, %54 ], [ %81, %79 ], [ %111, %86 ]
%120 = sext i32 %36 to i64
%121 = icmp sgt i64 %31, %120
br i1 %121, label %122, label %181
122: ; preds = %117
%123 = getelementptr inbounds double, double* %5, i64 %31
%124 = load double, double* %123
%125 = getelementptr inbounds double, double* %7, i64 %31
%126 = load double, double* %125
%127 = fadd double %124, %126
%128 = fmul double %127, 5.000000e-01
%129 = icmp ugt i64 %30, %31
%130 = trunc i64 %31 to i32
br i1 %129, label %131, label %185
131: ; preds = %122
%132 = and i64 %30, 4294967295
%133 = and i64 %41, 1
%134 = icmp eq i64 %133, 0
br i1 %134, label %147, label %135
135: ; preds = %131
%136 = add nuw nsw i64 %31, 1
%137 = getelementptr inbounds double, double* %5, i64 %136
%138 = load double, double* %137
%139 = getelementptr inbounds double, double* %7, i64 %136
%140 = load double, double* %139
%141 = fadd double %138, %140
%142 = fmul double %141, 5.000000e-01
%143 = fcmp ugt double %142, %128
%144 = trunc i64 %136 to i32
%145 = select i1 %143, i32 %130, i32 %144
%146 = select i1 %143, double %128, double %142
br label %147
147: ; preds = %135, %131
%148 = phi i32 [ undef, %131 ], [ %145, %135 ]
%149 = phi double [ undef, %131 ], [ %146, %135 ]
%150 = phi i64 [ %31, %131 ], [ %136, %135 ]
%151 = phi double [ %128, %131 ], [ %146, %135 ]
%152 = phi i32 [ %130, %131 ], [ %145, %135 ]
%153 = icmp eq i64 %40, %42
br i1 %153, label %185, label %154
154: ; preds = %147, %154
%155 = phi i64 [ %169, %154 ], [ %150, %147 ]
%156 = phi double [ %179, %154 ], [ %151, %147 ]
%157 = phi i32 [ %178, %154 ], [ %152, %147 ]
%158 = add nuw nsw i64 %155, 1
%159 = getelementptr inbounds double, double* %5, i64 %158
%160 = load double, double* %159
%161 = getelementptr inbounds double, double* %7, i64 %158
%162 = load double, double* %161
%163 = fadd double %160, %162
%164 = fmul double %163, 5.000000e-01
%165 = fcmp ugt double %164, %156
%166 = trunc i64 %158 to i32
%167 = select i1 %165, i32 %157, i32 %166
%168 = select i1 %165, double %156, double %164
%169 = add nuw nsw i64 %155, 2
%170 = getelementptr inbounds double, double* %5, i64 %169
%171 = load double, double* %170
%172 = getelementptr inbounds double, double* %7, i64 %169
%173 = load double, double* %172
%174 = fadd double %171, %173
%175 = fmul double %174, 5.000000e-01
%176 = fcmp ugt double %175, %168
%177 = trunc i64 %169 to i32
%178 = select i1 %176, i32 %167, i32 %177
%179 = select i1 %176, double %168, double %175
%180 = icmp eq i64 %169, %132
br i1 %180, label %185, label %154
181: ; preds = %117
%182 = fcmp ugt double %51, %34
br i1 %182, label %185, label %183
183: ; preds = %181
%184 = trunc i64 %30 to i32
br label %185
185: ; preds = %147, %154, %122, %181, %183
%186 = phi i32 [ %184, %183 ], [ %36, %181 ], [ %130, %122 ], [ %148, %147 ], [ %178, %154 ]
%187 = phi double [ %51, %183 ], [ %34, %181 ], [ %128, %122 ], [ %149, %147 ], [ %179, %154 ]
%188 = fsub double %119, %187
%189 = fcmp oeq double %188, 0.000000e+00
%190 = select i1 %189, double 1.000000e-03, double %188
%191 = fneg double %187
%192 = tail call double @llvm.fmuladd.f64(double %50, double 5.000000e-01, double %191)
%193 = fdiv double %192, %190
%194 = fadd double %193, -5.000000e-01
%195 = fmul double %33, 6.700000e-01
%196 = tail call double @llvm.fmuladd.f64(double %194, double 6.600000e-01, double %195)
%197 = fcmp ogt double %196, 0x3FEFAE147AE147AE
%198 = select i1 %197, double 0x3FEFF7CED916872B, double %196
%199 = fcmp olt double %198, 0xBFEFAE147AE147AE
%200 = select i1 %199, double 0xBFEFF7CED916872B, double %198
%201 = getelementptr inbounds double, double* %38, i64 1
store double %32, double* %38
%202 = fadd double %200, 1.000000e+00
%203 = fsub double 1.000000e+00, %200
%204 = fdiv double %202, %203
%205 = tail call double @log(double %204)
%206 = fmul double %32, 5.000000e-01
%207 = tail call double @llvm.fmuladd.f64(double %205, double 5.000000e-01, double %206)
%208 = getelementptr inbounds double, double* %39, i64 1
store double %207, double* %39
%209 = add nuw nsw i64 %30, 1
%210 = add nuw nsw i64 %31, 1
%211 = icmp eq i64 %210, %28
br i1 %211, label %212, label %29
212: ; preds = %185, %17
%213 = phi double* [ %8, %17 ], [ %208, %185 ]
%214 = phi double* [ %10, %17 ], [ %201, %185 ]
%215 = load double*, double** %3
%216 = ptrtoint double* %213 to i64
%217 = ptrtoint double* %215 to i64
%218 = sub i64 %216, %217
%219 = ashr exact i64 %218, 3
%220 = tail call i32 @ti_fisher_start(double* %2)
%221 = sub nsw i32 %0, %220
%222 = sext i32 %221 to i64
%223 = icmp eq i64 %219, %222
%224 = zext i1 %223 to i32
%225 = tail call i32 @assert(i32 %224)
%226 = load double*, double** %9
%227 = ptrtoint double* %214 to i64
%228 = ptrtoint double* %226 to i64
%229 = sub i64 %227, %228
%230 = ashr exact i64 %229, 3
%231 = tail call i32 @ti_fisher_start(double* %2)
%232 = sub nsw i32 %0, %231
%233 = sext i32 %232 to i64
%234 = icmp eq i64 %230, %233
%235 = zext i1 %234 to i32
%236 = tail call i32 @assert(i32 %235)
br label %237
237: ; preds = %14, %4, %212
%238 = phi i32 [ 0, %212 ], [ 1, %4 ], [ 0, %14 ]
ret i32 %238
}