#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 compute_char();
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  printf("bit pattern:%d\n", '\013');
  printf("character 0 is: %d\n", '0');
  printf("escape charater:%d\n", '\0');
  printf("char: %d\n", sizeof(char));
  printf("short: %d\n", sizeof(short));
  printf("int: %d\n", sizeof(int));
  printf("unsigned int: %d\n", sizeof(unsigned int));
  printf("signed int: %d\n", sizeof(signed int));
  printf("long: %d\n", sizeof(long));
  printf("\nfloat: %d\n", sizeof(float));
  printf("double: %d\n", sizeof(double));
  printf("long double: %d\n", sizeof(long double));
  printf("\nComputed range of char: %d\n", compute_char());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0xb,%esi
call   1040 <printf@plt>
lea    0xec9(%rip),%rdi
mov    $0x30,%esi
call   1040 <printf@plt>
lea    0xecc(%rip),%rdi
xor    %esi,%esi
call   1040 <printf@plt>
lea    0xf29(%rip),%rdi
mov    $0x1,%esi
call   1040 <printf@plt>
lea    0xec1(%rip),%rdi
mov    $0x2,%esi
call   1040 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xeaa(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xe9b(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xe9a(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xe93(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xe93(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xe7d(%rip),%rdi
mov    $0x10,%esi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <compute_char@plt>
mov    %eax,%esi
lea    0xe74(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0xb,%esi
call   1040 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x30,%esi
call   1040 <printf@plt>
lea    0xeda(%rip),%rdi
xor    %esi,%esi
call   1040 <printf@plt>
lea    0xf37(%rip),%rdi
mov    $0x1,%esi
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x2,%esi
call   1040 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xeb8(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xea9(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xea8(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xea1(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xea1(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xe8b(%rip),%rdi
mov    $0x10,%esi
call   1040 <printf@plt>
xor    %eax,%eax
call   1030 <compute_char@plt>
lea    0xe84(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"bit pattern:%d\0A\00"
@.str.1 = [20 x i8] c"character 0 is: %d\0A\00"
@.str.2 = [20 x i8] c"escape charater:%d\0A\00"
@.str.3 = [10 x i8] c"char: %d\0A\00"
@.str.4 = [11 x i8] c"short: %d\0A\00"
@.str.5 = [9 x i8] c"int: %d\0A\00"
@.str.6 = [18 x i8] c"unsigned int: %d\0A\00"
@.str.7 = [16 x i8] c"signed int: %d\0A\00"
@.str.8 = [10 x i8] c"long: %d\0A\00"
@.str.9 = [12 x i8] c"\0Afloat: %d\0A\00"
@.str.10 = [12 x i8] c"double: %d\0A\00"
@.str.11 = [17 x i8] c"long double: %d\0A\00"
@.str.12 = [29 x i8] c"\0AComputed range of char: %d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 11)
%3 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 48)
%4 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 0)
%5 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 1)
%6 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 2)
%7 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 4)
%8 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 4)
%9 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 4)
%10 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i32 8)
%11 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 4)
%12 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 8)
%13 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i32 16)
%14 = call i32 (...) @compute_char()
%15 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i32 %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"bit pattern:%d\0A\00"
@.str.1 = [20 x i8] c"character 0 is: %d\0A\00"
@.str.2 = [20 x i8] c"escape charater:%d\0A\00"
@.str.3 = [10 x i8] c"char: %d\0A\00"
@.str.4 = [11 x i8] c"short: %d\0A\00"
@.str.5 = [9 x i8] c"int: %d\0A\00"
@.str.6 = [18 x i8] c"unsigned int: %d\0A\00"
@.str.7 = [16 x i8] c"signed int: %d\0A\00"
@.str.8 = [10 x i8] c"long: %d\0A\00"
@.str.9 = [12 x i8] c"\0Afloat: %d\0A\00"
@.str.10 = [12 x i8] c"double: %d\0A\00"
@.str.11 = [17 x i8] c"long double: %d\0A\00"
@.str.12 = [29 x i8] c"\0AComputed range of char: %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 11)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 48)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 0)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 1)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 2)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32 4)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 4)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i32 4)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i32 8)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 4)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 8)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i32 16)
%13 = tail call i32 (...) @compute_char()
%14 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i32 %13)
ret i32 0
}