#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  printf("void:\t\t\t %lu bytes\n", sizeof(void));
  printf("char:\t\t\t %lu bytes\n", sizeof(char));
  printf("int:\t\t\t %lu bytes\n", sizeof(int));
  printf("float:\t\t\t %lu bytes\n", sizeof(float));
  printf("double:\t\t\t %lu bytes\n\n", sizeof(double));
  printf("short int:\t\t %lu bytes\n", sizeof(short int));
  printf("unsigned int:\t\t %lu bytes\n", sizeof(unsigned int));
  printf("short unsigned int:\t %lu bytes\n\n", sizeof(short unsigned int));
  printf("long int:\t\t %lu bytes\n", sizeof(long int));
  printf("long unsigned int:\t %lu bytes\n", sizeof(long unsigned int));
  printf("long long int:\t\t %lu bytes\n", sizeof(long long int));
  printf("long double:\t\t %lu bytes\n\n", sizeof(long double));
  printf("int*:\t\t\t %lu bytes\n", sizeof(int *));
  printf("float*:\t\t\t %lu bytes\n", sizeof(float *));
  printf("char*:\t\t\t %lu bytes\n", sizeof(char *));
  printf("FILE:\t\t\t %lu bytes\n", sizeof(FILE));
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xeec(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf31(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf15(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf2b(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf3f(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
lea    0xf2d(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf30(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf39(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"void:\09\09\09 %lu bytes\0A\00"
@.str.1 = [20 x i8] c"char:\09\09\09 %lu bytes\0A\00"
@.str.2 = [19 x i8] c"int:\09\09\09 %lu bytes\0A\00"
@.str.3 = [21 x i8] c"float:\09\09\09 %lu bytes\0A\00"
@.str.4 = [23 x i8] c"double:\09\09\09 %lu bytes\0A\0A\00"
@.str.5 = [24 x i8] c"short int:\09\09 %lu bytes\0A\00"
@.str.6 = [27 x i8] c"unsigned int:\09\09 %lu bytes\0A\00"
@.str.7 = [33 x i8] c"short unsigned int:\09 %lu bytes\0A\0A\00"
@.str.8 = [23 x i8] c"long int:\09\09 %lu bytes\0A\00"
@.str.9 = [31 x i8] c"long unsigned int:\09 %lu bytes\0A\00"
@.str.10 = [28 x i8] c"long long int:\09\09 %lu bytes\0A\00"
@.str.11 = [27 x i8] c"long double:\09\09 %lu bytes\0A\0A\00"
@.str.12 = [20 x i8] c"int*:\09\09\09 %lu bytes\0A\00"
@.str.13 = [22 x i8] c"float*:\09\09\09 %lu bytes\0A\00"
@.str.14 = [21 x i8] c"char*:\09\09\09 %lu bytes\0A\00"
@.str.15 = [20 x i8] c"FILE:\09\09\09 %lu bytes\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 1)
%3 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 1)
%4 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 4)
%5 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 4)
%6 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 8)
%7 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i32 2)
%8 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i32 4)
%9 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i32 2)
%10 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 8)
%11 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 8)
%12 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i32 8)
%13 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 16)
%14 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i32 8)
%15 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i32 8)
%16 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0), i32 8)
%17 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i32 4)
ret i32 1
}

LLVM IR (-O2):
@.str = [20 x i8] c"void:\09\09\09 %lu bytes\0A\00"
@.str.1 = [20 x i8] c"char:\09\09\09 %lu bytes\0A\00"
@.str.2 = [19 x i8] c"int:\09\09\09 %lu bytes\0A\00"
@.str.3 = [21 x i8] c"float:\09\09\09 %lu bytes\0A\00"
@.str.4 = [23 x i8] c"double:\09\09\09 %lu bytes\0A\0A\00"
@.str.5 = [24 x i8] c"short int:\09\09 %lu bytes\0A\00"
@.str.6 = [27 x i8] c"unsigned int:\09\09 %lu bytes\0A\00"
@.str.7 = [33 x i8] c"short unsigned int:\09 %lu bytes\0A\0A\00"
@.str.8 = [23 x i8] c"long int:\09\09 %lu bytes\0A\00"
@.str.9 = [31 x i8] c"long unsigned int:\09 %lu bytes\0A\00"
@.str.10 = [28 x i8] c"long long int:\09\09 %lu bytes\0A\00"
@.str.11 = [27 x i8] c"long double:\09\09 %lu bytes\0A\0A\00"
@.str.12 = [20 x i8] c"int*:\09\09\09 %lu bytes\0A\00"
@.str.13 = [22 x i8] c"float*:\09\09\09 %lu bytes\0A\00"
@.str.14 = [21 x i8] c"char*:\09\09\09 %lu bytes\0A\00"
@.str.15 = [20 x i8] c"FILE:\09\09\09 %lu bytes\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 4)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 4)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 8)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i32 2)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i32 4)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i32 2)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 8)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 8)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0), i32 8)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0), i32 16)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i32 8)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i32 8)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0), i32 8)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i32 4)
ret i32 1
}