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


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xeee(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xea1(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xea9(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x8,%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    0xeb0(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef1(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xea4(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeac(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xeb5(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xebc(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xeb3(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"char : %d bayt\0A\00"
@.str.1 = [17 x i8] c"short : %d bayt\0A\00"
@.str.2 = [15 x i8] c"int : %d bayt\0A\00"
@.str.3 = [16 x i8] c"long : %d bayt\0A\00"
@.str.4 = [25 x i8] c"unsigned char : %d bayt\0A\00"
@.str.5 = [26 x i8] c"unsigned short : %d bayt\0A\00"
@.str.6 = [24 x i8] c"unsigned int : %d bayt\0A\00"
@.str.7 = [25 x i8] c"unsigned long : %d bayt\0A\00"
@.str.8 = [17 x i8] c"float : %d bayt\0A\00"
@.str.9 = [18 x i8] c"double : %d bayt\0A\00"
@.str.10 = [23 x i8] c"long double : %d bayt\0A\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 2)
%3 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 4)
%4 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 8)
%5 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 1)
%6 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), i32 2)
%7 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 4)
%8 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i32 8)
%9 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32 4)
%10 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 8)
%11 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 16)
ret i32 0
}

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