#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*/ A_BOLD;
int /*<<< orphan*/ COLOR_BLACK;
int /*<<< orphan*/ COLOR_RED;
int /*<<< orphan*/ COLOR_WHITE;
int COLS;
int LINES;
int /*<<< orphan*/ addstr(char *);
int /*<<< orphan*/ attrset(int /*<<< orphan*/);
int /*<<< orphan*/ color_set(int, int /*<<< orphan*/);
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ move(int, int);
int /*<<< orphan*/ refresh();
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ start_color();
int /*<<< orphan*/ usleep(int);
int main() {
  int i = 0, sleep_time;
  initscr();
  attrset(A_BOLD);
  start_color();
  init_pair(1, COLOR_WHITE, COLOR_BLACK);
  init_pair(2, COLOR_RED, COLOR_BLACK);
  color_set(1, 0);
  sleep_time = 50000 * 100 / COLS;
  for (i = 0; i <= COLS / 2; i++) {
    move(LINES / 2, COLS - i - 5);
    addstr("divan ");
    move(LINES / 2, i);
    addstr(" engine");
    move(LINES - 1, COLS - 1);
    addstr(" ");
    usleep(sleep_time);
    refresh();
  }
  color_set(2, 0);
  for (i = 0; i <= LINES / 2; i++) {
    move(i, COLS / 2 + 1);
    addstr("E");
    move(i - 1, COLS / 2 + 1);
    addstr(" ");
    move(i, COLS / 2 - 5);
    addstr("D");
    move(i - 1, COLS / 2 - 5);
    addstr(" ");
    move(LINES - 1, COLS - 1);
    addstr(" ");
    usleep(60000);
    refresh();
  }
  sleep(1);
  move(LINES / 2, COLS / 2 - 4);
  addstr("     ");
  move(LINES / 2, COLS / 2 + 2);
  addstr("     ");
  move(LINES - 1, COLS - 1);
  addstr(" ");
  refresh();
  sleep(1);
  move(LINES / 2, COLS / 2 - 5);
  addstr("              ");
  refresh();
  endwin();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    $0x0,%al
call   1040 <initscr@plt>
mov    0x2dec(%rip),%rax
mov    (%rax),%edi
call   1080 <attrset@plt>
mov    $0x0,%al
call   1050 <start_color@plt>
mov    0x2ddf(%rip),%rax
mov    (%rax),%esi
mov    0x2dee(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    0x2db3(%rip),%rax
mov    (%rax),%esi
mov    0x2dd2(%rip),%rax
mov    (%rax),%edx
mov    $0x2,%edi
call   1030 <init_pair@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   10b0 <color_set@plt>
mov    $0x4c4b40,%eax
mov    0x2da6(%rip),%rcx
cltd
idivl  (%rcx)
mov    %eax,-0xc(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    0x2d8c(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
cmp    %ecx,%eax
jg     1303 <main+0x153>
mov    0x2d7e(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
mov    0x2d5b(%rip),%rax
mov    (%rax),%esi
sub    -0x8(%rbp),%esi
sub    $0x5,%esi
call   10d0 <move@plt>
lea    0xd6f(%rip),%rdi
call   1090 <addstr@plt>
mov    0x2d4b(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
mov    -0x8(%rbp),%esi
call   10d0 <move@plt>
lea    0xd4f(%rip),%rdi
call   1090 <addstr@plt>
mov    0x2d24(%rip),%rax
mov    (%rax),%edi
sub    $0x1,%edi
mov    0x2d08(%rip),%rax
mov    (%rax),%esi
sub    $0x1,%esi
call   10d0 <move@plt>
lea    0xd3f(%rip),%rdi
call   1090 <addstr@plt>
mov    -0xc(%rbp),%edi
call   10c0 <usleep@plt>
mov    $0x0,%al
call   1060 <refresh@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    123f <main+0x8f>
mov    $0x2,%edi
xor    %esi,%esi
call   10b0 <color_set@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    0x2cc5(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
cmp    %ecx,%eax
jg     1430 <main+0x280>
mov    -0x8(%rbp),%edi
mov    0x2c94(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
add    $0x1,%esi
call   10d0 <move@plt>
lea    0xcb0(%rip),%rdi
call   1090 <addstr@plt>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    0x2c67(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
add    $0x1,%esi
call   10d0 <move@plt>
lea    0xc94(%rip),%rdi
call   1090 <addstr@plt>
mov    -0x8(%rbp),%edi
mov    0x2c3d(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
sub    $0x5,%esi
call   10d0 <move@plt>
lea    0xc5b(%rip),%rdi
call   1090 <addstr@plt>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    0x2c10(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
sub    $0x5,%esi
call   10d0 <move@plt>
lea    0xc3d(%rip),%rdi
call   1090 <addstr@plt>
mov    0x2bf9(%rip),%rax
mov    (%rax),%edi
sub    $0x1,%edi
mov    0x2bdd(%rip),%rax
mov    (%rax),%esi
sub    $0x1,%esi
call   10d0 <move@plt>
lea    0xc14(%rip),%rdi
call   1090 <addstr@plt>
mov    $0xea60,%edi
call   10c0 <usleep@plt>
mov    $0x0,%al
call   1060 <refresh@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1316 <main+0x166>
mov    $0x1,%edi
call   10a0 <sleep@plt>
mov    0x2ba7(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
mov    0x2b84(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
sub    $0x4,%esi
call   10d0 <move@plt>
lea    0xbad(%rip),%rdi
call   1090 <addstr@plt>
mov    0x2b6d(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
mov    0x2b4a(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
add    $0x2,%esi
call   10d0 <move@plt>
lea    0xb73(%rip),%rdi
call   1090 <addstr@plt>
mov    0x2b33(%rip),%rax
mov    (%rax),%edi
sub    $0x1,%edi
mov    0x2b17(%rip),%rax
mov    (%rax),%esi
sub    $0x1,%esi
call   10d0 <move@plt>
lea    0xb4e(%rip),%rdi
call   1090 <addstr@plt>
mov    $0x0,%al
call   1060 <refresh@plt>
mov    $0x1,%edi
call   10a0 <sleep@plt>
mov    0x2af9(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
mov    0x2ad6(%rip),%rax
mov    (%rax),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
sub    $0x5,%esi
call   10d0 <move@plt>
lea    0xaf6(%rip),%rdi
call   1090 <addstr@plt>
mov    $0x0,%al
call   1060 <refresh@plt>
mov    $0x0,%al
call   1070 <endwin@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <initscr@plt>
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
call   1080 <attrset@plt>
xor    %eax,%eax
call   1050 <start_color@plt>
mov    0x2dea(%rip),%rax
mov    (%rax),%esi
mov    0x2df9(%rip),%rbx
mov    (%rbx),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
mov    0x2dbe(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x2,%edi
call   1030 <init_pair@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   10b0 <color_set@plt>
mov    0x2dbd(%rip),%r13
mov    0x0(%r13),%esi
mov    $0x4c4b40,%eax
xor    %edx,%edx
idiv   %esi
cmp    $0xffffffff,%esi
jl     12cf <main+0x11f>
mov    %eax,%ebx
mov    $0xffffffff,%ebp
mov    $0xfffffffb,%r14d
mov    0x2da3(%rip),%r15
lea    0xdd4(%rip),%r12
nopl   0x0(%rax)
add    $0x1,%ebp
mov    (%r15),%eax
mov    %eax,%edi
shr    $0x1f,%edi
add    %eax,%edi
sar    %edi
add    %r14d,%esi
call   10d0 <move@plt>
lea    0xd92(%rip),%rdi
call   1090 <addstr@plt>
mov    (%r15),%eax
mov    %eax,%edi
shr    $0x1f,%edi
add    %eax,%edi
sar    %edi
mov    %ebp,%esi
call   10d0 <move@plt>
lea    0xd7a(%rip),%rdi
call   1090 <addstr@plt>
mov    (%r15),%edi
add    $0xffffffff,%edi
mov    0x0(%r13),%esi
add    $0xffffffff,%esi
call   10d0 <move@plt>
mov    %r12,%rdi
call   1090 <addstr@plt>
mov    %ebx,%edi
call   10c0 <usleep@plt>
xor    %eax,%eax
call   1060 <refresh@plt>
mov    0x0(%r13),%esi
mov    %esi,%eax
shr    $0x1f,%eax
add    %esi,%eax
sar    %eax
add    $0xffffffff,%r14d
cmp    %eax,%ebp
jl     1250 <main+0xa0>
mov    $0x2,%edi
xor    %esi,%esi
call   10b0 <color_set@plt>
mov    0x2d06(%rip),%r14
cmpl   $0xffffffff,(%r14)
jl     13c7 <main+0x217>
lea    0xd2d(%rip),%r12
lea    0xd17(%rip),%r15
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    0x0(%r13),%eax
mov    %eax,%esi
shr    $0x1f,%esi
add    %eax,%esi
sar    %esi
add    $0x1,%esi
mov    %ebx,%edi
call   10d0 <move@plt>
lea    0xcf1(%rip),%rdi
call   1090 <addstr@plt>
mov    0x0(%r13),%eax
mov    %eax,%esi
shr    $0x1f,%esi
add    %eax,%esi
sar    %esi
add    $0x1,%esi
lea    -0x1(%rbx),%ebp
mov    %ebp,%edi
call   10d0 <move@plt>
mov    %r12,%rdi
call   1090 <addstr@plt>
mov    0x0(%r13),%eax
mov    %eax,%esi
shr    $0x1f,%esi
add    %eax,%esi
sar    %esi
add    $0xfffffffb,%esi
mov    %ebx,%edi
call   10d0 <move@plt>
mov    %r15,%rdi
call   1090 <addstr@plt>
mov    0x0(%r13),%eax
mov    %eax,%esi
shr    $0x1f,%esi
add    %eax,%esi
sar    %esi
add    $0xfffffffb,%esi
mov    %ebp,%edi
call   10d0 <move@plt>
mov    %r12,%rdi
call   1090 <addstr@plt>
mov    (%r14),%edi
add    $0xffffffff,%edi
mov    0x0(%r13),%esi
add    $0xffffffff,%esi
call   10d0 <move@plt>
mov    %r12,%rdi
call   1090 <addstr@plt>
mov    $0xea60,%edi
call   10c0 <usleep@plt>
xor    %eax,%eax
call   1060 <refresh@plt>
mov    (%r14),%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
lea    0x1(%rbx),%eax
cmp    %ecx,%ebx
mov    %eax,%ebx
jl     1300 <main+0x150>
mov    $0x1,%edi
call   10a0 <sleep@plt>
mov    (%r14),%eax
mov    %eax,%edi
shr    $0x1f,%edi
add    %eax,%edi
sar    %edi
mov    0x0(%r13),%eax
mov    %eax,%esi
shr    $0x1f,%esi
add    %eax,%esi
sar    %esi
add    $0xfffffffc,%esi
call   10d0 <move@plt>
lea    0xc23(%rip),%rbx
mov    %rbx,%rdi
call   1090 <addstr@plt>
mov    (%r14),%eax
mov    %eax,%edi
shr    $0x1f,%edi
add    %eax,%edi
sar    %edi
mov    0x0(%r13),%eax
mov    %eax,%esi
shr    $0x1f,%esi
add    %eax,%esi
sar    %esi
add    $0x2,%esi
call   10d0 <move@plt>
mov    %rbx,%rdi
call   1090 <addstr@plt>
mov    (%r14),%edi
add    $0xffffffff,%edi
mov    0x0(%r13),%esi
add    $0xffffffff,%esi
call   10d0 <move@plt>
lea    0xbdd(%rip),%rdi
call   1090 <addstr@plt>
xor    %eax,%eax
call   1060 <refresh@plt>
mov    $0x1,%edi
call   10a0 <sleep@plt>
mov    (%r14),%eax
mov    %eax,%edi
shr    $0x1f,%edi
add    %eax,%edi
sar    %edi
mov    0x0(%r13),%eax
mov    %eax,%esi
shr    $0x1f,%esi
add    %eax,%esi
sar    %esi
add    $0xfffffffb,%esi
call   10d0 <move@plt>
lea    0xb92(%rip),%rdi
call   1090 <addstr@plt>
xor    %eax,%eax
call   1060 <refresh@plt>
xor    %eax,%eax
call   1070 <endwin@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@A_BOLD = global i32 0
@COLOR_WHITE = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_RED = global i32 0
@COLS = global i32 0
@LINES = global i32 0
@.str = [7 x i8] c"divan \00"
@.str.1 = [8 x i8] c" engine\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [2 x i8] c"E\00"
@.str.4 = [2 x i8] c"D\00"
@.str.5 = [6 x i8] c" \00"
@.str.6 = [15 x i8] c" \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%4 = call i32 (...) @initscr()
%5 = load i32, i32* @A_BOLD
%6 = call i32 @attrset(i32 %5)
%7 = call i32 (...) @start_color()
%8 = load i32, i32* @COLOR_WHITE
%9 = load i32, i32* @COLOR_BLACK
%10 = call i32 @init_pair(i32 1, i32 %8, i32 %9)
%11 = load i32, i32* @COLOR_RED
%12 = load i32, i32* @COLOR_BLACK
%13 = call i32 @init_pair(i32 2, i32 %11, i32 %12)
%14 = call i32 @color_set(i32 1, i32 0)
%15 = load i32, i32* @COLS
%16 = sdiv i32 5000000, %15
store i32 %16, i32* %3
store i32 0, i32* %2
br label %17
17: ; preds = %45, %0
%18 = load i32, i32* %2
%19 = load i32, i32* @COLS
%20 = sdiv i32 %19, 2
%21 = icmp sle i32 %18, %20
br i1 %21, label %22, label %48
22: ; preds = %17
%23 = load i32, i32* @LINES
%24 = sdiv i32 %23, 2
%25 = load i32, i32* @COLS
%26 = load i32, i32* %2
%27 = sub nsw i32 %25, %26
%28 = sub nsw i32 %27, 5
%29 = call i32 @move(i32 %24, i32 %28)
%30 = call i32 @addstr(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%31 = load i32, i32* @LINES
%32 = sdiv i32 %31, 2
%33 = load i32, i32* %2
%34 = call i32 @move(i32 %32, i32 %33)
%35 = call i32 @addstr(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%36 = load i32, i32* @LINES
%37 = sub nsw i32 %36, 1
%38 = load i32, i32* @COLS
%39 = sub nsw i32 %38, 1
%40 = call i32 @move(i32 %37, i32 %39)
%41 = call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%42 = load i32, i32* %3
%43 = call i32 @usleep(i32 %42)
%44 = call i32 (...) @refresh()
br label %45
45: ; preds = %22
%46 = load i32, i32* %2
%47 = add nsw i32 %46, 1
store i32 %47, i32* %2
br label %17
48: ; preds = %17
%49 = call i32 @color_set(i32 2, i32 0)
store i32 0, i32* %2
br label %50
50: ; preds = %90, %48
%51 = load i32, i32* %2
%52 = load i32, i32* @LINES
%53 = sdiv i32 %52, 2
%54 = icmp sle i32 %51, %53
br i1 %54, label %55, label %93
55: ; preds = %50
%56 = load i32, i32* %2
%57 = load i32, i32* @COLS
%58 = sdiv i32 %57, 2
%59 = add nsw i32 %58, 1
%60 = call i32 @move(i32 %56, i32 %59)
%61 = call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%62 = load i32, i32* %2
%63 = sub nsw i32 %62, 1
%64 = load i32, i32* @COLS
%65 = sdiv i32 %64, 2
%66 = add nsw i32 %65, 1
%67 = call i32 @move(i32 %63, i32 %66)
%68 = call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%69 = load i32, i32* %2
%70 = load i32, i32* @COLS
%71 = sdiv i32 %70, 2
%72 = sub nsw i32 %71, 5
%73 = call i32 @move(i32 %69, i32 %72)
%74 = call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%75 = load i32, i32* %2
%76 = sub nsw i32 %75, 1
%77 = load i32, i32* @COLS
%78 = sdiv i32 %77, 2
%79 = sub nsw i32 %78, 5
%80 = call i32 @move(i32 %76, i32 %79)
%81 = call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%82 = load i32, i32* @LINES
%83 = sub nsw i32 %82, 1
%84 = load i32, i32* @COLS
%85 = sub nsw i32 %84, 1
%86 = call i32 @move(i32 %83, i32 %85)
%87 = call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%88 = call i32 @usleep(i32 60000)
%89 = call i32 (...) @refresh()
br label %90
90: ; preds = %55
%91 = load i32, i32* %2
%92 = add nsw i32 %91, 1
store i32 %92, i32* %2
br label %50
93: ; preds = %50
%94 = call i32 @sleep(i32 1)
%95 = load i32, i32* @LINES
%96 = sdiv i32 %95, 2
%97 = load i32, i32* @COLS
%98 = sdiv i32 %97, 2
%99 = sub nsw i32 %98, 4
%100 = call i32 @move(i32 %96, i32 %99)
%101 = call i32 @addstr(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%102 = load i32, i32* @LINES
%103 = sdiv i32 %102, 2
%104 = load i32, i32* @COLS
%105 = sdiv i32 %104, 2
%106 = add nsw i32 %105, 2
%107 = call i32 @move(i32 %103, i32 %106)
%108 = call i32 @addstr(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%109 = load i32, i32* @LINES
%110 = sub nsw i32 %109, 1
%111 = load i32, i32* @COLS
%112 = sub nsw i32 %111, 1
%113 = call i32 @move(i32 %110, i32 %112)
%114 = call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%115 = call i32 (...) @refresh()
%116 = call i32 @sleep(i32 1)
%117 = load i32, i32* @LINES
%118 = sdiv i32 %117, 2
%119 = load i32, i32* @COLS
%120 = sdiv i32 %119, 2
%121 = sub nsw i32 %120, 5
%122 = call i32 @move(i32 %118, i32 %121)
%123 = call i32 @addstr(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%124 = call i32 (...) @refresh()
%125 = call i32 (...) @endwin()
%126 = load i32, i32* %1
ret i32 %126
}

LLVM IR (-O2):
@A_BOLD = global i32 0
@COLOR_WHITE = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_RED = global i32 0
@COLS = global i32 0
@LINES = global i32 0
@.str = [7 x i8] c"divan \00"
@.str.1 = [8 x i8] c" engine\00"
@.str.2 = [2 x i8] c" \00"
@.str.3 = [2 x i8] c"E\00"
@.str.4 = [2 x i8] c"D\00"
@.str.5 = [6 x i8] c" \00"
@.str.6 = [15 x i8] c" \00"
define i32 @main() {
%1 = tail call i32 (...) @initscr()
%2 = load i32, i32* @A_BOLD
%3 = tail call i32 @attrset(i32 %2)
%4 = tail call i32 (...) @start_color()
%5 = load i32, i32* @COLOR_WHITE
%6 = load i32, i32* @COLOR_BLACK
%7 = tail call i32 @init_pair(i32 1, i32 %5, i32 %6)
%8 = load i32, i32* @COLOR_RED
%9 = load i32, i32* @COLOR_BLACK
%10 = tail call i32 @init_pair(i32 2, i32 %8, i32 %9)
%11 = tail call i32 @color_set(i32 1, i32 0)
%12 = load i32, i32* @COLS
%13 = sdiv i32 5000000, %12
%14 = icmp slt i32 %12, -1
br i1 %14, label %40, label %15
15: ; preds = %0, %15
%16 = phi i32 [ %37, %15 ], [ %12, %0 ]
%17 = phi i32 [ %36, %15 ], [ 0, %0 ]
%18 = load i32, i32* @LINES
%19 = sdiv i32 %18, 2
%20 = sub nuw nsw i32 -5, %17
%21 = add i32 %20, %16
%22 = tail call i32 @move(i32 %19, i32 %21)
%23 = tail call i32 @addstr(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%24 = load i32, i32* @LINES
%25 = sdiv i32 %24, 2
%26 = tail call i32 @move(i32 %25, i32 %17)
%27 = tail call i32 @addstr(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%28 = load i32, i32* @LINES
%29 = add nsw i32 %28, -1
%30 = load i32, i32* @COLS
%31 = add nsw i32 %30, -1
%32 = tail call i32 @move(i32 %29, i32 %31)
%33 = tail call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%34 = tail call i32 @usleep(i32 %13)
%35 = tail call i32 (...) @refresh()
%36 = add nuw nsw i32 %17, 1
%37 = load i32, i32* @COLS
%38 = sdiv i32 %37, 2
%39 = icmp slt i32 %17, %38
br i1 %39, label %15, label %40
40: ; preds = %15, %0
%41 = tail call i32 @color_set(i32 2, i32 0)
%42 = load i32, i32* @LINES
%43 = icmp slt i32 %42, -1
br i1 %43, label %79, label %44
44: ; preds = %40, %44
%45 = phi i32 [ %75, %44 ], [ 0, %40 ]
%46 = load i32, i32* @COLS
%47 = sdiv i32 %46, 2
%48 = add nsw i32 %47, 1
%49 = tail call i32 @move(i32 %45, i32 %48)
%50 = tail call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%51 = add nsw i32 %45, -1
%52 = load i32, i32* @COLS
%53 = sdiv i32 %52, 2
%54 = add nsw i32 %53, 1
%55 = tail call i32 @move(i32 %51, i32 %54)
%56 = tail call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%57 = load i32, i32* @COLS
%58 = sdiv i32 %57, 2
%59 = add nsw i32 %58, -5
%60 = tail call i32 @move(i32 %45, i32 %59)
%61 = tail call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%62 = load i32, i32* @COLS
%63 = sdiv i32 %62, 2
%64 = add nsw i32 %63, -5
%65 = tail call i32 @move(i32 %51, i32 %64)
%66 = tail call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%67 = load i32, i32* @LINES
%68 = add nsw i32 %67, -1
%69 = load i32, i32* @COLS
%70 = add nsw i32 %69, -1
%71 = tail call i32 @move(i32 %68, i32 %70)
%72 = tail call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%73 = tail call i32 @usleep(i32 60000)
%74 = tail call i32 (...) @refresh()
%75 = add nuw nsw i32 %45, 1
%76 = load i32, i32* @LINES
%77 = sdiv i32 %76, 2
%78 = icmp slt i32 %45, %77
br i1 %78, label %44, label %79
79: ; preds = %44, %40
%80 = tail call i32 @sleep(i32 1)
%81 = load i32, i32* @LINES
%82 = sdiv i32 %81, 2
%83 = load i32, i32* @COLS
%84 = sdiv i32 %83, 2
%85 = add nsw i32 %84, -4
%86 = tail call i32 @move(i32 %82, i32 %85)
%87 = tail call i32 @addstr(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%88 = load i32, i32* @LINES
%89 = sdiv i32 %88, 2
%90 = load i32, i32* @COLS
%91 = sdiv i32 %90, 2
%92 = add nsw i32 %91, 2
%93 = tail call i32 @move(i32 %89, i32 %92)
%94 = tail call i32 @addstr(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%95 = load i32, i32* @LINES
%96 = add nsw i32 %95, -1
%97 = load i32, i32* @COLS
%98 = add nsw i32 %97, -1
%99 = tail call i32 @move(i32 %96, i32 %98)
%100 = tail call i32 @addstr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%101 = tail call i32 (...) @refresh()
%102 = tail call i32 @sleep(i32 1)
%103 = load i32, i32* @LINES
%104 = sdiv i32 %103, 2
%105 = load i32, i32* @COLS
%106 = sdiv i32 %105, 2
%107 = add nsw i32 %106, -5
%108 = tail call i32 @move(i32 %104, i32 %107)
%109 = tail call i32 @addstr(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%110 = tail call i32 (...) @refresh()
%111 = tail call i32 (...) @endwin()
ret i32 0
}