#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;31m=-=-=-=-=-=-=-=-=-=-=  [0;31m|\n");
  printf("[1;32m \\\\\\[0;31mo [1;32m///   [0;31m|[1;31m<[1;33m^[1;31m> "
         "the `[0;31mcaret[1;31m` key will [0;31m|\n");
  printf(
      "[0;31m/P  ||      [0;31m| [1;31mallow you to change the [0;31m|\n");
  printf("[0;31m\\\\/[1;33m(  )[0;31m\\    [0;31m|[1;31mcolor of text "
         "then hit[0;31m,  |\n");
  printf("[0;31m \\/[1;33m \\_\\[0;31m\\\\   [0;31m| "
         "[0;34mb[0;31m,r,[0;35mm[0;31m,[0;32mg[0;31m,[0;33my[0;31m,["
         "1;34mB[0;31m,[1;31mR[0;31m,[1;35mM[0;31m,[1;32mG[0;31m, "
         "[1;31mor [1;33mY[0;31m.|\n");
  printf("[1;33m   /   \\[0;31m\\P  [0;31m|[1m<[1;33menter[1;31m> key "
         "twice prompt [0;31m|\n");
  printf(
      "[1;33m   \\___/    [0;31m| [1;31myou 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    0x12ce(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
lea    0xf33(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7a(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1016(%rip),%rdi
call   1030 <printf@plt>
lea    0x105d(%rip),%rdi
call   1030 <printf@plt>
lea    0x111b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1166(%rip),%rdi
call   1030 <printf@plt>
lea    0x119f(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ca(%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    0xfa9(%rip),%rdi
call   1030 <puts@plt>
lea    0xfef(%rip),%rdi
call   1030 <puts@plt>
lea    0x1051(%rip),%rdi
call   1030 <puts@plt>
lea    0x1089(%rip),%rdi
call   1030 <puts@plt>
lea    0x10cf(%rip),%rdi
call   1030 <puts@plt>
lea    0x118c(%rip),%rdi
call   1030 <puts@plt>
lea    0x11d6(%rip),%rdi
call   1030 <puts@plt>
lea    0x120e(%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 = [66 x i8] c"\1B[1;32m /|||\\\\ \1B[0;31m|\1B[1mCoMpoSe yOuR MEsSagE HeRe\1B[0;31m|\0A\00"
@.str.3 = [83 x i8] c"\1B[1;32m /\1B[0;31mC^,^C\1B[1;32m\\\\ \1B[0;31m| \1B[0;31m=-=-=-=-=-=-=-=-=-=-= \1B[0;31m|\0A\00"
@.str.4 = [111 x i8] c"\1B[1;32m \\\\\\\1B[0;31mo \1B[1;32m/// \1B[0;31m|\1B[1;31m<\1B[1;33m^\1B[1;31m> the `\1B[0;31mcaret\1B[1;31m` key will \1B[0;31m|\0A\00"
@.str.5 = [69 x i8] c"\1B[0;31m/P || \1B[0;31m| \1B[1;31mallow you to change the \1B[0;31m|\0A\00"
@.str.6 = [83 x i8] c"\1B[0;31m\\\\/\1B[1;33m( )\1B[0;31m\\ \1B[0;31m|\1B[1;31mcolor of text then hit\1B[0;31m, |\0A\00"
@.str.7 = [202 x i8] c"\1B[0;31m \\/\1B[1;33m \\_\\\1B[0;31m\\\\ \1B[0;31m| \1B[0;34mb\1B[0;31m,r,\1B[0;35mm\1B[0;31m,\1B[0;32mg\1B[0;31m,\1B[0;33my\1B[0;31m,\1B[1;34mB\1B[0;31m,\1B[1;31mR\1B[0;31m,\1B[1;35mM\1B[0;31m,\1B[1;32mG\1B[0;31m, \1B[1;31mor \1B[1;33mY\1B[0;31m.|\0A\00"
@.str.8 = [87 x i8] c"\1B[1;33m / \\\1B[0;31m\\P \1B[0;31m|\1B[1m<\1B[1;33menter\1B[1;31m> key twice prompt \1B[0;31m|\0A\00"
@.str.9 = [69 x i8] c"\1B[1;33m \\___/ \1B[0;31m| \1B[1;31myou 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 ([66 x i8], [66 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([202 x i8], [202 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 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 = [65 x i8] c"\1B[1;32m /|||\\\\ \1B[0;31m|\1B[1mCoMpoSe yOuR MEsSagE HeRe\1B[0;31m|\00"
@str.13 = [82 x i8] c"\1B[1;32m /\1B[0;31mC^,^C\1B[1;32m\\\\ \1B[0;31m| \1B[0;31m=-=-=-=-=-=-=-=-=-=-= \1B[0;31m|\00"
@str.14 = [110 x i8] c"\1B[1;32m \\\\\\\1B[0;31mo \1B[1;32m/// \1B[0;31m|\1B[1;31m<\1B[1;33m^\1B[1;31m> the `\1B[0;31mcaret\1B[1;31m` key will \1B[0;31m|\00"
@str.15 = [68 x i8] c"\1B[0;31m/P || \1B[0;31m| \1B[1;31mallow you to change the \1B[0;31m|\00"
@str.16 = [82 x i8] c"\1B[0;31m\\\\/\1B[1;33m( )\1B[0;31m\\ \1B[0;31m|\1B[1;31mcolor of text then hit\1B[0;31m, |\00"
@str.17 = [201 x i8] c"\1B[0;31m \\/\1B[1;33m \\_\\\1B[0;31m\\\\ \1B[0;31m| \1B[0;34mb\1B[0;31m,r,\1B[0;35mm\1B[0;31m,\1B[0;32mg\1B[0;31m,\1B[0;33my\1B[0;31m,\1B[1;34mB\1B[0;31m,\1B[1;31mR\1B[0;31m,\1B[1;35mM\1B[0;31m,\1B[1;32mG\1B[0;31m, \1B[1;31mor \1B[1;33mY\1B[0;31m.|\00"
@str.18 = [86 x i8] c"\1B[1;33m / \\\1B[0;31m\\P \1B[0;31m|\1B[1m<\1B[1;33menter\1B[1;31m> key twice prompt \1B[0;31m|\00"
@str.19 = [68 x i8] c"\1B[1;33m \\___/ \1B[0;31m| \1B[1;31myou 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 ([65 x i8], [65 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([110 x i8], [110 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([201 x i8], [201 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 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
}