#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(int argc, char const *argv[]) {
  unsigned int un = 3000000000;
  short end = 200;
  long big = 65536;
  long long verybig = 12345678908642;
  printf("un = %u and not %d\n", un, un);
  printf("end = %hd and not %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    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xb2d05e00,-0x14(%rbp)
movw   $0xc8,-0x16(%rbp)
movq   $0x10000,-0x20(%rbp)
movabs $0xb3a73ce4ce2,%rax
mov    %rax,-0x28(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,%esi
mov    -0x14(%rbp),%eax
mov    %eax,%edx
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
movswq -0x16(%rbp),%rsi
movswq -0x16(%rbp),%rdx
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xea6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x28(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%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    0xee6(%rip),%rdi
mov    $0x10000,%esi
mov    $0x10000,%edx
call   1030 <printf@plt>
lea    0xee7(%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 = [22 x i8] c"end = %hd and not %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(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i16
%8 = alloca i64
%9 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 -1294967296, i32* %6
store i16 200, i16* %7
store i64 65536, i64* %8
store i64 12345678908642, i64* %9
%10 = load i32, i32* %6
%11 = zext i32 %10 to i64
%12 = load i32, i32* %6
%13 = zext i32 %12 to i64
%14 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i64 %11, i64 %13)
%15 = load i16, i16* %7
%16 = sext i16 %15 to i64
%17 = load i16, i16* %7
%18 = sext i16 %17 to i64
%19 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i64 %16, i64 %18)
%20 = load i64, i64* %8
%21 = load i64, i64* %8
%22 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i64 %20, i64 %21)
%23 = load i64, i64* %9
%24 = load i64, i64* %9
%25 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i64 %23, i64 %24)
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"un = %u and not %d\0A\00"
@.str.1 = [22 x i8] c"end = %hd and not %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(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i64 3000000000, i64 3000000000)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i64 200, i64 200)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i64 65536, i64 65536)
%6 = 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
}