#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_BLINK;
int /*<<< orphan*/ COLOR_BLACK;
int /*<<< orphan*/ COLOR_CYAN;
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ getch();
int /*<<< orphan*/ init_pair(int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ mvchgat(int /*<<< orphan*/, int /*<<< orphan*/, int,
                           int /*<<< orphan*/, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printw(char *);
int /*<<< orphan*/ refresh();
int /*<<< orphan*/ start_color();
int main(int argc, char *argv[]) {
  initscr();
  start_color();
  init_pair(1, COLOR_CYAN, COLOR_BLACK);
  printw("A Big string which i didn't care to type fully ");
  mvchgat(0, 0, -1, A_BLINK, 1, NULL);
  refresh();
  getch();
  endwin();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <initscr@plt>
mov    $0x0,%al
call   1050 <start_color@plt>
mov    0x2e35(%rip),%rax
mov    (%rax),%esi
mov    0x2e34(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
lea    0xe39(%rip),%rdi
call   1070 <printw@plt>
mov    0x2e05(%rip),%rax
mov    (%rax),%ecx
xor    %esi,%esi
mov    $0xffffffff,%edx
mov    $0x1,%r8d
xor    %eax,%eax
mov    %eax,%r9d
mov    %esi,%edi
call   1060 <mvchgat@plt>
mov    $0x0,%al
call   1080 <refresh@plt>
mov    $0x0,%al
call   1090 <getch@plt>
mov    $0x0,%al
call   10a0 <endwin@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <initscr@plt>
xor    %eax,%eax
call   1050 <start_color@plt>
mov    0x2e4a(%rip),%rax
mov    (%rax),%esi
mov    0x2e49(%rip),%rax
mov    (%rax),%edx
mov    $0x1,%edi
call   1030 <init_pair@plt>
lea    0xe4e(%rip),%rdi
call   1070 <printw@plt>
mov    0x2e1a(%rip),%rax
mov    (%rax),%ecx
xor    %edi,%edi
xor    %esi,%esi
mov    $0xffffffff,%edx
mov    $0x1,%r8d
xor    %r9d,%r9d
call   1060 <mvchgat@plt>
xor    %eax,%eax
call   1080 <refresh@plt>
xor    %eax,%eax
call   1090 <getch@plt>
xor    %eax,%eax
call   10a0 <endwin@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@COLOR_CYAN = global i32 0
@COLOR_BLACK = global i32 0
@.str = [48 x i8] c"A Big string which i didn't care to type fully \00"
@A_BLINK = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @initscr()
%7 = call i32 (...) @start_color()
%8 = load i32, i32* @COLOR_CYAN
%9 = load i32, i32* @COLOR_BLACK
%10 = call i32 @init_pair(i32 1, i32 %8, i32 %9)
%11 = call i32 @printw(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* @A_BLINK
%13 = call i32 @mvchgat(i32 0, i32 0, i32 -1, i32 %12, i32 1, i32* null)
%14 = call i32 (...) @refresh()
%15 = call i32 (...) @getch()
%16 = call i32 (...) @endwin()
ret i32 0
}

LLVM IR (-O2):
@COLOR_CYAN = global i32 0
@COLOR_BLACK = global i32 0
@.str = [48 x i8] c"A Big string which i didn't care to type fully \00"
@A_BLINK = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @initscr()
%4 = tail call i32 (...) @start_color()
%5 = load i32, i32* @COLOR_CYAN
%6 = load i32, i32* @COLOR_BLACK
%7 = tail call i32 @init_pair(i32 1, i32 %5, i32 %6)
%8 = tail call i32 @printw(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* @A_BLINK
%10 = tail call i32 @mvchgat(i32 0, i32 0, i32 -1, i32 %9, i32 1, i32* null)
%11 = tail call i32 (...) @refresh()
%12 = tail call i32 (...) @getch()
%13 = tail call i32 (...) @endwin()
ret i32 0
}