#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*/ h;
typedef int /*<<< orphan*/ g;
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(void) {
  int a;
  char b;
  double c;
  float d;
  long long int e;
  signed int f;
  long int g;
  unsigned long long int h;
  printf("int: %i\n", sizeof(a));
  printf("char: %i\n", sizeof(b));
  printf("double: %i\n", sizeof(c));
  printf("float: %i\n", sizeof(d));
  printf("long long int: %i\n", sizeof(e));
  printf("signed int: %i\n", sizeof(f));
  printf("long int: %i\n", sizeof(g));
  printf("unsigned long long int: %i\n", sizeof(h));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    0xf09(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xead(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xe9b(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf10(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xecb(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xeb4(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xea2(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"int: %i\0A\00"
@.str.1 = [10 x i8] c"char: %i\0A\00"
@.str.2 = [12 x i8] c"double: %i\0A\00"
@.str.3 = [11 x i8] c"float: %i\0A\00"
@.str.4 = [19 x i8] c"long long int: %i\0A\00"
@.str.5 = [16 x i8] c"signed int: %i\0A\00"
@.str.6 = [14 x i8] c"long int: %i\0A\00"
@.str.7 = [28 x i8] c"unsigned long long int: %i\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca double
%4 = alloca float
%5 = alloca i64
%6 = alloca i32
%7 = alloca i64
%8 = alloca i64
%9 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 4)
%10 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 1)
%11 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 8)
%12 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 4)
%13 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 8)
%14 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 4)
%15 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 8)
%16 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i32 8)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"int: %i\0A\00"
@.str.1 = [10 x i8] c"char: %i\0A\00"
@.str.2 = [12 x i8] c"double: %i\0A\00"
@.str.3 = [11 x i8] c"float: %i\0A\00"
@.str.4 = [19 x i8] c"long long int: %i\0A\00"
@.str.5 = [16 x i8] c"signed int: %i\0A\00"
@.str.6 = [14 x i8] c"long int: %i\0A\00"
@.str.7 = [28 x i8] c"unsigned long long int: %i\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 4)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 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 ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 8)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 4)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 8)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i32 8)
ret i32 0
}