#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*/ f;
typedef int /*<<< orphan*/ e;
typedef int /*<<< orphan*/ d;
typedef int /*<<< orphan*/ c;
typedef int /*<<< orphan*/ b;
typedef int /*<<< orphan*/ a;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  short int a = 1;
  int b = 2;
  long int c = 3;
  float d = 1.1;
  double e = 2.2;
  char f = 'f';
  printf("short int:\t%d\n", sizeof(a));
  printf("int:\t%d\n", sizeof(b));
  printf("long int:\t%d\n", sizeof(c));
  printf("float:\t%d\n", sizeof(d));
  printf("double:\t%d\n", sizeof(e));
  printf("char:\t%d\n", sizeof(f));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movw   $0x1,-0x6(%rbp)
movl   $0x2,-0xc(%rbp)
movq   $0x3,-0x18(%rbp)
movss  0xecc(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
movsd  0xeb7(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movb   $0x66,-0x29(%rbp)
lea    0xeb3(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xeb6(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xea0(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xe9d(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xe97(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xe92(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"short int:\09%d\0A\00"
@.str.1 = [9 x i8] c"int:\09%d\0A\00"
@.str.2 = [14 x i8] c"long int:\09%d\0A\00"
@.str.3 = [11 x i8] c"float:\09%d\0A\00"
@.str.4 = [12 x i8] c"double:\09%d\0A\00"
@.str.5 = [10 x i8] c"char:\09%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i16
%3 = alloca i32
%4 = alloca i64
%5 = alloca float
%6 = alloca double
%7 = alloca i8
store i32 0, i32* %1
store i16 1, i16* %2
store i32 2, i32* %3
store i64 3, i64* %4
store float 0x3FF19999A0000000, float* %5
store double 2.200000e+00, double* %6
store i8 102, i8* %7
%8 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 2)
%9 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 4)
%10 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 8)
%11 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 4)
%12 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 8)
%13 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 1)
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"short int:\09%d\0A\00"
@.str.1 = [9 x i8] c"int:\09%d\0A\00"
@.str.2 = [14 x i8] c"long int:\09%d\0A\00"
@.str.3 = [11 x i8] c"float:\09%d\0A\00"
@.str.4 = [12 x i8] c"double:\09%d\0A\00"
@.str.5 = [10 x i8] c"char:\09%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 2)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 4)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 8)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 4)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i32 8)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i32 1)
ret i32 0
}