#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 */
typedef int /*<<< orphan*/ str;

/* Variables and functions */
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, int, ...);
int main(void) {
  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);
  char *str = "ÎÒÊÇ";
  printf("%d\n", sizeof(str));
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%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),%esi
mov    -0x8(%rbp),%edx
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movswl -0xa(%rbp),%esi
movswl -0xa(%rbp),%edx
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    %eax,%esi
mov    -0x18(%rbp),%rdx
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    %eax,%esi
mov    -0x20(%rbp),%rdx
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea5(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xe64(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0xb2d05e00,%esi
mov    $0xb2d05e00,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0xc8,%esi
mov    $0xc8,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
mov    $0x10001,%edx
mov    $0x10001,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
movabs $0xb3a73ce4ce2,%rdx
mov    $0x73ce4ce2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe95(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@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 = [27 x i8] c"verybig= %lld and not %ld\0A\00"
@.str.4 = [9 x i8] c"\C3\8E\C3\92\C3\8A\C3\87\00"
@.str.5 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i16
%4 = alloca i64
%5 = alloca i64
%6 = alloca i8*
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
%7 = load i32, i32* %2
%8 = load i32, i32* %2
%9 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8)
%10 = load i16, i16* %3
%11 = sext i16 %10 to i32
%12 = load i16, i16* %3
%13 = sext i16 %12 to i32
%14 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %11, i32 %13)
%15 = load i64, i64* %4
%16 = trunc i64 %15 to i32
%17 = load i64, i64* %4
%18 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %16, i64 %17)
%19 = load i64, i64* %5
%20 = trunc i64 %19 to i32
%21 = load i64, i64* %5
%22 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %20, i64 %21)
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8** %6
%23 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 8)
%24 = call i32 (...) @getchar()
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 = [27 x i8] c"verybig= %lld and not %ld\0A\00"
@.str.5 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 -1294967296, i32 -1294967296)
%2 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 200, i32 200)
%3 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 65537, i64 65537)
%4 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 1942899938, i64 12345678908642)
%5 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 8)
%6 = tail call i32 (...) @getchar()
ret i32 0
}