#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 size_t uint8_t;
typedef int /*<<< orphan*/ filename;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
double RAND_MAX;
int abs(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
unsigned int fwrite(int /*<<< orphan*/ *, int, unsigned int, size_t *);
int /*<<< orphan*/ printf(char *, ...);
double rand();
int /*<<< orphan*/ snprintf(char *, int, char *, unsigned int, unsigned int,
                            char *);
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ time_seed();
int main(int argc, char *argv[]) {
  unsigned combos = 3;
  unsigned buf_sizes[combos];
  buf_sizes[0] = 1024;
  buf_sizes[1] = 10240;
  buf_sizes[2] = 102400;
  unsigned buf_its[combos];
  buf_its[0] = 1000;
  buf_its[1] = 100;
  buf_its[2] = 10;
  unsigned syscalls = 0;
  int distribution[256];
  unsigned i;
  for (i = 0; i < 256; i++) {
    distribution[i] = 0;
  }
  srand(time_seed());
  unsigned combo;
  for (combo = 0; combo < combos; combo++) {
    printf("Buffer size: %u, its: %u, combo: %u\n", buf_sizes[combo],
           buf_its[combo], combo);
    uint8_t buf[buf_sizes[combo]];
    for (i = 0; i < buf_its[combo]; i++) {
      unsigned sysc_found = 0;
      unsigned j;
      for (j = 0; j < buf_sizes[combo]; j++) {
        buf[j] = (uint8_t)((rand() * (1.0 / (RAND_MAX + 1.0))) * 256);
        distribution[buf[j]]++;
        if (buf[j] == 0x80 && j > 0 && buf[j - 1] == 0xcd) {
          printf("%5u:%6u plaintext cd80 exists\n", i, j);
          syscalls++;
          sysc_found = 1;
        }
      }
      char filename[256];
      snprintf(filename, sizeof(filename), "randfill-%ukb:%u%s.rawshell",
               buf_sizes[combo], i, sysc_found ? "-cd80" : "");
      FILE *out;
      if ((out = fopen(filename, "w")) == NULL) {
        printf("error: couldn't open file %s\n", filename);
        exit(0);
      }
      if (fwrite(out, sizeof(uint8_t), buf_sizes[combo], buf) !=
          buf_sizes[combo]) {
        printf("error: didn't write properly to file %s\n", filename);
        exit(0);
      }
      fclose(out);
    }
  }
  unsigned totBytes = 0;
  for (combo = 0; combo < combos; combo++) {
    totBytes += buf_sizes[combo] * buf_its[combo];
  }
  unsigned totBytePairs = totBytes;
  for (combo = 0; combo < combos; combo++) {
    totBytePairs -= buf_its[combo];
  }
  unsigned test = 0;
  float syscall_rate = ((float)syscalls) / ((float)totBytePairs) * 100.0;
  float syscall_rate_th = 0.001526;
  printf("There were %u plan text syscalls or %f percent, %.02f perc of "
         "theoretical (%f)\n",
         syscalls, syscall_rate, syscall_rate / syscall_rate_th * 100.0,
         syscall_rate_th);
  printf("Distribution checker, if any beyond threshold, printed here: ",
         (int)totBytes / 256);
  for (i = 0; i < 256; i++) {
    distribution[i] = abs(distribution[i] - ((int)totBytes / 256));
    float percent_diff = (float)distribution[i] / (float)totBytes * 100.0;
    if (percent_diff > 1.0) {
      printf("%d:%f", distribution[i], percent_diff);
      test = 1;
    }
  }
  if (!test) {
    printf("None found, entire output is collectively uniformly random");
  }
  printf("\n");
  printf("Finished, exiting\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x5a0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x3,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%esi
mov    %rsp,%rax
mov    %rax,-0x20(%rbp)
lea    0xf(,%rsi,4),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rax
mov    %rax,%rdx
sub    %rcx,%rdx
mov    %rdx,-0x590(%rbp)
mov    %rdx,%rsp
mov    %rsi,-0x28(%rbp)
movl   $0x400,(%rdx)
movl   $0x2800,0x4(%rdx)
neg    %rcx
movl   $0x19000,0x8(%rax,%rcx,1)
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
lea    0xf(,%rcx,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rax
sub    %rdx,%rax
mov    %rax,-0x588(%rbp)
mov    %rax,%rsp
mov    %rcx,-0x30(%rbp)
movl   $0x3e8,(%rax)
movl   $0x64,0x4(%rax)
movl   $0xa,0x8(%rax)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x444(%rbp)
cmpl   $0x100,-0x444(%rbp)
jae    1286 <main+0xe6>
mov    -0x444(%rbp),%eax
movl   $0x0,-0x440(%rbp,%rax,4)
mov    -0x444(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x444(%rbp)
jmp    1251 <main+0xb1>
mov    $0x0,%al
call   1090 <time_seed@plt>
mov    %eax,%edi
call   1070 <srand@plt>
movl   $0x0,-0x448(%rbp)
mov    -0x448(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1599 <main+0x3f9>
mov    -0x590(%rbp),%rsi
mov    -0x588(%rbp),%rax
mov    -0x448(%rbp),%ecx
mov    %ecx,%edx
mov    %edx,%ecx
mov    (%rsi,%rdx,4),%esi
mov    (%rax,%rdx,4),%edx
lea    0xd52(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    -0x590(%rbp),%rax
mov    -0x448(%rbp),%ecx
mov    (%rax,%rcx,4),%eax
mov    %rsp,%rcx
mov    %rcx,-0x450(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x598(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x458(%rbp)
movl   $0x0,-0x444(%rbp)
mov    -0x588(%rbp),%rcx
mov    -0x444(%rbp),%eax
mov    -0x448(%rbp),%edx
cmp    (%rcx,%rdx,4),%eax
jae    157b <main+0x3db>
movl   $0x0,-0x45c(%rbp)
movl   $0x0,-0x460(%rbp)
mov    -0x590(%rbp),%rcx
mov    -0x460(%rbp),%eax
mov    -0x448(%rbp),%edx
cmp    (%rcx,%rdx,4),%eax
jae    1477 <main+0x2d7>
xor    %eax,%eax
call   10c0 <rand@plt>
mov    -0x598(%rbp),%rax
mov    0x2c67(%rip),%rcx
movsd  (%rcx),%xmm2
movsd  0xc7b(%rip),%xmm1
addsd  %xmm1,%xmm2
divsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  0xc6f(%rip),%xmm1
mulsd  %xmm1,%xmm0
movaps %xmm0,%xmm1
cvttsd2si %xmm1,%rdx
mov    %rdx,%rsi
sar    $0x3f,%rsi
movsd  0xc5c(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rcx
and    %rsi,%rcx
or     %rcx,%rdx
mov    -0x460(%rbp),%ecx
mov    %rdx,(%rax,%rcx,8)
mov    -0x460(%rbp),%ecx
mov    (%rax,%rcx,8),%rcx
mov    -0x440(%rbp,%rcx,4),%edx
add    $0x1,%edx
mov    %edx,-0x440(%rbp,%rcx,4)
mov    -0x460(%rbp),%ecx
cmpq   $0x80,(%rax,%rcx,8)
jne    145e <main+0x2be>
cmpl   $0x0,-0x460(%rbp)
jbe    145e <main+0x2be>
mov    -0x598(%rbp),%rax
mov    -0x460(%rbp),%ecx
sub    $0x1,%ecx
mov    %ecx,%ecx
cmpq   $0xcd,(%rax,%rcx,8)
jne    145e <main+0x2be>
mov    -0x444(%rbp),%esi
mov    -0x460(%rbp),%edx
lea    0xc05(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
movl   $0x1,-0x45c(%rbp)
jmp    1463 <main+0x2c3>
mov    -0x460(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x460(%rbp)
jmp    1350 <main+0x1b0>
mov    -0x590(%rbp),%rax
lea    -0x560(%rbp),%rdi
mov    -0x448(%rbp),%ecx
mov    (%rax,%rcx,4),%ecx
mov    -0x444(%rbp),%r8d
mov    -0x45c(%rbp),%edx
lea    0xc80(%rip),%r9
lea    0xbdb(%rip),%rax
cmp    $0x0,%edx
cmovne %rax,%r9
mov    $0x100,%esi
lea    0xbac(%rip),%rdx
call   1060 <snprintf@plt>
lea    -0x560(%rbp),%rdi
lea    0xbbb(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x568(%rbp)
cmp    $0x0,%rax
jne    1501 <main+0x361>
lea    -0x560(%rbp),%rsi
lea    0xb99(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    -0x590(%rbp),%rax
mov    -0x598(%rbp),%rcx
mov    -0x568(%rbp),%rdi
mov    -0x448(%rbp),%edx
mov    (%rax,%rdx,4),%edx
mov    $0x8,%esi
call   10b0 <fwrite@plt>
mov    -0x590(%rbp),%rcx
mov    -0x448(%rbp),%edx
cmp    (%rcx,%rdx,4),%eax
je     155b <main+0x3bb>
lea    -0x560(%rbp),%rsi
lea    0xb5d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    -0x568(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x444(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x444(%rbp)
jmp    1320 <main+0x180>
mov    -0x450(%rbp),%rax
mov    %rax,%rsp
mov    -0x448(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x448(%rbp)
jmp    129e <main+0xfe>
movl   $0x0,-0x56c(%rbp)
movl   $0x0,-0x448(%rbp)
mov    -0x448(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    15fd <main+0x45d>
mov    -0x588(%rbp),%rcx
mov    -0x590(%rbp),%rax
mov    -0x448(%rbp),%edx
mov    (%rax,%rdx,4),%eax
mov    -0x448(%rbp),%edx
imul   (%rcx,%rdx,4),%eax
add    -0x56c(%rbp),%eax
mov    %eax,-0x56c(%rbp)
mov    -0x448(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x448(%rbp)
jmp    15ad <main+0x40d>
mov    -0x56c(%rbp),%eax
mov    %eax,-0x570(%rbp)
movl   $0x0,-0x448(%rbp)
mov    -0x448(%rbp),%eax
cmp    -0x14(%rbp),%eax
jae    1654 <main+0x4b4>
mov    -0x588(%rbp),%rax
mov    -0x448(%rbp),%ecx
mov    (%rax,%rcx,4),%ecx
mov    -0x570(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x570(%rbp)
mov    -0x448(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x448(%rbp)
jmp    1613 <main+0x473>
movl   $0x0,-0x574(%rbp)
mov    -0x34(%rbp),%eax
cvtsi2ss %rax,%xmm0
mov    -0x570(%rbp),%eax
cvtsi2ss %rax,%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0x97f(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x578(%rbp)
ff
movss  0x987(%rip),%xmm0
movss  %xmm0,-0x57c(%rbp)
ff
mov    -0x34(%rbp),%esi
movss  -0x578(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movss  -0x578(%rbp),%xmm1
ff
divss  -0x57c(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
movsd  0x934(%rip),%xmm2
mulsd  %xmm2,%xmm1
movss  -0x57c(%rbp),%xmm2
ff
cvtss2sd %xmm2,%xmm2
lea    0x9f0(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
mov    -0x56c(%rbp),%eax
mov    $0x100,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
lea    0xa22(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x444(%rbp)
cmpl   $0x100,-0x444(%rbp)
jae    17fd <main+0x65d>
mov    -0x444(%rbp),%eax
mov    -0x440(%rbp,%rax,4),%edi
mov    -0x56c(%rbp),%eax
mov    %eax,%ecx
add    $0xff,%ecx
test   %eax,%eax
cmovs  %ecx,%eax
sar    $0x8,%eax
sub    %eax,%edi
call   1030 <abs@plt>
mov    %eax,%ecx
mov    -0x444(%rbp),%eax
mov    %ecx,-0x440(%rbp,%rax,4)
mov    -0x444(%rbp),%eax
cvtsi2ssl -0x440(%rbp,%rax,4),%xmm0
ff ff
mov    -0x56c(%rbp),%eax
cvtsi2ss %rax,%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0x87b(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x580(%rbp)
ff
movss  -0x580(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0x85f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    17e4 <main+0x644>
mov    -0x444(%rbp),%eax
mov    -0x440(%rbp,%rax,4),%esi
movss  -0x580(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0x98e(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movl   $0x1,-0x574(%rbp)
jmp    17e9 <main+0x649>
mov    -0x444(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x444(%rbp)
jmp    1712 <main+0x572>
cmpl   $0x0,-0x574(%rbp)
jne    1818 <main+0x678>
lea    0x956(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0x902(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0x975(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x538,%rsp
movabs $0x280000000400,%rax
mov    %rax,-0x50(%rbp)
movl   $0x19000,-0x48(%rbp)
movabs $0x64000003e8,%rax
mov    %rax,-0x40(%rbp)
movl   $0xa,-0x38(%rbp)
lea    -0x560(%rbp),%rdi
mov    $0x400,%edx
xor    %esi,%esi
call   1080 <memset@plt>
xor    %eax,%eax
call   10b0 <time_seed@plt>
mov    %eax,%edi
call   1090 <srand@plt>
mov    $0x400,%r14d
mov    $0x3e8,%ebx
xor    %ecx,%ecx
movl   $0x0,-0x2c(%rbp)
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0xdf5(%rip),%rdi
mov    %r14d,%esi
mov    %ebx,%edx
mov    %rcx,-0x60(%rbp)
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,-0x58(%rbp)
mov    %r14d,%r13d
mov    %rsp,%r12
lea    0xf(,%r13,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
test   %ebx,%ebx
je     13d3 <main+0x213>
mov    %ebx,%r14d
xor    %r15d,%r15d
mov    %ebx,-0x30(%rbp)
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
test   %r13,%r13
je     135f <main+0x19f>
xor    %r14d,%r14d
xor    %ebx,%ebx
jmp    12ad <main+0xed>
add    $0x1,%r14
cmp    %r14,%r13
je     1350 <main+0x190>
xor    %eax,%eax
call   10e0 <rand@plt>
mov    0x2d2d(%rip),%rax
movsd  (%rax),%xmm1
movsd  0xd39(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
mulsd  0xd2d(%rip),%xmm2
cvttsd2si %xmm2,%rax
mov    %rax,%rcx
subsd  0xd25(%rip),%xmm2
cvttsd2si %xmm2,%rdx
sar    $0x3f,%rcx
and    %rcx,%rdx
or     %rax,%rdx
mov    %rdx,(%r12,%r14,8)
addl   $0x1,-0x560(%rbp,%rdx,4)
01
cmp    $0x80,%rdx
jne    12a0 <main+0xe0>
test   %r14,%r14
je     12a0 <main+0xe0>
cmpq   $0xcd,-0x8(%r12,%r14,8)
jne    12a0 <main+0xe0>
lea    0xd3b(%rip),%rdi
mov    %r15d,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1060 <printf@plt>
addl   $0x1,-0x2c(%rbp)
mov    $0x1,%ebx
jmp    12a0 <main+0xe0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xd45(%rip),%r9
test   %ebx,%ebx
mov    -0x30(%rbp),%r14d
jne    1366 <main+0x1a6>
lea    0xdd4(%rip),%r9
lea    -0x160(%rbp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
lea    0xd04(%rip),%rdx
mov    %r13d,%ecx
mov    %r15d,%r8d
call   1070 <snprintf@plt>
mov    %rbx,%rdi
lea    0xd11(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     1540 <main+0x380>
mov    %rax,%rbx
mov    %rax,%rdi
mov    $0x8,%esi
mov    %r13d,%edx
mov    %r12,%rcx
call   10d0 <fwrite@plt>
cmp    %r13d,%eax
jne    1549 <main+0x389>
mov    %rbx,%rdi
call   1050 <fclose@plt>
add    $0x1,%r15d
cmp    %r14d,%r15d
jne    1290 <main+0xd0>
mov    -0x58(%rbp),%rsp
mov    -0x60(%rbp),%rcx
add    $0x1,%rcx
cmp    $0x3,%rcx
je     13f3 <main+0x233>
mov    -0x50(%rbp,%rcx,4),%r14d
mov    -0x40(%rbp,%rcx,4),%ebx
jmp    1240 <main+0x80>
mov    -0x2c(%rbp),%esi
mov    %esi,%eax
xorps  %xmm1,%xmm1
cvtsi2ss %rax,%xmm1
divss  0xc20(%rip),%xmm1
mulss  0xc1c(%rip),%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
divss  0xc11(%rip),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  0xbed(%rip),%xmm1
lea    0xcb9(%rip),%rdi
movsd  0xbe6(%rip),%xmm2
mov    $0x3,%al
call   1060 <printf@plt>
lea    0xcf3(%rip),%rdi
xor    %ebx,%ebx
mov    $0x2ee0,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%al
mov    $0xffffd120,%r15d
movss  0xbce(%rip),%xmm1
movss  0xbbe(%rip),%xmm2
movss  0xbc2(%rip),%xmm3
lea    0xcfc(%rip),%r14
add    $0x1,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    -0x564(%rbp,%rbx,4),%ecx
add    %r15d,%ecx
mov    %ecx,%esi
neg    %esi
cmovs  %ecx,%esi
mov    %esi,-0x564(%rbp,%rbx,4)
xorps  %xmm0,%xmm0
cvtsi2ss %esi,%xmm0
divss  %xmm1,%xmm0
mulss  %xmm2,%xmm0
ucomiss %xmm3,%xmm0
ja     14d0 <main+0x310>
add    $0x1,%rbx
cmp    $0x101,%rbx
jne    1490 <main+0x2d0>
jmp    1507 <main+0x347>
nopl   0x0(%rax,%rax,1)
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movss  0xb52(%rip),%xmm3
movss  0xb3e(%rip),%xmm2
movss  0xb3e(%rip),%xmm1
xor    %eax,%eax
cmp    $0x100,%rbx
jne    147d <main+0x2bd>
jmp    1519 <main+0x359>
test   $0x1,%al
je     1519 <main+0x359>
lea    0xc6d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xc90(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xb5d(%rip),%rdi
jmp    1550 <main+0x390>
lea    0xb72(%rip),%rdi
lea    -0x160(%rbp),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %edi,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@.str = [37 x i8] c"Buffer size: %u, its: %u, combo: %u\0A\00"
@RAND_MAX = global double 0.000000e+00
@.str.1 = [31 x i8] c"%5u:%6u plaintext cd80 exists\0A\00"
@.str.2 = [28 x i8] c"randfill-%ukb:%u%s.rawshell\00"
@.str.3 = [6 x i8] c"-cd80\00"
@.str.4 = [1 x i8] zeroinitializer
@.str.5 = [2 x i8] c"w\00"
@.str.6 = [30 x i8] c"error: couldn't open file %s\0A\00"
@.str.7 = [41 x i8] c"error: didn't write properly to file %s\0A\00"
@.str.8 = [80 x i8] c"There were %u plan text syscalls or %f percent, %.02f perc of theoretical (%f)\0A\00"
@.str.9 = [62 x i8] c"Distribution checker, if any beyond threshold, printed here: \00"
@.str.10 = [6 x i8] c"%d:%f\00"
@.str.11 = [59 x i8] c"None found, entire output is collectively uniformly random\00"
@.str.12 = [2 x i8] c"\0A\00"
@.str.13 = [19 x i8] c"Finished, exiting\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i64
%10 = alloca i32
%11 = alloca [256 x i32]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i64
%16 = alloca i32
%17 = alloca i32
%18 = alloca [256 x i8]
%19 = alloca i32*
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca float
%24 = alloca float
%25 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 3, i32* %6
%26 = load i32, i32* %6
%27 = zext i32 %26 to i64
%28 = call i8* @llvm.stacksave()
store i8* %28, i8** %7
%29 = alloca i32, i64 %27
store i64 %27, i64* %8
%30 = getelementptr inbounds i32, i32* %29, i64 0
store i32 1024, i32* %30
%31 = getelementptr inbounds i32, i32* %29, i64 1
store i32 10240, i32* %31
%32 = getelementptr inbounds i32, i32* %29, i64 2
store i32 102400, i32* %32
%33 = load i32, i32* %6
%34 = zext i32 %33 to i64
%35 = alloca i32, i64 %34
store i64 %34, i64* %9
%36 = getelementptr inbounds i32, i32* %35, i64 0
store i32 1000, i32* %36
%37 = getelementptr inbounds i32, i32* %35, i64 1
store i32 100, i32* %37
%38 = getelementptr inbounds i32, i32* %35, i64 2
store i32 10, i32* %38
store i32 0, i32* %10
store i32 0, i32* %12
br label %39
39: ; preds = %46, %2
%40 = load i32, i32* %12
%41 = icmp ult i32 %40, 256
br i1 %41, label %42, label %49
42: ; preds = %39
%43 = load i32, i32* %12
%44 = zext i32 %43 to i64
%45 = getelementptr inbounds [256 x i32], [256 x i32]* %11, i64 0, i64 %44
store i32 0, i32* %45
br label %46
46: ; preds = %42
%47 = load i32, i32* %12
%48 = add i32 %47, 1
store i32 %48, i32* %12
br label %39
49: ; preds = %39
%50 = call i32 (...) @time_seed()
%51 = call i32 @srand(i32 %50)
store i32 0, i32* %13
br label %52
52: ; preds = %175, %49
%53 = load i32, i32* %13
%54 = load i32, i32* %6
%55 = icmp ult i32 %53, %54
br i1 %55, label %56, label %178
56: ; preds = %52
%57 = load i32, i32* %13
%58 = zext i32 %57 to i64
%59 = getelementptr inbounds i32, i32* %29, i64 %58
%60 = load i32, i32* %59
%61 = load i32, i32* %13
%62 = zext i32 %61 to i64
%63 = getelementptr inbounds i32, i32* %35, i64 %62
%64 = load i32, i32* %63
%65 = load i32, i32* %13
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %60, i32 %64, i32 %65)
%67 = load i32, i32* %13
%68 = zext i32 %67 to i64
%69 = getelementptr inbounds i32, i32* %29, i64 %68
%70 = load i32, i32* %69
%71 = zext i32 %70 to i64
%72 = call i8* @llvm.stacksave()
store i8* %72, i8** %14
%73 = alloca i64, i64 %71
store i64 %71, i64* %15
store i32 0, i32* %12
br label %74
74: ; preds = %170, %56
%75 = load i32, i32* %12
%76 = load i32, i32* %13
%77 = zext i32 %76 to i64
%78 = getelementptr inbounds i32, i32* %35, i64 %77
%79 = load i32, i32* %78
%80 = icmp ult i32 %75, %79
br i1 %80, label %81, label %173
81: ; preds = %74
store i32 0, i32* %16
store i32 0, i32* %17
br label %82
82: ; preds = %129, %81
%83 = load i32, i32* %17
%84 = load i32, i32* %13
%85 = zext i32 %84 to i64
%86 = getelementptr inbounds i32, i32* %29, i64 %85
%87 = load i32, i32* %86
%88 = icmp ult i32 %83, %87
br i1 %88, label %89, label %132
89: ; preds = %82
%90 = call double (...) @rand()
%91 = load double, double* @RAND_MAX
%92 = fadd double %91, 1.000000e+00
%93 = fdiv double 1.000000e+00, %92
%94 = fmul double %90, %93
%95 = fmul double %94, 2.560000e+02
%96 = fptoui double %95 to i64
%97 = load i32, i32* %17
%98 = zext i32 %97 to i64
%99 = getelementptr inbounds i64, i64* %73, i64 %98
store i64 %96, i64* %99
%100 = load i32, i32* %17
%101 = zext i32 %100 to i64
%102 = getelementptr inbounds i64, i64* %73, i64 %101
%103 = load i64, i64* %102
%104 = getelementptr inbounds [256 x i32], [256 x i32]* %11, i64 0, i64 %103
%105 = load i32, i32* %104
%106 = add nsw i32 %105, 1
store i32 %106, i32* %104
%107 = load i32, i32* %17
%108 = zext i32 %107 to i64
%109 = getelementptr inbounds i64, i64* %73, i64 %108
%110 = load i64, i64* %109
%111 = icmp eq i64 %110, 128
br i1 %111, label %112, label %128
112: ; preds = %89
%113 = load i32, i32* %17
%114 = icmp ugt i32 %113, 0
br i1 %114, label %115, label %128
115: ; preds = %112
%116 = load i32, i32* %17
%117 = sub i32 %116, 1
%118 = zext i32 %117 to i64
%119 = getelementptr inbounds i64, i64* %73, i64 %118
%120 = load i64, i64* %119
%121 = icmp eq i64 %120, 205
br i1 %121, label %122, label %128
122: ; preds = %115
%123 = load i32, i32* %12
%124 = load i32, i32* %17
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %123, i32 %124)
%126 = load i32, i32* %10
%127 = add i32 %126, 1
store i32 %127, i32* %10
store i32 1, i32* %16
br label %128
128: ; preds = %122, %115, %112, %89
br label %129
129: ; preds = %128
%130 = load i32, i32* %17
%131 = add i32 %130, 1
store i32 %131, i32* %17
br label %82
132: ; preds = %82
%133 = getelementptr inbounds [256 x i8], [256 x i8]* %18, i64 0, i64 0
%134 = load i32, i32* %13
%135 = zext i32 %134 to i64
%136 = getelementptr inbounds i32, i32* %29, i64 %135
%137 = load i32, i32* %136
%138 = load i32, i32* %12
%139 = load i32, i32* %16
%140 = icmp ne i32 %139, 0
%141 = zext i1 %140 to i64
%142 = select i1 %140, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%143 = call i32 @snprintf(i8* %133, i32 256, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %137, i32 %138, i8* %142)
%144 = getelementptr inbounds [256 x i8], [256 x i8]* %18, i64 0, i64 0
%145 = call i32* @fopen(i8* %144, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %145, i32** %19
%146 = icmp eq i32* %145, null
br i1 %146, label %147, label %151
147: ; preds = %132
%148 = getelementptr inbounds [256 x i8], [256 x i8]* %18, i64 0, i64 0
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %148)
%150 = call i32 @exit(i32 0)
unreachable
151: ; preds = %132
%152 = load i32*, i32** %19
%153 = load i32, i32* %13
%154 = zext i32 %153 to i64
%155 = getelementptr inbounds i32, i32* %29, i64 %154
%156 = load i32, i32* %155
%157 = call i32 @fwrite(i32* %152, i32 8, i32 %156, i64* %73)
%158 = load i32, i32* %13
%159 = zext i32 %158 to i64
%160 = getelementptr inbounds i32, i32* %29, i64 %159
%161 = load i32, i32* %160
%162 = icmp ne i32 %157, %161
br i1 %162, label %163, label %167
163: ; preds = %151
%164 = getelementptr inbounds [256 x i8], [256 x i8]* %18, i64 0, i64 0
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0), i8* %164)
%166 = call i32 @exit(i32 0)
unreachable
167: ; preds = %151
%168 = load i32*, i32** %19
%169 = call i32 @fclose(i32* %168)
br label %170
170: ; preds = %167
%171 = load i32, i32* %12
%172 = add i32 %171, 1
store i32 %172, i32* %12
br label %74
173: ; preds = %74
%174 = load i8*, i8** %14
br label %175
175: ; preds = %173
%176 = load i32, i32* %13
%177 = add i32 %176, 1
store i32 %177, i32* %13
br label %52
178: ; preds = %52
store i32 0, i32* %20
store i32 0, i32* %13
br label %179
179: ; preds = %195, %178
%180 = load i32, i32* %13
%181 = load i32, i32* %6
%182 = icmp ult i32 %180, %181
br i1 %182, label %183, label %198
183: ; preds = %179
%184 = load i32, i32* %13
%185 = zext i32 %184 to i64
%186 = getelementptr inbounds i32, i32* %29, i64 %185
%187 = load i32, i32* %186
%188 = load i32, i32* %13
%189 = zext i32 %188 to i64
%190 = getelementptr inbounds i32, i32* %35, i64 %189
%191 = load i32, i32* %190
%192 = mul i32 %187, %191
%193 = load i32, i32* %20
%194 = add i32 %193, %192
store i32 %194, i32* %20
br label %195
195: ; preds = %183
%196 = load i32, i32* %13
%197 = add i32 %196, 1
store i32 %197, i32* %13
br label %179
198: ; preds = %179
%199 = load i32, i32* %20
store i32 %199, i32* %21
store i32 0, i32* %13
br label %200
200: ; preds = %211, %198
%201 = load i32, i32* %13
%202 = load i32, i32* %6
%203 = icmp ult i32 %201, %202
br i1 %203, label %204, label %214
204: ; preds = %200
%205 = load i32, i32* %13
%206 = zext i32 %205 to i64
%207 = getelementptr inbounds i32, i32* %35, i64 %206
%208 = load i32, i32* %207
%209 = load i32, i32* %21
%210 = sub i32 %209, %208
store i32 %210, i32* %21
br label %211
211: ; preds = %204
%212 = load i32, i32* %13
%213 = add i32 %212, 1
store i32 %213, i32* %13
br label %200
214: ; preds = %200
store i32 0, i32* %22
%215 = load i32, i32* %10
%216 = uitofp i32 %215 to float
%217 = load i32, i32* %21
%218 = uitofp i32 %217 to float
%219 = fdiv float %216, %218
%220 = fpext float %219 to double
%221 = fmul double %220, 1.000000e+02
%222 = fptrunc double %221 to float
store float %222, float* %23
store float 0x3F59008200000000, float* %24
%223 = load i32, i32* %10
%224 = load float, float* %23
%225 = fpext float %224 to double
%226 = load float, float* %23
%227 = load float, float* %24
%228 = fdiv float %226, %227
%229 = fpext float %228 to double
%230 = fmul double %229, 1.000000e+02
%231 = load float, float* %24
%232 = fpext float %231 to double
%233 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.8, i64 0, i64 0), i32 %223, double %225, double %230, double %232)
%234 = load i32, i32* %20
%235 = sdiv i32 %234, 256
%236 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0), i32 %235)
store i32 0, i32* %12
br label %237
237: ; preds = %275, %214
%238 = load i32, i32* %12
%239 = icmp ult i32 %238, 256
br i1 %239, label %240, label %278
240: ; preds = %237
%241 = load i32, i32* %12
%242 = zext i32 %241 to i64
%243 = getelementptr inbounds [256 x i32], [256 x i32]* %11, i64 0, i64 %242
%244 = load i32, i32* %243
%245 = load i32, i32* %20
%246 = sdiv i32 %245, 256
%247 = sub nsw i32 %244, %246
%248 = call i32 @abs(i32 %247)
%249 = load i32, i32* %12
%250 = zext i32 %249 to i64
%251 = getelementptr inbounds [256 x i32], [256 x i32]* %11, i64 0, i64 %250
store i32 %248, i32* %251
%252 = load i32, i32* %12
%253 = zext i32 %252 to i64
%254 = getelementptr inbounds [256 x i32], [256 x i32]* %11, i64 0, i64 %253
%255 = load i32, i32* %254
%256 = sitofp i32 %255 to float
%257 = load i32, i32* %20
%258 = uitofp i32 %257 to float
%259 = fdiv float %256, %258
%260 = fpext float %259 to double
%261 = fmul double %260, 1.000000e+02
%262 = fptrunc double %261 to float
store float %262, float* %25
%263 = load float, float* %25
%264 = fpext float %263 to double
%265 = fcmp ogt double %264, 1.000000e+00
br i1 %265, label %266, label %274
266: ; preds = %240
%267 = load i32, i32* %12
%268 = zext i32 %267 to i64
%269 = getelementptr inbounds [256 x i32], [256 x i32]* %11, i64 0, i64 %268
%270 = load i32, i32* %269
%271 = load float, float* %25
%272 = fpext float %271 to double
%273 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %270, double %272)
store i32 1, i32* %22
br label %274
274: ; preds = %266, %240
br label %275
275: ; preds = %274
%276 = load i32, i32* %12
%277 = add i32 %276, 1
store i32 %277, i32* %12
br label %237
278: ; preds = %237
%279 = load i32, i32* %22
%280 = icmp ne i32 %279, 0
br i1 %280, label %283, label %281
281: ; preds = %278
%282 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.11, i64 0, i64 0))
br label %283
283: ; preds = %281, %278
%284 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%285 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0))
store i32 0, i32* %3
%286 = load i8*, i8** %7
%287 = load i32, i32* %3
ret i32 %287
}

LLVM IR (-O2):
@.str = [37 x i8] c"Buffer size: %u, its: %u, combo: %u\0A\00"
@RAND_MAX = global double 0.000000e+00
@.str.1 = [31 x i8] c"%5u:%6u plaintext cd80 exists\0A\00"
@.str.2 = [28 x i8] c"randfill-%ukb:%u%s.rawshell\00"
@.str.3 = [6 x i8] c"-cd80\00"
@.str.4 = [1 x i8] zeroinitializer
@.str.5 = [2 x i8] c"w\00"
@.str.6 = [30 x i8] c"error: couldn't open file %s\0A\00"
@.str.7 = [41 x i8] c"error: didn't write properly to file %s\0A\00"
@.str.8 = [80 x i8] c"There were %u plan text syscalls or %f percent, %.02f perc of theoretical (%f)\0A\00"
@.str.9 = [62 x i8] c"Distribution checker, if any beyond threshold, printed here: \00"
@.str.10 = [6 x i8] c"%d:%f\00"
@.str.11 = [59 x i8] c"None found, entire output is collectively uniformly random\00"
@str = [18 x i8] c"Finished, exiting\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [256 x i32]
%4 = bitcast [256 x i32]* %3 to i8*
%5 = alloca [256 x i8]
%6 = alloca [3 x i32]
%7 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 0
store i32 1024, i32* %7
%8 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 1
store i32 10240, i32* %8
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 2
store i32 102400, i32* %9
%10 = alloca [3 x i32]
%11 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 0
store i32 1000, i32* %11
%12 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 1
store i32 100, i32* %12
%13 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 2
store i32 10, i32* %13
%14 = tail call i32 (...) @time_seed()
%15 = tail call i32 @srand(i32 %14)
%16 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
br label %30
17: ; preds = %102
%18 = uitofp i32 %103 to float
%19 = fdiv float %18, 3.070890e+06
%20 = fmul float %19, 1.000000e+02
%21 = fpext float %20 to double
%22 = fdiv float %20, 0x3F59008200000000
%23 = fpext float %22 to double
%24 = fmul double %23, 1.000000e+02
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @.str.8, i64 0, i64 0), i32 %103, double %21, double %24, double 0x3F59008200000000)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.9, i64 0, i64 0), i32 12000)
br label %27
27: ; preds = %124, %17
%28 = phi i64 [ %127, %124 ], [ 0, %17 ]
%29 = phi i1 [ false, %124 ], [ true, %17 ]
br label %111
30: ; preds = %106, %2
%31 = phi i32 [ 1000, %2 ], [ %110, %106 ]
%32 = phi i32 [ 1024, %2 ], [ %108, %106 ]
%33 = phi i64 [ 0, %2 ], [ %104, %106 ]
%34 = phi i32 [ 0, %2 ], [ %103, %106 ]
%35 = trunc i64 %33 to i32
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %32, i32 %31, i32 %35)
%37 = zext i32 %32 to i64
%38 = call i8* @llvm.stacksave()
%39 = alloca i64, i64 %37
%40 = icmp eq i32 %31, 0
br i1 %40, label %102, label %41
41: ; preds = %30
%42 = icmp eq i32 %32, 0
br label %43
43: ; preds = %41, %98
%44 = phi i32 [ %34, %41 ], [ %84, %98 ]
%45 = phi i32 [ 0, %41 ], [ %100, %98 ]
br i1 %42, label %46, label %47
46: ; preds = %43
br label %81
47: ; preds = %43, %74
%48 = phi i64 [ %77, %74 ], [ 0, %43 ]
%49 = phi i32 [ %76, %74 ], [ %44, %43 ]
%50 = phi i32 [ %75, %74 ], [ 0, %43 ]
%51 = call double (...) @rand()
%52 = load double, double* @RAND_MAX
%53 = fadd double %52, 1.000000e+00
%54 = fdiv double 1.000000e+00, %53
%55 = fmul double %51, %54
%56 = fmul double %55, 2.560000e+02
%57 = fptoui double %56 to i64
%58 = getelementptr inbounds i64, i64* %39, i64 %48
store i64 %57, i64* %58
%59 = getelementptr inbounds [256 x i32], [256 x i32]* %3, i64 0, i64 %57
%60 = load i32, i32* %59
%61 = add nsw i32 %60, 1
store i32 %61, i32* %59
%62 = icmp eq i64 %57, 128
%63 = icmp ne i64 %48, 0
%64 = select i1 %62, i1 %63, i1 false
br i1 %64, label %65, label %74
65: ; preds = %47
%66 = add nsw i64 %48, -1
%67 = getelementptr inbounds i64, i64* %39, i64 %66
%68 = load i64, i64* %67
%69 = icmp eq i64 %68, 205
br i1 %69, label %70, label %74
70: ; preds = %65
%71 = trunc i64 %48 to i32
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %45, i32 %71)
%73 = add i32 %49, 1
br label %74
74: ; preds = %47, %65, %70
%75 = phi i32 [ 1, %70 ], [ %50, %65 ], [ %50, %47 ]
%76 = phi i32 [ %73, %70 ], [ %49, %65 ], [ %49, %47 ]
%77 = add nuw nsw i64 %48, 1
%78 = icmp eq i64 %77, %37
br i1 %78, label %79, label %47
79: ; preds = %74
%80 = icmp eq i32 %75, 0
br i1 %80, label %81, label %83
81: ; preds = %46, %79
%82 = phi i32 [ %44, %46 ], [ %76, %79 ]
br label %83
83: ; preds = %79, %81
%84 = phi i32 [ %82, %81 ], [ %76, %79 ]
%85 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), %81 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), %79 ]
%86 = call i32 @snprintf(i8* %16, i32 256, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i32 %32, i32 %45, i8* %85)
%87 = call i32* @fopen(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%88 = icmp eq i32* %87, null
br i1 %88, label %89, label %92
89: ; preds = %83
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %16)
%91 = call i32 @exit(i32 0)
unreachable
92: ; preds = %83
%93 = call i32 @fwrite(i32* %87, i32 8, i32 %32, i64* %39)
%94 = icmp eq i32 %93, %32
br i1 %94, label %98, label %95
95: ; preds = %92
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0), i8* %16)
%97 = call i32 @exit(i32 0)
unreachable
98: ; preds = %92
%99 = call i32 @fclose(i32* %87)
%100 = add nuw i32 %45, 1
%101 = icmp eq i32 %100, %31
br i1 %101, label %102, label %43
102: ; preds = %98, %30
%103 = phi i32 [ %34, %30 ], [ %84, %98 ]
%104 = add nuw nsw i64 %33, 1
%105 = icmp eq i64 %104, 3
br i1 %105, label %17, label %106
106: ; preds = %102
%107 = getelementptr inbounds [3 x i32], [3 x i32]* %6, i64 0, i64 %104
%108 = load i32, i32* %107
%109 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 %104
%110 = load i32, i32* %109
br label %30
111: ; preds = %27, %121
%112 = phi i64 [ %122, %121 ], [ %28, %27 ]
%113 = getelementptr inbounds [256 x i32], [256 x i32]* %3, i64 0, i64 %112
%114 = load i32, i32* %113
%115 = add nsw i32 %114, -12000
%116 = call i32 @llvm.abs.i32(i32 %115, i1 true)
store i32 %116, i32* %113
%117 = sitofp i32 %116 to float
%118 = fdiv float %117, 3.072000e+06
%119 = fmul float %118, 1.000000e+02
%120 = fcmp ogt float %119, 1.000000e+00
br i1 %120, label %124, label %121
121: ; preds = %111
%122 = add nuw nsw i64 %112, 1
%123 = icmp eq i64 %122, 256
br i1 %123, label %129, label %111
124: ; preds = %111
%125 = fpext float %119 to double
%126 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i32 %116, double %125)
%127 = add nuw nsw i64 %112, 1
%128 = icmp eq i64 %127, 256
br i1 %128, label %132, label %27
129: ; preds = %121
br i1 %29, label %130, label %132
130: ; preds = %129
%131 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.11, i64 0, i64 0))
br label %132
132: ; preds = %124, %130, %129
%133 = call i32 @putchar(i32 10)
%134 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
ret i32 0
}