#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(void) {
  printf("size of int: %lu\n", sizeof(int));
  printf("size of char: %lu\n", sizeof(char));
  printf("size of float: %lu\n", sizeof(float));
  printf("size of double: %lu\n", sizeof(double));
  printf("size of short int: %lu\n", sizeof(short int));
  printf("size of long int: %lu\n", sizeof(long int));
  printf("size of short: %lu\n", sizeof(short));
  printf("size of long: %lu\n", sizeof(long));
  printf("size of signed: %lu\n", sizeof(signed));
  printf("size of unsigned: %lu\n", sizeof(unsigned));
  printf("size of long double: %lu\n", sizeof(long double));
  printf("size of signed int: %lu\n", sizeof(signed int));
  printf("size of unsigned int: %lu\n", sizeof(unsigned int));
  printf("size of signed char: %lu\n", sizeof(signed char));
  printf("size of unsigned char: %lu\n", sizeof(unsigned char));
  printf("size of unsigned long: %lu\n", sizeof(unsigned long));
  printf("size of unsigned long long: %lu\n", sizeof(unsigned long long));
  printf("size of string constant a: %lu\n", sizeof("a"));
  printf("size of single quote a: %lu\n", sizeof('a'));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf26(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf45(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xee9(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf0e(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf29(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf32(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf48(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf67(%rip),%rdi
mov    $0x4,%esi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"size of int: %lu\0A\00"
@.str.1 = [19 x i8] c"size of char: %lu\0A\00"
@.str.2 = [20 x i8] c"size of float: %lu\0A\00"
@.str.3 = [21 x i8] c"size of double: %lu\0A\00"
@.str.4 = [24 x i8] c"size of short int: %lu\0A\00"
@.str.5 = [23 x i8] c"size of long int: %lu\0A\00"
@.str.6 = [20 x i8] c"size of short: %lu\0A\00"
@.str.7 = [19 x i8] c"size of long: %lu\0A\00"
@.str.8 = [21 x i8] c"size of signed: %lu\0A\00"
@.str.9 = [23 x i8] c"size of unsigned: %lu\0A\00"
@.str.10 = [26 x i8] c"size of long double: %lu\0A\00"
@.str.11 = [25 x i8] c"size of signed int: %lu\0A\00"
@.str.12 = [27 x i8] c"size of unsigned int: %lu\0A\00"
@.str.13 = [26 x i8] c"size of signed char: %lu\0A\00"
@.str.14 = [28 x i8] c"size of unsigned char: %lu\0A\00"
@.str.15 = [28 x i8] c"size of unsigned long: %lu\0A\00"
@.str.16 = [33 x i8] c"size of unsigned long long: %lu\0A\00"
@.str.17 = [32 x i8] c"size of string constant a: %lu\0A\00"
@.str.18 = [29 x i8] c"size of single quote a: %lu\0A\00"
define void @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 4)
%2 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 1)
%3 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 4)
%4 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 8)
%5 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i32 2)
%6 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 8)
%7 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 2)
%8 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 8)
%9 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 4)
%10 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), i32 4)
%11 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i32 16)
%12 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0), i32 4)
%13 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i32 4)
%14 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.13, i64 0, i64 0), i32 1)
%15 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i32 1)
%16 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i32 8)
%17 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.16, i64 0, i64 0), i32 8)
%18 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.17, i64 0, i64 0), i32 2)
%19 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i32 4)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"size of int: %lu\0A\00"
@.str.1 = [19 x i8] c"size of char: %lu\0A\00"
@.str.2 = [20 x i8] c"size of float: %lu\0A\00"
@.str.3 = [21 x i8] c"size of double: %lu\0A\00"
@.str.4 = [24 x i8] c"size of short int: %lu\0A\00"
@.str.5 = [23 x i8] c"size of long int: %lu\0A\00"
@.str.6 = [20 x i8] c"size of short: %lu\0A\00"
@.str.7 = [19 x i8] c"size of long: %lu\0A\00"
@.str.8 = [21 x i8] c"size of signed: %lu\0A\00"
@.str.9 = [23 x i8] c"size of unsigned: %lu\0A\00"
@.str.10 = [26 x i8] c"size of long double: %lu\0A\00"
@.str.11 = [25 x i8] c"size of signed int: %lu\0A\00"
@.str.12 = [27 x i8] c"size of unsigned int: %lu\0A\00"
@.str.13 = [26 x i8] c"size of signed char: %lu\0A\00"
@.str.14 = [28 x i8] c"size of unsigned char: %lu\0A\00"
@.str.15 = [28 x i8] c"size of unsigned long: %lu\0A\00"
@.str.16 = [33 x i8] c"size of unsigned long long: %lu\0A\00"
@.str.17 = [32 x i8] c"size of string constant a: %lu\0A\00"
@.str.18 = [29 x i8] c"size of single quote a: %lu\0A\00"
define void @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 4)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 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 8)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i32 2)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 8)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 2)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 8)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 4)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), i32 4)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i32 16)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0), i32 4)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i32 4)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.13, i64 0, i64 0), i32 1)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i32 1)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.15, i64 0, i64 0), i32 8)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.16, i64 0, i64 0), i32 8)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.17, i64 0, i64 0), i32 2)
%19 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.18, i64 0, i64 0), i32 4)
ret void
}