#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*/ print_arch();
int /*<<< orphan*/ printf(char *, int);
int main() {
  print_arch();
  printf("unsigned long long size = %zd\n", sizeof(unsigned long long));
  printf("long long size = %zd\n", sizeof(long long));
  printf("    short int: %zd\n", sizeof(short int));
  printf("          int: %zd\n", sizeof(int));
  printf("     long int: %zd\n", sizeof(long int));
  printf("long long int: %zd\n", sizeof(long long int));
  printf("       size_t: %zd\n", sizeof(size_t));
  printf("        void*: %zd\n\n", sizeof(void *));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <print_arch@plt>
lea    0xec3(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xebb(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xec0(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <print_arch@plt>
lea    0xed1(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"unsigned long long size = %zd\0A\00"
@.str.1 = [22 x i8] c"long long size = %zd\0A\00"
@.str.2 = [20 x i8] c" short int: %zd\0A\00"
@.str.3 = [20 x i8] c" int: %zd\0A\00"
@.str.4 = [20 x i8] c" long int: %zd\0A\00"
@.str.5 = [20 x i8] c"long long int: %zd\0A\00"
@.str.6 = [20 x i8] c" size_t: %zd\0A\00"
@.str.7 = [21 x i8] c" void*: %zd\0A\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @print_arch()
%3 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 8)
%4 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 8)
%5 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 2)
%6 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 4)
%7 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 8)
%8 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 8)
%9 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 8)
%10 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 8)
ret i32 0
}

LLVM IR (-O2):
@.str = [31 x i8] c"unsigned long long size = %zd\0A\00"
@.str.1 = [22 x i8] c"long long size = %zd\0A\00"
@.str.2 = [20 x i8] c" short int: %zd\0A\00"
@.str.3 = [20 x i8] c" int: %zd\0A\00"
@.str.4 = [20 x i8] c" long int: %zd\0A\00"
@.str.5 = [20 x i8] c"long long int: %zd\0A\00"
@.str.6 = [20 x i8] c" size_t: %zd\0A\00"
@.str.7 = [21 x i8] c" void*: %zd\0A\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @print_arch()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 8)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 8)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 2)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 8)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i32 8)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 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)
ret i32 0
}