#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, char);
int main() {
  printf("a: %d \\%03o\n", '\a', '\a');
  printf("b: %d \\%03o\n", '\b', '\b');
  printf("f: %d \\%03o\n", '\f', '\f');
  printf("n: %d \\%03o\n", '\n', '\n');
  printf("r: %d \\%03o\n", '\r', '\r');
  printf("t: %d \\%03o\n", '\t', '\t');
  printf("v: %d \\%03o\n", '\v', '\v');
  printf("e: %d \\%03o\n", '\e', '\e');
  printf("E: %d \\%03o\n", '\E', '\E');
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x7,%edx
mov    %edx,%esi
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x8,%edx
mov    %edx,%esi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0xc,%edx
mov    %edx,%esi
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0xa,%edx
mov    %edx,%esi
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
mov    $0xd,%edx
mov    %edx,%esi
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
mov    $0x9,%edx
mov    %edx,%esi
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
mov    $0xb,%edx
mov    %edx,%esi
call   1030 <printf@plt>
lea    0xebb(%rip),%rdi
mov    $0x1b,%edx
mov    %edx,%esi
call   1030 <printf@plt>
lea    0xeb5(%rip),%rdi
mov    $0x1b,%edx
mov    %edx,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x7,%esi
mov    $0x7,%edx
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0xc,%esi
mov    $0xc,%edx
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
mov    $0xa,%esi
mov    $0xa,%edx
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0xd,%esi
mov    $0xd,%edx
call   1030 <printf@plt>
lea    0xebb(%rip),%rdi
mov    $0x9,%esi
mov    $0x9,%edx
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
mov    $0xb,%esi
mov    $0xb,%edx
call   1030 <printf@plt>
lea    0xea9(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1b,%edx
call   1030 <printf@plt>
lea    0xea0(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1b,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"a: %d \\%03o\0A\00"
@.str.1 = [13 x i8] c"b: %d \\%03o\0A\00"
@.str.2 = [13 x i8] c"f: %d \\%03o\0A\00"
@.str.3 = [13 x i8] c"n: %d \\%03o\0A\00"
@.str.4 = [13 x i8] c"r: %d \\%03o\0A\00"
@.str.5 = [13 x i8] c"t: %d \\%03o\0A\00"
@.str.6 = [13 x i8] c"v: %d \\%03o\0A\00"
@.str.7 = [13 x i8] c"e: %d \\%03o\0A\00"
@.str.8 = [13 x i8] c"E: %d \\%03o\0A\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8 signext 7, i8 signext 7)
%2 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8 signext 8, i8 signext 8)
%3 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8 signext 12, i8 signext 12)
%4 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8 signext 10, i8 signext 10)
%5 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8 signext 13, i8 signext 13)
%6 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8 signext 9, i8 signext 9)
%7 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8 signext 11, i8 signext 11)
%8 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8 signext 27, i8 signext 27)
%9 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8 signext 27, i8 signext 27)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"a: %d \\%03o\0A\00"
@.str.1 = [13 x i8] c"b: %d \\%03o\0A\00"
@.str.2 = [13 x i8] c"f: %d \\%03o\0A\00"
@.str.3 = [13 x i8] c"n: %d \\%03o\0A\00"
@.str.4 = [13 x i8] c"r: %d \\%03o\0A\00"
@.str.5 = [13 x i8] c"t: %d \\%03o\0A\00"
@.str.6 = [13 x i8] c"v: %d \\%03o\0A\00"
@.str.7 = [13 x i8] c"e: %d \\%03o\0A\00"
@.str.8 = [13 x i8] c"E: %d \\%03o\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8 signext 7, i8 signext 7)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8 signext 8, i8 signext 8)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8 signext 12, i8 signext 12)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8 signext 10, i8 signext 10)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8 signext 13, i8 signext 13)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8 signext 9, i8 signext 9)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8 signext 11, i8 signext 11)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8 signext 27, i8 signext 27)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i8 signext 27, i8 signext 27)
ret i32 0
}