#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 *);
int main(int argc, char *argv[]) {
  printf("Escape codes:\n");
  printf("--\n");
  printf("\t\\\" - double quote\n");
  printf("\t\\\\ - backslash\n");
  printf("\t\\a - alert (BEL)\n");
  printf("\t\\b - backspace\n");
  printf("\t\\c - produce no further output\n");
  printf("\t\\e - escape\n");
  printf("\t\\f - form feed\n");
  printf("\t\\n - new line\n");
  printf("\t\\r - carriage return\n");
  printf("\t\\t - horizontal tab\n");
  printf("\t\\v - vertical tab\n");
  printf("\t\\NNN - byte with octal value NNN (1 to 3 digits)\n");
  printf("\t\\xHH - byte with hexadecimal value HH (1 to 2 digits)\n");
  printf("\t\\uHHHH - Unicode (ISO/IEC 10646) character with hex value HHHH (4 "
         "digits)\n");
  printf(
      "\t\\UHHHHHHHH - Unicode character with hex value HHHHHHHH (8 digits)\n");
  printf("\t%%%% - a single %%\n");
  printf("\t%%b - ARGUMENT as a string with '\\' escapes interpreted, except "
         "that octal escapes are of the form \\0 or \\0NNN\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
call   1030 <printf@plt>
lea    0xf12(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf24(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf77(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb7(%rip),%rdi
call   1030 <printf@plt>
lea    0xfef(%rip),%rdi
call   1030 <printf@plt>
lea    0xff8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf60(%rip),%rdi
call   1030 <puts@plt>
lea    0xf57(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf62(%rip),%rdi
call   1030 <puts@plt>
lea    0xf68(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf80(%rip),%rdi
call   1030 <puts@plt>
lea    0xf81(%rip),%rdi
call   1030 <puts@plt>
lea    0xf85(%rip),%rdi
call   1030 <puts@plt>
lea    0xf88(%rip),%rdi
call   1030 <puts@plt>
lea    0xf92(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9b(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc8(%rip),%rdi
call   1030 <puts@plt>
lea    0xff3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1032(%rip),%rdi
call   1030 <puts@plt>
lea    0xe0c(%rip),%rdi
call   1040 <printf@plt>
lea    0xe15(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Escape codes:\0A\00"
@.str.1 = [4 x i8] c"--\0A\00"
@.str.2 = [20 x i8] c"\09\\\22 - double quote\0A\00"
@.str.3 = [17 x i8] c"\09\\\\ - backslash\0A\00"
@.str.4 = [19 x i8] c"\09\\a - alert (BEL)\0A\00"
@.str.5 = [17 x i8] c"\09\\b - backspace\0A\00"
@.str.6 = [33 x i8] c"\09\\c - produce no further output\0A\00"
@.str.7 = [14 x i8] c"\09\\e - escape\0A\00"
@.str.8 = [17 x i8] c"\09\\f - form feed\0A\00"
@.str.9 = [16 x i8] c"\09\\n - new line\0A\00"
@.str.10 = [23 x i8] c"\09\\r - carriage return\0A\00"
@.str.11 = [22 x i8] c"\09\\t - horizontal tab\0A\00"
@.str.12 = [20 x i8] c"\09\\v - vertical tab\0A\00"
@.str.13 = [51 x i8] c"\09\\NNN - byte with octal value NNN (1 to 3 digits)\0A\00"
@.str.14 = [56 x i8] c"\09\\xHH - byte with hexadecimal value HH (1 to 2 digits)\0A\00"
@.str.15 = [76 x i8] c"\09\\uHHHH - Unicode (ISO/IEC 10646) character with hex value HHHH (4 digits)\0A\00"
@.str.16 = [68 x i8] c"\09\\UHHHHHHHH - Unicode character with hex value HHHHHHHH (8 digits)\0A\00"
@.str.17 = [21 x i8] c"\09%%%% - a single %%\0A\00"
@.str.18 = [113 x i8] c"\09%%b - ARGUMENT as a string with '\\' escapes interpreted, except that octal escapes are of the form \\0 or \\0NNN\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.13, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.15, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.16, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.18, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.17 = [21 x i8] c"\09%%%% - a single %%\0A\00"
@.str.18 = [113 x i8] c"\09%%b - ARGUMENT as a string with '\\' escapes interpreted, except that octal escapes are of the form \\0 or \\0NNN\0A\00"
@str = [14 x i8] c"Escape codes:\00"
@str.19 = [3 x i8] c"--\00"
@str.20 = [19 x i8] c"\09\\\22 - double quote\00"
@str.21 = [16 x i8] c"\09\\\\ - backslash\00"
@str.22 = [18 x i8] c"\09\\a - alert (BEL)\00"
@str.23 = [16 x i8] c"\09\\b - backspace\00"
@str.24 = [32 x i8] c"\09\\c - produce no further output\00"
@str.25 = [13 x i8] c"\09\\e - escape\00"
@str.26 = [16 x i8] c"\09\\f - form feed\00"
@str.27 = [15 x i8] c"\09\\n - new line\00"
@str.28 = [22 x i8] c"\09\\r - carriage return\00"
@str.29 = [21 x i8] c"\09\\t - horizontal tab\00"
@str.30 = [19 x i8] c"\09\\v - vertical tab\00"
@str.31 = [50 x i8] c"\09\\NNN - byte with octal value NNN (1 to 3 digits)\00"
@str.32 = [55 x i8] c"\09\\xHH - byte with hexadecimal value HH (1 to 2 digits)\00"
@str.33 = [75 x i8] c"\09\\uHHHH - Unicode (ISO/IEC 10646) character with hex value HHHH (4 digits)\00"
@str.34 = [67 x i8] c"\09\\UHHHHHHHH - Unicode character with hex value HHHHHHHH (8 digits)\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.32, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.33, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.34, i64 0, i64 0))
%20 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0))
%21 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([113 x i8], [113 x i8]* @.str.18, i64 0, i64 0))
ret i32 0
}