#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*/ ptrdiff_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main() {
  printf("sizeof = {\n");
  do {
    printf("  (\""
           "char"
           "\", %zd),\n",
           sizeof(char));
  } while (0);
  do {
    printf("  (\""
           "signed char"
           "\", %zd),\n",
           sizeof(signed char));
  } while (0);
  do {
    printf("  (\""
           "signed short"
           "\", %zd),\n",
           sizeof(signed short));
  } while (0);
  do {
    printf("  (\""
           "signed int"
           "\", %zd),\n",
           sizeof(signed int));
  } while (0);
  do {
    printf("  (\""
           "signed long"
           "\", %zd),\n",
           sizeof(signed long));
  } while (0);
  do {
    printf("  (\""
           "signed long long"
           "\", %zd),\n",
           sizeof(signed long long));
  } while (0);
  do {
    printf("  (\""
           "unsigned char"
           "\", %zd),\n",
           sizeof(unsigned char));
  } while (0);
  do {
    printf("  (\""
           "unsigned short"
           "\", %zd),\n",
           sizeof(unsigned short));
  } while (0);
  do {
    printf("  (\""
           "unsigned int"
           "\", %zd),\n",
           sizeof(unsigned int));
  } while (0);
  do {
    printf("  (\""
           "unsigned long"
           "\", %zd),\n",
           sizeof(unsigned long));
  } while (0);
  do {
    printf("  (\""
           "unsigned long long"
           "\", %zd),\n",
           sizeof(unsigned long long));
  } while (0);
  do {
    printf("  (\""
           "size_t"
           "\", %zd),\n",
           sizeof(size_t));
  } while (0);
  do {
    printf("  (\""
           "ptrdiff_t"
           "\", %zd),\n",
           sizeof(ptrdiff_t));
  } while (0);
  printf("}\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    113a <main+0x2a>
lea    0xedd(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1152 <main+0x42>
lea    0xede(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    116a <main+0x5a>
lea    0xee0(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1182 <main+0x72>
lea    0xee0(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    119a <main+0x8a>
lea    0xee1(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11b2 <main+0xa2>
lea    0xee7(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11ca <main+0xba>
lea    0xeea(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11e2 <main+0xd2>
lea    0xeee(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11fa <main+0xea>
lea    0xef0(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1212 <main+0x102>
lea    0xef3(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122a <main+0x11a>
lea    0xefb(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1242 <main+0x132>
lea    0xef7(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0x1023(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecb(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed1(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee3(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeee(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef6(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeff(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf06(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf0e(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf1c(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf2b(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"sizeof = {\0A\00"
@.str.1 = [18 x i8] c" (\22char\22, %zd),\0A\00"
@.str.2 = [25 x i8] c" (\22signed char\22, %zd),\0A\00"
@.str.3 = [26 x i8] c" (\22signed short\22, %zd),\0A\00"
@.str.4 = [24 x i8] c" (\22signed int\22, %zd),\0A\00"
@.str.5 = [25 x i8] c" (\22signed long\22, %zd),\0A\00"
@.str.6 = [30 x i8] c" (\22signed long long\22, %zd),\0A\00"
@.str.7 = [27 x i8] c" (\22unsigned char\22, %zd),\0A\00"
@.str.8 = [28 x i8] c" (\22unsigned short\22, %zd),\0A\00"
@.str.9 = [26 x i8] c" (\22unsigned int\22, %zd),\0A\00"
@.str.10 = [27 x i8] c" (\22unsigned long\22, %zd),\0A\00"
@.str.11 = [32 x i8] c" (\22unsigned long long\22, %zd),\0A\00"
@.str.12 = [20 x i8] c" (\22size_t\22, %zd),\0A\00"
@.str.13 = [23 x i8] c" (\22ptrdiff_t\22, %zd),\0A\00"
@.str.14 = [3 x i8] c"}\0A\00"
define i32 @main() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
br label %2
2: ; preds = %0
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i64 1)
br label %4
4: ; preds = %2
br label %5
5: ; preds = %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i64 1)
br label %7
7: ; preds = %5
br label %8
8: ; preds = %7
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i64 2)
br label %10
10: ; preds = %8
br label %11
11: ; preds = %10
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i64 4)
br label %13
13: ; preds = %11
br label %14
14: ; preds = %13
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i64 8)
br label %16
16: ; preds = %14
br label %17
17: ; preds = %16
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i64 8)
br label %19
19: ; preds = %17
br label %20
20: ; preds = %19
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i64 1)
br label %22
22: ; preds = %20
br label %23
23: ; preds = %22
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i64 2)
br label %25
25: ; preds = %23
br label %26
26: ; preds = %25
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i64 4)
br label %28
28: ; preds = %26
br label %29
29: ; preds = %28
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0), i64 8)
br label %31
31: ; preds = %29
br label %32
32: ; preds = %31
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i64 8)
br label %34
34: ; preds = %32
br label %35
35: ; preds = %34
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i64 8)
br label %37
37: ; preds = %35
br label %38
38: ; preds = %37
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0), i64 4)
br label %40
40: ; preds = %38
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [18 x i8] c" (\22char\22, %zd),\0A\00"
@.str.2 = [25 x i8] c" (\22signed char\22, %zd),\0A\00"
@.str.3 = [26 x i8] c" (\22signed short\22, %zd),\0A\00"
@.str.4 = [24 x i8] c" (\22signed int\22, %zd),\0A\00"
@.str.5 = [25 x i8] c" (\22signed long\22, %zd),\0A\00"
@.str.6 = [30 x i8] c" (\22signed long long\22, %zd),\0A\00"
@.str.7 = [27 x i8] c" (\22unsigned char\22, %zd),\0A\00"
@.str.8 = [28 x i8] c" (\22unsigned short\22, %zd),\0A\00"
@.str.9 = [26 x i8] c" (\22unsigned int\22, %zd),\0A\00"
@.str.10 = [27 x i8] c" (\22unsigned long\22, %zd),\0A\00"
@.str.11 = [32 x i8] c" (\22unsigned long long\22, %zd),\0A\00"
@.str.12 = [20 x i8] c" (\22size_t\22, %zd),\0A\00"
@.str.13 = [23 x i8] c" (\22ptrdiff_t\22, %zd),\0A\00"
@str = [11 x i8] c"sizeof = {\00"
@str.15 = [2 x i8] c"}\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i64 1)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i64 1)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i64 2)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i64 4)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i64 8)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i64 8)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i64 1)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i64 2)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i64 4)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i64 0, i64 0), i64 8)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i64 8)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i64 8)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0), i64 4)
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.15, i64 0, i64 0))
ret i32 0
}