#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, ...);
int main(void) {
  char c;
  short s;
  int i;
  long l;
  float f;
  double d;
  long double ld;
  int arr[20];
  int *arr_ptr = arr;
  printf("sizeof c = %lu\t sizeof(char) = %lu\n", sizeof c, sizeof(char));
  printf("sizeof s = %lu\t sizeof(short) = %lu\n", sizeof s, sizeof(short));
  printf("sizeof i = %lu\t sizeof(int) = %lu\n", sizeof i, sizeof(int));
  printf("sizeof l = %lu\t sizeof(long) = %lu\n", sizeof l, sizeof(long));
  printf("sizeof f = %lu\t sizeof(float) = %lu\n", sizeof f, sizeof(float));
  printf("sizeof d = %lu\t sizeof(double) = %lu\n", sizeof d, sizeof(double));
  printf("sizeof ld = %lu\t sizeof(long double) = %lu\n", sizeof ld,
         sizeof(long double));
  printf("sizeof arr = %lu\n", sizeof arr);
  printf("sizeof arr_ptr = %lu\n", sizeof arr_ptr);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x90(%rbp),%rax
mov    %rax,-0x98(%rbp)
lea    0xec9(%rip),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x2,%esi
mov    $0x2,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x10,%esi
mov    $0x10,%edx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
mov    $0x50,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x1,%edx
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
mov    $0x2,%edx
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
mov    $0x4,%edx
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
mov    $0x8,%edx
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
mov    $0x4,%edx
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
mov    $0x8,%edx
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf33(%rip),%rdi
mov    $0x10,%edx
mov    $0x10,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf47(%rip),%rdi
mov    $0x50,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf46(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [36 x i8] c"sizeof c = %lu\09 sizeof(char) = %lu\0A\00"
@.str.1 = [37 x i8] c"sizeof s = %lu\09 sizeof(short) = %lu\0A\00"
@.str.2 = [35 x i8] c"sizeof i = %lu\09 sizeof(int) = %lu\0A\00"
@.str.3 = [36 x i8] c"sizeof l = %lu\09 sizeof(long) = %lu\0A\00"
@.str.4 = [37 x i8] c"sizeof f = %lu\09 sizeof(float) = %lu\0A\00"
@.str.5 = [38 x i8] c"sizeof d = %lu\09 sizeof(double) = %lu\0A\00"
@.str.6 = [44 x i8] c"sizeof ld = %lu\09 sizeof(long double) = %lu\0A\00"
@.str.7 = [18 x i8] c"sizeof arr = %lu\0A\00"
@.str.8 = [22 x i8] c"sizeof arr_ptr = %lu\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i16
%4 = alloca i32
%5 = alloca i64
%6 = alloca float
%7 = alloca double
%8 = alloca x86_fp80
%9 = alloca [20 x i32]
%10 = alloca i32*
store i32 0, i32* %1
%11 = getelementptr inbounds [20 x i32], [20 x i32]* %9, i64 0, i64 0
store i32* %11, i32** %10
%12 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 1, i64 1)
%13 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 2, i64 2)
%14 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 4, i64 4)
%15 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 8, i64 8)
%16 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i32 4, i64 4)
%17 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 8, i64 8)
%18 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0), i32 16, i64 16)
%19 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 80)
%20 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 8)
ret i32 0
}

LLVM IR (-O2):
@.str = [36 x i8] c"sizeof c = %lu\09 sizeof(char) = %lu\0A\00"
@.str.1 = [37 x i8] c"sizeof s = %lu\09 sizeof(short) = %lu\0A\00"
@.str.2 = [35 x i8] c"sizeof i = %lu\09 sizeof(int) = %lu\0A\00"
@.str.3 = [36 x i8] c"sizeof l = %lu\09 sizeof(long) = %lu\0A\00"
@.str.4 = [37 x i8] c"sizeof f = %lu\09 sizeof(float) = %lu\0A\00"
@.str.5 = [38 x i8] c"sizeof d = %lu\09 sizeof(double) = %lu\0A\00"
@.str.6 = [44 x i8] c"sizeof ld = %lu\09 sizeof(long double) = %lu\0A\00"
@.str.7 = [18 x i8] c"sizeof arr = %lu\0A\00"
@.str.8 = [22 x i8] c"sizeof arr_ptr = %lu\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 1, i64 1)
%2 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 2, i64 2)
%3 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), i32 4, i64 4)
%4 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 8, i64 8)
%5 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i32 4, i64 4)
%6 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 8, i64 8)
%7 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0), i32 16, i64 16)
%8 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 80)
%9 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 8)
ret i32 0
}