#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*/ printf(char *);
void welcome() {
  printf("tetris-term  Copyright (C) 2014  Gjum\n");
  printf("\n");
  printf("This program comes with ABSOLUTELY NO WARRANTY.\n");
  printf("This is free software, and you are welcome to redistribute it\n");
  printf("under certain conditions; see `LICENSE' for details.\n");
  printf("\n");
  printf("\e[30;40m  \e[31;41m  \e[30;40m  \e[34;44m  \e[34;44m  \e[34;44m  "
         "\e[33;43m  \e[30;40m  \e[30;40m  \e[30;40m  \e[37;47m  \e[35;45m  "
         "\e[35;45m  \e[35;45m  \e[39;49m\n");
  printf("\e[31;41m  \e[31;41m  \e[31;41m  \e[34;44m  \e[30;40m  \e[35;45m  "
         "\e[33;43m  \e[33;43m  \e[33;43m  \e[30;40m  \e[37;47m  \e[35;45m  "
         "\e[30;40m  \e[30;40m  \e[39;49m\n");
  printf("\e[30;40m  \e[36;46m  \e[30;40m  \e[35;45m  \e[35;45m  \e[35;45m  "
         "\e[32;42m  \e[30;40m  \e[31;41m  \e[31;41m  \e[37;47m  \e[34;44m  "
         "\e[34;44m  \e[34;44m  \e[39;49m\n");
  printf("\e[30;40m  \e[36;46m  \e[30;40m  \e[34;44m  \e[30;40m  \e[30;40m  "
         "\e[32;42m  \e[30;40m  \e[31;41m  \e[30;40m  \e[37;47m  \e[30;40m  "
         "\e[30;40m  \e[34;44m  \e[39;49m\n");
  printf("\e[30;40m  \e[36;46m  \e[36;46m  \e[34;44m  \e[34;44m  \e[34;44m  "
         "\e[32;42m  \e[32;42m  \e[31;41m  \e[30;40m  \e[35;45m  \e[35;45m  "
         "\e[35;45m  \e[35;45m  \e[39;49m\n");
  printf("\n");
  printf("\e[1mControls:\e[0m\n");
  printf("<Left>  move brick left\n");
  printf("<Right> move brick right\n");
  printf("<Up>    rotate brick clockwise\n");
  printf("<Down>  rotate brick counter-clockwise\n");
  printf("<Space> move brick down by one step\n");
  printf("<p>     pause game\n");
  printf("<q>     quit game\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<welcome>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4c(%rip),%rdi
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6a(%rip),%rdi
call   1030 <printf@plt>
lea    0xff4(%rip),%rdi
call   1030 <printf@plt>
lea    0x107e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1108(%rip),%rdi
call   1030 <printf@plt>
lea    0x1192(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1210(%rip),%rdi
call   1030 <printf@plt>
lea    0x1217(%rip),%rdi
call   1030 <printf@plt>
lea    0x1224(%rip),%rdi
call   1030 <printf@plt>
lea    0x1232(%rip),%rdi
call   1030 <printf@plt>
lea    0x1246(%rip),%rdi
call   1030 <printf@plt>
lea    0x1262(%rip),%rdi
call   1030 <printf@plt>
lea    0x127b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1283(%rip),%rdi
call   1030 <printf@plt>
lea    0xe4b(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<welcome>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xee8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf0c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3e(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf5d(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe6(%rip),%rdi
call   1040 <puts@plt>
lea    0x106f(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f8(%rip),%rdi
call   1040 <puts@plt>
lea    0x1181(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1200(%rip),%rdi
call   1040 <puts@plt>
lea    0x1206(%rip),%rdi
call   1040 <puts@plt>
lea    0x1212(%rip),%rdi
call   1040 <puts@plt>
lea    0x121f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1232(%rip),%rdi
call   1040 <puts@plt>
lea    0x124d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1265(%rip),%rdi
call   1040 <puts@plt>
lea    0x126c(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [39 x i8] c"tetris-term Copyright (C) 2014 Gjum\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [49 x i8] c"This program comes with ABSOLUTELY NO WARRANTY.\0A\00"
@.str.3 = [63 x i8] c"This is free software, and you are welcome to redistribute it\0A\00"
@.str.4 = [54 x i8] c"under certain conditions; see `LICENSE' for details.\0A\00"
@.str.5 = [150 x i8] c"\1B[30;40m \1B[31;41m \1B[30;40m \1B[34;44m \1B[34;44m \1B[34;44m \1B[33;43m \1B[30;40m \1B[30;40m \1B[30;40m \1B[37;47m \1B[35;45m \1B[35;45m \1B[35;45m \1B[39;49m\0A\00"
@.str.6 = [150 x i8] c"\1B[31;41m \1B[31;41m \1B[31;41m \1B[34;44m \1B[30;40m \1B[35;45m \1B[33;43m \1B[33;43m \1B[33;43m \1B[30;40m \1B[37;47m \1B[35;45m \1B[30;40m \1B[30;40m \1B[39;49m\0A\00"
@.str.7 = [150 x i8] c"\1B[30;40m \1B[36;46m \1B[30;40m \1B[35;45m \1B[35;45m \1B[35;45m \1B[32;42m \1B[30;40m \1B[31;41m \1B[31;41m \1B[37;47m \1B[34;44m \1B[34;44m \1B[34;44m \1B[39;49m\0A\00"
@.str.8 = [150 x i8] c"\1B[30;40m \1B[36;46m \1B[30;40m \1B[34;44m \1B[30;40m \1B[30;40m \1B[32;42m \1B[30;40m \1B[31;41m \1B[30;40m \1B[37;47m \1B[30;40m \1B[30;40m \1B[34;44m \1B[39;49m\0A\00"
@.str.9 = [150 x i8] c"\1B[30;40m \1B[36;46m \1B[36;46m \1B[34;44m \1B[34;44m \1B[34;44m \1B[32;42m \1B[32;42m \1B[31;41m \1B[30;40m \1B[35;45m \1B[35;45m \1B[35;45m \1B[35;45m \1B[39;49m\0A\00"
@.str.10 = [19 x i8] c"\1B[1mControls:\1B[0m\0A\00"
@.str.11 = [25 x i8] c"<Left> move brick left\0A\00"
@.str.12 = [26 x i8] c"<Right> move brick right\0A\00"
@.str.13 = [32 x i8] c"<Up> rotate brick clockwise\0A\00"
@.str.14 = [40 x i8] c"<Down> rotate brick counter-clockwise\0A\00"
@.str.15 = [37 x i8] c"<Space> move brick down by one step\0A\00"
@.str.16 = [20 x i8] c"<p> pause game\0A\00"
@.str.17 = [19 x i8] c"<q> quit game\0A\00"
define void @welcome() {
%1 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.17, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [38 x i8] c"tetris-term Copyright (C) 2014 Gjum\00"
@str.18 = [48 x i8] c"This program comes with ABSOLUTELY NO WARRANTY.\00"
@str.19 = [62 x i8] c"This is free software, and you are welcome to redistribute it\00"
@str.20 = [53 x i8] c"under certain conditions; see `LICENSE' for details.\00"
@str.21 = [149 x i8] c"\1B[30;40m \1B[31;41m \1B[30;40m \1B[34;44m \1B[34;44m \1B[34;44m \1B[33;43m \1B[30;40m \1B[30;40m \1B[30;40m \1B[37;47m \1B[35;45m \1B[35;45m \1B[35;45m \1B[39;49m\00"
@str.22 = [149 x i8] c"\1B[31;41m \1B[31;41m \1B[31;41m \1B[34;44m \1B[30;40m \1B[35;45m \1B[33;43m \1B[33;43m \1B[33;43m \1B[30;40m \1B[37;47m \1B[35;45m \1B[30;40m \1B[30;40m \1B[39;49m\00"
@str.23 = [149 x i8] c"\1B[30;40m \1B[36;46m \1B[30;40m \1B[35;45m \1B[35;45m \1B[35;45m \1B[32;42m \1B[30;40m \1B[31;41m \1B[31;41m \1B[37;47m \1B[34;44m \1B[34;44m \1B[34;44m \1B[39;49m\00"
@str.24 = [149 x i8] c"\1B[30;40m \1B[36;46m \1B[30;40m \1B[34;44m \1B[30;40m \1B[30;40m \1B[32;42m \1B[30;40m \1B[31;41m \1B[30;40m \1B[37;47m \1B[30;40m \1B[30;40m \1B[34;44m \1B[39;49m\00"
@str.25 = [149 x i8] c"\1B[30;40m \1B[36;46m \1B[36;46m \1B[34;44m \1B[34;44m \1B[34;44m \1B[32;42m \1B[32;42m \1B[31;41m \1B[30;40m \1B[35;45m \1B[35;45m \1B[35;45m \1B[35;45m \1B[39;49m\00"
@str.26 = [18 x i8] c"\1B[1mControls:\1B[0m\00"
@str.27 = [24 x i8] c"<Left> move brick left\00"
@str.28 = [25 x i8] c"<Right> move brick right\00"
@str.29 = [31 x i8] c"<Up> rotate brick clockwise\00"
@str.30 = [39 x i8] c"<Down> rotate brick counter-clockwise\00"
@str.31 = [36 x i8] c"<Space> move brick down by one step\00"
@str.32 = [19 x i8] c"<p> pause game\00"
@str.33 = [18 x i8] c"<q> quit game\00"
define void @welcome() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @putchar(i32 10)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([149 x i8], [149 x i8]* @str.21, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([149 x i8], [149 x i8]* @str.22, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([149 x i8], [149 x i8]* @str.23, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([149 x i8], [149 x i8]* @str.24, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([149 x i8], [149 x i8]* @str.25, i64 0, i64 0))
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.26, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.27, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.28, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.29, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.30, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.31, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.32, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.33, i64 0, i64 0))
%21 = tail call i32 @putchar(i32 10)
ret void
}