#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 draw_editor_header() {
  printf("\x1b[0m");
  printf("[0;31m            .-------------------------.\n");
  printf("[1;32m  /|||\\\\   [0;31m|[1mCompose your message here[0;31m|\n");
  printf("[1;32m /[0;31mC^,^C[1;32m\\\\   [0;31m|  "
         "[0;33m=-=-=-=-=-=-=-=-=-=-=-  [0;31m|\n");
  printf("[1;32m \\\\\\[0;31mo [1;32m///   [0;31m|<^> the `caret` key will "
         "[0;31m|\n");
  printf("[0;31m/P  ||      [0;31m| allow you to change the [0;31m|\n");
  printf("[0;31m\\\\/[1;33m(  )[0;31m\\    [0;31m|color of text then "
         "punch,[0;31m|\n");
  printf("[0;31m \\/[1;33m \\_\\[0;31m\\\\   [0;31m| b,r,m,g,y,B,R,M,G, or "
         "Y.[0;31m|\n");
  printf("[1;33m   /   \\[0;31m\\P  [0;31m|[1m <[0;31menter[1m> key "
         "twice prompt [0;31m|\n");
  printf("[1;33m   \\___/    [0;31m| you to save the message.[0;31m!|\n");
  printf("[0;31m    \\\\\\\\    [0;31m`-------------------------'\n");
  printf("\033[0;31m~~~~\033[1m.\033[0;31m~~~~\033[1m.\033[0;31m~~~~\033[1m."
         "\033[0;31m~~~~\033[1m.\033[0;31m~~~~\033[1m.\033[0;31m~~~~\033[1m."
         "\033[0;31m~~~~\033[1m.\033[0;31m~~~~\033[1m.\033[0m");
}


x86 assembly (clang, -O0):
<draw_editor_header>:
push   %rbp
mov    %rsp,%rbp
lea    0x1217(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7a(%rip),%rdi
call   1030 <printf@plt>
lea    0xfba(%rip),%rdi
call   1030 <printf@plt>
lea    0xfec(%rip),%rdi
call   1030 <printf@plt>
lea    0x102c(%rip),%rdi
call   1030 <printf@plt>
lea    0x106c(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b5(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e8(%rip),%rdi
call   1030 <printf@plt>
lea    0x1113(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_editor_header>:
push   %rax
lea    0xf58(%rip),%rdi
call   1040 <printf@plt>
lea    0xf51(%rip),%rdi
call   1030 <puts@plt>
lea    0xf74(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfef(%rip),%rdi
call   1030 <puts@plt>
lea    0x102e(%rip),%rdi
call   1030 <puts@plt>
lea    0x105f(%rip),%rdi
call   1030 <puts@plt>
lea    0x109e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10dd(%rip),%rdi
call   1030 <puts@plt>
lea    0x1125(%rip),%rdi
call   1030 <puts@plt>
lea    0x1157(%rip),%rdi
call   1030 <puts@plt>
lea    0xe54(%rip),%rdi
pop    %rax
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"\1B[0m\00"
@.str.1 = [48 x i8] c"\1B[0;31m .-------------------------.\0A\00"
@.str.2 = [65 x i8] c"\1B[1;32m /|||\\\\ \1B[0;31m|\1B[1mCompose your message here\1B[0;31m|\0A\00"
@.str.3 = [84 x i8] c"\1B[1;32m /\1B[0;31mC^,^C\1B[1;32m\\\\ \1B[0;31m| \1B[0;33m=-=-=-=-=-=-=-=-=-=-=- \1B[0;31m|\0A\00"
@.str.4 = [76 x i8] c"\1B[1;32m \\\\\\\1B[0;31mo \1B[1;32m/// \1B[0;31m|<^> the `caret` key will \1B[0;31m|\0A\00"
@.str.5 = [62 x i8] c"\1B[0;31m/P || \1B[0;31m| allow you to change the \1B[0;31m|\0A\00"
@.str.6 = [76 x i8] c"\1B[0;31m\\\\/\1B[1;33m( )\1B[0;31m\\ \1B[0;31m|color of text then punch,\1B[0;31m|\0A\00"
@.str.7 = [76 x i8] c"\1B[0;31m \\/\1B[1;33m \\_\\\1B[0;31m\\\\ \1B[0;31m| b,r,m,g,y,B,R,M,G, or Y.\1B[0;31m|\0A\00"
@.str.8 = [85 x i8] c"\1B[1;33m / \\\1B[0;31m\\P \1B[0;31m|\1B[1m <\1B[0;31menter\1B[1m> key twice prompt \1B[0;31m|\0A\00"
@.str.9 = [63 x i8] c"\1B[1;33m \\___/ \1B[0;31m| you to save the message.\1B[0;31m!|\0A\00"
@.str.10 = [55 x i8] c"\1B[0;31m \\\\\\\\ \1B[0;31m`-------------------------'\0A\00"
@.str.11 = [133 x i8] c"\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0m\00"
define void @draw_editor_header() {
%1 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"\1B[0m\00"
@.str.11 = [133 x i8] c"\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0;31m~~~~\1B[1m.\1B[0m\00"
@str = [47 x i8] c"\1B[0;31m .-------------------------.\00"
@str.12 = [64 x i8] c"\1B[1;32m /|||\\\\ \1B[0;31m|\1B[1mCompose your message here\1B[0;31m|\00"
@str.13 = [83 x i8] c"\1B[1;32m /\1B[0;31mC^,^C\1B[1;32m\\\\ \1B[0;31m| \1B[0;33m=-=-=-=-=-=-=-=-=-=-=- \1B[0;31m|\00"
@str.14 = [75 x i8] c"\1B[1;32m \\\\\\\1B[0;31mo \1B[1;32m/// \1B[0;31m|<^> the `caret` key will \1B[0;31m|\00"
@str.15 = [61 x i8] c"\1B[0;31m/P || \1B[0;31m| allow you to change the \1B[0;31m|\00"
@str.16 = [75 x i8] c"\1B[0;31m\\\\/\1B[1;33m( )\1B[0;31m\\ \1B[0;31m|color of text then punch,\1B[0;31m|\00"
@str.17 = [75 x i8] c"\1B[0;31m \\/\1B[1;33m \\_\\\1B[0;31m\\\\ \1B[0;31m| b,r,m,g,y,B,R,M,G, or Y.\1B[0;31m|\00"
@str.18 = [84 x i8] c"\1B[1;33m / \\\1B[0;31m\\P \1B[0;31m|\1B[1m <\1B[0;31menter\1B[1m> key twice prompt \1B[0;31m|\00"
@str.19 = [62 x i8] c"\1B[1;33m \\___/ \1B[0;31m| you to save the message.\1B[0;31m!|\00"
@str.20 = [54 x i8] c"\1B[0;31m \\\\\\\\ \1B[0;31m`-------------------------'\00"
define void @draw_editor_header() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([133 x i8], [133 x i8]* @.str.11, i64 0, i64 0))
ret void
}