#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*/ lp;
typedef int /*<<< orphan*/ l;
typedef int /*<<< orphan*/ ip;
typedef int /*<<< orphan*/ i;
typedef int /*<<< orphan*/ dp;
typedef int /*<<< orphan*/ d;
typedef int /*<<< orphan*/ cp;
typedef int /*<<< orphan*/ ch;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  char *cp, ch;
  int *ip, i;
  double *dp, d;
  long *lp, l;
  printf("sizeof(ch) = %u\n", sizeof(ch));
  printf("sizeof(i) = %u\n", sizeof(i));
  printf("sizeof(d) = %u\n", sizeof(d));
  printf("sizeof(l) = %u\n", sizeof(l));
  printf("sizeof(cp) = %u\n", sizeof(cp));
  printf("sizeof(ip) = %u\n", sizeof(ip));
  printf("sizeof(dp) = %u\n", sizeof(dp));
  printf("sizeof(dp) = %u\n", sizeof(lp));
  printf("sizeof(char *) = %u\n", sizeof(char *));
  printf("sizeof(int *) = %u\n", sizeof(int *));
  printf("sizeof(double *) = %u\n", sizeof(double *));
  printf("sizeof(long *) = %u\n", sizeof(long *));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xee5(%rip),%rbx
mov    %rbx,%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [17 x i8] c"sizeof(ch) = %u\0A\00"
@.str.1 = [16 x i8] c"sizeof(i) = %u\0A\00"
@.str.2 = [16 x i8] c"sizeof(d) = %u\0A\00"
@.str.3 = [16 x i8] c"sizeof(l) = %u\0A\00"
@.str.4 = [17 x i8] c"sizeof(cp) = %u\0A\00"
@.str.5 = [17 x i8] c"sizeof(ip) = %u\0A\00"
@.str.6 = [17 x i8] c"sizeof(dp) = %u\0A\00"
@.str.7 = [21 x i8] c"sizeof(char *) = %u\0A\00"
@.str.8 = [20 x i8] c"sizeof(int *) = %u\0A\00"
@.str.9 = [23 x i8] c"sizeof(double *) = %u\0A\00"
@.str.10 = [21 x i8] c"sizeof(long *) = %u\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8
%4 = alloca i32*
%5 = alloca i32
%6 = alloca double*
%7 = alloca double
%8 = alloca i64*
%9 = alloca i64
store i32 0, i32* %1
%10 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 1)
%11 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 4)
%12 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 8)
%13 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 8)
%14 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 8)
%15 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 8)
%16 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 8)
%17 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 8)
%18 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 8)
%19 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 8)
%20 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), i32 8)
%21 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 8)
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"sizeof(ch) = %u\0A\00"
@.str.1 = [16 x i8] c"sizeof(i) = %u\0A\00"
@.str.2 = [16 x i8] c"sizeof(d) = %u\0A\00"
@.str.3 = [16 x i8] c"sizeof(l) = %u\0A\00"
@.str.4 = [17 x i8] c"sizeof(cp) = %u\0A\00"
@.str.5 = [17 x i8] c"sizeof(ip) = %u\0A\00"
@.str.6 = [17 x i8] c"sizeof(dp) = %u\0A\00"
@.str.7 = [21 x i8] c"sizeof(char *) = %u\0A\00"
@.str.8 = [20 x i8] c"sizeof(int *) = %u\0A\00"
@.str.9 = [23 x i8] c"sizeof(double *) = %u\0A\00"
@.str.10 = [21 x i8] c"sizeof(long *) = %u\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 4)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 8)
%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 ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 8)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 8)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 8)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 8)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 8)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 8)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), i32 8)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i32 8)
ret i32 0
}