#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() {
  int x = sizeof(signed char);
  printf("signed char: \t\t%d\n", x);
  x = sizeof(unsigned char);
  printf("unsigned char: \t\t%d\n", x);
  x = sizeof(signed short int);
  printf("signed short int: \t%d\n", x);
  x = sizeof(unsigned short int);
  printf("unsigned short int: \t%d\n", x);
  x = sizeof(signed int);
  printf("signed int: \t\t%d\n", x);
  x = sizeof(unsigned int);
  printf("unsigned int: \t\t%d\n", x);
  x = sizeof(signed long int);
  printf("signed long int: \t%d\n", x);
  x = sizeof(unsigned long int);
  printf("unsigned long int: \t%d\n", x);
  x = sizeof(signed long long int);
  printf("signed long long int: \t%d\n", x);
  x = sizeof(unsigned long long int);
  printf("unsigned long long int: %d\n", x);
  x = sizeof(float);
  printf("float: \t\t\t%d\n", x);
  x = sizeof(double);
  printf("double: \t\t%d\n", x);
  x = sizeof(long double);
  printf("long double: \t\t%d\n", x);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
movl   $0x2,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xec2(%rip),%rdi
call   1030 <printf@plt>
movl   $0x2,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xeaa(%rip),%rdi
call   1030 <printf@plt>
movl   $0x4,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
movl   $0x4,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe97(%rip),%rdi
call   1030 <printf@plt>
movl   $0x8,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe97(%rip),%rdi
call   1030 <printf@plt>
movl   $0x8,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
movl   $0x8,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
movl   $0x8,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe86(%rip),%rdi
call   1030 <printf@plt>
movl   $0x4,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe8c(%rip),%rdi
call   1030 <printf@plt>
movl   $0x8,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
movl   $0x10,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe6e(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xeea(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xeb3(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xebb(%rip),%rdi
mov    $0x10,%esi
pop    %rax
jmp    1030 <printf@plt>

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

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