#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 *, long long, long long);
int main() {
  unsigned int un = 3000000000;
  short end = 200;
  long big = 65537;
  long long verybig = 12345678908642;
  printf("un = %u and not %d\n", un, un);
  printf("end = %hd and %d\n", end, end);
  printf("big = %ld and not %hd\n", big, big);
  printf("verybig = %lld and not %ld\n", verybig, verybig);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xb2d05e00,-0x8(%rbp)
movw   $0xc8,-0xa(%rbp)
movq   $0x10001,-0x18(%rbp)
movabs $0xb3a73ce4ce2,%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%esi
mov    -0x8(%rbp),%eax
mov    %eax,%edx
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
movswq -0xa(%rbp),%rsi
movswq -0xa(%rbp),%rdx
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xeac(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0xb2d05e00,%esi
mov    $0xb2d05e00,%edx
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0xc8,%esi
mov    $0xc8,%edx
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x10001,%esi
mov    $0x10001,%edx
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
movabs $0xb3a73ce4ce2,%rdx
mov    %rdx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"un = %u and not %d\0A\00"
@.str.1 = [18 x i8] c"end = %hd and %d\0A\00"
@.str.2 = [23 x i8] c"big = %ld and not %hd\0A\00"
@.str.3 = [28 x i8] c"verybig = %lld and not %ld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i16
%4 = alloca i64
%5 = alloca i64
store i32 0, i32* %1
store i32 -1294967296, i32* %2
store i16 200, i16* %3
store i64 65537, i64* %4
store i64 12345678908642, i64* %5
%6 = load i32, i32* %2
%7 = zext i32 %6 to i64
%8 = load i32, i32* %2
%9 = zext i32 %8 to i64
%10 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i64 %7, i64 %9)
%11 = load i16, i16* %3
%12 = sext i16 %11 to i64
%13 = load i16, i16* %3
%14 = sext i16 %13 to i64
%15 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i64 %12, i64 %14)
%16 = load i64, i64* %4
%17 = load i64, i64* %4
%18 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i64 %16, i64 %17)
%19 = load i64, i64* %5
%20 = load i64, i64* %5
%21 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i64 %19, i64 %20)
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"un = %u and not %d\0A\00"
@.str.1 = [18 x i8] c"end = %hd and %d\0A\00"
@.str.2 = [23 x i8] c"big = %ld and not %hd\0A\00"
@.str.3 = [28 x i8] c"verybig = %lld and not %ld\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i64 3000000000, i64 3000000000)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i64 200, i64 200)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i64 65537, i64 65537)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i64 12345678908642, i64 12345678908642)
ret i32 0
}