#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 *);
void practiceColors() {
  printf("%sred\n", "\x1B[31m");
  printf("%sgreen\n", "\x1B[32m");
  printf("%syellow\n", "\x1B[33m");
  printf("%sblue\n", "\x1B[34m");
  printf("%smagenta\n", "\x1B[35m");
  printf("%scyan\n", "\x1B[36m");
  printf("%swhite\n", "\x1B[37m");
  printf("%snormal\n", "\x1B[0m");
}


x86 assembly (clang, -O0):
<practiceColors>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee5(%rip),%rsi
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
lea    0xee1(%rip),%rsi
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
lea    0xede(%rip),%rsi
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
lea    0xed9(%rip),%rsi
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
lea    0xed7(%rip),%rsi
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
lea    0xed2(%rip),%rsi
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
lea    0xece(%rip),%rsi
call   1030 <printf@plt>
lea    0xec8(%rip),%rdi
lea    0xecb(%rip),%rsi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<practiceColors>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xee8(%rip),%rsi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
lea    0xee4(%rip),%rsi
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
lea    0xee1(%rip),%rsi
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
lea    0xedc(%rip),%rsi
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
lea    0xeda(%rip),%rsi
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
lea    0xed5(%rip),%rsi
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
lea    0xed1(%rip),%rsi
call   1030 <printf@plt>
lea    0xecb(%rip),%rdi
lea    0xece(%rip),%rsi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"%sred\0A\00"
@.str.1 = [6 x i8] c"\1B[31m\00"
@.str.2 = [9 x i8] c"%sgreen\0A\00"
@.str.3 = [6 x i8] c"\1B[32m\00"
@.str.4 = [10 x i8] c"%syellow\0A\00"
@.str.5 = [6 x i8] c"\1B[33m\00"
@.str.6 = [8 x i8] c"%sblue\0A\00"
@.str.7 = [6 x i8] c"\1B[34m\00"
@.str.8 = [11 x i8] c"%smagenta\0A\00"
@.str.9 = [6 x i8] c"\1B[35m\00"
@.str.10 = [8 x i8] c"%scyan\0A\00"
@.str.11 = [6 x i8] c"\1B[36m\00"
@.str.12 = [9 x i8] c"%swhite\0A\00"
@.str.13 = [6 x i8] c"\1B[37m\00"
@.str.14 = [10 x i8] c"%snormal\0A\00"
@.str.15 = [5 x i8] c"\1B[0m\00"
define void @practiceColors() {
%1 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"%sred\0A\00"
@.str.1 = [6 x i8] c"\1B[31m\00"
@.str.2 = [9 x i8] c"%sgreen\0A\00"
@.str.3 = [6 x i8] c"\1B[32m\00"
@.str.4 = [10 x i8] c"%syellow\0A\00"
@.str.5 = [6 x i8] c"\1B[33m\00"
@.str.6 = [8 x i8] c"%sblue\0A\00"
@.str.7 = [6 x i8] c"\1B[34m\00"
@.str.8 = [11 x i8] c"%smagenta\0A\00"
@.str.9 = [6 x i8] c"\1B[35m\00"
@.str.10 = [8 x i8] c"%scyan\0A\00"
@.str.11 = [6 x i8] c"\1B[36m\00"
@.str.12 = [9 x i8] c"%swhite\0A\00"
@.str.13 = [6 x i8] c"\1B[37m\00"
@.str.14 = [10 x i8] c"%snormal\0A\00"
@.str.15 = [5 x i8] c"\1B[0m\00"
define void @practiceColors() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%8 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
ret void
}