#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);
void main() {
  printf("Storage size for int : %d bytes, this can store an Integer \n",
         sizeof(int));
  printf("Storage size for char : %d byte, this can store a Character \n",
         sizeof(char));
  printf("Storage size for short : %d bytes, this can store an Integer such "
         "that -32,768 to 32,767 \n",
         sizeof(short));
  printf("Storage size for long : %d bytes, this can store an Integer such "
         "that -2,147,483,648 to 2,147,483,647  \n",
         sizeof(long));
  printf("Storage size for long long : %d bytes, this can store an Integer \n",
         sizeof(long long));
  int number;
  int anotherNumber = 5;
  printf("Value of number: %d \n", number);
  printf("Value of anotherNumber: %d \n", anotherNumber);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf84(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfdc(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
movl   $0x5,-0x8(%rbp)
mov    -0x4(%rbp),%esi
lea    0x1004(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0x100b(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf41(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf8b(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfe3(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0x1015(%rip),%rdi
call   1030 <printf@plt>
lea    0x101f(%rip),%rdi
mov    $0x5,%esi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [61 x i8] c"Storage size for int : %d bytes, this can store an Integer \0A\00"
@.str.1 = [62 x i8] c"Storage size for char : %d byte, this can store a Character \0A\00"
@.str.2 = [91 x i8] c"Storage size for short : %d bytes, this can store an Integer such that -32,768 to 32,767 \0A\00"
@.str.3 = [105 x i8] c"Storage size for long : %d bytes, this can store an Integer such that -2,147,483,648 to 2,147,483,647 \0A\00"
@.str.4 = [67 x i8] c"Storage size for long long : %d bytes, this can store an Integer \0A\00"
@.str.5 = [22 x i8] c"Value of number: %d \0A\00"
@.str.6 = [29 x i8] c"Value of anotherNumber: %d \0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str, i64 0, i64 0), i32 4)
%4 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0), i32 1)
%5 = call i32 @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.2, i64 0, i64 0), i32 2)
%6 = call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str.3, i64 0, i64 0), i32 8)
%7 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0), i32 8)
store i32 5, i32* %2
%8 = load i32, i32* %1
%9 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %8)
%10 = load i32, i32* %2
%11 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 %10)
ret void
}

LLVM IR (-O2):
@.str = [61 x i8] c"Storage size for int : %d bytes, this can store an Integer \0A\00"
@.str.1 = [62 x i8] c"Storage size for char : %d byte, this can store a Character \0A\00"
@.str.2 = [91 x i8] c"Storage size for short : %d bytes, this can store an Integer such that -32,768 to 32,767 \0A\00"
@.str.3 = [105 x i8] c"Storage size for long : %d bytes, this can store an Integer such that -2,147,483,648 to 2,147,483,647 \0A\00"
@.str.4 = [67 x i8] c"Storage size for long long : %d bytes, this can store an Integer \0A\00"
@.str.5 = [22 x i8] c"Value of number: %d \0A\00"
@.str.6 = [29 x i8] c"Value of anotherNumber: %d \0A\00"
define void @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str, i64 0, i64 0), i32 4)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0), i32 1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.2, i64 0, i64 0), i32 2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str.3, i64 0, i64 0), i32 8)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.4, i64 0, i64 0), i32 8)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 undef)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 5)
ret void
}