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

/* Variables and functions */
int /*<<< orphan*/ clrscr();
int /*<<< orphan*/ cprintf(char *);
int /*<<< orphan*/ delay(int);
int /*<<< orphan*/ gotoxy(int, int);
int /*<<< orphan*/ kbhit();
int /*<<< orphan*/ ln1();
int /*<<< orphan*/ ln2();
int /*<<< orphan*/ ln3();
int rand(int);
int /*<<< orphan*/ textcolor(int);
main() {
  int y, x, c, z[9];
  clrscr();
  for (c = 0; c <= 8; c++) {
    z[c] = rand(79) + 1;
  }
  for (y = 1, x = 1; y <= 28; y++) {
    z[9] = 80 - x;
    clrscr();
    gotoxy(25, 23);
    textcolor(15);
    cprintf("RAIN IN C - AnarchyPunk - bY JF");
    if (y <= 27) {
      gotoxy(x, y - 2);
      ln1();
      for (c = 0; c <= 9; c++) {
        gotoxy(z[c], y - (c + 6));
        ln1();
      }
    }
    if (y <= 26) {
      gotoxy(x, y - 1);
      ln2();
      for (c = 0; c <= 9; c++) {
        gotoxy(z[c], y - (c + 5));
        ln2();
      }
    }
    if (y <= 25) {
      gotoxy(x, y);
      ln3();
      for (c = 0; c <= 9; c++) {
        gotoxy(z[c], y - (c + 4));
        ln3();
      }
    }
    textcolor(16);
    delay(2000);
    if (y == 28) {
      y = 1;
      x += 2;
      for (c = 0; c <= 8; c++) {
        if (x <= 20) {
          z[c] += rand(4);
        } else if ((x > 20) && (x <= 40)) {
          z[c] -= rand(4);
        }
      }
      if (x == 81) {
        break;
      } else {
        continue;
      }
    }
  }
  while (!kbhit())
    ;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <clrscr@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x8,-0x10(%rbp)
jg     11ec <main+0x4c>
mov    $0x4f,%edi
call   10c0 <rand@plt>
mov    %eax,%ecx
add    $0x1,%ecx
movslq -0x10(%rbp),%rax
mov    %ecx,-0x40(%rbp,%rax,4)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11bd <main+0x1d>
movl   $0x1,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
cmpl   $0x1c,-0x8(%rbp)
jg     1431 <main+0x291>
mov    $0x50,%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1050 <clrscr@plt>
mov    $0x19,%edi
mov    $0x17,%esi
call   10b0 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textcolor@plt>
lea    0xdca(%rip),%rdi
call   1080 <cprintf@plt>
cmpl   $0x1b,-0x8(%rbp)
jg     129d <main+0xfd>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    $0x2,%esi
call   10b0 <gotoxy@plt>
mov    $0x0,%al
call   1030 <ln1@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x9,-0x10(%rbp)
jg     1298 <main+0xf8>
movslq -0x10(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%eax
add    $0x6,%eax
sub    %eax,%esi
call   10b0 <gotoxy@plt>
mov    $0x0,%al
call   1030 <ln1@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1261 <main+0xc1>
jmp    129d <main+0xfd>
cmpl   $0x1a,-0x8(%rbp)
jg     12ff <main+0x15f>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    $0x1,%esi
call   10b0 <gotoxy@plt>
mov    $0x0,%al
call   10a0 <ln2@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x9,-0x10(%rbp)
jg     12fa <main+0x15a>
movslq -0x10(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%eax
add    $0x5,%eax
sub    %eax,%esi
call   10b0 <gotoxy@plt>
mov    $0x0,%al
call   10a0 <ln2@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12c3 <main+0x123>
jmp    12ff <main+0x15f>
cmpl   $0x19,-0x8(%rbp)
jg     135e <main+0x1be>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%esi
call   10b0 <gotoxy@plt>
mov    $0x0,%al
call   1040 <ln3@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x9,-0x10(%rbp)
jg     1359 <main+0x1b9>
movslq -0x10(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%eax
add    $0x4,%eax
sub    %eax,%esi
call   10b0 <gotoxy@plt>
mov    $0x0,%al
call   1040 <ln3@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1322 <main+0x182>
jmp    135e <main+0x1be>
mov    $0x10,%edi
call   1070 <textcolor@plt>
mov    $0x7d0,%edi
call   1090 <delay@plt>
cmpl   $0x1c,-0x8(%rbp)
jne    141e <main+0x27e>
movl   $0x1,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x8,-0x10(%rbp)
jg     140a <main+0x26a>
cmpl   $0x14,-0xc(%rbp)
jg     13c4 <main+0x224>
mov    $0x4,%edi
call   10c0 <rand@plt>
mov    %eax,%ecx
movslq -0x10(%rbp),%rax
add    -0x40(%rbp,%rax,4),%ecx
mov    %ecx,-0x40(%rbp,%rax,4)
jmp    13f7 <main+0x257>
cmpl   $0x14,-0xc(%rbp)
jle    13f2 <main+0x252>
cmpl   $0x28,-0xc(%rbp)
jg     13f2 <main+0x252>
mov    $0x4,%edi
call   10c0 <rand@plt>
mov    %eax,%edx
movslq -0x10(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%ecx
sub    %edx,%ecx
mov    %ecx,-0x40(%rbp,%rax,4)
jmp    13f7 <main+0x257>
jmp    13fc <main+0x25c>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1393 <main+0x1f3>
cmpl   $0x51,-0xc(%rbp)
jne    1419 <main+0x279>
jmp    1431 <main+0x291>
jmp    1423 <main+0x283>
jmp    1423 <main+0x283>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11fa <main+0x5a>
jmp    1436 <main+0x296>
mov    $0x0,%al
call   1060 <kbhit@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1452 <main+0x2b2>
jmp    1457 <main+0x2b7>
jmp    1436 <main+0x296>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
xor    %eax,%eax
call   1050 <clrscr@plt>
mov    $0x4f,%edi
call   10c0 <rand@plt>
add    $0x1,%eax
mov    %eax,0x40(%rsp)
mov    $0x4f,%edi
call   10c0 <rand@plt>
add    $0x1,%eax
mov    %eax,0x44(%rsp)
mov    $0x4f,%edi
call   10c0 <rand@plt>
add    $0x1,%eax
mov    %eax,0x48(%rsp)
mov    $0x4f,%edi
call   10c0 <rand@plt>
add    $0x1,%eax
mov    %eax,0x4c(%rsp)
mov    $0x4f,%edi
call   10c0 <rand@plt>
add    $0x1,%eax
mov    %eax,0x50(%rsp)
mov    $0x4f,%edi
call   10c0 <rand@plt>
add    $0x1,%eax
mov    %eax,0x54(%rsp)
mov    $0x4f,%edi
call   10c0 <rand@plt>
add    $0x1,%eax
mov    %eax,0x58(%rsp)
mov    $0x4f,%edi
call   10c0 <rand@plt>
add    $0x1,%eax
mov    %eax,0x5c(%rsp)
mov    $0x4f,%edi
call   10c0 <rand@plt>
add    $0x1,%eax
mov    %eax,0x60(%rsp)
mov    $0x1,%ebx
lea    0xda6(%rip),%r14
mov    $0x1,%r15d
jmp    128f <main+0xef>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x10,%edi
call   1070 <textcolor@plt>
mov    $0x7d0,%edi
call   1090 <delay@plt>
lea    0xd75(%rip),%r14
add    $0x1,%r15d
mov    $0x50,%ebp
sub    %ebx,%ebp
mov    %ebp,0x64(%rsp)
xor    %eax,%eax
call   1050 <clrscr@plt>
mov    $0x19,%edi
mov    $0x17,%esi
call   10b0 <gotoxy@plt>
mov    $0xf,%edi
call   1070 <textcolor@plt>
mov    %r14,%rdi
call   1080 <cprintf@plt>
cmp    $0x1c,%r15d
jne    1320 <main+0x180>
mov    $0x10,%edi
call   1070 <textcolor@plt>
mov    $0x7d0,%edi
call   1090 <delay@plt>
xor    %ebp,%ebp
jmp    12fc <main+0x15c>
mov    $0x4,%edi
call   10c0 <rand@plt>
add    %eax,0x40(%rsp,%rbp,4)
add    $0x1,%rbp
cmp    $0x9,%rbp
je     1610 <main+0x470>
cmp    $0x12,%ebx
jle    12e0 <main+0x140>
cmp    $0x26,%ebx
ja     12ee <main+0x14e>
mov    $0x4,%edi
call   10c0 <rand@plt>
sub    %eax,0x40(%rsp,%rbp,4)
jmp    12ee <main+0x14e>
cs nopw 0x0(%rax,%rax,1)
lea    -0x2(%r15),%esi
mov    %ebx,%edi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1030 <ln1@plt>
lea    -0x6(%r15),%esi
mov    0x40(%rsp),%edi
mov    %edi,0x20(%rsp)
mov    %esi,0x3c(%rsp)
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1030 <ln1@plt>
mov    0x44(%rsp),%edi
lea    -0x7(%r15),%esi
mov    %edi,0x1c(%rsp)
mov    %esi,0x38(%rsp)
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1030 <ln1@plt>
mov    0x48(%rsp),%edi
lea    -0x8(%r15),%esi
mov    %edi,0x14(%rsp)
mov    %esi,0x34(%rsp)
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1030 <ln1@plt>
mov    0x4c(%rsp),%edi
lea    -0x9(%r15),%esi
mov    %edi,0x10(%rsp)
mov    %esi,0x30(%rsp)
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1030 <ln1@plt>
mov    0x50(%rsp),%edi
lea    -0xa(%r15),%esi
mov    %edi,0xc(%rsp)
mov    %esi,0x2c(%rsp)
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1030 <ln1@plt>
mov    0x54(%rsp),%edi
lea    -0xb(%r15),%esi
mov    %edi,0x8(%rsp)
mov    %esi,0x28(%rsp)
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1030 <ln1@plt>
mov    0x58(%rsp),%edi
lea    -0xc(%r15),%esi
mov    %edi,0x4(%rsp)
mov    %esi,0x24(%rsp)
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1030 <ln1@plt>
mov    0x5c(%rsp),%r12d
lea    -0xd(%r15),%esi
mov    %r12d,%edi
mov    %esi,0x18(%rsp)
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1030 <ln1@plt>
mov    0x60(%rsp),%r13d
lea    -0xe(%r15),%r14d
mov    %r13d,%edi
mov    %r14d,%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1030 <ln1@plt>
lea    -0xf(%r15),%esi
mov    %ebp,%edi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1030 <ln1@plt>
cmp    $0x1a,%r15d
jg     1270 <main+0xd0>
lea    -0x1(%r15),%esi
mov    %ebx,%edi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   10a0 <ln2@plt>
lea    -0x5(%r15),%esi
mov    0x20(%rsp),%edi
mov    %esi,0x64(%rsp)
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   10a0 <ln2@plt>
mov    0x1c(%rsp),%edi
mov    0x3c(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   10a0 <ln2@plt>
mov    0x14(%rsp),%edi
mov    0x38(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   10a0 <ln2@plt>
mov    0x10(%rsp),%edi
mov    0x34(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   10a0 <ln2@plt>
mov    0xc(%rsp),%edi
mov    0x30(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   10a0 <ln2@plt>
mov    0x8(%rsp),%edi
mov    0x2c(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   10a0 <ln2@plt>
mov    0x4(%rsp),%edi
mov    0x28(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   10a0 <ln2@plt>
mov    %r12d,%edi
mov    0x24(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   10a0 <ln2@plt>
mov    %r13d,%edi
mov    0x18(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   10a0 <ln2@plt>
mov    %ebp,%edi
mov    %r14d,%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   10a0 <ln2@plt>
cmp    $0x1a,%r15d
je     1270 <main+0xd0>
mov    %ebx,%edi
mov    %r15d,%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1040 <ln3@plt>
lea    -0x4(%r15),%esi
mov    0x20(%rsp),%edi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1040 <ln3@plt>
mov    0x1c(%rsp),%edi
mov    0x64(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1040 <ln3@plt>
mov    0x14(%rsp),%edi
mov    0x3c(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1040 <ln3@plt>
mov    0x10(%rsp),%edi
mov    0x38(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1040 <ln3@plt>
mov    0xc(%rsp),%edi
mov    0x34(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1040 <ln3@plt>
mov    0x8(%rsp),%edi
mov    0x30(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1040 <ln3@plt>
mov    0x4(%rsp),%edi
mov    0x2c(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1040 <ln3@plt>
mov    %r12d,%edi
mov    0x28(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1040 <ln3@plt>
mov    %r13d,%edi
mov    0x24(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1040 <ln3@plt>
mov    %ebp,%edi
mov    0x18(%rsp),%esi
call   10b0 <gotoxy@plt>
xor    %eax,%eax
call   1040 <ln3@plt>
jmp    1270 <main+0xd0>
cs nopw 0x0(%rax,%rax,1)
add    $0x2,%ebx
mov    $0x1,%r15d
cmp    $0x51,%ebx
je     1630 <main+0x490>
add    $0x1,%r15d
jmp    128f <main+0xef>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1060 <kbhit@plt>
test   %eax,%eax
je     1630 <main+0x490>
xor    %eax,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [32 x i8] c"RAIN IN C - AnarchyPunk - bY JF\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [9 x i32]
store i32 0, i32* %1
%6 = call i32 (...) @clrscr()
store i32 0, i32* %4
br label %7
7: ; preds = %16, %0
%8 = load i32, i32* %4
%9 = icmp sle i32 %8, 8
br i1 %9, label %10, label %19
10: ; preds = %7
%11 = call i32 @rand(i32 79)
%12 = add nsw i32 %11, 1
%13 = load i32, i32* %4
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [9 x i32], [9 x i32]* %5, i64 0, i64 %14
store i32 %12, i32* %15
br label %16
16: ; preds = %10
%17 = load i32, i32* %4
%18 = add nsw i32 %17, 1
store i32 %18, i32* %4
br label %7
19: ; preds = %7
store i32 1, i32* %2
store i32 1, i32* %3
br label %20
20: ; preds = %155, %19
%21 = load i32, i32* %2
%22 = icmp sle i32 %21, 28
br i1 %22, label %23, label %158
23: ; preds = %20
%24 = load i32, i32* %3
%25 = sub nsw i32 80, %24
%26 = getelementptr inbounds [9 x i32], [9 x i32]* %5, i64 0, i64 9
store i32 %25, i32* %26
%27 = call i32 (...) @clrscr()
%28 = call i32 @gotoxy(i32 25, i32 23)
%29 = call i32 @textcolor(i32 15)
%30 = call i32 @cprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%31 = load i32, i32* %2
%32 = icmp sle i32 %31, 27
br i1 %32, label %33, label %57
33: ; preds = %23
%34 = load i32, i32* %3
%35 = load i32, i32* %2
%36 = sub nsw i32 %35, 2
%37 = call i32 @gotoxy(i32 %34, i32 %36)
%38 = call i32 (...) @ln1()
store i32 0, i32* %4
br label %39
39: ; preds = %53, %33
%40 = load i32, i32* %4
%41 = icmp sle i32 %40, 9
br i1 %41, label %42, label %56
42: ; preds = %39
%43 = load i32, i32* %4
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [9 x i32], [9 x i32]* %5, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = load i32, i32* %2
%48 = load i32, i32* %4
%49 = add nsw i32 %48, 6
%50 = sub nsw i32 %47, %49
%51 = call i32 @gotoxy(i32 %46, i32 %50)
%52 = call i32 (...) @ln1()
br label %53
53: ; preds = %42
%54 = load i32, i32* %4
%55 = add nsw i32 %54, 1
store i32 %55, i32* %4
br label %39
56: ; preds = %39
br label %57
57: ; preds = %56, %23
%58 = load i32, i32* %2
%59 = icmp sle i32 %58, 26
br i1 %59, label %60, label %84
60: ; preds = %57
%61 = load i32, i32* %3
%62 = load i32, i32* %2
%63 = sub nsw i32 %62, 1
%64 = call i32 @gotoxy(i32 %61, i32 %63)
%65 = call i32 (...) @ln2()
store i32 0, i32* %4
br label %66
66: ; preds = %80, %60
%67 = load i32, i32* %4
%68 = icmp sle i32 %67, 9
br i1 %68, label %69, label %83
69: ; preds = %66
%70 = load i32, i32* %4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [9 x i32], [9 x i32]* %5, i64 0, i64 %71
%73 = load i32, i32* %72
%74 = load i32, i32* %2
%75 = load i32, i32* %4
%76 = add nsw i32 %75, 5
%77 = sub nsw i32 %74, %76
%78 = call i32 @gotoxy(i32 %73, i32 %77)
%79 = call i32 (...) @ln2()
br label %80
80: ; preds = %69
%81 = load i32, i32* %4
%82 = add nsw i32 %81, 1
store i32 %82, i32* %4
br label %66
83: ; preds = %66
br label %84
84: ; preds = %83, %57
%85 = load i32, i32* %2
%86 = icmp sle i32 %85, 25
br i1 %86, label %87, label %110
87: ; preds = %84
%88 = load i32, i32* %3
%89 = load i32, i32* %2
%90 = call i32 @gotoxy(i32 %88, i32 %89)
%91 = call i32 (...) @ln3()
store i32 0, i32* %4
br label %92
92: ; preds = %106, %87
%93 = load i32, i32* %4
%94 = icmp sle i32 %93, 9
br i1 %94, label %95, label %109
95: ; preds = %92
%96 = load i32, i32* %4
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [9 x i32], [9 x i32]* %5, i64 0, i64 %97
%99 = load i32, i32* %98
%100 = load i32, i32* %2
%101 = load i32, i32* %4
%102 = add nsw i32 %101, 4
%103 = sub nsw i32 %100, %102
%104 = call i32 @gotoxy(i32 %99, i32 %103)
%105 = call i32 (...) @ln3()
br label %106
106: ; preds = %95
%107 = load i32, i32* %4
%108 = add nsw i32 %107, 1
store i32 %108, i32* %4
br label %92
109: ; preds = %92
br label %110
110: ; preds = %109, %84
%111 = call i32 @textcolor(i32 16)
%112 = call i32 @delay(i32 2000)
%113 = load i32, i32* %2
%114 = icmp eq i32 %113, 28
br i1 %114, label %115, label %154
115: ; preds = %110
store i32 1, i32* %2
%116 = load i32, i32* %3
%117 = add nsw i32 %116, 2
store i32 %117, i32* %3
store i32 0, i32* %4
br label %118
118: ; preds = %146, %115
%119 = load i32, i32* %4
%120 = icmp sle i32 %119, 8
br i1 %120, label %121, label %149
121: ; preds = %118
%122 = load i32, i32* %3
%123 = icmp sle i32 %122, 20
br i1 %123, label %124, label %131
124: ; preds = %121
%125 = call i32 @rand(i32 4)
%126 = load i32, i32* %4
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [9 x i32], [9 x i32]* %5, i64 0, i64 %127
%129 = load i32, i32* %128
%130 = add nsw i32 %129, %125
store i32 %130, i32* %128
br label %145
131: ; preds = %121
%132 = load i32, i32* %3
%133 = icmp sgt i32 %132, 20
br i1 %133, label %134, label %144
134: ; preds = %131
%135 = load i32, i32* %3
%136 = icmp sle i32 %135, 40
br i1 %136, label %137, label %144
137: ; preds = %134
%138 = call i32 @rand(i32 4)
%139 = load i32, i32* %4
%140 = sext i32 %139 to i64
%141 = getelementptr inbounds [9 x i32], [9 x i32]* %5, i64 0, i64 %140
%142 = load i32, i32* %141
%143 = sub nsw i32 %142, %138
store i32 %143, i32* %141
br label %144
144: ; preds = %137, %134, %131
br label %145
145: ; preds = %144, %124
br label %146
146: ; preds = %145
%147 = load i32, i32* %4
%148 = add nsw i32 %147, 1
store i32 %148, i32* %4
br label %118
149: ; preds = %118
%150 = load i32, i32* %3
%151 = icmp eq i32 %150, 81
br i1 %151, label %152, label %153
152: ; preds = %149
br label %158
153: ; preds = %149
br label %155
154: ; preds = %110
br label %155
155: ; preds = %154, %153
%156 = load i32, i32* %2
%157 = add nsw i32 %156, 1
store i32 %157, i32* %2
br label %20
158: ; preds = %152, %20
br label %159
159: ; preds = %163, %158
%160 = call i32 (...) @kbhit()
%161 = icmp ne i32 %160, 0
%162 = xor i1 %161, true
br i1 %162, label %163, label %164
163: ; preds = %159
br label %159
164: ; preds = %159
%165 = load i32, i32* %1
ret i32 %165
}

LLVM IR (-O2):
@.str = [32 x i8] c"RAIN IN C - AnarchyPunk - bY JF\00"
define i32 @main() {
%1 = alloca [9 x i32]
%2 = bitcast [9 x i32]* %1 to i8*
%3 = tail call i32 (...) @clrscr()
%4 = tail call i32 @rand(i32 79)
%5 = add nsw i32 %4, 1
%6 = getelementptr inbounds [9 x i32], [9 x i32]* %1, i64 0, i64 0
store i32 %5, i32* %6
%7 = tail call i32 @rand(i32 79)
%8 = add nsw i32 %7, 1
%9 = getelementptr inbounds [9 x i32], [9 x i32]* %1, i64 0, i64 1
store i32 %8, i32* %9
%10 = tail call i32 @rand(i32 79)
%11 = add nsw i32 %10, 1
%12 = getelementptr inbounds [9 x i32], [9 x i32]* %1, i64 0, i64 2
store i32 %11, i32* %12
%13 = tail call i32 @rand(i32 79)
%14 = add nsw i32 %13, 1
%15 = getelementptr inbounds [9 x i32], [9 x i32]* %1, i64 0, i64 3
store i32 %14, i32* %15
%16 = tail call i32 @rand(i32 79)
%17 = add nsw i32 %16, 1
%18 = getelementptr inbounds [9 x i32], [9 x i32]* %1, i64 0, i64 4
store i32 %17, i32* %18
%19 = tail call i32 @rand(i32 79)
%20 = add nsw i32 %19, 1
%21 = getelementptr inbounds [9 x i32], [9 x i32]* %1, i64 0, i64 5
store i32 %20, i32* %21
%22 = tail call i32 @rand(i32 79)
%23 = add nsw i32 %22, 1
%24 = getelementptr inbounds [9 x i32], [9 x i32]* %1, i64 0, i64 6
store i32 %23, i32* %24
%25 = tail call i32 @rand(i32 79)
%26 = add nsw i32 %25, 1
%27 = getelementptr inbounds [9 x i32], [9 x i32]* %1, i64 0, i64 7
store i32 %26, i32* %27
%28 = tail call i32 @rand(i32 79)
%29 = add nsw i32 %28, 1
%30 = getelementptr inbounds [9 x i32], [9 x i32]* %1, i64 0, i64 8
store i32 %29, i32* %30
%31 = getelementptr inbounds [9 x i32], [9 x i32]* %1, i64 0, i64 9
br label %32
32: ; preds = %180, %0
%33 = phi i32 [ 1, %0 ], [ %182, %180 ]
%34 = phi i32 [ 1, %0 ], [ %183, %180 ]
%35 = sub nsw i32 80, %33
store i32 %35, i32* %31
%36 = tail call i32 (...) @clrscr()
%37 = tail call i32 @gotoxy(i32 25, i32 23)
%38 = tail call i32 @textcolor(i32 15)
%39 = tail call i32 @cprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%40 = icmp eq i32 %34, 28
br i1 %40, label %156, label %41
41: ; preds = %32
%42 = add nsw i32 %34, -2
%43 = tail call i32 @gotoxy(i32 %33, i32 %42)
%44 = tail call i32 (...) @ln1()
%45 = add i32 %34, -6
%46 = load i32, i32* %6
%47 = tail call i32 @gotoxy(i32 %46, i32 %45)
%48 = tail call i32 (...) @ln1()
%49 = load i32, i32* %9
%50 = add i32 %34, -7
%51 = tail call i32 @gotoxy(i32 %49, i32 %50)
%52 = tail call i32 (...) @ln1()
%53 = load i32, i32* %12
%54 = add i32 %34, -8
%55 = tail call i32 @gotoxy(i32 %53, i32 %54)
%56 = tail call i32 (...) @ln1()
%57 = load i32, i32* %15
%58 = add i32 %34, -9
%59 = tail call i32 @gotoxy(i32 %57, i32 %58)
%60 = tail call i32 (...) @ln1()
%61 = load i32, i32* %18
%62 = add i32 %34, -10
%63 = tail call i32 @gotoxy(i32 %61, i32 %62)
%64 = tail call i32 (...) @ln1()
%65 = load i32, i32* %21
%66 = add i32 %34, -11
%67 = tail call i32 @gotoxy(i32 %65, i32 %66)
%68 = tail call i32 (...) @ln1()
%69 = load i32, i32* %24
%70 = add i32 %34, -12
%71 = tail call i32 @gotoxy(i32 %69, i32 %70)
%72 = tail call i32 (...) @ln1()
%73 = load i32, i32* %27
%74 = add i32 %34, -13
%75 = tail call i32 @gotoxy(i32 %73, i32 %74)
%76 = tail call i32 (...) @ln1()
%77 = load i32, i32* %30
%78 = add i32 %34, -14
%79 = tail call i32 @gotoxy(i32 %77, i32 %78)
%80 = tail call i32 (...) @ln1()
%81 = add i32 %34, -15
%82 = tail call i32 @gotoxy(i32 %35, i32 %81)
%83 = tail call i32 (...) @ln1()
%84 = icmp slt i32 %34, 27
br i1 %84, label %85, label %153
85: ; preds = %41
%86 = add nsw i32 %34, -1
%87 = tail call i32 @gotoxy(i32 %33, i32 %86)
%88 = tail call i32 (...) @ln2()
%89 = add i32 %34, -5
%90 = tail call i32 @gotoxy(i32 %46, i32 %89)
%91 = tail call i32 (...) @ln2()
%92 = add i32 %34, -6
%93 = tail call i32 @gotoxy(i32 %49, i32 %92)
%94 = tail call i32 (...) @ln2()
%95 = add i32 %34, -7
%96 = tail call i32 @gotoxy(i32 %53, i32 %95)
%97 = tail call i32 (...) @ln2()
%98 = add i32 %34, -8
%99 = tail call i32 @gotoxy(i32 %57, i32 %98)
%100 = tail call i32 (...) @ln2()
%101 = add i32 %34, -9
%102 = tail call i32 @gotoxy(i32 %61, i32 %101)
%103 = tail call i32 (...) @ln2()
%104 = add i32 %34, -10
%105 = tail call i32 @gotoxy(i32 %65, i32 %104)
%106 = tail call i32 (...) @ln2()
%107 = add i32 %34, -11
%108 = tail call i32 @gotoxy(i32 %69, i32 %107)
%109 = tail call i32 (...) @ln2()
%110 = add i32 %34, -12
%111 = tail call i32 @gotoxy(i32 %73, i32 %110)
%112 = tail call i32 (...) @ln2()
%113 = add i32 %34, -13
%114 = tail call i32 @gotoxy(i32 %77, i32 %113)
%115 = tail call i32 (...) @ln2()
%116 = add i32 %34, -14
%117 = tail call i32 @gotoxy(i32 %35, i32 %116)
%118 = tail call i32 (...) @ln2()
%119 = icmp eq i32 %34, 26
br i1 %119, label %153, label %120
120: ; preds = %85
%121 = tail call i32 @gotoxy(i32 %33, i32 %34)
%122 = tail call i32 (...) @ln3()
%123 = add i32 %34, -4
%124 = tail call i32 @gotoxy(i32 %46, i32 %123)
%125 = tail call i32 (...) @ln3()
%126 = add i32 %34, -5
%127 = tail call i32 @gotoxy(i32 %49, i32 %126)
%128 = tail call i32 (...) @ln3()
%129 = add i32 %34, -6
%130 = tail call i32 @gotoxy(i32 %53, i32 %129)
%131 = tail call i32 (...) @ln3()
%132 = add i32 %34, -7
%133 = tail call i32 @gotoxy(i32 %57, i32 %132)
%134 = tail call i32 (...) @ln3()
%135 = add i32 %34, -8
%136 = tail call i32 @gotoxy(i32 %61, i32 %135)
%137 = tail call i32 (...) @ln3()
%138 = add i32 %34, -9
%139 = tail call i32 @gotoxy(i32 %65, i32 %138)
%140 = tail call i32 (...) @ln3()
%141 = add i32 %34, -10
%142 = tail call i32 @gotoxy(i32 %69, i32 %141)
%143 = tail call i32 (...) @ln3()
%144 = add i32 %34, -11
%145 = tail call i32 @gotoxy(i32 %73, i32 %144)
%146 = tail call i32 (...) @ln3()
%147 = add i32 %34, -12
%148 = tail call i32 @gotoxy(i32 %77, i32 %147)
%149 = tail call i32 (...) @ln3()
%150 = add i32 %34, -13
%151 = tail call i32 @gotoxy(i32 %35, i32 %150)
%152 = tail call i32 (...) @ln3()
br label %153
153: ; preds = %120, %41, %85
%154 = tail call i32 @textcolor(i32 16)
%155 = tail call i32 @delay(i32 2000)
br label %180
156: ; preds = %32
%157 = tail call i32 @textcolor(i32 16)
%158 = tail call i32 @delay(i32 2000)
%159 = icmp slt i32 %33, 19
%160 = icmp ult i32 %33, 39
br label %161
161: ; preds = %156, %174
%162 = phi i64 [ 0, %156 ], [ %175, %174 ]
br i1 %159, label %163, label %168
163: ; preds = %161
%164 = tail call i32 @rand(i32 4)
%165 = getelementptr inbounds [9 x i32], [9 x i32]* %1, i64 0, i64 %162
%166 = load i32, i32* %165
%167 = add nsw i32 %166, %164
store i32 %167, i32* %165
br label %174
168: ; preds = %161
br i1 %160, label %169, label %174
169: ; preds = %168
%170 = tail call i32 @rand(i32 4)
%171 = getelementptr inbounds [9 x i32], [9 x i32]* %1, i64 0, i64 %162
%172 = load i32, i32* %171
%173 = sub nsw i32 %172, %170
store i32 %173, i32* %171
br label %174
174: ; preds = %163, %169, %168
%175 = add nuw nsw i64 %162, 1
%176 = icmp eq i64 %175, 9
br i1 %176, label %177, label %161
177: ; preds = %174
%178 = add nsw i32 %33, 2
%179 = icmp eq i32 %178, 81
br i1 %179, label %184, label %180
180: ; preds = %153, %177
%181 = phi i32 [ 1, %177 ], [ %34, %153 ]
%182 = phi i32 [ %178, %177 ], [ %33, %153 ]
%183 = add nsw i32 %181, 1
br label %32
184: ; preds = %177, %184
%185 = tail call i32 (...) @kbhit()
%186 = icmp eq i32 %185, 0
br i1 %186, label %184, label %187
187: ; preds = %184
ret i32 0
}