#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);
int main() {
  char c = 127;
  int i = 2147000000;
  short s = 32000;
  long l = 2147000000;
  long long ll = 214576654333443;
  printf("%i\n", c);
  printf("%i\n", s);
  printf("%i\n", i);
  printf("%li\n", l);
  printf("%lli\n", ll);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x7f,-0x5(%rbp)
movl   $0x7ff89ec0,-0xc(%rbp)
movw   $0x7d00,-0xe(%rbp)
movq   $0x7ff89ec0,-0x18(%rbp)
7f
movabs $0xc32805423603,%rax
mov    %rax,-0x20(%rbp)
movsbq -0x5(%rbp),%rsi
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
movswq -0xe(%rbp),%rsi
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
movslq -0xc(%rbp),%rsi
lea    0xe8d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    $0x7f,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x7d00,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x7ff89ec0,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
mov    $0x7ff89ec0,%esi
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
movabs $0xc32805423603,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%i\0A\00"
@.str.1 = [5 x i8] c"%li\0A\00"
@.str.2 = [6 x i8] c"%lli\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i32
%4 = alloca i16
%5 = alloca i64
%6 = alloca i64
store i32 0, i32* %1
store i8 127, i8* %2
store i32 2147000000, i32* %3
store i16 32000, i16* %4
store i64 2147000000, i64* %5
store i64 214576654333443, i64* %6
%7 = load i8, i8* %2
%8 = sext i8 %7 to i64
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %8)
%10 = load i16, i16* %4
%11 = sext i16 %10 to i64
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %11)
%13 = load i32, i32* %3
%14 = sext i32 %13 to i64
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %14)
%16 = load i64, i64* %5
%17 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %16)
%18 = load i64, i64* %6
%19 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 %18)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%i\0A\00"
@.str.1 = [5 x i8] c"%li\0A\00"
@.str.2 = [6 x i8] c"%lli\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 127)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 32000)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 2147000000)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 2147000000)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 214576654333443)
ret i32 0
}