#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);
int main() {
  unsigned short positiveShort = 52130;
  unsigned long positiveLong = 8942492113;
  char someChar = -115;
  int someInt = 4825932;
  unsigned char positiveChar = 97;
  short negativeShort = -10000;
  long negativeLong = -35982859328592389;
  printf("%d\n", positiveShort);
  printf("%ld\n", positiveLong);
  printf("%d\n", someChar);
  printf("%d\n", someInt);
  printf("%d\n", positiveChar);
  printf("%d\n", negativeShort);
  printf("%ld\n", negativeLong);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movw   $0xcba2,-0x6(%rbp)
movabs $0x2150399d1,%rax
mov    %rax,-0x10(%rbp)
movb   $0x8d,-0x11(%rbp)
movl   $0x49a34c,-0x18(%rbp)
movb   $0x61,-0x19(%rbp)
movw   $0xd8f0,-0x1c(%rbp)
movabs $0xff8029c7b3b765fb,%rax
29 80 ff
mov    %rax,-0x28(%rbp)
movzwl -0x6(%rbp),%eax
mov    %eax,%esi
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
movsbq -0x11(%rbp),%rsi
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
movslq -0x18(%rbp),%rsi
lea    0xe6c(%rip),%rdi
call   1030 <printf@plt>
movzbl -0x19(%rbp),%eax
mov    %eax,%esi
lea    0xe5a(%rip),%rdi
call   1030 <printf@plt>
movswq -0x1c(%rbp),%rsi
lea    0xe49(%rip),%rdi
call   1030 <printf@plt>
mov    -0x28(%rbp),%rsi
lea    0xe3d(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xee5(%rip),%rbx
mov    $0xcba2,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xed5(%rip),%r14
movabs $0x2150399d1,%rsi
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xffffffffffffff8d,%rsi
call   1030 <printf@plt>
mov    $0x49a34c,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x61,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xffffffffffffd8f0,%rsi
call   1030 <printf@plt>
movabs $0xff8029c7b3b765fb,%rsi
29 80 ff
mov    %r14,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [5 x i8] c"%ld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i16
%3 = alloca i64
%4 = alloca i8
%5 = alloca i32
%6 = alloca i8
%7 = alloca i16
%8 = alloca i64
store i32 0, i32* %1
store i16 -13406, i16* %2
store i64 8942492113, i64* %3
store i8 -115, i8* %4
store i32 4825932, i32* %5
store i8 97, i8* %6
store i16 -10000, i16* %7
store i64 -35982859328592389, i64* %8
%9 = load i16, i16* %2
%10 = zext i16 %9 to i64
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %10)
%12 = load i64, i64* %3
%13 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %12)
%14 = load i8, i8* %4
%15 = sext i8 %14 to i64
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %15)
%17 = load i32, i32* %5
%18 = sext i32 %17 to i64
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %18)
%20 = load i8, i8* %6
%21 = zext i8 %20 to i64
%22 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %21)
%23 = load i16, i16* %7
%24 = sext i16 %23 to i64
%25 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %24)
%26 = load i64, i64* %8
%27 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %26)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [5 x i8] c"%ld\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 52130)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 8942492113)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 -115)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 4825932)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 97)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 -10000)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 -35982859328592389)
ret i32 0
}