#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int);
void main(void) {
  unsigned long long x = 21474836480;
  printf("\n\n%llu\n\n", x);
  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));
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movabs $0x500000000,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %eax,%esi
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xebd(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
xor    %esi,%esi
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"\0A\0A%llu\0A\0A\00"
@.str.1 = [20 x i8] c"sizeof(char) == %d\0A\00"
@.str.2 = [21 x i8] c"sizeof(short) == %d\0A\00"
@.str.3 = [19 x i8] c"sizeof(int) == %d\0A\00"
@.str.4 = [20 x i8] c"sizeof(long) == %d\0A\00"
@.str.5 = [25 x i8] c"sizeof(long long) == %d\0A\00"
define void @main() {
%1 = alloca i64
store i64 21474836480, i64* %1
%2 = load i64, i64* %1
%3 = trunc i64 %2 to i32
%4 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 1)
%6 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 2)
%7 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 4)
%8 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 8)
%9 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 8)
%10 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [9 x i8] c"\0A\0A%llu\0A\0A\00"
@.str.1 = [20 x i8] c"sizeof(char) == %d\0A\00"
@.str.2 = [21 x i8] c"sizeof(short) == %d\0A\00"
@.str.3 = [19 x i8] c"sizeof(int) == %d\0A\00"
@.str.4 = [20 x i8] c"sizeof(long) == %d\0A\00"
@.str.5 = [25 x i8] c"sizeof(long long) == %d\0A\00"
define void @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 1)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 4)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 8)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 8)
%7 = tail call i32 @exit(i32 0)
unreachable
}