#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 EXIT_SUCCESS;
int /*<<< orphan*/ puts(char *);
int main(void) {
  do {
    puts("\n");
    puts("\""
         "\x1b["
         "3"
         "1"
         "m"
         "Hello, "
         "\x1b["
         "3"
         "3"
         "m"
         "World!"
         "\x1b["
         "0"
         "m"
         "\"\n");
    ;
    puts("\n");
  } while (0);
  do {
    puts("\n");
    puts("\""
         "\x1b["
         "3"
         "4"
         "m"
         "Hello, "
         "\x1b["
         "4"
         "7"
         "m"
         "World!"
         "\x1b["
         "0"
         "m"
         "\"\n");
    ;
    puts("\n");
  } while (0);
  do {
    puts("\n");
    puts("\""
         "\x1b["
         "3"
         "2"
         "m"
         "Hello, "
         "\x1b["
         "3"
         "9"
         ";"
         "4"
         "5"
         "m"
         "World!"
         "\x1b["
         "0"
         "m"
         "\"\n");
    puts("\""
         "\x1b["
         "3"
         "2"
         "m"
         "Hello, "
         "\x1b["
         "3"
         "9"
         "m"
         "\x1b["
         "4"
         "5"
         "m"
         "World!"
         "\x1b["
         "0"
         "m"
         "\"\n");
    ;
    puts("\n");
  } while (0);
  do {
    puts("\n");
    puts("\""
         "\x1b["
         "3"
         "6"
         ";"
         "1"
         "m"
         "Hello, "
         "\x1b["
         "3"
         "9"
         "m"
         "World! "
         "\x1b["
         "0"
         "m"
         "Good bye!\"\n");
    ;
    puts("\n");
  } while (0);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xf87(%rip),%rdi
call   1030 <puts@plt>
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6f(%rip),%rdi
call   1030 <puts@plt>
jmp    1148 <main+0x38>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xec4(%rip),%rdi
call   1030 <puts@plt>
lea    0xf46(%rip),%rdi
call   1030 <puts@plt>
jmp    1171 <main+0x61>
lea    0xf35(%rip),%rdi
call   1030 <puts@plt>
lea    0xeba(%rip),%rdi
call   1030 <puts@plt>
lea    0xed0(%rip),%rdi
call   1030 <puts@plt>
lea    0xf11(%rip),%rdi
call   1030 <puts@plt>
jmp    11a6 <main+0x96>
lea    0xf00(%rip),%rdi
call   1030 <puts@plt>
lea    0xecb(%rip),%rdi
call   1030 <puts@plt>
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e0f(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf95(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xed9(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xedc(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xedf(%rip),%rdi
call   1030 <puts@plt>
lea    0xef5(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xefd(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    0x2e45(%rip),%rax
mov    (%rax),%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [31 x i8] c"\22\1B[31mHello, \1B[33mWorld!\1B[0m\22\0A\00"
@.str.2 = [31 x i8] c"\22\1B[34mHello, \1B[47mWorld!\1B[0m\22\0A\00"
@.str.3 = [34 x i8] c"\22\1B[32mHello, \1B[39;45mWorld!\1B[0m\22\0A\00"
@.str.4 = [36 x i8] c"\22\1B[32mHello, \1B[39m\1B[45mWorld!\1B[0m\22\0A\00"
@.str.5 = [43 x i8] c"\22\1B[36;1mHello, \1B[39mWorld! \1B[0mGood bye!\22\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %0
%3 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %2
br label %7
7: ; preds = %6
%8 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %11
11: ; preds = %7
br label %12
12: ; preds = %11
%13 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%16 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %17
17: ; preds = %12
br label %18
18: ; preds = %17
%19 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%20 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%21 = call i32 @puts(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %22
22: ; preds = %18
%23 = load i32, i32* @EXIT_SUCCESS
ret i32 %23
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [31 x i8] c"\22\1B[31mHello, \1B[33mWorld!\1B[0m\22\0A\00"
@.str.2 = [31 x i8] c"\22\1B[34mHello, \1B[47mWorld!\1B[0m\22\0A\00"
@.str.3 = [34 x i8] c"\22\1B[32mHello, \1B[39;45mWorld!\1B[0m\22\0A\00"
@.str.4 = [36 x i8] c"\22\1B[32mHello, \1B[39m\1B[45mWorld!\1B[0m\22\0A\00"
@.str.5 = [43 x i8] c"\22\1B[36;1mHello, \1B[39mWorld! \1B[0mGood bye!\22\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* @EXIT_SUCCESS
ret i32 %14
}