#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(void) {
  printf("new\nstring\ntest\n");
  printf("tab test\ttab test\n");
  printf("backspace test\bbackspace test\n");
  printf("backslash test \\ \n");
  printf("\nlist of escape sequences:\n");
  printf("alert			\\a	%d\n", '\a');
  printf("backspace   		\\b	%d\n", '\b');
  printf("horizont tab   		\\t	%d\n", '\t');
  printf("new line   		\\n	%d\n", '\n');
  printf("vertical tab   		\\v	%d\n", '\v');
  printf("formfeed   		\\f	%d\n", '\f');
  printf("carriage return   	\\r	%d\n", '\r');
  printf("double quote   		\\\"	%d\n", '\"');
  printf("single quote		\\\'	%d\n", '\'');
  printf("question mark		\\?	%d\n", '\?');
  printf("backslash   		\\\\	%d\n", '\\');
  printf("hex to decimal		\\x32	%d\n", '\x32');
  printf("octal to decimal	\\32	%d\n", '\32');
  printf("something undefined	\\d	%d\n", '\d');
  printf("\n");
  printf("Vertical tab \v is tricky, as its behaviour is unspecified under "
         "certain conditions.\n");
  printf("form feed. \f\n");
  printf("This escape, \r, moves the active position to the initial position "
         "of the current line.\n");
  printf("bell...\a\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
mov    $0x7,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
mov    $0x9,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0xb,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
mov    $0xd,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
mov    $0x22,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
mov    $0x27,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1e(%rip),%rdi
mov    $0x3f,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
mov    $0x5c,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
mov    $0x32,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf29(%rip),%rdi
mov    $0x1a,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
mov    $0x64,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0x1003(%rip),%rdi
call   1040 <puts@plt>
lea    0x1007(%rip),%rdi
call   1040 <puts@plt>
lea    0x100d(%rip),%rdi
call   1040 <puts@plt>
lea    0x101f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1025(%rip),%rdi
call   1040 <puts@plt>
lea    0xe8c(%rip),%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe88(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe8a(%rip),%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe8f(%rip),%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe90(%rip),%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe95(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe96(%rip),%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe9d(%rip),%rdi
mov    $0x22,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xea2(%rip),%rdi
mov    $0x27,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xea4(%rip),%rdi
mov    $0x3f,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xea7(%rip),%rdi
mov    $0x5c,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xea9(%rip),%rdi
mov    $0x32,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeaf(%rip),%rdi
mov    $0x1a,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeb5(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf20(%rip),%rdi
call   1040 <puts@plt>
lea    0xf68(%rip),%rdi
call   1040 <puts@plt>
lea    0xf69(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb4(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [17 x i8] c"new\0Astring\0Atest\0A\00"
@.str.1 = [19 x i8] c"tab test\09tab test\0A\00"
@.str.2 = [31 x i8] c"backspace test\08backspace test\0A\00"
@.str.3 = [19 x i8] c"backslash test \\ \0A\00"
@.str.4 = [28 x i8] c"\0Alist of escape sequences:\0A\00"
@.str.5 = [15 x i8] c"alert\09\09\09\\a\09%d\0A\00"
@.str.6 = [21 x i8] c"backspace \09\09\\b\09%d\0A\00"
@.str.7 = [24 x i8] c"horizont tab \09\09\\t\09%d\0A\00"
@.str.8 = [20 x i8] c"new line \09\09\\n\09%d\0A\00"
@.str.9 = [24 x i8] c"vertical tab \09\09\\v\09%d\0A\00"
@.str.10 = [20 x i8] c"formfeed \09\09\\f\09%d\0A\00"
@.str.11 = [26 x i8] c"carriage return \09\\r\09%d\0A\00"
@.str.12 = [24 x i8] c"double quote \09\09\\\22\09%d\0A\00"
@.str.13 = [21 x i8] c"single quote\09\09\\'\09%d\0A\00"
@.str.14 = [22 x i8] c"question mark\09\09\\?\09%d\0A\00"
@.str.15 = [21 x i8] c"backslash \09\09\\\\\09%d\0A\00"
@.str.16 = [25 x i8] c"hex to decimal\09\09\\x32\09%d\0A\00"
@.str.17 = [25 x i8] c"octal to decimal\09\\32\09%d\0A\00"
@.str.18 = [27 x i8] c"something undefined\09\\d\09%d\0A\00"
@.str.19 = [2 x i8] c"\0A\00"
@.str.20 = [85 x i8] c"Vertical tab \0B is tricky, as its behaviour is unspecified under certain conditions.\0A\00"
@.str.21 = [14 x i8] c"form feed. \0C\0A\00"
@.str.22 = [88 x i8] c"This escape, \0D, moves the active position to the initial position of the current line.\0A\00"
@.str.23 = [10 x i8] c"bell...\07\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i32 7)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32 8)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i32 9)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 10)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i32 11)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i32 12)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0), i32 13)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 34)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i32 39)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i32 63)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i32 92)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.16, i64 0, i64 0), i32 50)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.17, i64 0, i64 0), i32 26)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.18, i64 0, i64 0), i32 100)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.20, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.21, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.22, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.5 = [15 x i8] c"alert\09\09\09\\a\09%d\0A\00"
@.str.6 = [21 x i8] c"backspace \09\09\\b\09%d\0A\00"
@.str.7 = [24 x i8] c"horizont tab \09\09\\t\09%d\0A\00"
@.str.8 = [20 x i8] c"new line \09\09\\n\09%d\0A\00"
@.str.9 = [24 x i8] c"vertical tab \09\09\\v\09%d\0A\00"
@.str.10 = [20 x i8] c"formfeed \09\09\\f\09%d\0A\00"
@.str.11 = [26 x i8] c"carriage return \09\\r\09%d\0A\00"
@.str.12 = [24 x i8] c"double quote \09\09\\\22\09%d\0A\00"
@.str.13 = [21 x i8] c"single quote\09\09\\'\09%d\0A\00"
@.str.14 = [22 x i8] c"question mark\09\09\\?\09%d\0A\00"
@.str.15 = [21 x i8] c"backslash \09\09\\\\\09%d\0A\00"
@.str.16 = [25 x i8] c"hex to decimal\09\09\\x32\09%d\0A\00"
@.str.17 = [25 x i8] c"octal to decimal\09\\32\09%d\0A\00"
@.str.18 = [27 x i8] c"something undefined\09\\d\09%d\0A\00"
@str = [16 x i8] c"new\0Astring\0Atest\00"
@str.24 = [18 x i8] c"tab test\09tab test\00"
@str.25 = [30 x i8] c"backspace test\08backspace test\00"
@str.26 = [18 x i8] c"backslash test \\ \00"
@str.27 = [27 x i8] c"\0Alist of escape sequences:\00"
@str.28 = [84 x i8] c"Vertical tab \0B is tricky, as its behaviour is unspecified under certain conditions.\00"
@str.29 = [13 x i8] c"form feed. \0C\00"
@str.30 = [87 x i8] c"This escape, \0D, moves the active position to the initial position of the current line.\00"
@str.31 = [9 x i8] c"bell...\07\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.24, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.25, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.26, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.27, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i32 7)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32 8)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i32 9)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 10)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), i32 11)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i32 12)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0), i32 13)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 34)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i32 39)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i32 63)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), i32 92)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.16, i64 0, i64 0), i32 50)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.17, i64 0, i64 0), i32 26)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.18, i64 0, i64 0), i32 100)
%20 = tail call i32 @putchar(i32 10)
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @str.28, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.29, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.30, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.31, i64 0, i64 0))
ret i32 0
}