int main() {
  int a = 455;
  int *a1;
  a1 = &a;
  int b = -455;
  int *b1;
  b1 = &a;
  short c = 32000;
  short *c1;
  c1 = &c;
  long int d = 2000000000L;
  long int *d1 = &d;
  int e = 0455;
  unsigned int f = 455;
  unsigned int g = -455;
  int h = 0x455;
  printf("%d\n", &a1);
  printf("%i\n", &b1);
  printf("%d\n", &a1);
  printf("%hd\n", &c1);
  printf("%ld\n", &d1);
  printf("%o\n", &a1);
  printf("%u\n", &a1);
  printf("%u\n", &b1);
  printf("%x\n", &a1);
  printf("%X\n", &a1);
  printf("%p\n", a1);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1c7,-0x8(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
movl   $0xfffffe39,-0x14(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
movw   $0x7d00,-0x22(%rbp)
lea    -0x22(%rbp),%rax
mov    %rax,-0x30(%rbp)
movq   $0x77359400,-0x38(%rbp)
77
lea    -0x38(%rbp),%rax
mov    %rax,-0x40(%rbp)
movl   $0x12d,-0x44(%rbp)
movl   $0x1c7,-0x48(%rbp)
movl   $0xfffffe39,-0x4c(%rbp)
movl   $0x455,-0x50(%rbp)
lea    0xe82(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe74(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe5e(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe54(%rip),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe47(%rip),%rdi
lea    -0x40(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe3a(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe2c(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe1a(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe0c(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdfe(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xdec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
movl   $0x1c7,0xc(%rsp)
lea    0xc(%rsp),%rax
mov    %rax,0x10(%rsp)
mov    %rax,0x30(%rsp)
movw   $0x7d00,0xa(%rsp)
lea    0xa(%rsp),%rax
mov    %rax,0x28(%rsp)
movq   $0x77359400,0x20(%rsp)
35 77
lea    0x20(%rsp),%rax
mov    %rax,0x18(%rsp)
lea    0xea3(%rip),%r15
lea    0x10(%rsp),%r12
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe8e(%rip),%rdi
lea    0x30(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe6f(%rip),%rdi
lea    0x28(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe61(%rip),%rdi
lea    0x18(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe53(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe46(%rip),%rbx
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe29(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe1c(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x10(%rsp),%rsi
lea    0xe0a(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
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"
@.str.8 = [4 x i8] c"%p\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i16
%7 = alloca i16*
%8 = alloca i64
%9 = alloca i64*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 0, i32* %1
store i32 455, i32* %2
store i32* %2, i32** %3
store i32 -455, i32* %4
store i32* %2, i32** %5
store i16 32000, i16* %6
store i16* %6, i16** %7
store i64 2000000000, i64* %8
store i64* %8, i64** %9
store i32 301, i32* %10
store i32 455, i32* %11
store i32 -455, i32* %12
store i32 1109, i32* %13
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32** %3)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32** %5)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32** %3)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i16** %7)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i64** %9)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32** %3)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32** %3)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32** %5)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32** %3)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32** %3)
%24 = load i32*, i32** %3
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32* %24)
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"
@.str.8 = [4 x i8] c"%p\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i16
%5 = alloca i16*
%6 = alloca i64
%7 = alloca i64*
%8 = bitcast i32* %1 to i8*
store i32 455, i32* %1
%9 = bitcast i32** %2 to i8*
store i32* %1, i32** %2
%10 = bitcast i32** %3 to i8*
store i32* %1, i32** %3
%11 = bitcast i16* %4 to i8*
store i16 32000, i16* %4
%12 = bitcast i16** %5 to i8*
store i16* %4, i16** %5
%13 = bitcast i64* %6 to i8*
store i64 2000000000, i64* %6
%14 = bitcast i64** %7 to i8*
store i64* %6, i64** %7
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32** %2)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32** %3)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32** %2)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i16** %5)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i64** %7)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32** %2)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32** %2)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32** %3)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32** %2)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32** %2)
%25 = load i32*, i32** %2
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i32* %25)
ret i32 0
}