#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 int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
long double genrand_real3();
int /*<<< orphan*/ printf(char *, ...);
void LocusHistory(FILE *fout, FILE *fout1,
                  long double (*poissonTrans)[300L + 1],
                  long double (*gaussTrans)[1500L + 1], long seed,
                  long double sinit, long switches, long *node, long *allele,
                  long *AllNum, long *a162) {
  long LinCount, i, j, t, itmp;
  long double R, var, s[7], tmp;
  AllNum[0] = 0;
  s[0] = sinit;
  LinCount = 1;
  for (t = -70000000L; t != 1; t++) {
    for (i = 0; i != LinCount; i++) {
      R = genrand_real3();
      if (switches > 0 && R < 1.0 / switches) {
        s[i] = -s[i];
        fprintf(fout1, " (%5ld %10ld %10.8f) ", i, t, (float)s[i]);
      }
      R = genrand_real3();
      if (R < 0.0000001 * (100000L - AllNum[i]))
        AllNum[i]++;
      R = genrand_real3();
      if (R < 0.0000001 * AllNum[i])
        AllNum[i]--;
      if (AllNum[i] == 0 || AllNum[i] == 100000L)
        continue;
      R = genrand_real3();
      if (AllNum[i] <= 100) {
        for (j = 0; j != 300L + 1; j++) {
          if (R < poissonTrans[AllNum[i]][j])
            break;
        }
        AllNum[i] = j;
      } else if (AllNum[i] >= 100000L - 100) {
        for (j = 0; j != 300L + 1; j++) {
          if (R < poissonTrans[100000L - AllNum[i]][j])
            break;
        }
        AllNum[i] = 100000L - j;
      } else {
        for (j = 0; j != 1500L + 1; j++) {
          if (R < gaussTrans[AllNum[i]][j])
            break;
        }
        R = genrand_real3();
        if (R > 0.5)
          AllNum[i] += j;
        else
          AllNum[i] -= j;
      }
      tmp = (AllNum[i] * (1.0 + s[i]) /
             (AllNum[i] * (1.0 + s[i]) + 100000L - AllNum[i])) *
            100000L;
      itmp = tmp;
      R = genrand_real3();
      if (R < tmp - itmp)
        itmp++;
      AllNum[i] = itmp;
    }
    if (t == node[0]) {
      AllNum[LinCount] = AllNum[LinCount - 1];
      s[LinCount] = s[LinCount - 1];
      LinCount++;
    } else if (t == node[1]) {
      AllNum[LinCount] = AllNum[LinCount - 1];
      s[LinCount] = s[LinCount - 1];
      LinCount++;
    } else if (t == node[2]) {
      AllNum[LinCount] = AllNum[LinCount - 1];
      s[LinCount] = s[LinCount - 1];
      LinCount++;
    } else if (t == node[3]) {
      AllNum[LinCount] = AllNum[LinCount - 1];
      s[LinCount] = s[LinCount - 1];
      LinCount++;
    } else if (t == node[4]) {
      AllNum[LinCount] = AllNum[LinCount - 1];
      s[LinCount] = s[LinCount - 1];
      LinCount++;
    } else if (t == node[5]) {
      AllNum[LinCount] = AllNum[LinCount - 1];
      s[LinCount] = s[LinCount - 1];
      LinCount++;
    }
    if (-t % 100000 == 0) {
      printf(" %12ld ", t);
      for (i = 0; i != LinCount; i++)
        printf("%7ld ", AllNum[i]);
      printf("\n");
      fprintf(fout, " %12ld ", t);
      for (i = 0; i != LinCount; i++)
        fprintf(fout, "%7ld ", AllNum[i]);
      fprintf(fout, "\n");
    }
  }
  for (i = 0; i != LinCount; i++) {
    R = genrand_real3();
    if (R < (float)AllNum[i] / 100000L)
      allele[i] = 1;
    else
      allele[i] = 0;
    a162[i] = 0;
    for (j = 0; j != 162; j++) {
      R = genrand_real3();
      if (R < (float)AllNum[i] / 100000L)
        a162[i]++;
    }
  }
}


x86 assembly (clang, -O0):
<LocusHistory>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
fldt   0x10(%rbp)
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
fstpt  -0x40(%rbp)
mov    %r9,-0x48(%rbp)
mov    0x30(%rbp),%rax
movq   $0x0,(%rax)
fldt   -0x40(%rbp)
fstpt  -0x100(%rbp)
movq   $0x1,-0x50(%rbp)
movq   $0xfffffffffbd3e280,-0x68(%rbp)
fb
cmpq   $0x1,-0x68(%rbp)
je     18dd <LocusHistory+0x7ad>
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x50(%rbp),%rax
je     1610 <LocusHistory+0x4e0>
xor    %eax,%eax
call   1050 <genrand_real3@plt>
fstpt  -0x80(%rbp)
cmpq   $0x0,-0x48(%rbp)
jle    1247 <LocusHistory+0x117>
fldt   -0x80(%rbp)
cvtsi2sdq -0x48(%rbp),%xmm1
movsd  0xe34(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
fldl   -0x120(%rbp)
fucomip %st(1),%st
fstp   %st(0)
jbe    1247 <LocusHistory+0x117>
jmp    11f5 <LocusHistory+0xc5>
mov    -0x58(%rbp),%rax
shl    $0x4,%rax
fldt   -0x100(%rbp,%rax,1)
fchs
fstpt  -0x100(%rbp,%rax,1)
mov    -0x10(%rbp),%rdi
mov    -0x58(%rbp),%rdx
mov    -0x68(%rbp),%rcx
mov    %rdx,%rax
shl    $0x4,%rax
fldt   -0x100(%rbp,%rax,1)
fstps  -0x124(%rbp)
movss  -0x124(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xdd8(%rip),%rsi
mov    $0x1,%al
call   1040 <fprintf@plt>
xor    %eax,%eax
call   1050 <genrand_real3@plt>
fstpt  -0x80(%rbp)
fldt   -0x80(%rbp)
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
mov    $0x186a0,%eax
sub    %rcx,%rax
cvtsi2sd %rax,%xmm0
movsd  0xd9b(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
fldl   -0x130(%rbp)
fucomip %st(1),%st
fstp   %st(0)
jbe    12aa <LocusHistory+0x17a>
jmp    1296 <LocusHistory+0x166>
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
add    $0x1,%rdx
mov    %rdx,(%rax,%rcx,8)
xor    %eax,%eax
call   1050 <genrand_real3@plt>
fstpt  -0x80(%rbp)
fldt   -0x80(%rbp)
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
cvtsi2sdq (%rax,%rcx,8),%xmm0
movsd  0xd43(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
fldl   -0x138(%rbp)
fucomip %st(1),%st
fstp   %st(0)
jbe    1302 <LocusHistory+0x1d2>
jmp    12ee <LocusHistory+0x1be>
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
add    $0xffffffffffffffff,%rdx
mov    %rdx,(%rax,%rcx,8)
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     132b <LocusHistory+0x1fb>
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
cmpq   $0x186a0,(%rax,%rcx,8)
jne    1330 <LocusHistory+0x200>
jmp    15ff <LocusHistory+0x4cf>
xor    %eax,%eax
call   1050 <genrand_real3@plt>
fstpt  -0x80(%rbp)
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
cmpq   $0x64,(%rax,%rcx,8)
jg     13ca <LocusHistory+0x29a>
movq   $0x0,-0x60(%rbp)
cmpq   $0x12d,-0x60(%rbp)
je     13b5 <LocusHistory+0x285>
fldt   -0x80(%rbp)
mov    -0x18(%rbp),%rcx
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rdx
mov    (%rax,%rdx,8),%rax
imul   $0x12d0,%rax,%rax
add    %rax,%rcx
mov    -0x60(%rbp),%rax
shl    $0x4,%rax
fldt   (%rax,%rcx,1)
fucomip %st(1),%st
fstp   %st(0)
jbe    139f <LocusHistory+0x26f>
jmp    139a <LocusHistory+0x26a>
jmp    13b5 <LocusHistory+0x285>
jmp    13a4 <LocusHistory+0x274>
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
jmp    1355 <LocusHistory+0x225>
mov    -0x60(%rbp),%rdx
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
jmp    1530 <LocusHistory+0x400>
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
cmpq   $0x1863c,(%rax,%rcx,8)
jl     146a <LocusHistory+0x33a>
movq   $0x0,-0x60(%rbp)
cmpq   $0x12d,-0x60(%rbp)
je     1450 <LocusHistory+0x320>
fldt   -0x80(%rbp)
mov    -0x18(%rbp),%rcx
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rdx
mov    (%rax,%rdx,8),%rdx
mov    $0x186a0,%eax
sub    %rdx,%rax
imul   $0x12d0,%rax,%rax
add    %rax,%rcx
mov    -0x60(%rbp),%rax
shl    $0x4,%rax
fldt   (%rax,%rcx,1)
fucomip %st(1),%st
fstp   %st(0)
jbe    143a <LocusHistory+0x30a>
jmp    1435 <LocusHistory+0x305>
jmp    1450 <LocusHistory+0x320>
jmp    143f <LocusHistory+0x30f>
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
jmp    13e8 <LocusHistory+0x2b8>
mov    $0x186a0,%edx
sub    -0x60(%rbp),%rdx
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
jmp    152b <LocusHistory+0x3fb>
movq   $0x0,-0x60(%rbp)
cmpq   $0x5dd,-0x60(%rbp)
je     14d2 <LocusHistory+0x3a2>
fldt   -0x80(%rbp)
mov    -0x20(%rbp),%rcx
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rdx
mov    (%rax,%rdx,8),%rax
imul   $0x5dd0,%rax,%rax
add    %rax,%rcx
mov    -0x60(%rbp),%rax
shl    $0x4,%rax
fldt   (%rax,%rcx,1)
fucomip %st(1),%st
fstp   %st(0)
jbe    14bc <LocusHistory+0x38c>
jmp    14b7 <LocusHistory+0x387>
jmp    14d2 <LocusHistory+0x3a2>
jmp    14c1 <LocusHistory+0x391>
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
jmp    1472 <LocusHistory+0x342>
xor    %eax,%eax
call   1050 <genrand_real3@plt>
fstpt  -0x80(%rbp)
fldt   -0x80(%rbp)
flds   0xb1f(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    150f <LocusHistory+0x3df>
jmp    14f6 <LocusHistory+0x3c6>
mov    -0x60(%rbp),%rdx
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
add    (%rax,%rcx,8),%rdx
mov    %rdx,(%rax,%rcx,8)
jmp    1526 <LocusHistory+0x3f6>
mov    -0x60(%rbp),%rsi
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
sub    %rsi,%rdx
mov    %rdx,(%rax,%rcx,8)
jmp    152b <LocusHistory+0x3fb>
jmp    1530 <LocusHistory+0x400>
mov    0x30(%rbp),%rcx
mov    -0x58(%rbp),%rax
mov    (%rcx,%rax,8),%rcx
mov    %rcx,-0x150(%rbp)
fildll -0x150(%rbp)
shl    $0x4,%rax
fldt   -0x100(%rbp,%rax,1)
fld1
faddp  %st,%st(1)
fmul   %st(1),%st
flds   0xaa0(%rip)
fld    %st(1)
fadd   %st(1),%st
fsubp  %st,%st(3)
fxch   %st(1)
fdivp  %st,%st(2)
fmulp  %st,%st(1)
fstpt  -0x110(%rbp)
fldt   -0x110(%rbp)
fnstcw -0x152(%rbp)
movzwl -0x152(%rbp),%eax
or     $0xc00,%eax
mov    %ax,-0x154(%rbp)
fldcw  -0x154(%rbp)
fistpll -0x148(%rbp)
fldcw  -0x152(%rbp)
mov    -0x148(%rbp),%rax
mov    %rax,-0x70(%rbp)
xor    %eax,%eax
call   1050 <genrand_real3@plt>
fstpt  -0x80(%rbp)
fldt   -0x80(%rbp)
fldt   -0x110(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x140(%rbp)
fildll -0x140(%rbp)
fsubrp %st,%st(1)
fucomip %st(1),%st
fstp   %st(0)
jbe    15ef <LocusHistory+0x4bf>
jmp    15e3 <LocusHistory+0x4b3>
mov    -0x70(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rdx
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    11a0 <LocusHistory+0x70>
mov    -0x68(%rbp),%rax
mov    0x20(%rbp),%rcx
cmp    (%rcx),%rax
jne    1659 <LocusHistory+0x529>
mov    0x30(%rbp),%rax
mov    -0x50(%rbp),%rcx
mov    -0x8(%rax,%rcx,8),%rdx
mov    %rdx,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
shl    $0x4,%rax
fldt   -0x110(%rbp,%rax,1)
fstpt  -0x100(%rbp,%rax,1)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    17df <LocusHistory+0x6af>
mov    -0x68(%rbp),%rax
mov    0x20(%rbp),%rcx
cmp    0x8(%rcx),%rax
jne    16a3 <LocusHistory+0x573>
mov    0x30(%rbp),%rax
mov    -0x50(%rbp),%rcx
mov    -0x8(%rax,%rcx,8),%rdx
mov    %rdx,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
shl    $0x4,%rax
fldt   -0x110(%rbp,%rax,1)
fstpt  -0x100(%rbp,%rax,1)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    17da <LocusHistory+0x6aa>
mov    -0x68(%rbp),%rax
mov    0x20(%rbp),%rcx
cmp    0x10(%rcx),%rax
jne    16ed <LocusHistory+0x5bd>
mov    0x30(%rbp),%rax
mov    -0x50(%rbp),%rcx
mov    -0x8(%rax,%rcx,8),%rdx
mov    %rdx,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
shl    $0x4,%rax
fldt   -0x110(%rbp,%rax,1)
fstpt  -0x100(%rbp,%rax,1)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    17d5 <LocusHistory+0x6a5>
mov    -0x68(%rbp),%rax
mov    0x20(%rbp),%rcx
cmp    0x18(%rcx),%rax
jne    1737 <LocusHistory+0x607>
mov    0x30(%rbp),%rax
mov    -0x50(%rbp),%rcx
mov    -0x8(%rax,%rcx,8),%rdx
mov    %rdx,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
shl    $0x4,%rax
fldt   -0x110(%rbp,%rax,1)
fstpt  -0x100(%rbp,%rax,1)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    17d0 <LocusHistory+0x6a0>
mov    -0x68(%rbp),%rax
mov    0x20(%rbp),%rcx
cmp    0x20(%rcx),%rax
jne    1781 <LocusHistory+0x651>
mov    0x30(%rbp),%rax
mov    -0x50(%rbp),%rcx
mov    -0x8(%rax,%rcx,8),%rdx
mov    %rdx,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
shl    $0x4,%rax
fldt   -0x110(%rbp,%rax,1)
fstpt  -0x100(%rbp,%rax,1)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    17cb <LocusHistory+0x69b>
mov    -0x68(%rbp),%rax
mov    0x20(%rbp),%rcx
cmp    0x28(%rcx),%rax
jne    17c6 <LocusHistory+0x696>
mov    0x30(%rbp),%rax
mov    -0x50(%rbp),%rcx
mov    -0x8(%rax,%rcx,8),%rdx
mov    %rdx,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
shl    $0x4,%rax
fldt   -0x110(%rbp,%rax,1)
fstpt  -0x100(%rbp,%rax,1)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    17cb <LocusHistory+0x69b>
jmp    17d0 <LocusHistory+0x6a0>
jmp    17d5 <LocusHistory+0x6a5>
jmp    17da <LocusHistory+0x6aa>
jmp    17df <LocusHistory+0x6af>
xor    %eax,%eax
sub    -0x68(%rbp),%rax
mov    $0x186a0,%ecx
cqto
idiv   %rcx
cmp    $0x0,%rdx
jne    18c7 <LocusHistory+0x797>
mov    -0x68(%rbp),%rsi
lea    0x82a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x50(%rbp),%rax
je     184c <LocusHistory+0x71c>
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0x802(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    1813 <LocusHistory+0x6e3>
lea    0x7e9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x68(%rbp),%rdx
lea    0x7c5(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x50(%rbp),%rax
je     18b5 <LocusHistory+0x785>
mov    -0x8(%rbp),%rdi
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0x799(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    1878 <LocusHistory+0x748>
mov    -0x8(%rbp),%rdi
lea    0x77c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    18cc <LocusHistory+0x79c>
mov    -0x68(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x68(%rbp)
jmp    118d <LocusHistory+0x5d>
movq   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%rax
cmp    -0x50(%rbp),%rax
je     1a06 <LocusHistory+0x8d6>
xor    %eax,%eax
call   1050 <genrand_real3@plt>
fstpt  -0x80(%rbp)
fldt   -0x80(%rbp)
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
cvtsi2ssq (%rax,%rcx,8),%xmm0
movss  0x6ea(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x114(%rbp)
ff
flds   -0x114(%rbp)
fucomip %st(1),%st
fstp   %st(0)
jbe    194c <LocusHistory+0x81c>
jmp    1937 <LocusHistory+0x807>
mov    0x28(%rbp),%rax
mov    -0x58(%rbp),%rcx
movq   $0x1,(%rax,%rcx,8)
jmp    195c <LocusHistory+0x82c>
mov    0x28(%rbp),%rax
mov    -0x58(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    0x38(%rbp),%rax
mov    -0x58(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
movq   $0x0,-0x60(%rbp)
cmpq   $0xa2,-0x60(%rbp)
je     19f0 <LocusHistory+0x8c0>
xor    %eax,%eax
call   1050 <genrand_real3@plt>
fstpt  -0x80(%rbp)
fldt   -0x80(%rbp)
mov    0x30(%rbp),%rax
mov    -0x58(%rbp),%rcx
cvtsi2ssq (%rax,%rcx,8),%xmm0
movss  0x65b(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x118(%rbp)
ff
flds   -0x118(%rbp)
fucomip %st(1),%st
fstp   %st(0)
jbe    19da <LocusHistory+0x8aa>
jmp    19c6 <LocusHistory+0x896>
mov    0x38(%rbp),%rax
mov    -0x58(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
add    $0x1,%rdx
mov    %rdx,(%rax,%rcx,8)
jmp    19df <LocusHistory+0x8af>
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
jmp    1974 <LocusHistory+0x844>
jmp    19f5 <LocusHistory+0x8c5>
mov    -0x58(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x58(%rbp)
jmp    18e5 <LocusHistory+0x7b5>
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LocusHistory>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
mov    %r9,%rbx
mov    %rsi,0x50(%rsp)
mov    %rdi,%rbp
mov    0x170(%rsp),%r13
fldt   0x150(%rsp)
movq   $0x0,0x0(%r13)
fstpt  0xa0(%rsp)
cvtsi2sd %r9,%xmm0
movsd  0xe69(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,0x80(%rsp)
fldl   0x80(%rsp)
fstpt  0x94(%rsp)
add    $0x30,%rcx
mov    %rcx,0x40(%rsp)
lea    0x1cb4a230(%rdx),%rax
mov    %rax,0x38(%rsp)
add    $0x30,%rdx
mov    %rdx,0x48(%rsp)
mov    $0xfffffffffbd3e280,%r12
mov    $0x1,%r14d
mov    %rdi,0x30(%rsp)
mov    %r9,0x18(%rsp)
jmp    1231 <LocusHistory+0xe1>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbp,%r12
mov    $0xa,%edi
mov    %r12,%rsi
call   1050 <fputc@plt>
mov    %r12,%rbp
mov    0x10(%rsp),%r12
mov    0x18(%rsp),%rbx
lea    0x1(%r12),%rax
test   %r12,%r12
mov    %rax,%r12
je     16e0 <LocusHistory+0x590>
test   %r14,%r14
mov    %r12,0x10(%rsp)
je     15b0 <LocusHistory+0x460>
xor    %r15d,%r15d
jmp    12ee <LocusHistory+0x19e>
fstp   %st(0)
mov    $0x186a0,%eax
sub    %rcx,%rax
mov    %rax,0x0(%r13,%r15,8)
mov    %rax,0x58(%rsp)
fildll 0x58(%rsp)
mov    %r15,%rax
shl    $0x4,%rax
fldt   0xa0(%rsp,%rax,1)
fld1
faddp  %st,%st(1)
fmul   %st(1),%st
flds   0xd9b(%rip)
fld    %st(1)
fadd   %st(1),%st
fsubp  %st,%st(3)
fxch   %st(1)
fdivp  %st,%st(2)
fmulp  %st,%st(1)
fld    %st(0)
fstpt  0x88(%rsp)
fnstcw 0xc(%rsp)
movzwl 0xc(%rsp),%eax
or     $0xc00,%eax
mov    %ax,0xe(%rsp)
fldcw  0xe(%rsp)
fistpll 0x60(%rsp)
fldcw  0xc(%rsp)
mov    0x60(%rsp),%rbp
xor    %eax,%eax
call   1070 <genrand_real3@plt>
mov    %rbp,0x68(%rsp)
fildll 0x68(%rsp)
fldt   0x88(%rsp)
fsubp  %st,%st(1)
xor    %eax,%eax
fucomip %st(1),%st
fstp   %st(0)
seta   %al
add    %rbp,%rax
mov    %rax,0x0(%r13,%r15,8)
mov    0x30(%rsp),%rbp
add    $0x1,%r15
cmp    %r14,%r15
je     15b0 <LocusHistory+0x460>
xor    %eax,%eax
call   1070 <genrand_real3@plt>
test   %rbx,%rbx
jle    134d <LocusHistory+0x1fd>
fldt   0x94(%rsp)
fucomip %st(1),%st
fstp   %st(0)
fldz
jbe    134d <LocusHistory+0x1fd>
fstp   %st(0)
mov    %r15,%rax
shl    $0x4,%rax
fldt   0xa0(%rsp,%rax,1)
fchs
fld    %st(0)
fstpt  0xa0(%rsp,%rax,1)
fstps  0x2c(%rsp)
movss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    0x50(%rsp),%rdi
lea    0xcda(%rip),%rsi
mov    %r15,%rdx
mov    %r12,%rcx
mov    $0x1,%al
call   1060 <fprintf@plt>
fldz
fstp   %st(0)
xor    %eax,%eax
call   1070 <genrand_real3@plt>
mov    0x0(%r13,%r15,8),%rax
mov    $0x186a0,%ecx
sub    %rax,%rcx
xorps  %xmm0,%xmm0
cvtsi2sd %rcx,%xmm0
movsd  0xc95(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,0x78(%rsp)
fldl   0x78(%rsp)
fucomip %st(1),%st
fstp   %st(0)
jbe    1390 <LocusHistory+0x240>
add    $0x1,%rax
mov    %rax,0x0(%r13,%r15,8)
xor    %eax,%eax
call   1070 <genrand_real3@plt>
mov    0x0(%r13,%r15,8),%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
mulsd  0xc5c(%rip),%xmm0
movsd  %xmm0,0x70(%rsp)
fldl   0x70(%rsp)
fucomip %st(1),%st
fstp   %st(0)
jbe    13c5 <LocusHistory+0x275>
add    $0xffffffffffffffff,%rax
mov    %rax,0x0(%r13,%r15,8)
test   %rax,%rax
je     12e1 <LocusHistory+0x191>
cmp    $0x186a0,%rax
je     12e1 <LocusHistory+0x191>
xor    %eax,%eax
call   1070 <genrand_real3@plt>
mov    0x0(%r13,%r15,8),%rax
cmp    $0x64,%rax
jg     1441 <LocusHistory+0x2f1>
imul   $0x12d0,%rax,%rcx
add    0x48(%rsp),%rcx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
fldt   -0x30(%rcx)
fucomip %st(1),%st
ja     14f6 <LocusHistory+0x3a6>
cmp    $0x12c,%rax
je     14fd <LocusHistory+0x3ad>
fldt   -0x20(%rcx)
fucomip %st(1),%st
ja     1509 <LocusHistory+0x3b9>
fldt   -0x10(%rcx)
fucomip %st(1),%st
ja     1514 <LocusHistory+0x3c4>
fldt   (%rcx)
fucomip %st(1),%st
ja     151f <LocusHistory+0x3cf>
add    $0x4,%rax
add    $0x40,%rcx
jmp    1400 <LocusHistory+0x2b0>
cmp    $0x1863b,%rax
jbe    14a2 <LocusHistory+0x352>
imul   $0xffffffffffffed30,%rax,%rax
add    0x38(%rsp),%rax
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
fldt   -0x30(%rax)
fucomip %st(1),%st
ja     1247 <LocusHistory+0xf7>
cmp    $0x12c,%rcx
je     152e <LocusHistory+0x3de>
fldt   -0x20(%rax)
fucomip %st(1),%st
ja     1544 <LocusHistory+0x3f4>
fldt   -0x10(%rax)
fucomip %st(1),%st
ja     1557 <LocusHistory+0x407>
fldt   (%rax)
fucomip %st(1),%st
ja     156a <LocusHistory+0x41a>
add    $0x4,%rcx
add    $0x40,%rax
jmp    1460 <LocusHistory+0x310>
imul   $0x5dd0,%rax,%rax
add    0x40(%rsp),%rax
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
fldt   -0x30(%rax)
fucomip %st(1),%st
ja     152a <LocusHistory+0x3da>
cmp    $0x5dc,%r12
je     153a <LocusHistory+0x3ea>
fldt   -0x20(%rax)
fucomip %st(1),%st
ja     154f <LocusHistory+0x3ff>
fldt   -0x10(%rax)
fucomip %st(1),%st
ja     1562 <LocusHistory+0x412>
fldt   (%rax)
fucomip %st(1),%st
ja     1575 <LocusHistory+0x425>
add    $0x4,%r12
add    $0x40,%rax
jmp    14c0 <LocusHistory+0x370>
fstp   %st(0)
jmp    1251 <LocusHistory+0x101>
fstp   %st(0)
mov    $0x12d,%eax
jmp    1251 <LocusHistory+0x101>
fstp   %st(0)
add    $0x1,%rax
jmp    1251 <LocusHistory+0x101>
fstp   %st(0)
add    $0x2,%rax
jmp    1251 <LocusHistory+0x101>
fstp   %st(0)
add    $0x3,%rax
jmp    1251 <LocusHistory+0x101>
fstp   %st(0)
jmp    157b <LocusHistory+0x42b>
fstp   %st(0)
mov    $0x12d,%ecx
jmp    1249 <LocusHistory+0xf9>
fstp   %st(0)
mov    $0x5dd,%r12d
jmp    157b <LocusHistory+0x42b>
fstp   %st(0)
add    $0x1,%rcx
jmp    1249 <LocusHistory+0xf9>
fstp   %st(0)
add    $0x1,%r12
jmp    157b <LocusHistory+0x42b>
fstp   %st(0)
add    $0x2,%rcx
jmp    1249 <LocusHistory+0xf9>
fstp   %st(0)
add    $0x2,%r12
jmp    157b <LocusHistory+0x42b>
fstp   %st(0)
add    $0x3,%rcx
jmp    1249 <LocusHistory+0xf9>
fstp   %st(0)
add    $0x3,%r12
xor    %eax,%eax
call   1070 <genrand_real3@plt>
flds   0xa88(%rip)
fxch   %st(1)
fucomip %st(1),%st
fstp   %st(0)
mov    0x0(%r13,%r15,8),%rax
jbe    159a <LocusHistory+0x44a>
add    %r12,%rax
jmp    159d <LocusHistory+0x44d>
sub    %r12,%rax
mov    0x10(%rsp),%r12
mov    0x18(%rsp),%rbx
jmp    1251 <LocusHistory+0x101>
nopl   0x0(%rax)
mov    0x160(%rsp),%rax
cmp    (%rax),%r12
je     15e0 <LocusHistory+0x490>
cmp    0x8(%rax),%r12
je     15e0 <LocusHistory+0x490>
cmp    0x10(%rax),%r12
je     15e0 <LocusHistory+0x490>
cmp    0x18(%rax),%r12
je     15e0 <LocusHistory+0x490>
cmp    0x20(%rax),%r12
je     15e0 <LocusHistory+0x490>
cmp    0x28(%rax),%r12
jne    160b <LocusHistory+0x4bb>
nopl   0x0(%rax,%rax,1)
lea    -0x1(%r14),%rax
mov    -0x8(%r13,%r14,8),%rcx
mov    %rcx,0x0(%r13,%r14,8)
shl    $0x4,%rax
fldt   0xa0(%rsp,%rax,1)
mov    %r14,%rax
shl    $0x4,%rax
fstpt  0xa0(%rsp,%rax,1)
add    $0x1,%r14
mov    %r12,%rax
movabs $0x5d4e8fb00bcbe61d,%rcx
8f 4e 5d
imul   %rcx,%rax
movabs $0xa7c5ac471b460,%rcx
add    %rcx,%rax
ror    $0x5,%rax
movabs $0xa7c5ac471b46,%rcx
cmp    %rcx,%rax
mov    0x178(%rsp),%r15
ja     1220 <LocusHistory+0xd0>
lea    0x9df(%rip),%rbx
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
test   %r14,%r14
je     11e9 <LocusHistory+0x99>
xor    %ebp,%ebp
lea    0x9c8(%rip),%rbx
xchg   %ax,%ax
mov    0x0(%r13,%rbp,8),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbp
cmp    %rbp,%r14
jne    1670 <LocusHistory+0x520>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x30(%rsp),%r12
mov    %r12,%rdi
lea    0x98d(%rip),%rsi
mov    0x10(%rsp),%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
test   %r14,%r14
je     1206 <LocusHistory+0xb6>
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    0x0(%r13,%rbp,8),%rdx
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x1,%rbp
cmp    %rbp,%r14
jne    16c0 <LocusHistory+0x570>
jmp    1206 <LocusHistory+0xb6>
test   %r14,%r14
je     1776 <LocusHistory+0x626>
xor    %ebx,%ebx
jmp    16f9 <LocusHistory+0x5a9>
nopl   (%rax)
add    $0x1,%rbx
cmp    %r14,%rbx
je     1776 <LocusHistory+0x626>
xor    %eax,%eax
call   1070 <genrand_real3@plt>
xorps  %xmm0,%xmm0
cvtsi2ssq 0x0(%r13,%rbx,8),%xmm0
divss  0x902(%rip),%xmm0
movss  %xmm0,0x28(%rsp)
flds   0x28(%rsp)
xor    %eax,%eax
fucomip %st(1),%st
fstp   %st(0)
seta   %al
mov    0x168(%rsp),%rcx
mov    %rax,(%rcx,%rbx,8)
movq   $0x0,(%r15,%rbx,8)
mov    $0xa2,%ebp
jmp    1746 <LocusHistory+0x5f6>
add    $0xffffffffffffffff,%rbp
je     16f0 <LocusHistory+0x5a0>
xor    %eax,%eax
call   1070 <genrand_real3@plt>
xorps  %xmm0,%xmm0
cvtsi2ssq 0x0(%r13,%rbx,8),%xmm0
divss  0x8b5(%rip),%xmm0
movss  %xmm0,0x24(%rsp)
flds   0x24(%rsp)
fucomip %st(1),%st
fstp   %st(0)
jbe    1740 <LocusHistory+0x5f0>
addq   $0x1,(%r15,%rbx,8)
jmp    1740 <LocusHistory+0x5f0>
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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