#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 backslash(char);
int /*<<< orphan*/ big(int);
int /*<<< orphan*/ f();
int /*<<< orphan*/ g();
int /*<<< orphan*/ h();
int /*<<< orphan*/ limit();
int /*<<< orphan*/ printf(char *, char, int);
main() {
  int i;
  char *s;
  for (s = "bfnrtvx"; *s; s++)
    printf("%c = 0x%x\n", *s, backslash(*s));
  f();
  g();
  h();
  for (i = 0x1000000; i & 0x7000000; i += 0x1000000)
    big(i);
  limit();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe7a(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     11d1 <main+0x61>
mov    -0x10(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x11(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1090 <backslash@plt>
mov    %eax,%edx
mov    -0x11(%rbp),%al
lea    0xe50(%rip),%rdi
movsbl %al,%esi
call   1060 <printf@plt>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    118a <main+0x1a>
mov    $0x0,%al
call   1050 <f@plt>
mov    $0x0,%al
call   1070 <g@plt>
mov    $0x0,%al
call   1040 <h@plt>
movl   $0x1000000,-0x8(%rbp)
mov    -0x8(%rbp),%eax
and    $0x7000000,%eax
cmp    $0x0,%eax
je     1216 <main+0xa6>
mov    -0x8(%rbp),%edi
call   1080 <big@plt>
mov    -0x8(%rbp),%eax
add    $0x1000000,%eax
mov    %eax,-0x8(%rbp)
jmp    11ed <main+0x7d>
mov    $0x0,%al
call   1030 <limit@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x62,%edi
call   1090 <backslash@plt>
lea    0xe7e(%rip),%rbx
mov    %rbx,%rdi
mov    $0x62,%esi
mov    %eax,%edx
call   1060 <printf@plt>
mov    $0x66,%edi
call   1090 <backslash@plt>
mov    %rbx,%rdi
mov    $0x66,%esi
mov    %eax,%edx
call   1060 <printf@plt>
mov    $0x6e,%edi
call   1090 <backslash@plt>
mov    %rbx,%rdi
mov    $0x6e,%esi
mov    %eax,%edx
call   1060 <printf@plt>
mov    $0x72,%edi
call   1090 <backslash@plt>
mov    %rbx,%rdi
mov    $0x72,%esi
mov    %eax,%edx
call   1060 <printf@plt>
mov    $0x74,%edi
call   1090 <backslash@plt>
mov    %rbx,%rdi
mov    $0x74,%esi
mov    %eax,%edx
call   1060 <printf@plt>
mov    $0x76,%edi
call   1090 <backslash@plt>
mov    %rbx,%rdi
mov    $0x76,%esi
mov    %eax,%edx
call   1060 <printf@plt>
mov    $0x78,%edi
call   1090 <backslash@plt>
mov    %rbx,%rdi
mov    $0x78,%esi
mov    %eax,%edx
call   1060 <printf@plt>
xor    %eax,%eax
call   1050 <f@plt>
xor    %eax,%eax
call   1070 <g@plt>
xor    %eax,%eax
call   1040 <h@plt>
mov    $0x1000000,%edi
call   1080 <big@plt>
mov    $0x2000000,%edi
call   1080 <big@plt>
mov    $0x3000000,%edi
call   1080 <big@plt>
mov    $0x4000000,%edi
call   1080 <big@plt>
mov    $0x5000000,%edi
call   1080 <big@plt>
mov    $0x6000000,%edi
call   1080 <big@plt>
mov    $0x7000000,%edi
call   1080 <big@plt>
xor    %eax,%eax
call   1030 <limit@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"bfnrtvx\00"
@.str.1 = [11 x i8] c"%c = 0x%x\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8*
store i32 0, i32* %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %3
br label %4
4: ; preds = %15, %0
%5 = load i8*, i8** %3
%6 = load i8, i8* %5
%7 = icmp ne i8 %6, 0
br i1 %7, label %8, label %18
8: ; preds = %4
%9 = load i8*, i8** %3
%10 = load i8, i8* %9
%11 = load i8*, i8** %3
%12 = load i8, i8* %11
%13 = call i32 @backslash(i8 signext %12)
%14 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext %10, i32 %13)
br label %15
15: ; preds = %8
%16 = load i8*, i8** %3
%17 = getelementptr inbounds i8, i8* %16, i32 1
store i8* %17, i8** %3
br label %4
18: ; preds = %4
%19 = call i32 (...) @f()
%20 = call i32 (...) @g()
%21 = call i32 (...) @h()
store i32 16777216, i32* %2
br label %22
22: ; preds = %29, %18
%23 = load i32, i32* %2
%24 = and i32 %23, 117440512
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %32
26: ; preds = %22
%27 = load i32, i32* %2
%28 = call i32 @big(i32 %27)
br label %29
29: ; preds = %26
%30 = load i32, i32* %2
%31 = add nsw i32 %30, 16777216
store i32 %31, i32* %2
br label %22
32: ; preds = %22
%33 = call i32 (...) @limit()
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [11 x i8] c"%c = 0x%x\0A\00"
define i32 @main() {
%1 = tail call i32 @backslash(i8 signext 98)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 98, i32 %1)
%3 = tail call i32 @backslash(i8 signext 102)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 102, i32 %3)
%5 = tail call i32 @backslash(i8 signext 110)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 110, i32 %5)
%7 = tail call i32 @backslash(i8 signext 114)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 114, i32 %7)
%9 = tail call i32 @backslash(i8 signext 116)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 116, i32 %9)
%11 = tail call i32 @backslash(i8 signext 118)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 118, i32 %11)
%13 = tail call i32 @backslash(i8 signext 120)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8 signext 120, i32 %13)
%15 = tail call i32 (...) @f()
%16 = tail call i32 (...) @g()
%17 = tail call i32 (...) @h()
%18 = tail call i32 @big(i32 16777216)
%19 = tail call i32 @big(i32 33554432)
%20 = tail call i32 @big(i32 50331648)
%21 = tail call i32 @big(i32 67108864)
%22 = tail call i32 @big(i32 83886080)
%23 = tail call i32 @big(i32 100663296)
%24 = tail call i32 @big(i32 117440512)
%25 = tail call i32 (...) @limit()
ret i32 0
}