#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 scalar_t__ uint;

/* Variables and functions */
int /*<<< orphan*/ DC(int, double *, scalar_t__ *, scalar_t__, double, double,
                      double);
int /*<<< orphan*/ drand49();
double fabs(double);
double log(int /*<<< orphan*/);
double pow(double, double);
void BIPOLAR_SHOT(double amplitude, double frequency, double width,
                  double *output, uint *index, uint Ni, double expon,
                  double srate, double dt) {
  double tmp;
  uint i, o, m, j, k;
  if (frequency == 0.) {
    DC(0., output, index, Ni, expon, srate, dt);
    return;
  }
  if ((expon == -1) || (expon == 0))
    amplitude = fabs(amplitude);
  else if (expon != 1)
    amplitude = pow(amplitude, expon);
  m = (uint)(width * srate / 1000.);
  tmp = srate / frequency;
  if (frequency > 0.) {
    j = 0;
    while (j < Ni) {
      k = (uint)(-log(drand49()) * tmp);
      o = j + k;
      if ((o + m + m) < Ni) {
        for (i = 0; i < k; i++)
          output[(*index)++] = 0.;
        for (i = 0; i < m / 2; i++)
          output[(*index)++] = amplitude;
        for (i = m / 2; i < m; i++)
          output[(*index)++] = -amplitude;
        j = o + m;
      } else {
        (*index) = (*index) + (Ni - j);
        j = (*index);
      }
    }
  } else {
    j = 0;
    while (j < Ni) {
      k = (uint)(-tmp);
      o = j + k;
      if ((o + m + m) < Ni) {
        for (i = 0; i < k; i++)
          output[(*index)++] = 0.;
        for (i = 0; i < m / 2; i++)
          output[(*index)++] = amplitude;
        for (i = m / 2; i < m; i++)
          output[(*index)++] = -amplitude;
        j = o + m;
      } else {
        (*index) = (*index) + (Ni - j);
        j = Ni;
      }
    }
  }
  return;
}


x86 assembly (clang, -O0):
<BIPOLAR_SHOT>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
movsd  %xmm3,-0x38(%rbp)
movsd  %xmm4,-0x40(%rbp)
movsd  %xmm5,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11b4 <BIPOLAR_SHOT+0x74>
jp     11b4 <BIPOLAR_SHOT+0x74>
mov    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
xor    %edi,%edi
call   1030 <DC@plt>
jmp    15e3 <BIPOLAR_SHOT+0x4a3>
movsd  -0x38(%rbp),%xmm0
movsd  0xe3f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11d6 <BIPOLAR_SHOT+0x96>
jp     11d6 <BIPOLAR_SHOT+0x96>
jmp    11ee <BIPOLAR_SHOT+0xae>
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1208 <BIPOLAR_SHOT+0xc8>
jp     1208 <BIPOLAR_SHOT+0xc8>
movsd  -0x8(%rbp),%xmm0
movaps 0xe26(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1243 <BIPOLAR_SHOT+0x103>
movsd  -0x38(%rbp),%xmm0
movsd  0xdf3(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    122a <BIPOLAR_SHOT+0xea>
jp     122a <BIPOLAR_SHOT+0xea>
jmp    123e <BIPOLAR_SHOT+0xfe>
movsd  -0x8(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
call   1050 <pow@plt>
movsd  %xmm0,-0x8(%rbp)
jmp    1243 <BIPOLAR_SHOT+0x103>
movsd  -0x18(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
movsd  0xdbb(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
mov    %rax,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    1436 <BIPOLAR_SHOT+0x2f6>
movq   $0x0,-0x70(%rbp)
mov    -0x70(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    1431 <BIPOLAR_SHOT+0x2f1>
mov    $0x0,%al
call   1060 <drand49@plt>
mov    %eax,%edi
call   1040 <log@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x50(%rbp),%xmm0
cvttsd2si %xmm0,%rax
mov    %rax,-0x78(%rbp)
mov    -0x70(%rbp),%rax
add    -0x78(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
add    -0x68(%rbp),%rax
add    -0x68(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    1408 <BIPOLAR_SHOT+0x2c8>
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x78(%rbp),%rax
jge    1332 <BIPOLAR_SHOT+0x1f2>
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    12f6 <BIPOLAR_SHOT+0x1b6>
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x68(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rax,%rcx
mov    -0x80(%rbp),%rax
cmp    %rcx,%rax
jge    1390 <BIPOLAR_SHOT+0x250>
movsd  -0x8(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    133a <BIPOLAR_SHOT+0x1fa>
mov    -0x68(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x68(%rbp),%rax
jge    13f7 <BIPOLAR_SHOT+0x2b7>
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    13a2 <BIPOLAR_SHOT+0x262>
mov    -0x60(%rbp),%rax
add    -0x68(%rbp),%rax
mov    %rax,-0x70(%rbp)
jmp    142c <BIPOLAR_SHOT+0x2ec>
mov    -0x28(%rbp),%rax
mov    (%rax),%rcx
mov    -0x30(%rbp),%rax
sub    -0x70(%rbp),%rax
add    %rax,%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x70(%rbp)
jmp    128b <BIPOLAR_SHOT+0x14b>
jmp    15de <BIPOLAR_SHOT+0x49e>
movq   $0x0,-0x70(%rbp)
mov    -0x70(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    15d9 <BIPOLAR_SHOT+0x499>
movsd  -0x50(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
cvttsd2si %xmm0,%rax
mov    %rax,-0x78(%rbp)
mov    -0x70(%rbp),%rax
add    -0x78(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
add    -0x68(%rbp),%rax
add    -0x68(%rbp),%rax
cmp    -0x30(%rbp),%rax
jge    15b3 <BIPOLAR_SHOT+0x473>
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x78(%rbp),%rax
jge    14d7 <BIPOLAR_SHOT+0x397>
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    149b <BIPOLAR_SHOT+0x35b>
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x68(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rax,%rcx
mov    -0x88(%rbp),%rax
cmp    %rcx,%rax
jge    153b <BIPOLAR_SHOT+0x3fb>
movsd  -0x8(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    14df <BIPOLAR_SHOT+0x39f>
mov    -0x68(%rbp),%rax
mov    $0x2,%ecx
cqto
idiv   %rcx
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x68(%rbp),%rax
jge    15a2 <BIPOLAR_SHOT+0x462>
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    154d <BIPOLAR_SHOT+0x40d>
mov    -0x60(%rbp),%rax
add    -0x68(%rbp),%rax
mov    %rax,-0x70(%rbp)
jmp    15d4 <BIPOLAR_SHOT+0x494>
mov    -0x28(%rbp),%rax
mov    (%rax),%rcx
mov    -0x30(%rbp),%rax
sub    -0x70(%rbp),%rax
add    %rax,%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x30(%rbp),%rax
mov    %rax,-0x70(%rbp)
jmp    143e <BIPOLAR_SHOT+0x2fe>
jmp    15de <BIPOLAR_SHOT+0x49e>
jmp    15e3 <BIPOLAR_SHOT+0x4a3>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BIPOLAR_SHOT>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %rdx,%rbp
mov    %rsi,%r12
mov    %rdi,%rbx
movapd %xmm1,%xmm6
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm6
jne    11a4 <BIPOLAR_SHOT+0x54>
jp     11a4 <BIPOLAR_SHOT+0x54>
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %rbp,%rcx
movaps %xmm3,%xmm0
movaps %xmm4,%xmm1
movaps %xmm5,%xmm2
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <DC@plt>
ucomisd 0xe54(%rip),%xmm3
jne    11b0 <BIPOLAR_SHOT+0x60>
jnp    11fc <BIPOLAR_SHOT+0xac>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm3
jne    11bc <BIPOLAR_SHOT+0x6c>
jnp    11fc <BIPOLAR_SHOT+0xac>
ucomisd 0xe44(%rip),%xmm3
jne    11c8 <BIPOLAR_SHOT+0x78>
jnp    1204 <BIPOLAR_SHOT+0xb4>
movapd %xmm3,%xmm1
movaps %xmm4,0x80(%rsp)
movsd  %xmm6,0x10(%rsp)
movsd  %xmm2,0x28(%rsp)
call   1060 <pow@plt>
movsd  0x28(%rsp),%xmm2
movsd  0x10(%rsp),%xmm6
movapd 0x80(%rsp),%xmm4
jmp    1204 <BIPOLAR_SHOT+0xb4>
andpd  0xe1c(%rip),%xmm0
mulsd  %xmm4,%xmm2
divsd  0xe00(%rip),%xmm2
cvttsd2si %xmm2,%rdi
divsd  %xmm6,%xmm4
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm6
mov    %rbp,0x28(%rsp)
movapd %xmm0,0xe0(%rsp)
mov    %rdi,0x10(%rsp)
jbe    15a4 <BIPOLAR_SHOT+0x454>
test   %rbp,%rbp
jle    191b <BIPOLAR_SHOT+0x7cb>
mov    %rdi,%rax
shr    $0x3f,%rax
add    %rdi,%rax
sar    %rax
movapd 0xdd8(%rip),%xmm1
xorpd  %xmm0,%xmm1
sub    %rax,%rdi
lea    -0x4(%rax),%rcx
mov    %rcx,0x68(%rsp)
shr    $0x2,%rcx
add    $0x1,%rcx
lea    -0x4(%rdi),%rdx
mov    %rdx,0x60(%rsp)
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %rax,%rsi
and    $0xfffffffffffffffc,%rsi
mov    %rsi,0x58(%rsp)
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
mov    %ecx,%esi
and    $0x3,%esi
and    $0xfffffffffffffffc,%rcx
mov    %rcx,0x30(%rsp)
mov    %rdi,0x90(%rsp)
and    $0xfffffffffffffffc,%rdi
mov    %rax,0x78(%rsp)
mov    %rdi,0x48(%rsp)
add    %rdi,%rax
mov    %rax,0x40(%rsp)
pshufd $0x44,%xmm1,%xmm0
mov    %edx,%eax
and    $0x3,%eax
and    $0xfffffffffffffffc,%rdx
mov    %rdx,0xd0(%rsp)
lea    0x70(%rbx),%rcx
mov    %rcx,0x18(%rsp)
lea    0x10(%rbx),%rcx
mov    %rcx,0x8(%rsp)
mov    %rsi,0x50(%rsp)
shl    $0x5,%rsi
mov    %rsi,0x20(%rsp)
mov    %rax,0x38(%rsp)
shl    $0x5,%rax
mov    %rax,0x70(%rsp)
xor    %r14d,%r14d
movapd %xmm4,0x80(%rsp)
movaps %xmm1,0xa0(%rsp)
movapd %xmm2,0xc0(%rsp)
movdqa %xmm0,0xb0(%rsp)
jmp    134d <BIPOLAR_SHOT+0x1fd>
nopl   (%rax)
mov    %rbp,%rax
sub    %r14,%rax
add    (%r12),%rax
mov    %rax,%r15
mov    %rax,(%r12)
mov    %r15,%r14
cmp    %rbp,%r15
jge    191b <BIPOLAR_SHOT+0x7cb>
xor    %eax,%eax
call   1070 <drand49@plt>
mov    %eax,%edi
call   1050 <log@plt>
movapd 0x80(%rsp),%xmm4
mov    0x10(%rsp),%rdi
pxor   0xcbf(%rip),%xmm0
mulsd  %xmm4,%xmm0
cvttsd2si %xmm0,%r13
lea    (%r14,%rdi,1),%r15
add    %r13,%r15
lea    (%r15,%rdi,1),%rax
cmp    %rbp,%rax
jge    1330 <BIPOLAR_SHOT+0x1e0>
test   %r13,%r13
jle    13b5 <BIPOLAR_SHOT+0x265>
mov    %r12,%r14
mov    (%r12),%rbp
lea    (%rbx,%rbp,8),%rdi
lea    0x0(,%r13,8),%rdx
xor    %esi,%esi
call   1030 <memset@plt>
mov    0x10(%rsp),%rdi
add    %r13,%rbp
mov    %rbp,(%r12)
cmp    $0x2,%rdi
movapd 0xe0(%rsp),%xmm0
mov    0x78(%rsp),%r8
movapd 0xa0(%rsp),%xmm1
movapd 0xc0(%rsp),%xmm2
mov    0x70(%rsp),%r9
jl     14b3 <BIPOLAR_SHOT+0x363>
mov    (%r12),%rax
cmp    $0x4,%r8
jae    13f5 <BIPOLAR_SHOT+0x2a5>
xor    %edx,%edx
jmp    1494 <BIPOLAR_SHOT+0x344>
cmpq   $0xc,0x68(%rsp)
mov    0x20(%rsp),%rbp
jae    1406 <BIPOLAR_SHOT+0x2b6>
xor    %ecx,%ecx
jmp    1459 <BIPOLAR_SHOT+0x309>
mov    0x18(%rsp),%rcx
lea    (%rcx,%rax,8),%rdx
mov    0x30(%rsp),%rsi
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
movupd %xmm2,-0x70(%rdx,%rcx,8)
movupd %xmm2,-0x60(%rdx,%rcx,8)
movupd %xmm2,-0x50(%rdx,%rcx,8)
movupd %xmm2,-0x40(%rdx,%rcx,8)
movupd %xmm2,-0x30(%rdx,%rcx,8)
movupd %xmm2,-0x20(%rdx,%rcx,8)
movupd %xmm2,-0x10(%rdx,%rcx,8)
movupd %xmm2,(%rdx,%rcx,8)
add    $0x10,%rcx
add    $0xfffffffffffffffc,%rsi
jne    1420 <BIPOLAR_SHOT+0x2d0>
cmpq   $0x0,0x50(%rsp)
je     1484 <BIPOLAR_SHOT+0x334>
add    %rax,%rcx
mov    0x8(%rsp),%rdx
lea    (%rdx,%rcx,8),%rcx
xor    %edx,%edx
nop
movupd %xmm2,-0x10(%rcx,%rdx,1)
movupd %xmm2,(%rcx,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%rbp
jne    1470 <BIPOLAR_SHOT+0x320>
mov    0x58(%rsp),%rcx
add    %rcx,%rax
mov    %rcx,%rdx
cmp    %rcx,%r8
je     14af <BIPOLAR_SHOT+0x35f>
mov    %r8,%rcx
sub    %rdx,%rcx
nopw   0x0(%rax,%rax,1)
movsd  %xmm0,(%rbx,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rcx
jne    14a0 <BIPOLAR_SHOT+0x350>
mov    %rax,(%r12)
cmp    %rdi,%r8
mov    0x28(%rsp),%rbp
jge    1341 <BIPOLAR_SHOT+0x1f1>
mov    (%r12),%rax
cmpq   $0x4,0x90(%rsp)
movapd 0xb0(%rsp),%xmm0
jae    14e1 <BIPOLAR_SHOT+0x391>
mov    %r8,%rdx
jmp    157f <BIPOLAR_SHOT+0x42f>
cmpq   $0xc,0x60(%rsp)
jae    14ed <BIPOLAR_SHOT+0x39d>
xor    %ecx,%ecx
jmp    1539 <BIPOLAR_SHOT+0x3e9>
mov    0x18(%rsp),%rcx
lea    (%rcx,%rax,8),%rdx
mov    0xd0(%rsp),%rsi
xor    %ecx,%ecx
movupd %xmm0,-0x70(%rdx,%rcx,8)
movupd %xmm0,-0x60(%rdx,%rcx,8)
movupd %xmm0,-0x50(%rdx,%rcx,8)
movupd %xmm0,-0x40(%rdx,%rcx,8)
movupd %xmm0,-0x30(%rdx,%rcx,8)
movupd %xmm0,-0x20(%rdx,%rcx,8)
movupd %xmm0,-0x10(%rdx,%rcx,8)
movupd %xmm0,(%rdx,%rcx,8)
add    $0x10,%rcx
add    $0xfffffffffffffffc,%rsi
jne    1500 <BIPOLAR_SHOT+0x3b0>
cmpq   $0x0,0x38(%rsp)
je     1564 <BIPOLAR_SHOT+0x414>
add    %rax,%rcx
mov    0x8(%rsp),%rdx
lea    (%rdx,%rcx,8),%rcx
xor    %edx,%edx
nop
movupd %xmm0,-0x10(%rcx,%rdx,1)
movupd %xmm0,(%rcx,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%r9
jne    1550 <BIPOLAR_SHOT+0x400>
mov    0x48(%rsp),%rcx
add    %rcx,%rax
mov    0x40(%rsp),%rdx
cmp    %rcx,0x90(%rsp)
je     133d <BIPOLAR_SHOT+0x1ed>
mov    %rdi,%rcx
sub    %rdx,%rcx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  %xmm1,(%rbx,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rcx
jne    1590 <BIPOLAR_SHOT+0x440>
jmp    133d <BIPOLAR_SHOT+0x1ed>
test   %rbp,%rbp
jle    191b <BIPOLAR_SHOT+0x7cb>
movapd 0xa7b(%rip),%xmm1
xorpd  %xmm1,%xmm4
cvttsd2si %xmm4,%r13
lea    (%rdi,%r13,1),%rax
mov    %rax,0x78(%rsp)
mov    %rdi,%r9
shr    $0x3f,%r9
add    %rdi,%r9
sar    %r9
xorpd  %xmm0,%xmm1
lea    0x0(,%r13,8),%rax
mov    %rax,0x70(%rsp)
mov    %rdi,%rax
sub    %r9,%rax
lea    -0x4(%r9),%rcx
mov    %rcx,0x68(%rsp)
shr    $0x2,%rcx
add    $0x1,%rcx
lea    -0x4(%rax),%rdx
mov    %rdx,0x60(%rsp)
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %r9,%rsi
and    $0xfffffffffffffffc,%rsi
mov    %rsi,0x58(%rsp)
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
mov    %ecx,%esi
and    $0x3,%esi
and    $0xfffffffffffffffc,%rcx
mov    %rcx,0x18(%rsp)
mov    %rax,0xa0(%rsp)
and    $0xfffffffffffffffc,%rax
pshufd $0x44,%xmm1,%xmm3
mov    %edx,%r15d
and    $0x3,%r15d
and    $0xfffffffffffffffc,%rdx
mov    %rdx,0x30(%rsp)
mov    %rsi,0x50(%rsp)
mov    %rsi,%r10
shl    $0x5,%r10
mov    %r15,0x40(%rsp)
shl    $0x5,%r15
mov    %rax,0x48(%rsp)
add    %r9,%rax
mov    %rax,0x38(%rsp)
lea    0x70(%rbx),%rax
mov    %rax,0x20(%rsp)
lea    0x10(%rbx),%rax
mov    %rax,0x8(%rsp)
xor    %eax,%eax
movaps %xmm1,0xc0(%rsp)
movapd %xmm2,0x90(%rsp)
movdqa %xmm3,0xb0(%rsp)
mov    %r12,0xd8(%rsp)
jmp    16c0 <BIPOLAR_SHOT+0x570>
nopw   0x0(%rax,%rax,1)
mov    %rax,(%r12)
mov    %r14,%rax
cmp    %rbp,%r14
jge    191b <BIPOLAR_SHOT+0x7cb>
mov    0x78(%rsp),%rcx
lea    (%rcx,%rax,1),%r14
lea    (%r14,%rdi,1),%rcx
cmp    %rbp,%rcx
jge    1914 <BIPOLAR_SHOT+0x7c4>
test   %r13,%r13
jle    1748 <BIPOLAR_SHOT+0x5f8>
mov    (%r12),%rbp
lea    (%rbx,%rbp,8),%rdi
xor    %esi,%esi
mov    0x70(%rsp),%rdx
mov    %r14,0x80(%rsp)
mov    %r9,%r14
mov    %r10,%r12
call   1030 <memset@plt>
mov    %r12,%r10
movdqa 0xb0(%rsp),%xmm3
movapd 0x90(%rsp),%xmm2
mov    %r14,%r9
mov    0x80(%rsp),%r14
mov    0xd8(%rsp),%r12
movapd 0xc0(%rsp),%xmm1
mov    0x10(%rsp),%rdi
movapd 0xe0(%rsp),%xmm0
add    %r13,%rbp
mov    %rbp,(%r12)
mov    0x28(%rsp),%rbp
cmp    $0x2,%rdi
jl     1823 <BIPOLAR_SHOT+0x6d3>
mov    (%r12),%rax
cmp    $0x4,%r9
jae    1770 <BIPOLAR_SHOT+0x620>
xor    %edx,%edx
jmp    1804 <BIPOLAR_SHOT+0x6b4>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmpq   $0xc,0x68(%rsp)
jae    177c <BIPOLAR_SHOT+0x62c>
xor    %ecx,%ecx
jmp    17c9 <BIPOLAR_SHOT+0x679>
mov    0x20(%rsp),%rcx
lea    (%rcx,%rax,8),%rdx
mov    0x18(%rsp),%rsi
xor    %ecx,%ecx
nopl   0x0(%rax)
movupd %xmm2,-0x70(%rdx,%rcx,8)
movupd %xmm2,-0x60(%rdx,%rcx,8)
movupd %xmm2,-0x50(%rdx,%rcx,8)
movupd %xmm2,-0x40(%rdx,%rcx,8)
movupd %xmm2,-0x30(%rdx,%rcx,8)
movupd %xmm2,-0x20(%rdx,%rcx,8)
movupd %xmm2,-0x10(%rdx,%rcx,8)
movupd %xmm2,(%rdx,%rcx,8)
add    $0x10,%rcx
add    $0xfffffffffffffffc,%rsi
jne    1790 <BIPOLAR_SHOT+0x640>
cmpq   $0x0,0x50(%rsp)
je     17f4 <BIPOLAR_SHOT+0x6a4>
add    %rax,%rcx
mov    0x8(%rsp),%rdx
lea    (%rdx,%rcx,8),%rcx
xor    %edx,%edx
nop
movupd %xmm2,-0x10(%rcx,%rdx,1)
movupd %xmm2,(%rcx,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%r10
jne    17e0 <BIPOLAR_SHOT+0x690>
mov    0x58(%rsp),%rcx
add    %rcx,%rax
mov    %rcx,%rdx
cmp    %rcx,%r9
je     181f <BIPOLAR_SHOT+0x6cf>
mov    %r9,%rcx
sub    %rdx,%rcx
nopw   0x0(%rax,%rax,1)
movsd  %xmm0,(%rbx,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rcx
jne    1810 <BIPOLAR_SHOT+0x6c0>
mov    %rax,(%r12)
cmp    %rdi,%r9
jge    16b4 <BIPOLAR_SHOT+0x564>
mov    (%r12),%rax
cmpq   $0x4,0xa0(%rsp)
jae    1850 <BIPOLAR_SHOT+0x700>
mov    %r9,%rdx
jmp    18ef <BIPOLAR_SHOT+0x79f>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmpq   $0xc,0x60(%rsp)
jae    185c <BIPOLAR_SHOT+0x70c>
xor    %ecx,%ecx
jmp    18a9 <BIPOLAR_SHOT+0x759>
mov    0x20(%rsp),%rcx
lea    (%rcx,%rax,8),%rdx
mov    0x30(%rsp),%rsi
xor    %ecx,%ecx
nopl   0x0(%rax)
movdqu %xmm3,-0x70(%rdx,%rcx,8)
movdqu %xmm3,-0x60(%rdx,%rcx,8)
movdqu %xmm3,-0x50(%rdx,%rcx,8)
movdqu %xmm3,-0x40(%rdx,%rcx,8)
movdqu %xmm3,-0x30(%rdx,%rcx,8)
movdqu %xmm3,-0x20(%rdx,%rcx,8)
movdqu %xmm3,-0x10(%rdx,%rcx,8)
movdqu %xmm3,(%rdx,%rcx,8)
add    $0x10,%rcx
add    $0xfffffffffffffffc,%rsi
jne    1870 <BIPOLAR_SHOT+0x720>
cmpq   $0x0,0x40(%rsp)
je     18d4 <BIPOLAR_SHOT+0x784>
add    %rax,%rcx
mov    0x8(%rsp),%rdx
lea    (%rdx,%rcx,8),%rcx
xor    %edx,%edx
nop
movdqu %xmm3,-0x10(%rcx,%rdx,1)
movdqu %xmm3,(%rcx,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%r15
jne    18c0 <BIPOLAR_SHOT+0x770>
mov    0x48(%rsp),%rcx
add    %rcx,%rax
mov    0x38(%rsp),%rdx
cmp    %rcx,0xa0(%rsp)
je     16b0 <BIPOLAR_SHOT+0x560>
mov    %rdi,%rcx
sub    %rdx,%rcx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  %xmm1,(%rbx,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rcx
jne    1900 <BIPOLAR_SHOT+0x7b0>
jmp    16b0 <BIPOLAR_SHOT+0x560>
sub    %rax,%rbp
add    %rbp,(%r12)
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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