#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*/ WINDOW;

/* Variables and functions */
int /*<<< orphan*/ TRUE;
int /*<<< orphan*/ cbreak();
int /*<<< orphan*/ curs_set(int /*<<< orphan*/);
int /*<<< orphan*/ delwin(int /*<<< orphan*/ *);
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ getmaxyx(int /*<<< orphan*/, int, int);
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ keypad(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ mvwprintw(int /*<<< orphan*/ *, int, int, char *, ...);
int /*<<< orphan*/ *newwin(int, int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ noecho();
int rand();
int /*<<< orphan*/ srand(unsigned int);
int /*<<< orphan*/ stdscr;
int /*<<< orphan*/ system(char *);
scalar_t__ time(int /*<<< orphan*/ *);
int /*<<< orphan*/ wclear(int /*<<< orphan*/ *);
int wgetch(int /*<<< orphan*/ *);
int /*<<< orphan*/ wrefresh(int /*<<< orphan*/ *);
int main(void) {
  WINDOW *win1;
  int x, y, i, j, k;
  int xidx;
  float xmu[3500] = {}, xvar[3500] = {}, deltamu[3500] = {},
        deltavar[3500] = {};
  float ymu[3500] = {}, yvar[3500] = {};
  int xrnd[3500] = {};
  int xused[3500] = {};
  int scnarr[35][100] = {};
  int slowness = 50;
  initscr();
  cbreak();
  keypad(stdscr, TRUE);
  noecho();
  curs_set(0);
  getmaxyx(stdscr, y, x);
  srand((unsigned)(int)time(NULL));
  win1 = newwin(y, x, 0, 0);
  for (i = 0; i < 3500; i++) {
    xrnd[i] = rand() % 100;
  }
  for (i = 0; i < 3500; i++) {
    if (scnarr[0][xrnd[i]] == 1)
      break;
    for (j = 34; j >= 0; j--) {
      if (scnarr[j][xrnd[i]] != 1) {
        for (k = 0; k <= j; k++) {
          if (k > 0)
            mvwprintw(win1, k - 1, xrnd[i], " ");
          mvwprintw(win1, k, xrnd[i], "O");
          wrefresh(win1);
        }
        scnarr[j][xrnd[i]] = 1;
        break;
      }
    }
    xidx = i;
    ymu[i] = (float)i / 100;
  }
  wgetch(win1);
  wclear(win1);
  wrefresh(win1);
  while (1) {
    k = wgetch(win1);
    if (k == 27) {
      k = wgetch(win1);
      k = wgetch(win1);
      if (k / 10 == 5)
        wgetch(win1);
    }
    if (k == 68) {
      wclear(win1);
      for (i = 0; i < 100; i++) {
        for (j = 34; j >= 0; j--) {
          if (scnarr[j][i] == 1)
            mvwprintw(win1, j, i, "O");
        }
      }
      wrefresh(win1);
    } else if (k == 67) {
      wclear(win1);
      mvwprintw(win1, 10, 10, " xidx= %d", xidx);
      mvwprintw(win1, 11, 10, " ymu = %f", ymu[xidx]);
      mvwprintw(win1, 13, 10, " ymu[0:1500](by 100's): ");
      for (i = 0; i < 15; i++) {
        mvwprintw(win1, 14, i * 6, "%.2f", ymu[i * 100]);
      }
      wrefresh(win1);
    } else if (k == 10) {
      delwin(win1);
      endwin();
      system("clear");
      break;
    }
  }
  return k;
  delwin(win1);
  endwin();
  system("clear");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1ec70,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x36e0(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   1090 <memset@plt>
lea    -0x6d90(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   1090 <memset@plt>
lea    -0xa440(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   1090 <memset@plt>
lea    -0xdaf0(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   1090 <memset@plt>
lea    -0x111a0(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   1090 <memset@plt>
lea    -0x14850(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   1090 <memset@plt>
lea    -0x17f00(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   1090 <memset@plt>
lea    -0x1b5b0(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   1090 <memset@plt>
lea    -0x1ec60(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   1090 <memset@plt>
movl   $0x32,-0x1ec64(%rbp)
mov    $0x0,%al
call   1070 <initscr@plt>
mov    $0x0,%al
call   1030 <cbreak@plt>
mov    0x2cec(%rip),%rax
mov    (%rax),%edi
mov    0x2cdb(%rip),%rax
mov    (%rax),%esi
call   1060 <keypad@plt>
mov    $0x0,%al
call   1120 <noecho@plt>
xor    %edi,%edi
call   1130 <curs_set@plt>
mov    0x2cc7(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%esi
mov    -0x14(%rbp),%edx
call   10b0 <getmaxyx@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10d0 <time@plt>
mov    %eax,%edi
call   10a0 <srand@plt>
mov    -0x18(%rbp),%edi
mov    -0x14(%rbp),%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1080 <newwin@plt>
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0xdac,-0x1c(%rbp)
jge    138d <main+0x16d>
mov    $0x0,%al
call   1140 <rand@plt>
mov    $0x64,%ecx
cltd
idiv   %ecx
movslq -0x1c(%rbp),%rax
mov    %edx,-0x17f00(%rbp,%rax,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1358 <main+0x138>
movl   $0x0,-0x1c(%rbp)
cmpl   $0xdac,-0x1c(%rbp)
jge    14e5 <main+0x2c5>
movslq -0x1c(%rbp),%rax
movslq -0x17f00(%rbp,%rax,4),%rax
ff
cmpl   $0x1,-0x1ec60(%rbp,%rax,4)
01
jne    13c0 <main+0x1a0>
jmp    14e5 <main+0x2c5>
movl   $0x22,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jl     14b3 <main+0x293>
movslq -0x20(%rbp),%rcx
lea    -0x1ec60(%rbp),%rax
imul   $0x190,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
movslq -0x17f00(%rbp,%rcx,4),%rcx
ff
cmpl   $0x1,(%rax,%rcx,4)
je     14a0 <main+0x280>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     1473 <main+0x253>
cmpl   $0x0,-0x24(%rbp)
jle    143c <main+0x21c>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
sub    $0x1,%esi
movslq -0x1c(%rbp),%rax
mov    -0x17f00(%rbp,%rax,4),%edx
lea    0xbfc(%rip),%rcx
mov    $0x0,%al
call   1110 <mvwprintw@plt>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
movslq -0x1c(%rbp),%rax
mov    -0x17f00(%rbp,%rax,4),%edx
lea    0xbaf(%rip),%rcx
mov    $0x0,%al
call   1110 <mvwprintw@plt>
mov    -0x10(%rbp),%rdi
call   1050 <wrefresh@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1403 <main+0x1e3>
movslq -0x20(%rbp),%rcx
lea    -0x1ec60(%rbp),%rax
imul   $0x190,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
movslq -0x17f00(%rbp,%rcx,4),%rcx
ff
movl   $0x1,(%rax,%rcx,4)
jmp    14b3 <main+0x293>
jmp    14a5 <main+0x285>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
jmp    13c7 <main+0x1a7>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x28(%rbp)
cvtsi2ssl -0x1c(%rbp),%xmm0
movss  0xb3a(%rip),%xmm1
divss  %xmm1,%xmm0
movslq -0x1c(%rbp),%rax
movss  %xmm0,-0x111a0(%rbp,%rax,4)
fe ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1394 <main+0x174>
mov    -0x10(%rbp),%rdi
call   10f0 <wgetch@plt>
mov    -0x10(%rbp),%rdi
call   1100 <wclear@plt>
mov    -0x10(%rbp),%rdi
call   1050 <wrefresh@plt>
mov    -0x10(%rbp),%rdi
call   10f0 <wgetch@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x1b,-0x24(%rbp)
jne    1550 <main+0x330>
mov    -0x10(%rbp),%rdi
call   10f0 <wgetch@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
call   10f0 <wgetch@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x5,%eax
jne    154b <main+0x32b>
mov    -0x10(%rbp),%rdi
call   10f0 <wgetch@plt>
jmp    1550 <main+0x330>
cmpl   $0x44,-0x24(%rbp)
jne    15f4 <main+0x3d4>
mov    -0x10(%rbp),%rdi
call   1100 <wclear@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x64,-0x1c(%rbp)
jge    15e6 <main+0x3c6>
movl   $0x22,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jl     15d3 <main+0x3b3>
movslq -0x20(%rbp),%rcx
lea    -0x1ec60(%rbp),%rax
imul   $0x190,%rcx,%rcx
add    %rcx,%rax
movslq -0x1c(%rbp),%rcx
cmpl   $0x1,(%rax,%rcx,4)
jne    15c0 <main+0x3a0>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
lea    0xa4b(%rip),%rcx
mov    $0x0,%al
call   1110 <mvwprintw@plt>
jmp    15c5 <main+0x3a5>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
jmp    157b <main+0x35b>
jmp    15d8 <main+0x3b8>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    156a <main+0x34a>
mov    -0x10(%rbp),%rdi
call   1050 <wrefresh@plt>
jmp    16fd <main+0x4dd>
cmpl   $0x43,-0x24(%rbp)
jne    16c8 <main+0x4a8>
mov    -0x10(%rbp),%rdi
call   1100 <wclear@plt>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%r8d
mov    $0xa,%edx
lea    0x9eb(%rip),%rcx
mov    %edx,%esi
mov    $0x0,%al
call   1110 <mvwprintw@plt>
mov    -0x10(%rbp),%rdi
movslq -0x28(%rbp),%rax
movss  -0x111a0(%rbp,%rax,4),%xmm0
fe ff
cvtss2sd %xmm0,%xmm0
mov    $0xb,%esi
mov    $0xa,%edx
lea    0x9c6(%rip),%rcx
mov    $0x1,%al
call   1110 <mvwprintw@plt>
mov    -0x10(%rbp),%rdi
mov    $0xd,%esi
mov    $0xa,%edx
lea    0x9b4(%rip),%rcx
mov    $0x0,%al
call   1110 <mvwprintw@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0xf,-0x1c(%rbp)
jge    16ba <main+0x49a>
mov    -0x10(%rbp),%rdi
imul   $0x6,-0x1c(%rbp),%edx
imul   $0x64,-0x1c(%rbp),%eax
cltq
movss  -0x111a0(%rbp,%rax,4),%xmm0
fe ff
cvtss2sd %xmm0,%xmm0
mov    $0xe,%esi
lea    0x98e(%rip),%rcx
mov    $0x1,%al
call   1110 <mvwprintw@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1674 <main+0x454>
mov    -0x10(%rbp),%rdi
call   1050 <wrefresh@plt>
jmp    16f8 <main+0x4d8>
cmpl   $0xa,-0x24(%rbp)
jne    16f3 <main+0x4d3>
mov    -0x10(%rbp),%rdi
call   10c0 <delwin@plt>
mov    $0x0,%al
call   10e0 <endwin@plt>
lea    0x94f(%rip),%rdi
call   1040 <system@plt>
jmp    1702 <main+0x4e2>
jmp    16f8 <main+0x4d8>
jmp    16fd <main+0x4dd>
jmp    1500 <main+0x2e0>
mov    -0x24(%rbp),%eax
add    $0x1ec70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa428,%rsp
lea    0x6d70(%rsp),%rdi
mov    $0x36b0,%edx
xor    %esi,%esi
call   1090 <memset@plt>
lea    0x36c0(%rsp),%rdi
mov    $0x36b0,%edx
xor    %esi,%esi
call   1090 <memset@plt>
lea    0x10(%rsp),%rdi
mov    $0x36b0,%edx
xor    %esi,%esi
call   1090 <memset@plt>
xor    %eax,%eax
call   1070 <initscr@plt>
xor    %eax,%eax
call   1030 <cbreak@plt>
mov    0x2d69(%rip),%rbx
mov    (%rbx),%edi
mov    0x2d58(%rip),%rax
mov    (%rax),%esi
call   1060 <keypad@plt>
xor    %eax,%eax
call   1120 <noecho@plt>
xor    %edi,%edi
call   1130 <curs_set@plt>
mov    (%rbx),%edi
call   10b0 <getmaxyx@plt>
xor    %edi,%edi
call   10d0 <time@plt>
mov    %eax,%edi
call   10a0 <srand@plt>
xor    %edx,%edx
xor    %ecx,%ecx
call   1080 <newwin@plt>
mov    %rax,%rbx
xor    %ebp,%ebp
xor    %eax,%eax
call   1140 <rand@plt>
cltq
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x25,%rcx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
mov    %eax,0x36c0(%rsp,%rbp,4)
add    $0x1,%rbp
cmp    $0xdac,%rbp
jne    12c0 <main+0xa0>
mov    0x36c0(%rsp),%r12d
movslq %r12d,%rax
cmpl   $0x1,0x10(%rsp,%rax,4)
je     14a0 <main+0x280>
lea    0xcf1(%rip),%r15
lea    0xd17(%rip),%r14
xor    %ecx,%ecx
nopl   0x0(%rax)
mov    %rcx,%rbp
mov    $0x1e,%ecx
nopl   0x0(%rax,%rax,1)
lea    0x4(%rcx),%r13d
imul   $0x190,%r13,%rdx
add    %rsp,%rdx
add    $0x10,%rdx
cmpl   $0x1,(%rdx,%rax,4)
jne    13c0 <main+0x1a0>
lea    0x3(%rcx),%r13d
imul   $0x190,%r13,%rdx
add    %rsp,%rdx
add    $0x10,%rdx
cmpl   $0x1,(%rdx,%rax,4)
jne    13c0 <main+0x1a0>
lea    0x2(%rcx),%r13d
imul   $0x190,%r13,%rdx
add    %rsp,%rdx
add    $0x10,%rdx
cmpl   $0x1,(%rdx,%rax,4)
jne    13c0 <main+0x1a0>
lea    0x1(%rcx),%r13d
imul   $0x190,%r13,%rdx
add    %rsp,%rdx
add    $0x10,%rdx
cmpl   $0x1,(%rdx,%rax,4)
jne    13c0 <main+0x1a0>
mov    %ecx,%edx
imul   $0x190,%rdx,%rdx
add    %rsp,%rdx
add    $0x10,%rdx
cmpl   $0x1,(%rdx,%rax,4)
jne    1480 <main+0x260>
add    $0xfffffffb,%ecx
cmp    $0xfffffffb,%ecx
jne    1330 <main+0x110>
jmp    1443 <main+0x223>
nopl   0x0(%rax,%rax,1)
mov    %rbp,(%rsp)
lea    (%rdx,%rax,4),%rax
mov    %rax,0x8(%rsp)
test   %r13d,%r13d
js     1434 <main+0x214>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r12d,%edx
mov    %r15,%rcx
xor    %eax,%eax
call   1110 <mvwprintw@plt>
mov    %rbx,%rdi
call   1050 <wrefresh@plt>
test   %r13d,%r13d
je     1434 <main+0x214>
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
lea    0x1(%rsi),%ebp
mov    %rbx,%rdi
mov    %r12d,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   1110 <mvwprintw@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    %r15,%rcx
xor    %eax,%eax
call   1110 <mvwprintw@plt>
mov    %rbx,%rdi
call   1050 <wrefresh@plt>
mov    %ebp,%esi
cmp    %ebp,%r13d
jne    1400 <main+0x1e0>
mov    0x8(%rsp),%rax
movl   $0x1,(%rax)
mov    (%rsp),%rbp
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
divss  0xbae(%rip),%xmm0
movss  %xmm0,0x6d70(%rsp,%rbp,4)
lea    0x1(%rbp),%rcx
cmp    $0xdac,%rcx
je     149b <main+0x27b>
mov    0x36c0(%rsp,%rcx,4),%r12d
movslq %r12d,%rax
cmpl   $0x1,0x10(%rsp,%rax,4)
jne    1320 <main+0x100>
jmp    14a0 <main+0x280>
mov    %rbp,(%rsp)
lea    (%rdx,%rax,4),%rax
mov    %rax,0x8(%rsp)
mov    %ecx,%r13d
test   %r13d,%r13d
jns    13d2 <main+0x1b2>
jmp    1434 <main+0x214>
mov    $0xdab,%ebp
mov    %rbx,%rdi
call   10f0 <wgetch@plt>
mov    %rbx,%rdi
call   1100 <wclear@plt>
mov    %rbx,%rdi
call   1050 <wrefresh@plt>
movslq %ebp,%rax
mov    %rax,0x8(%rsp)
lea    0xb3d(%rip),%r13
mov    %rbx,(%rsp)
jmp    14dc <main+0x2bc>
nopl   (%rax)
mov    (%rsp),%rbx
mov    %rbx,%rdi
call   1050 <wrefresh@plt>
mov    %rbx,%rdi
call   10f0 <wgetch@plt>
mov    %eax,%ebp
cmp    $0x1b,%eax
jne    150d <main+0x2ed>
mov    %rbx,%rdi
call   10f0 <wgetch@plt>
mov    %rbx,%rdi
call   10f0 <wgetch@plt>
mov    %eax,%ebp
add    $0xffffffce,%eax
cmp    $0x9,%eax
ja     150d <main+0x2ed>
mov    %rbx,%rdi
call   10f0 <wgetch@plt>
cmp    $0x43,%ebp
je     1530 <main+0x310>
cmp    $0x44,%ebp
je     15f0 <main+0x3d0>
cmp    $0xa,%ebp
jne    14dc <main+0x2bc>
jmp    166f <main+0x44f>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rdi
call   1100 <wclear@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xa,%edx
lea    0xaba(%rip),%rcx
mov    0x8(%rsp),%rbp
mov    %ebp,%r8d
xor    %eax,%eax
call   1110 <mvwprintw@plt>
movss  0x6d70(%rsp,%rbp,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0xb,%esi
mov    $0xa,%edx
lea    0xa94(%rip),%rcx
mov    $0x1,%al
call   1110 <mvwprintw@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
mov    $0xa,%edx
lea    0xa83(%rip),%rcx
xor    %eax,%eax
call   1110 <mvwprintw@plt>
lea    0x6d70(%rsp),%rbx
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
movss  (%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mov    (%rsp),%rdi
mov    $0xe,%esi
mov    %ebp,%edx
lea    0xa69(%rip),%rcx
mov    $0x1,%al
call   1110 <mvwprintw@plt>
add    $0x6,%rbp
add    $0x190,%rbx
cmp    $0x5a,%rbp
jne    15b0 <main+0x390>
jmp    14d0 <main+0x2b0>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1100 <wclear@plt>
lea    0x10(%rsp),%r12
xor    %ebp,%ebp
jmp    1622 <main+0x402>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbp
add    $0x4,%r12
cmp    $0x64,%rbp
je     14d0 <main+0x2b0>
mov    $0x3520,%r15d
mov    $0x22,%r14d
mov    (%rsp),%rbx
jmp    1654 <main+0x434>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0xfffffffffffffe70,%r15
add    $0xffffffff,%r14d
cmp    $0xfffffffffffffe70,%r15
je     1610 <main+0x3f0>
cmpl   $0x1,(%r12,%r15,1)
jne    1640 <main+0x420>
mov    %rbx,%rdi
mov    %r14d,%esi
mov    %ebp,%edx
mov    %r13,%rcx
xor    %eax,%eax
call   1110 <mvwprintw@plt>
jmp    1640 <main+0x420>
mov    %rbx,%rdi
call   10c0 <delwin@plt>
xor    %eax,%eax
call   10e0 <endwin@plt>
lea    0x9b3(%rip),%rdi
call   1040 <system@plt>
mov    $0xa,%eax
add    $0xa428,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdscr = global i32 0
@TRUE = global i32 0
@.str = [2 x i8] c" \00"
@.str.1 = [2 x i8] c"O\00"
@.str.2 = [10 x i8] c" xidx= %d\00"
@.str.3 = [10 x i8] c" ymu = %f\00"
@.str.4 = [25 x i8] c" ymu[0:1500](by 100's): \00"
@.str.5 = [5 x i8] c"%.2f\00"
@.str.6 = [6 x i8] c"clear\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [3500 x float]
%10 = alloca [3500 x float]
%11 = alloca [3500 x float]
%12 = alloca [3500 x float]
%13 = alloca [3500 x float]
%14 = alloca [3500 x float]
%15 = alloca [3500 x i32]
%16 = alloca [3500 x i32]
%17 = alloca [35 x [100 x i32]]
%18 = alloca i32
store i32 0, i32* %1
%19 = bitcast [3500 x float]* %9 to i8*
%20 = bitcast [3500 x float]* %10 to i8*
%21 = bitcast [3500 x float]* %11 to i8*
%22 = bitcast [3500 x float]* %12 to i8*
%23 = bitcast [3500 x float]* %13 to i8*
%24 = bitcast [3500 x float]* %14 to i8*
%25 = bitcast [3500 x i32]* %15 to i8*
%26 = bitcast [3500 x i32]* %16 to i8*
%27 = bitcast [35 x [100 x i32]]* %17 to i8*
store i32 50, i32* %18
%28 = call i32 (...) @initscr()
%29 = call i32 (...) @cbreak()
%30 = load i32, i32* @stdscr
%31 = load i32, i32* @TRUE
%32 = call i32 @keypad(i32 %30, i32 %31)
%33 = call i32 (...) @noecho()
%34 = call i32 @curs_set(i32 0)
%35 = load i32, i32* @stdscr
%36 = load i32, i32* %4
%37 = load i32, i32* %3
%38 = call i32 @getmaxyx(i32 %35, i32 %36, i32 %37)
%39 = call i64 @time(i32* null)
%40 = trunc i64 %39 to i32
%41 = call i32 @srand(i32 %40)
%42 = load i32, i32* %4
%43 = load i32, i32* %3
%44 = call i32* @newwin(i32 %42, i32 %43, i32 0, i32 0)
store i32* %44, i32** %2
store i32 0, i32* %5
br label %45
45: ; preds = %54, %0
%46 = load i32, i32* %5
%47 = icmp slt i32 %46, 3500
br i1 %47, label %48, label %57
48: ; preds = %45
%49 = call i32 (...) @rand()
%50 = srem i32 %49, 100
%51 = load i32, i32* %5
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [3500 x i32], [3500 x i32]* %15, i64 0, i64 %52
store i32 %50, i32* %53
br label %54
54: ; preds = %48
%55 = load i32, i32* %5
%56 = add nsw i32 %55, 1
store i32 %56, i32* %5
br label %45
57: ; preds = %45
store i32 0, i32* %5
br label %58
58: ; preds = %140, %57
%59 = load i32, i32* %5
%60 = icmp slt i32 %59, 3500
br i1 %60, label %61, label %143
61: ; preds = %58
%62 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %17, i64 0, i64 0
%63 = load i32, i32* %5
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [3500 x i32], [3500 x i32]* %15, i64 0, i64 %64
%66 = load i32, i32* %65
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [100 x i32], [100 x i32]* %62, i64 0, i64 %67
%69 = load i32, i32* %68
%70 = icmp eq i32 %69, 1
br i1 %70, label %71, label %72
71: ; preds = %61
br label %143
72: ; preds = %61
store i32 34, i32* %6
br label %73
73: ; preds = %129, %72
%74 = load i32, i32* %6
%75 = icmp sge i32 %74, 0
br i1 %75, label %76, label %132
76: ; preds = %73
%77 = load i32, i32* %6
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %17, i64 0, i64 %78
%80 = load i32, i32* %5
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [3500 x i32], [3500 x i32]* %15, i64 0, i64 %81
%83 = load i32, i32* %82
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [100 x i32], [100 x i32]* %79, i64 0, i64 %84
%86 = load i32, i32* %85
%87 = icmp ne i32 %86, 1
br i1 %87, label %88, label %128
88: ; preds = %76
store i32 0, i32* %7
br label %89
89: ; preds = %115, %88
%90 = load i32, i32* %7
%91 = load i32, i32* %6
%92 = icmp sle i32 %90, %91
br i1 %92, label %93, label %118
93: ; preds = %89
%94 = load i32, i32* %7
%95 = icmp sgt i32 %94, 0
br i1 %95, label %96, label %105
96: ; preds = %93
%97 = load i32*, i32** %2
%98 = load i32, i32* %7
%99 = sub nsw i32 %98, 1
%100 = load i32, i32* %5
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [3500 x i32], [3500 x i32]* %15, i64 0, i64 %101
%103 = load i32, i32* %102
%104 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %97, i32 %99, i32 %103, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %105
105: ; preds = %96, %93
%106 = load i32*, i32** %2
%107 = load i32, i32* %7
%108 = load i32, i32* %5
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [3500 x i32], [3500 x i32]* %15, i64 0, i64 %109
%111 = load i32, i32* %110
%112 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %106, i32 %107, i32 %111, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%113 = load i32*, i32** %2
%114 = call i32 @wrefresh(i32* %113)
br label %115
115: ; preds = %105
%116 = load i32, i32* %7
%117 = add nsw i32 %116, 1
store i32 %117, i32* %7
br label %89
118: ; preds = %89
%119 = load i32, i32* %6
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %17, i64 0, i64 %120
%122 = load i32, i32* %5
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [3500 x i32], [3500 x i32]* %15, i64 0, i64 %123
%125 = load i32, i32* %124
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [100 x i32], [100 x i32]* %121, i64 0, i64 %126
store i32 1, i32* %127
br label %132
128: ; preds = %76
br label %129
129: ; preds = %128
%130 = load i32, i32* %6
%131 = add nsw i32 %130, -1
store i32 %131, i32* %6
br label %73
132: ; preds = %118, %73
%133 = load i32, i32* %5
store i32 %133, i32* %8
%134 = load i32, i32* %5
%135 = sitofp i32 %134 to float
%136 = fdiv float %135, 1.000000e+02
%137 = load i32, i32* %5
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds [3500 x float], [3500 x float]* %13, i64 0, i64 %138
store float %136, float* %139
br label %140
140: ; preds = %132
%141 = load i32, i32* %5
%142 = add nsw i32 %141, 1
store i32 %142, i32* %5
br label %58
143: ; preds = %71, %58
%144 = load i32*, i32** %2
%145 = call i32 @wgetch(i32* %144)
%146 = load i32*, i32** %2
%147 = call i32 @wclear(i32* %146)
%148 = load i32*, i32** %2
%149 = call i32 @wrefresh(i32* %148)
br label %150
150: ; preds = %143, %253
%151 = load i32*, i32** %2
%152 = call i32 @wgetch(i32* %151)
store i32 %152, i32* %7
%153 = load i32, i32* %7
%154 = icmp eq i32 %153, 27
br i1 %154, label %155, label %167
155: ; preds = %150
%156 = load i32*, i32** %2
%157 = call i32 @wgetch(i32* %156)
store i32 %157, i32* %7
%158 = load i32*, i32** %2
%159 = call i32 @wgetch(i32* %158)
store i32 %159, i32* %7
%160 = load i32, i32* %7
%161 = sdiv i32 %160, 10
%162 = icmp eq i32 %161, 5
br i1 %162, label %163, label %166
163: ; preds = %155
%164 = load i32*, i32** %2
%165 = call i32 @wgetch(i32* %164)
br label %166
166: ; preds = %163, %155
br label %167
167: ; preds = %166, %150
%168 = load i32, i32* %7
%169 = icmp eq i32 %168, 68
br i1 %169, label %170, label %205
170: ; preds = %167
%171 = load i32*, i32** %2
%172 = call i32 @wclear(i32* %171)
store i32 0, i32* %5
br label %173
173: ; preds = %199, %170
%174 = load i32, i32* %5
%175 = icmp slt i32 %174, 100
br i1 %175, label %176, label %202
176: ; preds = %173
store i32 34, i32* %6
br label %177
177: ; preds = %195, %176
%178 = load i32, i32* %6
%179 = icmp sge i32 %178, 0
br i1 %179, label %180, label %198
180: ; preds = %177
%181 = load i32, i32* %6
%182 = sext i32 %181 to i64
%183 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %17, i64 0, i64 %182
%184 = load i32, i32* %5
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds [100 x i32], [100 x i32]* %183, i64 0, i64 %185
%187 = load i32, i32* %186
%188 = icmp eq i32 %187, 1
br i1 %188, label %189, label %194
189: ; preds = %180
%190 = load i32*, i32** %2
%191 = load i32, i32* %6
%192 = load i32, i32* %5
%193 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %190, i32 %191, i32 %192, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %194
194: ; preds = %189, %180
br label %195
195: ; preds = %194
%196 = load i32, i32* %6
%197 = add nsw i32 %196, -1
store i32 %197, i32* %6
br label %177
198: ; preds = %177
br label %199
199: ; preds = %198
%200 = load i32, i32* %5
%201 = add nsw i32 %200, 1
store i32 %201, i32* %5
br label %173
202: ; preds = %173
%203 = load i32*, i32** %2
%204 = call i32 @wrefresh(i32* %203)
br label %253
205: ; preds = %167
%206 = load i32, i32* %7
%207 = icmp eq i32 %206, 67
br i1 %207, label %208, label %243
208: ; preds = %205
%209 = load i32*, i32** %2
%210 = call i32 @wclear(i32* %209)
%211 = load i32*, i32** %2
%212 = load i32, i32* %8
%213 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %211, i32 10, i32 10, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %212)
%214 = load i32*, i32** %2
%215 = load i32, i32* %8
%216 = sext i32 %215 to i64
%217 = getelementptr inbounds [3500 x float], [3500 x float]* %13, i64 0, i64 %216
%218 = load float, float* %217
%219 = fpext float %218 to double
%220 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %214, i32 11, i32 10, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %219)
%221 = load i32*, i32** %2
%222 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %221, i32 13, i32 10, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %5
br label %223
223: ; preds = %237, %208
%224 = load i32, i32* %5
%225 = icmp slt i32 %224, 15
br i1 %225, label %226, label %240
226: ; preds = %223
%227 = load i32*, i32** %2
%228 = load i32, i32* %5
%229 = mul nsw i32 %228, 6
%230 = load i32, i32* %5
%231 = mul nsw i32 %230, 100
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds [3500 x float], [3500 x float]* %13, i64 0, i64 %232
%234 = load float, float* %233
%235 = fpext float %234 to double
%236 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %227, i32 14, i32 %229, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), double %235)
br label %237
237: ; preds = %226
%238 = load i32, i32* %5
%239 = add nsw i32 %238, 1
store i32 %239, i32* %5
br label %223
240: ; preds = %223
%241 = load i32*, i32** %2
%242 = call i32 @wrefresh(i32* %241)
br label %252
243: ; preds = %205
%244 = load i32, i32* %7
%245 = icmp eq i32 %244, 10
br i1 %245, label %246, label %251
246: ; preds = %243
%247 = load i32*, i32** %2
%248 = call i32 @delwin(i32* %247)
%249 = call i32 (...) @endwin()
%250 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %254
251: ; preds = %243
br label %252
252: ; preds = %251, %240
br label %253
253: ; preds = %252, %202
br label %150
254: ; preds = %246
%255 = load i32, i32* %7
ret i32 %255
}

LLVM IR (-O2):
@stdscr = global i32 0
@TRUE = global i32 0
@.str = [2 x i8] c" \00"
@.str.1 = [2 x i8] c"O\00"
@.str.2 = [10 x i8] c" xidx= %d\00"
@.str.3 = [10 x i8] c" ymu = %f\00"
@.str.4 = [25 x i8] c" ymu[0:1500](by 100's): \00"
@.str.5 = [5 x i8] c"%.2f\00"
@.str.6 = [6 x i8] c"clear\00"
define i32 @main() {
%1 = alloca [3500 x float]
%2 = alloca [3500 x i32]
%3 = alloca [35 x [100 x i32]]
%4 = bitcast [3500 x float]* %1 to i8*
%5 = bitcast [3500 x i32]* %2 to i8*
%6 = bitcast [35 x [100 x i32]]* %3 to i8*
%7 = tail call i32 (...) @initscr()
%8 = tail call i32 (...) @cbreak()
%9 = load i32, i32* @stdscr
%10 = load i32, i32* @TRUE
%11 = tail call i32 @keypad(i32 %9, i32 %10)
%12 = tail call i32 (...) @noecho()
%13 = tail call i32 @curs_set(i32 0)
%14 = load i32, i32* @stdscr
%15 = tail call i32 @getmaxyx(i32 %14, i32 undef, i32 undef)
%16 = tail call i64 @time(i32* null)
%17 = trunc i64 %16 to i32
%18 = tail call i32 @srand(i32 %17)
%19 = tail call i32* @newwin(i32 undef, i32 undef, i32 0, i32 0)
br label %20
20: ; preds = %0, %20
%21 = phi i64 [ 0, %0 ], [ %25, %20 ]
%22 = tail call i32 (...) @rand()
%23 = srem i32 %22, 100
%24 = getelementptr inbounds [3500 x i32], [3500 x i32]* %2, i64 0, i64 %21
store i32 %23, i32* %24
%25 = add nuw nsw i64 %21, 1
%26 = icmp eq i64 %25, 3500
br i1 %26, label %27, label %20
27: ; preds = %20
%28 = getelementptr inbounds [3500 x i32], [3500 x i32]* %2, i64 0, i64 0
%29 = load i32, i32* %28
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %3, i64 0, i64 0, i64 %30
%32 = load i32, i32* %31
%33 = icmp eq i32 %32, 1
br i1 %33, label %104, label %41
34: ; preds = %95
%35 = getelementptr inbounds [3500 x i32], [3500 x i32]* %2, i64 0, i64 %100
%36 = load i32, i32* %35
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %3, i64 0, i64 0, i64 %37
%39 = load i32, i32* %38
%40 = icmp eq i32 %39, 1
br i1 %40, label %102, label %41
41: ; preds = %27, %34
%42 = phi i64 [ %37, %34 ], [ %30, %27 ]
%43 = phi i32 [ %36, %34 ], [ %29, %27 ]
%44 = phi i64 [ %100, %34 ], [ 0, %27 ]
br label %45
45: ; preds = %92, %41
%46 = phi i32 [ 34, %41 ], [ %93, %92 ]
%47 = zext i32 %46 to i64
%48 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %3, i64 0, i64 %47, i64 %42
%49 = load i32, i32* %48
%50 = icmp eq i32 %49, 1
br i1 %50, label %68, label %51
51: ; preds = %86, %80, %74, %68, %45
%52 = phi i32 [ %46, %45 ], [ %69, %68 ], [ %75, %74 ], [ %81, %80 ], [ %87, %86 ]
%53 = phi i32* [ %48, %45 ], [ %71, %68 ], [ %77, %74 ], [ %83, %80 ], [ %89, %86 ]
%54 = icmp slt i32 %52, 0
br i1 %54, label %67, label %55
55: ; preds = %51
%56 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %19, i32 0, i32 %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%57 = tail call i32 @wrefresh(i32* %19)
%58 = icmp eq i32 %52, 0
br i1 %58, label %67, label %59
59: ; preds = %55, %59
%60 = phi i32 [ %65, %59 ], [ 1, %55 ]
%61 = add nsw i32 %60, -1
%62 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %19, i32 %61, i32 %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%63 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %19, i32 %60, i32 %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%64 = tail call i32 @wrefresh(i32* %19)
%65 = add nuw nsw i32 %60, 1
%66 = icmp eq i32 %60, %52
br i1 %66, label %67, label %59
67: ; preds = %59, %55, %51
store i32 1, i32* %53
br label %95
68: ; preds = %45
%69 = add nsw i32 %46, -1
%70 = zext i32 %69 to i64
%71 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %3, i64 0, i64 %70, i64 %42
%72 = load i32, i32* %71
%73 = icmp eq i32 %72, 1
br i1 %73, label %74, label %51
74: ; preds = %68
%75 = add nsw i32 %46, -2
%76 = zext i32 %75 to i64
%77 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %3, i64 0, i64 %76, i64 %42
%78 = load i32, i32* %77
%79 = icmp eq i32 %78, 1
br i1 %79, label %80, label %51
80: ; preds = %74
%81 = add nsw i32 %46, -3
%82 = zext i32 %81 to i64
%83 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %3, i64 0, i64 %82, i64 %42
%84 = load i32, i32* %83
%85 = icmp eq i32 %84, 1
br i1 %85, label %86, label %51
86: ; preds = %80
%87 = add nsw i32 %46, -4
%88 = zext i32 %87 to i64
%89 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %3, i64 0, i64 %88, i64 %42
%90 = load i32, i32* %89
%91 = icmp eq i32 %90, 1
br i1 %91, label %92, label %51
92: ; preds = %86
%93 = add nsw i32 %46, -5
%94 = icmp eq i32 %87, 0
br i1 %94, label %95, label %45
95: ; preds = %92, %67
%96 = trunc i64 %44 to i32
%97 = sitofp i32 %96 to float
%98 = fdiv float %97, 1.000000e+02
%99 = getelementptr inbounds [3500 x float], [3500 x float]* %1, i64 0, i64 %44
store float %98, float* %99
%100 = add nuw nsw i64 %44, 1
%101 = icmp eq i64 %100, 3500
br i1 %101, label %104, label %34
102: ; preds = %34
%103 = trunc i64 %44 to i32
br label %104
104: ; preds = %102, %95, %27
%105 = phi i32 [ undef, %27 ], [ %103, %102 ], [ 3499, %95 ]
%106 = tail call i32 @wgetch(i32* %19)
%107 = tail call i32 @wclear(i32* %19)
%108 = tail call i32 @wrefresh(i32* %19)
%109 = sext i32 %105 to i64
%110 = getelementptr inbounds [3500 x float], [3500 x float]* %1, i64 0, i64 %109
br label %111
111: ; preds = %166, %104
%112 = tail call i32 @wgetch(i32* %19)
%113 = icmp eq i32 %112, 27
br i1 %113, label %114, label %121
114: ; preds = %111
%115 = tail call i32 @wgetch(i32* %19)
%116 = tail call i32 @wgetch(i32* %19)
%117 = add i32 %116, -50
%118 = icmp ult i32 %117, 10
br i1 %118, label %119, label %121
119: ; preds = %114
%120 = tail call i32 @wgetch(i32* %19)
br label %121
121: ; preds = %114, %119, %111
%122 = phi i32 [ %116, %119 ], [ %116, %114 ], [ %112, %111 ]
switch i32 %122, label %166 [
i32 68, label %123
i32 67, label %142
i32 10, label %160
]
123: ; preds = %121
%124 = tail call i32 @wclear(i32* %19)
br label %125
125: ; preds = %123, %139
%126 = phi i64 [ 0, %123 ], [ %140, %139 ]
%127 = trunc i64 %126 to i32
br label %128
128: ; preds = %125, %136
%129 = phi i64 [ 34, %125 ], [ %137, %136 ]
%130 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %3, i64 0, i64 %129, i64 %126
%131 = load i32, i32* %130
%132 = icmp eq i32 %131, 1
br i1 %132, label %133, label %136
133: ; preds = %128
%134 = trunc i64 %129 to i32
%135 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %19, i32 %134, i32 %127, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %136
136: ; preds = %128, %133
%137 = add nsw i64 %129, -1
%138 = icmp eq i64 %129, 0
br i1 %138, label %139, label %128
139: ; preds = %136
%140 = add nuw nsw i64 %126, 1
%141 = icmp eq i64 %140, 100
br i1 %141, label %164, label %125
142: ; preds = %121
%143 = tail call i32 @wclear(i32* %19)
%144 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %19, i32 10, i32 10, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 %105)
%145 = load float, float* %110
%146 = fpext float %145 to double
%147 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %19, i32 11, i32 10, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %146)
%148 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %19, i32 13, i32 10, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
br label %149
149: ; preds = %142, %149
%150 = phi i64 [ 0, %142 ], [ %158, %149 ]
%151 = mul nuw nsw i64 %150, 100
%152 = getelementptr inbounds [3500 x float], [3500 x float]* %1, i64 0, i64 %151
%153 = load float, float* %152
%154 = fpext float %153 to double
%155 = trunc i64 %150 to i32
%156 = mul i32 %155, 6
%157 = tail call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %19, i32 14, i32 %156, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), double %154)
%158 = add nuw nsw i64 %150, 1
%159 = icmp eq i64 %158, 15
br i1 %159, label %164, label %149
160: ; preds = %121
%161 = tail call i32 @delwin(i32* %19)
%162 = tail call i32 (...) @endwin()
%163 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
ret i32 10
164: ; preds = %149, %139
%165 = tail call i32 @wrefresh(i32* %19)
br label %166
166: ; preds = %164, %121
br label %111
}