#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 *, int);
int main(void) {
  printf("%d\n", 455);
  printf("%i\n", 455);
  printf("%d\n", +455);
  printf("%d\n", -455);
  printf("%hd\n", 32000);
  printf("%ld\n", 2000000000L);
  printf("%o\n", 455);
  printf("%u\n", 455);
  printf("%u\n", -455);
  printf("%x\n", 455);
  printf("%X\n", 455);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
lea    0xeb8(%rip),%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
lea    0xea7(%rip),%rdi
mov    $0xfffffe39,%esi
call   1030 <printf@plt>
lea    0xe9e(%rip),%rdi
mov    $0x7d00,%esi
call   1030 <printf@plt>
lea    0xe92(%rip),%rdi
mov    $0x77359400,%esi
call   1030 <printf@plt>
lea    0xe86(%rip),%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
lea    0xe79(%rip),%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
lea    0xe68(%rip),%rdi
mov    $0xfffffe39,%esi
call   1030 <printf@plt>
lea    0xe5b(%rip),%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
lea    0xe4e(%rip),%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xfffffe39,%esi
call   1030 <printf@plt>
lea    0xeb1(%rip),%rdi
mov    $0x7d00,%esi
call   1030 <printf@plt>
lea    0xea5(%rip),%rdi
mov    $0x77359400,%esi
call   1030 <printf@plt>
lea    0xe99(%rip),%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
lea    0xe8c(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xfffffe39,%esi
call   1030 <printf@plt>
lea    0xe6f(%rip),%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
lea    0xe62(%rip),%rdi
mov    $0x1c7,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [4 x i8] c"%i\0A\00"
@.str.2 = [5 x i8] c"%hd\0A\00"
@.str.3 = [5 x i8] c"%ld\0A\00"
@.str.4 = [4 x i8] c"%o\0A\00"
@.str.5 = [4 x i8] c"%u\0A\00"
@.str.6 = [4 x i8] c"%x\0A\00"
@.str.7 = [4 x i8] c"%X\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 455)
%3 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 455)
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 455)
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 -455)
%6 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 32000)
%7 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 2000000000)
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 455)
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 455)
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 -455)
%11 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 455)
%12 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 455)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [4 x i8] c"%i\0A\00"
@.str.2 = [5 x i8] c"%hd\0A\00"
@.str.3 = [5 x i8] c"%ld\0A\00"
@.str.4 = [4 x i8] c"%o\0A\00"
@.str.5 = [4 x i8] c"%u\0A\00"
@.str.6 = [4 x i8] c"%x\0A\00"
@.str.7 = [4 x i8] c"%X\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 455)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 455)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 455)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 -455)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 32000)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 2000000000)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 455)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 455)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 -455)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 455)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 455)
ret i32 0
}