#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*/ printf(char *, ...);
int main(void) {
  printf("audible alert (bell) BEL   \\a     %d\n", '\a');
  printf("backspace            BS    \\b     %d\n", '\b');
  printf("horizontal tab       HT    \\t     %d\n", '\t');
  printf("newline              LF    \\n    %d\n", '\n');
  printf("vertical tab         VT    \\v    %d\n", '\v');
  printf("formfeed             FF    \\f    %d\n", '\f');
  printf("carriage return      CR    \\r    %d\n", '\r');
  printf("double quote         \"     \\\"    %d\n", '\"');
  printf("single quote         \'     \\\'    %d\n", '\'');
  printf("question mark        ?     \\?    %d\n", '\?');
  printf("backslash            \\     \\\\    %d\n", '\\');
  printf("\n");
  printf("forty-two in octal   0%o   \\52   %d\n", '\52', '\52');
  printf("forty-two in hex     0x%X  \\x2A  %d\n", '\x2A', '\x2A');
  printf("\n");
  printf("invalid escape sequence    \\c    %d (%c)\n", '\c', '\c');
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x7,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
mov    $0x9,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
mov    $0xb,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf37(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf49(%rip),%rdi
mov    $0xd,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5b(%rip),%rdi
mov    $0x22,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6d(%rip),%rdi
mov    $0x27,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7f(%rip),%rdi
mov    $0x3f,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf91(%rip),%rdi
mov    $0x5c,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1015(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf95(%rip),%rdi
mov    $0x2a,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa5(%rip),%rdi
mov    $0x2a,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfdd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa7(%rip),%rdi
mov    $0x63,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d8e(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xefe(%rip),%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf11(%rip),%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf23(%rip),%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf35(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf47(%rip),%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf59(%rip),%rdi
mov    $0x22,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf6b(%rip),%rdi
mov    $0x27,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf7d(%rip),%rdi
mov    $0x3f,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf8f(%rip),%rdi
mov    $0x5c,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf97(%rip),%rdi
mov    $0x2a,%esi
mov    $0x2a,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfa4(%rip),%rdi
mov    $0x2a,%esi
mov    $0x2a,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfa7(%rip),%rdi
mov    $0x63,%esi
mov    $0x63,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d8b(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [38 x i8] c"audible alert (bell) BEL \\a %d\0A\00"
@.str.1 = [38 x i8] c"backspace BS \\b %d\0A\00"
@.str.2 = [38 x i8] c"horizontal tab HT \\t %d\0A\00"
@.str.3 = [37 x i8] c"newline LF \\n %d\0A\00"
@.str.4 = [37 x i8] c"vertical tab VT \\v %d\0A\00"
@.str.5 = [37 x i8] c"formfeed FF \\f %d\0A\00"
@.str.6 = [37 x i8] c"carriage return CR \\r %d\0A\00"
@.str.7 = [37 x i8] c"double quote \22 \\\22 %d\0A\00"
@.str.8 = [37 x i8] c"single quote ' \\' %d\0A\00"
@.str.9 = [37 x i8] c"question mark ? \\? %d\0A\00"
@.str.10 = [37 x i8] c"backslash \\ \\\\ %d\0A\00"
@.str.11 = [2 x i8] c"\0A\00"
@.str.12 = [37 x i8] c"forty-two in octal 0%o \\52 %d\0A\00"
@.str.13 = [37 x i8] c"forty-two in hex 0x%X \\x2A %d\0A\00"
@.str.14 = [42 x i8] c"invalid escape sequence \\c %d (%c)\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 7)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 8)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0), i32 9)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 10)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i32 11)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i32 12)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 13)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i32 34)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0), i32 39)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), i32 63)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0), i32 92)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i32 42, i32 42)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0), i32 42, i32 42)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.14, i64 0, i64 0), i32 99, i32 99)
%18 = load i32, i32* @EXIT_SUCCESS
ret i32 %18
}

LLVM IR (-O2):
@.str = [38 x i8] c"audible alert (bell) BEL \\a %d\0A\00"
@.str.1 = [38 x i8] c"backspace BS \\b %d\0A\00"
@.str.2 = [38 x i8] c"horizontal tab HT \\t %d\0A\00"
@.str.3 = [37 x i8] c"newline LF \\n %d\0A\00"
@.str.4 = [37 x i8] c"vertical tab VT \\v %d\0A\00"
@.str.5 = [37 x i8] c"formfeed FF \\f %d\0A\00"
@.str.6 = [37 x i8] c"carriage return CR \\r %d\0A\00"
@.str.7 = [37 x i8] c"double quote \22 \\\22 %d\0A\00"
@.str.8 = [37 x i8] c"single quote ' \\' %d\0A\00"
@.str.9 = [37 x i8] c"question mark ? \\? %d\0A\00"
@.str.10 = [37 x i8] c"backslash \\ \\\\ %d\0A\00"
@.str.12 = [37 x i8] c"forty-two in octal 0%o \\52 %d\0A\00"
@.str.13 = [37 x i8] c"forty-two in hex 0x%X \\x2A %d\0A\00"
@.str.14 = [42 x i8] c"invalid escape sequence \\c %d (%c)\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 7)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0), i32 8)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0), i32 9)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0), i32 10)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i32 11)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0), i32 12)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 13)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i32 34)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0), i32 39)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), i32 63)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.10, i64 0, i64 0), i32 92)
%12 = tail call i32 @putchar(i32 10)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i32 42, i32 42)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.13, i64 0, i64 0), i32 42, i32 42)
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.14, i64 0, i64 0), i32 99, i32 99)
%17 = load i32, i32* @EXIT_SUCCESS
ret i32 %17
}