#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*/ fill_structs();
int /*<<< orphan*/ printf(char *, int);
int main() {
  fill_structs();
  printf("sizeof (char) == %d\n", sizeof(char));
  printf("sizeof (short) == %d\n", sizeof(short));
  printf("sizeof (int) == %d\n", sizeof(int));
  printf("sizeof (long) == %d\n", sizeof(long));
  printf("sizeof (long long) == %d\n", sizeof(long long));
  printf("sizeof (void *) == %d\n", sizeof(void *));
  printf("sizeof (void (*)(void)) == %d\n", sizeof(void (*)(void)));
  printf("sizeof (float) == %d\n", sizeof(float));
  printf("sizeof (double) == %d\n", sizeof(double));
  printf("sizeof (long double) == %d\n", sizeof(long double));
  printf("valueof ('\\377') == %d\n", '\377');
  printf("valueof ((int) (char) -1) == %d\n", (int)(char)-1);
  printf("valueof ((int) (signed char) -1) == %d\n", (int)(signed char)-1);
  printf("valueof ((int) (unsigned char) -1) == %d\n", (int)(unsigned char)-1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <fill_structs@plt>
lea    0xec3(%rip),%rdi
mov    $0x1,%esi
call   1040 <printf@plt>
lea    0xec7(%rip),%rdi
mov    $0x2,%esi
call   1040 <printf@plt>
lea    0xecc(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xedc(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0x10,%esi
call   1040 <printf@plt>
lea    0xf06(%rip),%rdi
mov    $0xffffffff,%esi
call   1040 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    $0xffffffff,%esi
call   1040 <printf@plt>
lea    0xf1d(%rip),%rdi
mov    $0xffffffff,%esi
call   1040 <printf@plt>
lea    0xf34(%rip),%rdi
mov    $0xff,%esi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <fill_structs@plt>
lea    0xed1(%rip),%rdi
mov    $0x1,%esi
call   1040 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x2,%esi
call   1040 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xeea(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xefe(%rip),%rdi
mov    $0x4,%esi
call   1040 <printf@plt>
lea    0xf03(%rip),%rdi
mov    $0x8,%esi
call   1040 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x10,%esi
call   1040 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0xffffffff,%esi
call   1040 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0xffffffff,%esi
call   1040 <printf@plt>
lea    0xf2b(%rip),%rdi
mov    $0xffffffff,%esi
call   1040 <printf@plt>
lea    0xf42(%rip),%rdi
mov    $0xff,%esi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [21 x i8] c"sizeof (char) == %d\0A\00"
@.str.1 = [22 x i8] c"sizeof (short) == %d\0A\00"
@.str.2 = [20 x i8] c"sizeof (int) == %d\0A\00"
@.str.3 = [21 x i8] c"sizeof (long) == %d\0A\00"
@.str.4 = [26 x i8] c"sizeof (long long) == %d\0A\00"
@.str.5 = [23 x i8] c"sizeof (void *) == %d\0A\00"
@.str.6 = [31 x i8] c"sizeof (void (*)(void)) == %d\0A\00"
@.str.7 = [22 x i8] c"sizeof (float) == %d\0A\00"
@.str.8 = [23 x i8] c"sizeof (double) == %d\0A\00"
@.str.9 = [28 x i8] c"sizeof (long double) == %d\0A\00"
@.str.10 = [24 x i8] c"valueof ('\\377') == %d\0A\00"
@.str.11 = [33 x i8] c"valueof ((int) (char) -1) == %d\0A\00"
@.str.12 = [40 x i8] c"valueof ((int) (signed char) -1) == %d\0A\00"
@.str.13 = [42 x i8] c"valueof ((int) (unsigned char) -1) == %d\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @fill_structs()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 4)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0), i32 8)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 8)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 8)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0), i32 8)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 4)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), i32 8)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 16)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), i32 -1)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i32 -1)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0), i32 -1)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0), i32 255)
ret i32 0
}