#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() {
  char c = '\a';
  c = 'a';
  printf("%c", c);
  c = '\b';
  printf("%c", c);
  c = 'b';
  printf("%c", c);
  c = '\n';
  printf("%c", c);
  c = 'a';
  printf("%c", c);
  c = 'b';
  printf("%c", c);
  c = '\r';
  printf("%c", c);
  c = 'c';
  printf("%c", c);
  printf("\n");
  c = 'a';
  printf("%c", c);
  c = '\t';
  printf("%c", c);
  c = 'b';
  printf("%c", c);
  c = '\'';
  printf("%c", c);
  char a = 0;
  unsigned char b = 0;
  b = b - 1;
  a = 127;
  a = a + 5;
  printf("%d", a);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x7,-0x5(%rbp)
movb   $0x61,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x8,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x62,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0xa,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x61,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x62,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xe60(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0xd,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x63,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xe34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x61,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xe10(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x9,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x62,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x27,-0x5(%rbp)
movsbl -0x5(%rbp),%esi
lea    0xdce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x0,-0x6(%rbp)
movb   $0x0,-0x7(%rbp)
movzbl -0x7(%rbp),%eax
sub    $0x1,%eax
mov    %al,-0x7(%rbp)
movb   $0x7f,-0x6(%rbp)
movsbl -0x6(%rbp),%eax
add    $0x5,%eax
mov    %al,-0x6(%rbp)
movsbl -0x6(%rbp),%esi
lea    0xda1(%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
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x8,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
call   1030 <putchar@plt>
mov    $0xd,%edi
call   1030 <putchar@plt>
mov    $0x63,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x9,%edi
call   1030 <putchar@plt>
mov    $0x62,%edi
call   1030 <putchar@plt>
mov    $0x27,%edi
call   1030 <putchar@plt>
lea    0xe56(%rip),%rdi
mov    $0xffffff84,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
store i32 0, i32* %1
store i8 7, i8* %2
store i8 97, i8* %2
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %6)
store i8 8, i8* %2
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %9)
store i8 98, i8* %2
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %12)
store i8 10, i8* %2
%14 = load i8, i8* %2
%15 = sext i8 %14 to i32
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %15)
store i8 97, i8* %2
%17 = load i8, i8* %2
%18 = sext i8 %17 to i32
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %18)
store i8 98, i8* %2
%20 = load i8, i8* %2
%21 = sext i8 %20 to i32
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %21)
store i8 13, i8* %2
%23 = load i8, i8* %2
%24 = sext i8 %23 to i32
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %24)
store i8 99, i8* %2
%26 = load i8, i8* %2
%27 = sext i8 %26 to i32
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i8 97, i8* %2
%30 = load i8, i8* %2
%31 = sext i8 %30 to i32
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %31)
store i8 9, i8* %2
%33 = load i8, i8* %2
%34 = sext i8 %33 to i32
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %34)
store i8 98, i8* %2
%36 = load i8, i8* %2
%37 = sext i8 %36 to i32
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %37)
store i8 39, i8* %2
%39 = load i8, i8* %2
%40 = sext i8 %39 to i32
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %40)
store i8 0, i8* %3
store i8 0, i8* %4
%42 = load i8, i8* %4
%43 = zext i8 %42 to i32
%44 = sub nsw i32 %43, 1
%45 = trunc i32 %44 to i8
store i8 %45, i8* %4
store i8 127, i8* %3
%46 = load i8, i8* %3
%47 = sext i8 %46 to i32
%48 = add nsw i32 %47, 5
%49 = trunc i32 %48 to i8
store i8 %49, i8* %3
%50 = load i8, i8* %3
%51 = sext i8 %50 to i32
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %51)
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = tail call i32 @putchar(i32 97)
%2 = tail call i32 @putchar(i32 8)
%3 = tail call i32 @putchar(i32 98)
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @putchar(i32 97)
%6 = tail call i32 @putchar(i32 98)
%7 = tail call i32 @putchar(i32 13)
%8 = tail call i32 @putchar(i32 99)
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @putchar(i32 97)
%11 = tail call i32 @putchar(i32 9)
%12 = tail call i32 @putchar(i32 98)
%13 = tail call i32 @putchar(i32 39)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 -124)
ret i32 0
}