#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 *, char *);
int main(int argc, char **argv) {
  char *p_str = "Hello World!";
  printf("\033[0;32;31m"
         "%s Red\n"
         "\033[m",
         p_str);
  printf("\033[0;32;32m"
         "%s Green\n"
         "\033[m",
         p_str);
  printf("\033[0;32;34m"
         "%s Blue\n"
         "\033[m",
         p_str);
  printf("\033[1;33m"
         "%s Yellow\n"
         "\033[m",
         p_str);
  printf("\033[0;36m"
         "%s Cyan\n"
         "\033[m",
         p_str);
  printf("\033[0;35m"
         "%s Purple\n"
         "\033[m",
         p_str);
  printf("\033[0;33m"
         "%s Brown\n"
         "\033[m",
         p_str);
  printf("\033[1;37m"
         "%s White\n"
         "\033[m",
         p_str);
  printf("\033[1;30m"
         "%s Dary Gray\n"
         "\033[m",
         p_str);
  printf("\033[1;31m"
         "%s Light Red\n"
         "\033[m",
         p_str);
  printf("\033[1;32m"
         "%s Light Green\n"
         "\033[m",
         p_str);
  printf("\033[1;34m"
         "%s Light Blue\n"
         "\033[m",
         p_str);
  printf("\033[1;36m"
         "%s Light Cyan\n"
         "\033[m",
         p_str);
  printf("\033[1;35m"
         "%s Light Purple\n"
         "\033[m",
         p_str);
  printf("\033[0;37m"
         "%s Light Gray\n"
         "\033[m",
         p_str);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed3(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xedd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xef0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xef4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xef8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xf00(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xf08(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xf12(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xf1b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xf24(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xf2f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xef5(%rip),%rdi
lea    0xee1(%rip),%rbx
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf26(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf44(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf4e(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"Hello World!\00"
@.str.1 = [21 x i8] c"\1B[0;32;31m%s Red\0A\1B[m\00"
@.str.2 = [23 x i8] c"\1B[0;32;32m%s Green\0A\1B[m\00"
@.str.3 = [22 x i8] c"\1B[0;32;34m%s Blue\0A\1B[m\00"
@.str.4 = [21 x i8] c"\1B[1;33m%s Yellow\0A\1B[m\00"
@.str.5 = [19 x i8] c"\1B[0;36m%s Cyan\0A\1B[m\00"
@.str.6 = [21 x i8] c"\1B[0;35m%s Purple\0A\1B[m\00"
@.str.7 = [20 x i8] c"\1B[0;33m%s Brown\0A\1B[m\00"
@.str.8 = [20 x i8] c"\1B[1;37m%s White\0A\1B[m\00"
@.str.9 = [24 x i8] c"\1B[1;30m%s Dary Gray\0A\1B[m\00"
@.str.10 = [24 x i8] c"\1B[1;31m%s Light Red\0A\1B[m\00"
@.str.11 = [26 x i8] c"\1B[1;32m%s Light Green\0A\1B[m\00"
@.str.12 = [25 x i8] c"\1B[1;34m%s Light Blue\0A\1B[m\00"
@.str.13 = [25 x i8] c"\1B[1;36m%s Light Cyan\0A\1B[m\00"
@.str.14 = [27 x i8] c"\1B[1;35m%s Light Purple\0A\1B[m\00"
@.str.15 = [25 x i8] c"\1B[0;37m%s Light Gray\0A\1B[m\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8** %6
%7 = load i8*, i8** %6
%8 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %6
%10 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* %9)
%11 = load i8*, i8** %6
%12 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* %11)
%13 = load i8*, i8** %6
%14 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* %13)
%15 = load i8*, i8** %6
%16 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i8* %15)
%17 = load i8*, i8** %6
%18 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i8* %17)
%19 = load i8*, i8** %6
%20 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* %19)
%21 = load i8*, i8** %6
%22 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* %21)
%23 = load i8*, i8** %6
%24 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i8* %23)
%25 = load i8*, i8** %6
%26 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i8* %25)
%27 = load i8*, i8** %6
%28 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0), i8* %27)
%29 = load i8*, i8** %6
%30 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i8* %29)
%31 = load i8*, i8** %6
%32 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), i8* %31)
%33 = load i8*, i8** %6
%34 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i8* %33)
%35 = load i8*, i8** %6
%36 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0), i8* %35)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"Hello World!\00"
@.str.1 = [21 x i8] c"\1B[0;32;31m%s Red\0A\1B[m\00"
@.str.2 = [23 x i8] c"\1B[0;32;32m%s Green\0A\1B[m\00"
@.str.3 = [22 x i8] c"\1B[0;32;34m%s Blue\0A\1B[m\00"
@.str.4 = [21 x i8] c"\1B[1;33m%s Yellow\0A\1B[m\00"
@.str.5 = [19 x i8] c"\1B[0;36m%s Cyan\0A\1B[m\00"
@.str.6 = [21 x i8] c"\1B[0;35m%s Purple\0A\1B[m\00"
@.str.7 = [20 x i8] c"\1B[0;33m%s Brown\0A\1B[m\00"
@.str.8 = [20 x i8] c"\1B[1;37m%s White\0A\1B[m\00"
@.str.9 = [24 x i8] c"\1B[1;30m%s Dary Gray\0A\1B[m\00"
@.str.10 = [24 x i8] c"\1B[1;31m%s Light Red\0A\1B[m\00"
@.str.11 = [26 x i8] c"\1B[1;32m%s Light Green\0A\1B[m\00"
@.str.12 = [25 x i8] c"\1B[1;34m%s Light Blue\0A\1B[m\00"
@.str.13 = [25 x i8] c"\1B[1;36m%s Light Cyan\0A\1B[m\00"
@.str.14 = [27 x i8] c"\1B[1;35m%s Light Purple\0A\1B[m\00"
@.str.15 = [25 x i8] c"\1B[0;37m%s Light Gray\0A\1B[m\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%13 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%14 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%16 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%17 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 0
}