#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*/ waitms(int);
int /*<<< orphan*/ wclear(int /*<<< orphan*/ *);
int wgetch(int /*<<< orphan*/ *);
int /*<<< orphan*/ wrefresh(int /*<<< orphan*/ *);
int main(void) {
  WINDOW *win1;
  int y, x, i, j, k;
  int xidx;
  float xmu[3500] = {}, xvar[3500] = {}, deltamu[3500] = {},
        deltavar[3500] = {};
  long xsum[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++) {
    xidx = i;
    if (scnarr[0][xrnd[i]] == 1)
      break;
    for (j = 34; j >= 0; j--) {
      if (scnarr[j][xrnd[i]] != 1) {
        scnarr[j][xrnd[i]] = 1;
        xused[i] = xrnd[i];
        for (k = 0; k <= j; k++) {
          if (k > 0)
            mvwprintw(win1, k - 1, xrnd[i], " ");
          mvwprintw(win1, k, xrnd[i], "O");
          wrefresh(win1);
        }
        break;
      }
    }
  }
  wgetch(win1);
  wclear(win1);
  xidx--;
  for (i = 0; i < xidx; i++) {
    if (i == 0)
      xsum[i] = xrnd[i];
    else
      xsum[i] = xsum[i - 1] + xrnd[i];
    xmu[i] = (float)xsum[i] / (i + 1);
    if (i == 0)
      deltamu[0] = xmu[0];
    else
      deltamu[i] = xmu[i] - xmu[i - 1];
  }
  mvwprintw(win1, 1, 10, " xmu = %.3f\tdeltamu[%d]= %.4f ", xmu[xidx - 1],
            xidx - 1, deltamu[xidx - 1]);
  mvwprintw(win1, 2, 10, " xmu[0:15]: ");
  for (i = 0; i < 15; i++) {
    mvwprintw(win1, 35 - ((int)xmu[i] * 35 / 100), i * 6, "%.2f", xmu[i]);
    mvwprintw(win1, 35 - ((int)xmu[i] * 35 / 100) + 1, i * 6, "%.2f",
              deltamu[i]);
  }
  wrefresh(win1);
  waitms(3000);
  while (1) {
    k = wgetch(win1);
    if (k != 10) {
      mvwprintw(win1, 0, 0, "XXX");
      wrefresh(win1);
    } else if (k == 10) {
      delwin(win1);
      endwin();
      system("clear");
      break;
    }
  }
  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   10a0 <memset@plt>
lea    -0x6d90(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   10a0 <memset@plt>
lea    -0xa440(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   10a0 <memset@plt>
lea    -0xdaf0(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   10a0 <memset@plt>
lea    -0x17f00(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   10a0 <memset@plt>
lea    -0x1b5b0(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   10a0 <memset@plt>
lea    -0x1ec60(%rbp),%rdi
xor    %esi,%esi
mov    $0x36b0,%edx
call   10a0 <memset@plt>
movl   $0x32,-0x1ec64(%rbp)
mov    $0x0,%al
call   1080 <initscr@plt>
mov    $0x0,%al
call   1040 <cbreak@plt>
mov    0x2d02(%rip),%rax
mov    (%rax),%edi
mov    0x2cf1(%rip),%rax
mov    (%rax),%esi
call   1070 <keypad@plt>
mov    $0x0,%al
call   1130 <noecho@plt>
xor    %edi,%edi
call   1140 <curs_set@plt>
mov    0x2cdd(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
call   10c0 <getmaxyx@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10e0 <time@plt>
mov    %eax,%edi
call   10b0 <srand@plt>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1090 <newwin@plt>
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0xdac,-0x1c(%rbp)
jge    1377 <main+0x147>
mov    $0x0,%al
call   1150 <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    1342 <main+0x112>
movl   $0x0,-0x1c(%rbp)
cmpl   $0xdac,-0x1c(%rbp)
jge    14cc <main+0x29c>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x28(%rbp)
movslq -0x1c(%rbp),%rax
movslq -0x17f00(%rbp,%rax,4),%rax
ff
cmpl   $0x1,-0x1ec60(%rbp,%rax,4)
01
jne    13b0 <main+0x180>
jmp    14cc <main+0x29c>
movl   $0x22,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jl     14b9 <main+0x289>
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     14a6 <main+0x276>
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)
movslq -0x1c(%rbp),%rax
mov    -0x17f00(%rbp,%rax,4),%ecx
movslq -0x1c(%rbp),%rax
mov    %ecx,-0x1b5b0(%rbp,%rax,4)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     14a1 <main+0x271>
cmpl   $0x0,-0x24(%rbp)
jle    146a <main+0x23a>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
sub    $0x1,%esi
movslq -0x1c(%rbp),%rax
mov    -0x17f00(%rbp,%rax,4),%edx
lea    0xbc9(%rip),%rcx
mov    $0x0,%al
call   1120 <mvwprintw@plt>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
movslq -0x1c(%rbp),%rax
mov    -0x17f00(%rbp,%rax,4),%edx
lea    0xb7d(%rip),%rcx
mov    $0x0,%al
call   1120 <mvwprintw@plt>
mov    -0x10(%rbp),%rdi
call   1060 <wrefresh@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1431 <main+0x201>
jmp    14b9 <main+0x289>
jmp    14ab <main+0x27b>
mov    -0x20(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x20(%rbp)
jmp    13b7 <main+0x187>
jmp    14be <main+0x28e>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    137e <main+0x14e>
mov    -0x10(%rbp),%rdi
call   1100 <wgetch@plt>
mov    -0x10(%rbp),%rdi
call   1110 <wclear@plt>
mov    -0x28(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x28(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    15d2 <main+0x3a2>
cmpl   $0x0,-0x1c(%rbp)
jne    1521 <main+0x2f1>
movslq -0x1c(%rbp),%rax
movslq -0x17f00(%rbp,%rax,4),%rcx
ff
movslq -0x1c(%rbp),%rax
mov    %rcx,-0x14850(%rbp,%rax,8)
ff
jmp    154c <main+0x31c>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0x14850(%rbp,%rax,8),%rcx
ff
movslq -0x1c(%rbp),%rax
movslq -0x17f00(%rbp,%rax,4),%rax
ff
add    %rax,%rcx
movslq -0x1c(%rbp),%rax
mov    %rcx,-0x14850(%rbp,%rax,8)
ff
movslq -0x1c(%rbp),%rax
cvtsi2ssq -0x14850(%rbp,%rax,8),%xmm0
b7 fe ff
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
cvtsi2ss %eax,%xmm1
divss  %xmm1,%xmm0
movslq -0x1c(%rbp),%rax
movss  %xmm0,-0x36e0(%rbp,%rax,4)
ff ff
cmpl   $0x0,-0x1c(%rbp)
jne    1594 <main+0x364>
movss  -0x36e0(%rbp),%xmm0
ff
movss  %xmm0,-0xa440(%rbp)
ff
jmp    15bf <main+0x38f>
movslq -0x1c(%rbp),%rax
movss  -0x36e0(%rbp,%rax,4),%xmm0
ff ff
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
cltq
subss  -0x36e0(%rbp,%rax,4),%xmm0
ff ff
movslq -0x1c(%rbp),%rax
movss  %xmm0,-0xa440(%rbp,%rax,4)
ff ff
jmp    15c4 <main+0x394>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    14ee <main+0x2be>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%eax
sub    $0x1,%eax
cltq
movss  -0x36e0(%rbp,%rax,4),%xmm0
ff ff
cvtss2sd %xmm0,%xmm0
mov    -0x28(%rbp),%r8d
sub    $0x1,%r8d
mov    -0x28(%rbp),%eax
sub    $0x1,%eax
cltq
movss  -0xa440(%rbp,%rax,4),%xmm1
ff ff
cvtss2sd %xmm1,%xmm1
mov    $0x1,%esi
mov    $0xa,%edx
lea    0x9e9(%rip),%rcx
mov    $0x2,%al
call   1120 <mvwprintw@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
mov    $0xa,%edx
lea    0x9ec(%rip),%rcx
mov    $0x0,%al
call   1120 <mvwprintw@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0xf,-0x1c(%rbp)
jge    16ea <main+0x4ba>
mov    -0x10(%rbp),%rdi
movslq -0x1c(%rbp),%rax
cvttss2si -0x36e0(%rbp,%rax,4),%eax
ff ff
imul   $0x23,%eax,%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    $0x23,%esi
sub    %eax,%esi
imul   $0x6,-0x1c(%rbp),%edx
movslq -0x1c(%rbp),%rax
movss  -0x36e0(%rbp,%rax,4),%xmm0
ff ff
cvtss2sd %xmm0,%xmm0
lea    0x9a2(%rip),%rcx
mov    $0x1,%al
call   1120 <mvwprintw@plt>
mov    -0x10(%rbp),%rdi
movslq -0x1c(%rbp),%rax
cvttss2si -0x36e0(%rbp,%rax,4),%eax
ff ff
imul   $0x23,%eax,%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    $0x23,%esi
sub    %eax,%esi
add    $0x1,%esi
imul   $0x6,-0x1c(%rbp),%edx
movslq -0x1c(%rbp),%rax
movss  -0xa440(%rbp,%rax,4),%xmm0
ff ff
cvtss2sd %xmm0,%xmm0
lea    0x959(%rip),%rcx
mov    $0x1,%al
call   1120 <mvwprintw@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1643 <main+0x413>
mov    -0x10(%rbp),%rdi
call   1060 <wrefresh@plt>
mov    $0xbb8,%edi
call   1030 <waitms@plt>
mov    -0x10(%rbp),%rdi
call   1100 <wgetch@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0xa,-0x24(%rbp)
je     1737 <main+0x507>
mov    -0x10(%rbp),%rdi
xor    %edx,%edx
lea    0x913(%rip),%rcx
mov    %edx,%esi
mov    $0x0,%al
call   1120 <mvwprintw@plt>
mov    -0x10(%rbp),%rdi
call   1060 <wrefresh@plt>
jmp    1767 <main+0x537>
cmpl   $0xa,-0x24(%rbp)
jne    1762 <main+0x532>
mov    -0x10(%rbp),%rdi
call   10d0 <delwin@plt>
mov    $0x0,%al
call   10f0 <endwin@plt>
lea    0x8df(%rip),%rdi
call   1050 <system@plt>
jmp    176c <main+0x53c>
jmp    1767 <main+0x537>
jmp    16fd <main+0x4cd>
xor    %eax,%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    $0x14838,%rsp
lea    0x36c0(%rsp),%rdi
mov    $0x36b0,%edx
xor    %esi,%esi
call   10a0 <memset@plt>
lea    0xa420(%rsp),%rdi
mov    $0x36b0,%edx
xor    %esi,%esi
call   10a0 <memset@plt>
lea    0x6d70(%rsp),%rdi
mov    $0x36b0,%edx
xor    %esi,%esi
call   10a0 <memset@plt>
lea    0x10(%rsp),%rdi
mov    $0x36b0,%edx
xor    %esi,%esi
call   10a0 <memset@plt>
xor    %eax,%eax
call   1080 <initscr@plt>
xor    %eax,%eax
call   1040 <cbreak@plt>
mov    0x2d45(%rip),%rbx
mov    (%rbx),%edi
mov    0x2d34(%rip),%rax
mov    (%rax),%esi
call   1070 <keypad@plt>
xor    %eax,%eax
call   1130 <noecho@plt>
xor    %edi,%edi
call   1140 <curs_set@plt>
mov    (%rbx),%edi
call   10c0 <getmaxyx@plt>
xor    %edi,%edi
call   10e0 <time@plt>
mov    %eax,%edi
call   10b0 <srand@plt>
xor    %edx,%edx
xor    %ecx,%ecx
call   1090 <newwin@plt>
mov    %rax,%r13
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %eax,%eax
call   1150 <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,0x6d70(%rsp,%rbx,4)
add    $0x1,%rbx
cmp    $0xdac,%rbx
jne    12f0 <main+0xc0>
lea    0xcd3(%rip),%r15
lea    0xcf8(%rip),%r12
xor    %eax,%eax
jmp    1355 <main+0x125>
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%r14
lea    0x1(%r14),%rax
cmp    $0xdac,%rax
je     1490 <main+0x260>
mov    %rax,%r14
movslq 0x6d70(%rsp,%rax,4),%rbx
cmpl   $0x1,0x10(%rsp,%rbx,4)
je     1490 <main+0x260>
mov    %r14,0x8(%rsp)
mov    $0x1e,%eax
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x4(%rax),%r14d
imul   $0x190,%r14,%rcx
add    %rsp,%rcx
add    $0x10,%rcx
cmpl   $0x1,(%rcx,%rbx,4)
jne    1410 <main+0x1e0>
lea    0x3(%rax),%r14d
imul   $0x190,%r14,%rcx
add    %rsp,%rcx
add    $0x10,%rcx
cmpl   $0x1,(%rcx,%rbx,4)
jne    1410 <main+0x1e0>
lea    0x2(%rax),%r14d
imul   $0x190,%r14,%rcx
add    %rsp,%rcx
add    $0x10,%rcx
cmpl   $0x1,(%rcx,%rbx,4)
jne    1410 <main+0x1e0>
lea    0x1(%rax),%r14d
imul   $0x190,%r14,%rcx
add    %rsp,%rcx
add    $0x10,%rcx
cmpl   $0x1,(%rcx,%rbx,4)
jne    1410 <main+0x1e0>
mov    %eax,%ecx
imul   $0x190,%rcx,%rcx
add    %rsp,%rcx
add    $0x10,%rcx
cmpl   $0x1,(%rcx,%rbx,4)
jne    1487 <main+0x257>
add    $0xfffffffb,%eax
cmp    $0xfffffffb,%eax
jne    1380 <main+0x150>
jmp    1340 <main+0x110>
nopl   0x0(%rax,%rax,1)
lea    (%rcx,%rbx,4),%rcx
movl   $0x1,(%rcx)
test   %r14d,%r14d
js     1340 <main+0x110>
mov    %r13,%rdi
xor    %esi,%esi
mov    %ebx,%edx
mov    %r15,%rcx
xor    %eax,%eax
call   1120 <mvwprintw@plt>
mov    %r13,%rdi
call   1060 <wrefresh@plt>
test   %r14d,%r14d
je     1340 <main+0x110>
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
lea    0x1(%rsi),%ebp
mov    %r13,%rdi
mov    %ebx,%edx
mov    %r12,%rcx
xor    %eax,%eax
call   1120 <mvwprintw@plt>
mov    %r13,%rdi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %r15,%rcx
xor    %eax,%eax
call   1120 <mvwprintw@plt>
mov    %r13,%rdi
call   1060 <wrefresh@plt>
mov    %ebp,%esi
cmp    %ebp,%r14d
jne    1450 <main+0x220>
jmp    1340 <main+0x110>
lea    (%rcx,%rbx,4),%rcx
mov    %eax,%r14d
jmp    1414 <main+0x1e4>
mov    %r13,%rdi
call   1100 <wgetch@plt>
mov    %r13,%rdi
call   1110 <wclear@plt>
xorps  %xmm3,%xmm3
cmp    $0x2,%r14d
jb     154c <main+0x31c>
movslq 0x6d70(%rsp),%rax
cvtsi2ss %eax,%xmm0
lea    -0x1(%r14),%ecx
xor    %edx,%edx
xorps  %xmm3,%xmm3
jmp    14ed <main+0x2bd>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rax,0xdad0(%rsp)
movss  %xmm0,0x36c0(%rsp)
mov    $0x1,%edx
movaps %xmm0,%xmm3
cmp    %ecx,%edx
jge    1543 <main+0x313>
test   %edx,%edx
je     14d0 <main+0x2a0>
movslq %edx,%rsi
mov    %edx,%edi
movslq 0x6d70(%rsp,%rdi,4),%rbp
add    0xdac8(%rsp,%rsi,8),%rbp
mov    %rbp,0xdad0(%rsp,%rdi,8)
xorps  %xmm1,%xmm1
cvtsi2ss %rbp,%xmm1
add    $0x1,%edx
xorps  %xmm2,%xmm2
cvtsi2ss %edx,%xmm2
divss  %xmm2,%xmm1
movss  %xmm1,0x36c0(%rsp,%rdi,4)
subss  0x36bc(%rsp,%rsi,4),%xmm1
movss  %xmm1,0xa420(%rsp,%rdi,4)
cmp    %ecx,%edx
jl     14ed <main+0x2bd>
movss  %xmm3,0xa420(%rsp)
movss  %xmm3,0x8(%rsp)
movslq %r14d,%rax
add    $0xfffffffe,%r14d
movss  0x36b8(%rsp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0xa418(%rsp,%rax,4),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xa88(%rip),%rcx
mov    %r13,%rdi
mov    $0x1,%esi
mov    $0xa,%edx
mov    %r14d,%r8d
mov    $0x2,%al
call   1120 <mvwprintw@plt>
lea    0xa89(%rip),%rcx
xor    %r15d,%r15d
mov    %r13,%rdi
mov    $0x2,%esi
mov    $0xa,%edx
xor    %eax,%eax
call   1120 <mvwprintw@plt>
movss  0x8(%rsp),%xmm0
lea    0xa72(%rip),%r14
xor    %r12d,%r12d
nop
cvttss2si %xmm0,%eax
imul   $0x23,%eax,%eax
cltq
imul   $0xffffffffae147ae1,%rax,%rbx
mov    %rbx,%rbp
sar    $0x25,%rbp
shr    $0x3f,%rbx
lea    (%rbx,%rbp,1),%esi
add    $0x23,%esi
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    %r15d,%edx
mov    %r14,%rcx
mov    $0x1,%al
call   1120 <mvwprintw@plt>
lea    (%rbx,%rbp,1),%esi
add    $0x24,%esi
movss  0xa420(%rsp,%r12,4),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r13,%rdi
mov    %r15d,%edx
mov    %r14,%rcx
mov    $0x1,%al
call   1120 <mvwprintw@plt>
cmp    $0xe,%r12
je     1633 <main+0x403>
movss  0x36c4(%rsp,%r12,4),%xmm0
add    $0x6,%r15d
add    $0x1,%r12
jmp    15c0 <main+0x390>
mov    %r13,%rdi
call   1060 <wrefresh@plt>
mov    $0xbb8,%edi
call   1030 <waitms@plt>
mov    %r13,%rdi
call   1100 <wgetch@plt>
cmp    $0xa,%eax
je     1686 <main+0x456>
lea    0x9da(%rip),%rbx
nopl   0x0(%rax)
mov    %r13,%rdi
xor    %esi,%esi
xor    %edx,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1120 <mvwprintw@plt>
mov    %r13,%rdi
call   1060 <wrefresh@plt>
mov    %r13,%rdi
call   1100 <wgetch@plt>
cmp    $0xa,%eax
jne    1660 <main+0x430>
mov    %r13,%rdi
call   10d0 <delwin@plt>
xor    %eax,%eax
call   10f0 <endwin@plt>
lea    0x99b(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
add    $0x14838,%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 = [31 x i8] c" xmu = %.3f\09deltamu[%d]= %.4f \00"
@.str.3 = [13 x i8] c" xmu[0:15]: \00"
@.str.4 = [5 x i8] c"%.2f\00"
@.str.5 = [4 x i8] c"XXX\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 i64]
%14 = alloca [3500 x i32]
%15 = alloca [3500 x i32]
%16 = alloca [35 x [100 x i32]]
%17 = alloca i32
store i32 0, i32* %1
%18 = bitcast [3500 x float]* %9 to i8*
%19 = bitcast [3500 x float]* %10 to i8*
%20 = bitcast [3500 x float]* %11 to i8*
%21 = bitcast [3500 x float]* %12 to i8*
%22 = bitcast [3500 x i32]* %14 to i8*
%23 = bitcast [3500 x i32]* %15 to i8*
%24 = bitcast [35 x [100 x i32]]* %16 to i8*
store i32 50, i32* %17
%25 = call i32 (...) @initscr()
%26 = call i32 (...) @cbreak()
%27 = load i32, i32* @stdscr
%28 = load i32, i32* @TRUE
%29 = call i32 @keypad(i32 %27, i32 %28)
%30 = call i32 (...) @noecho()
%31 = call i32 @curs_set(i32 0)
%32 = load i32, i32* @stdscr
%33 = load i32, i32* %3
%34 = load i32, i32* %4
%35 = call i32 @getmaxyx(i32 %32, i32 %33, i32 %34)
%36 = call i64 @time(i32* null)
%37 = trunc i64 %36 to i32
%38 = call i32 @srand(i32 %37)
%39 = load i32, i32* %3
%40 = load i32, i32* %4
%41 = call i32* @newwin(i32 %39, i32 %40, i32 0, i32 0)
store i32* %41, i32** %2
store i32 0, i32* %5
br label %42
42: ; preds = %51, %0
%43 = load i32, i32* %5
%44 = icmp slt i32 %43, 3500
br i1 %44, label %45, label %54
45: ; preds = %42
%46 = call i32 (...) @rand()
%47 = srem i32 %46, 100
%48 = load i32, i32* %5
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [3500 x i32], [3500 x i32]* %14, i64 0, i64 %49
store i32 %47, i32* %50
br label %51
51: ; preds = %45
%52 = load i32, i32* %5
%53 = add nsw i32 %52, 1
store i32 %53, i32* %5
br label %42
54: ; preds = %42
store i32 0, i32* %5
br label %55
55: ; preds = %138, %54
%56 = load i32, i32* %5
%57 = icmp slt i32 %56, 3500
br i1 %57, label %58, label %141
58: ; preds = %55
%59 = load i32, i32* %5
store i32 %59, i32* %8
%60 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %16, i64 0, i64 0
%61 = load i32, i32* %5
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [3500 x i32], [3500 x i32]* %14, i64 0, i64 %62
%64 = load i32, i32* %63
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [100 x i32], [100 x i32]* %60, i64 0, i64 %65
%67 = load i32, i32* %66
%68 = icmp eq i32 %67, 1
br i1 %68, label %69, label %70
69: ; preds = %58
br label %141
70: ; preds = %58
store i32 34, i32* %6
br label %71
71: ; preds = %134, %70
%72 = load i32, i32* %6
%73 = icmp sge i32 %72, 0
br i1 %73, label %74, label %137
74: ; preds = %71
%75 = load i32, i32* %6
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %16, i64 0, i64 %76
%78 = load i32, i32* %5
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [3500 x i32], [3500 x i32]* %14, i64 0, i64 %79
%81 = load i32, i32* %80
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [100 x i32], [100 x i32]* %77, i64 0, i64 %82
%84 = load i32, i32* %83
%85 = icmp ne i32 %84, 1
br i1 %85, label %86, label %133
86: ; preds = %74
%87 = load i32, i32* %6
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [35 x [100 x i32]], [35 x [100 x i32]]* %16, i64 0, i64 %88
%90 = load i32, i32* %5
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [3500 x i32], [3500 x i32]* %14, i64 0, i64 %91
%93 = load i32, i32* %92
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [100 x i32], [100 x i32]* %89, i64 0, i64 %94
store i32 1, i32* %95
%96 = load i32, i32* %5
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [3500 x i32], [3500 x i32]* %14, i64 0, i64 %97
%99 = load i32, i32* %98
%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
store i32 %99, i32* %102
store i32 0, i32* %7
br label %103
103: ; preds = %129, %86
%104 = load i32, i32* %7
%105 = load i32, i32* %6
%106 = icmp sle i32 %104, %105
br i1 %106, label %107, label %132
107: ; preds = %103
%108 = load i32, i32* %7
%109 = icmp sgt i32 %108, 0
br i1 %109, label %110, label %119
110: ; preds = %107
%111 = load i32*, i32** %2
%112 = load i32, i32* %7
%113 = sub nsw i32 %112, 1
%114 = load i32, i32* %5
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [3500 x i32], [3500 x i32]* %14, i64 0, i64 %115
%117 = load i32, i32* %116
%118 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %111, i32 %113, i32 %117, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %119
119: ; preds = %110, %107
%120 = load i32*, i32** %2
%121 = load i32, i32* %7
%122 = load i32, i32* %5
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds [3500 x i32], [3500 x i32]* %14, i64 0, i64 %123
%125 = load i32, i32* %124
%126 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %120, i32 %121, i32 %125, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%127 = load i32*, i32** %2
%128 = call i32 @wrefresh(i32* %127)
br label %129
129: ; preds = %119
%130 = load i32, i32* %7
%131 = add nsw i32 %130, 1
store i32 %131, i32* %7
br label %103
132: ; preds = %103
br label %137
133: ; preds = %74
br label %134
134: ; preds = %133
%135 = load i32, i32* %6
%136 = add nsw i32 %135, -1
store i32 %136, i32* %6
br label %71
137: ; preds = %132, %71
br label %138
138: ; preds = %137
%139 = load i32, i32* %5
%140 = add nsw i32 %139, 1
store i32 %140, i32* %5
br label %55
141: ; preds = %69, %55
%142 = load i32*, i32** %2
%143 = call i32 @wgetch(i32* %142)
%144 = load i32*, i32** %2
%145 = call i32 @wclear(i32* %144)
%146 = load i32, i32* %8
%147 = add nsw i32 %146, -1
store i32 %147, i32* %8
store i32 0, i32* %5
br label %148
148: ; preds = %213, %141
%149 = load i32, i32* %5
%150 = load i32, i32* %8
%151 = icmp slt i32 %149, %150
br i1 %151, label %152, label %216
152: ; preds = %148
%153 = load i32, i32* %5
%154 = icmp eq i32 %153, 0
br i1 %154, label %155, label %164
155: ; preds = %152
%156 = load i32, i32* %5
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds [3500 x i32], [3500 x i32]* %14, i64 0, i64 %157
%159 = load i32, i32* %158
%160 = sext i32 %159 to i64
%161 = load i32, i32* %5
%162 = sext i32 %161 to i64
%163 = getelementptr inbounds [3500 x i64], [3500 x i64]* %13, i64 0, i64 %162
store i64 %160, i64* %163
br label %179
164: ; preds = %152
%165 = load i32, i32* %5
%166 = sub nsw i32 %165, 1
%167 = sext i32 %166 to i64
%168 = getelementptr inbounds [3500 x i64], [3500 x i64]* %13, i64 0, i64 %167
%169 = load i64, i64* %168
%170 = load i32, i32* %5
%171 = sext i32 %170 to i64
%172 = getelementptr inbounds [3500 x i32], [3500 x i32]* %14, i64 0, i64 %171
%173 = load i32, i32* %172
%174 = sext i32 %173 to i64
%175 = add nsw i64 %169, %174
%176 = load i32, i32* %5
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds [3500 x i64], [3500 x i64]* %13, i64 0, i64 %177
store i64 %175, i64* %178
br label %179
179: ; preds = %164, %155
%180 = load i32, i32* %5
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds [3500 x i64], [3500 x i64]* %13, i64 0, i64 %181
%183 = load i64, i64* %182
%184 = sitofp i64 %183 to float
%185 = load i32, i32* %5
%186 = add nsw i32 %185, 1
%187 = sitofp i32 %186 to float
%188 = fdiv float %184, %187
%189 = load i32, i32* %5
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds [3500 x float], [3500 x float]* %9, i64 0, i64 %190
store float %188, float* %191
%192 = load i32, i32* %5
%193 = icmp eq i32 %192, 0
br i1 %193, label %194, label %198
194: ; preds = %179
%195 = getelementptr inbounds [3500 x float], [3500 x float]* %9, i64 0, i64 0
%196 = load float, float* %195
%197 = getelementptr inbounds [3500 x float], [3500 x float]* %11, i64 0, i64 0
store float %196, float* %197
br label %212
198: ; preds = %179
%199 = load i32, i32* %5
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds [3500 x float], [3500 x float]* %9, i64 0, i64 %200
%202 = load float, float* %201
%203 = load i32, i32* %5
%204 = sub nsw i32 %203, 1
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds [3500 x float], [3500 x float]* %9, i64 0, i64 %205
%207 = load float, float* %206
%208 = fsub float %202, %207
%209 = load i32, i32* %5
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds [3500 x float], [3500 x float]* %11, i64 0, i64 %210
store float %208, float* %211
br label %212
212: ; preds = %198, %194
br label %213
213: ; preds = %212
%214 = load i32, i32* %5
%215 = add nsw i32 %214, 1
store i32 %215, i32* %5
br label %148
216: ; preds = %148
%217 = load i32*, i32** %2
%218 = load i32, i32* %8
%219 = sub nsw i32 %218, 1
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds [3500 x float], [3500 x float]* %9, i64 0, i64 %220
%222 = load float, float* %221
%223 = fpext float %222 to double
%224 = load i32, i32* %8
%225 = sub nsw i32 %224, 1
%226 = load i32, i32* %8
%227 = sub nsw i32 %226, 1
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds [3500 x float], [3500 x float]* %11, i64 0, i64 %228
%230 = load float, float* %229
%231 = fpext float %230 to double
%232 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %217, i32 1, i32 10, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), double %223, i32 %225, double %231)
%233 = load i32*, i32** %2
%234 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %233, i32 2, i32 10, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %5
br label %235
235: ; preds = %274, %216
%236 = load i32, i32* %5
%237 = icmp slt i32 %236, 15
br i1 %237, label %238, label %277
238: ; preds = %235
%239 = load i32*, i32** %2
%240 = load i32, i32* %5
%241 = sext i32 %240 to i64
%242 = getelementptr inbounds [3500 x float], [3500 x float]* %9, i64 0, i64 %241
%243 = load float, float* %242
%244 = fptosi float %243 to i32
%245 = mul nsw i32 %244, 35
%246 = sdiv i32 %245, 100
%247 = sub nsw i32 35, %246
%248 = load i32, i32* %5
%249 = mul nsw i32 %248, 6
%250 = load i32, i32* %5
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds [3500 x float], [3500 x float]* %9, i64 0, i64 %251
%253 = load float, float* %252
%254 = fpext float %253 to double
%255 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %239, i32 %247, i32 %249, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %254)
%256 = load i32*, i32** %2
%257 = load i32, i32* %5
%258 = sext i32 %257 to i64
%259 = getelementptr inbounds [3500 x float], [3500 x float]* %9, i64 0, i64 %258
%260 = load float, float* %259
%261 = fptosi float %260 to i32
%262 = mul nsw i32 %261, 35
%263 = sdiv i32 %262, 100
%264 = sub nsw i32 35, %263
%265 = add nsw i32 %264, 1
%266 = load i32, i32* %5
%267 = mul nsw i32 %266, 6
%268 = load i32, i32* %5
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds [3500 x float], [3500 x float]* %11, i64 0, i64 %269
%271 = load float, float* %270
%272 = fpext float %271 to double
%273 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %256, i32 %265, i32 %267, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), double %272)
br label %274
274: ; preds = %238
%275 = load i32, i32* %5
%276 = add nsw i32 %275, 1
store i32 %276, i32* %5
br label %235
277: ; preds = %235
%278 = load i32*, i32** %2
%279 = call i32 @wrefresh(i32* %278)
%280 = call i32 @waitms(i32 3000)
br label %281
281: ; preds = %277, %300
%282 = load i32*, i32** %2
%283 = call i32 @wgetch(i32* %282)
store i32 %283, i32* %7
%284 = load i32, i32* %7
%285 = icmp ne i32 %284, 10
br i1 %285, label %286, label %291
286: ; preds = %281
%287 = load i32*, i32** %2
%288 = call i32 (i32*, i32, i32, i8*, ...) @mvwprintw(i32* %287, i32 0, i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%289 = load i32*, i32** %2
%290 = call i32 @wrefresh(i32* %289)
br label %300
291: ; preds = %281
%292 = load i32, i32* %7
%293 = icmp eq i32 %292, 10
br i1 %293, label %294, label %299
294: ; preds = %291
%295 = load i32*, i32** %2
%296 = call i32 @delwin(i32* %295)
%297 = call i32 (...) @endwin()
%298 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %301
299: ; preds = %291
br label %300
300: ; preds = %299, %286
br label %281
301: ; preds = %294
ret i32 0
}

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