#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*/ printf(char *, size_t);
int main() {
  printf("size_t: %zd\n", sizeof(size_t));
  printf("float: %zd\n", sizeof(float));
  printf("short int: %zd\n", sizeof(short int));
  printf("unsigned short int: %zd\n", sizeof(unsigned short int));
  printf("int: %zd\n", sizeof(int));
  printf("char: %zd\n", sizeof(char));
  printf("trying: %zd\n", (((size_t)-1) >> 1));
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xec0(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeb7(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xeb1(%rip),%rdi
movabs $0x7fffffffffffffff,%rsi
ff ff 7f
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xec5(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
movabs $0x7fffffffffffffff,%rsi
ff ff 7f
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"size_t: %zd\0A\00"
@.str.1 = [12 x i8] c"float: %zd\0A\00"
@.str.2 = [16 x i8] c"short int: %zd\0A\00"
@.str.3 = [25 x i8] c"unsigned short int: %zd\0A\00"
@.str.4 = [10 x i8] c"int: %zd\0A\00"
@.str.5 = [11 x i8] c"char: %zd\0A\00"
@.str.6 = [13 x i8] c"trying: %zd\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i64 8)
%3 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i64 4)
%4 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i64 2)
%5 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i64 2)
%6 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i64 4)
%7 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i64 1)
%8 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i64 9223372036854775807)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"size_t: %zd\0A\00"
@.str.1 = [12 x i8] c"float: %zd\0A\00"
@.str.2 = [16 x i8] c"short int: %zd\0A\00"
@.str.3 = [25 x i8] c"unsigned short int: %zd\0A\00"
@.str.4 = [10 x i8] c"int: %zd\0A\00"
@.str.5 = [11 x i8] c"char: %zd\0A\00"
@.str.6 = [13 x i8] c"trying: %zd\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i64 8)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i64 4)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i64 2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i64 2)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i64 4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i64 1)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i64 9223372036854775807)
ret i32 0
}