#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*/ initLibrary();
int /*<<< orphan*/ print(char *);
int /*<<< orphan*/ printBinary(int, int /*<<< orphan*/);
int /*<<< orphan*/ printCharacter(unsigned char);
int /*<<< orphan*/ printHexadecimal(int, int /*<<< orphan*/);
int /*<<< orphan*/ printInteger(unsigned char);
int /*<<< orphan*/ printOctal(int, int /*<<< orphan*/);
int /*<<< orphan*/ printString(char *);
int /*<<< orphan*/ println();
int main() {
  initLibrary();
  print("85 decimal:     ");
  printInteger(85);
  println();
  printCharacter('U');
  print(" ASCII code: ");
  printInteger('U');
  println();
  printString("85");
  print(" string:    ");
  print("85");
  println();
  print("85 hexadecimal: ");
  printHexadecimal(85, 0);
  println();
  print("85 octal:       ");
  printOctal(85, 0);
  println();
  print("85 binary:      ");
  printBinary(85, 0);
  println();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <initLibrary@plt>
lea    0xe5e(%rip),%rdi
call   1080 <print@plt>
mov    $0x55,%edi
call   10a0 <printInteger@plt>
mov    $0x0,%al
call   1070 <println@plt>
mov    $0x55,%edi
call   1090 <printCharacter@plt>
lea    0xe48(%rip),%rdi
call   1080 <print@plt>
mov    $0x55,%edi
call   10a0 <printInteger@plt>
mov    $0x0,%al
call   1070 <println@plt>
lea    0xe39(%rip),%rdi
call   1060 <printString@plt>
lea    0xe30(%rip),%rdi
call   1080 <print@plt>
lea    0xe21(%rip),%rdi
call   1080 <print@plt>
mov    $0x0,%al
call   1070 <println@plt>
lea    0xe1e(%rip),%rdi
call   1080 <print@plt>
mov    $0x55,%edi
xor    %esi,%esi
call   10b0 <printHexadecimal@plt>
mov    $0x0,%al
call   1070 <println@plt>
lea    0xe10(%rip),%rdi
call   1080 <print@plt>
mov    $0x55,%edi
xor    %esi,%esi
call   1030 <printOctal@plt>
mov    $0x0,%al
call   1070 <println@plt>
lea    0xe02(%rip),%rdi
call   1080 <print@plt>
mov    $0x55,%edi
xor    %esi,%esi
call   1050 <printBinary@plt>
mov    $0x0,%al
call   1070 <println@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1040 <initLibrary@plt>
lea    0xe61(%rip),%rdi
call   1080 <print@plt>
mov    $0x55,%edi
call   10a0 <printInteger@plt>
xor    %eax,%eax
call   1070 <println@plt>
mov    $0x55,%edi
call   1090 <printCharacter@plt>
lea    0xe4b(%rip),%rdi
call   1080 <print@plt>
mov    $0x55,%edi
call   10a0 <printInteger@plt>
xor    %eax,%eax
call   1070 <println@plt>
lea    0xe3c(%rip),%rbx
mov    %rbx,%rdi
call   1060 <printString@plt>
lea    0xe30(%rip),%rdi
call   1080 <print@plt>
mov    %rbx,%rdi
call   1080 <print@plt>
xor    %eax,%eax
call   1070 <println@plt>
lea    0xe22(%rip),%rdi
call   1080 <print@plt>
mov    $0x55,%edi
xor    %esi,%esi
call   10b0 <printHexadecimal@plt>
xor    %eax,%eax
call   1070 <println@plt>
lea    0xe14(%rip),%rdi
call   1080 <print@plt>
mov    $0x55,%edi
xor    %esi,%esi
call   1030 <printOctal@plt>
xor    %eax,%eax
call   1070 <println@plt>
lea    0xe06(%rip),%rdi
call   1080 <print@plt>
mov    $0x55,%edi
xor    %esi,%esi
call   1050 <printBinary@plt>
xor    %eax,%eax
call   1070 <println@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [17 x i8] c"85 decimal: \00"
@.str.1 = [14 x i8] c" ASCII code: \00"
@.str.2 = [3 x i8] c"85\00"
@.str.3 = [13 x i8] c" string: \00"
@.str.4 = [17 x i8] c"85 hexadecimal: \00"
@.str.5 = [17 x i8] c"85 octal: \00"
@.str.6 = [17 x i8] c"85 binary: \00"
define i32 @main() {
%1 = call i32 (...) @initLibrary()
%2 = call i32 @print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printInteger(i8 zeroext 85)
%4 = call i32 (...) @println()
%5 = call i32 @printCharacter(i8 zeroext 85)
%6 = call i32 @print(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @printInteger(i8 zeroext 85)
%8 = call i32 (...) @println()
%9 = call i32 @printString(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 (...) @println()
%13 = call i32 @print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @printHexadecimal(i32 85, i32 0)
%15 = call i32 (...) @println()
%16 = call i32 @print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%17 = call i32 @printOctal(i32 85, i32 0)
%18 = call i32 (...) @println()
%19 = call i32 @print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%20 = call i32 @printBinary(i32 85, i32 0)
%21 = call i32 (...) @println()
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"85 decimal: \00"
@.str.1 = [14 x i8] c" ASCII code: \00"
@.str.2 = [3 x i8] c"85\00"
@.str.3 = [13 x i8] c" string: \00"
@.str.4 = [17 x i8] c"85 hexadecimal: \00"
@.str.5 = [17 x i8] c"85 octal: \00"
@.str.6 = [17 x i8] c"85 binary: \00"
define i32 @main() {
%1 = tail call i32 (...) @initLibrary()
%2 = tail call i32 @print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @printInteger(i8 zeroext 85)
%4 = tail call i32 (...) @println()
%5 = tail call i32 @printCharacter(i8 zeroext 85)
%6 = tail call i32 @print(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @printInteger(i8 zeroext 85)
%8 = tail call i32 (...) @println()
%9 = tail call i32 @printString(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @print(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%11 = tail call i32 @print(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%12 = tail call i32 (...) @println()
%13 = tail call i32 @print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0))
%14 = tail call i32 @printHexadecimal(i32 85, i32 0)
%15 = tail call i32 (...) @println()
%16 = tail call i32 @print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%17 = tail call i32 @printOctal(i32 85, i32 0)
%18 = tail call i32 (...) @println()
%19 = tail call i32 @print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%20 = tail call i32 @printBinary(i32 85, i32 0)
%21 = tail call i32 (...) @println()
ret i32 0
}