int main() {
  int *a = &(int){0};
  int *b = (int *){3, 2, 1};
  int *c = {1, 2};
  printf("a=%x\t&a=%x\t*a=%x\n", a, &a, *a);
  printf("b=%x\t&b=%x\n", b, &b);
  printf("c=%x\t&c=%x", c, &c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
lea    -0x14(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    $0x3,%eax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    $0x1,%eax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
lea    0xea7(%rip),%rdi
lea    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xea3(%rip),%rdi
lea    -0x20(%rbp),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xe99(%rip),%rdi
lea    -0x30(%rbp),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
movl   $0x0,0xc(%rsp)
lea    0xc(%rsp),%rsi
mov    %rsi,0x20(%rsp)
movq   $0x3,0x18(%rsp)
movq   $0x1,0x10(%rsp)
lea    0xec1(%rip),%rdi
lea    0x20(%rsp),%rdx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
lea    0x18(%rsp),%rdx
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
lea    0x10(%rsp),%rdx
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"a=%x\09&a=%x\09*a=%x\0A\00"
@.str.1 = [12 x i8] c"b=%x\09&b=%x\0A\00"
@.str.2 = [11 x i8] c"c=%x\09&c=%x\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
store i32 0, i32* %1
store i32 0, i32* %3
store i32* %3, i32** %2
store i32* inttoptr (i64 3 to i32*), i32** %5
%7 = load i32*, i32** %5
store i32* %7, i32** %4
store i32* inttoptr (i64 1 to i32*), i32** %6
%8 = load i32*, i32** %2
%9 = load i32*, i32** %2
%10 = load i32, i32* %9
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32* %8, i32** %2, i32 %10)
%12 = load i32*, i32** %4
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32* %12, i32** %4)
%14 = load i32*, i32** %6
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32* %14, i32** %6)
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"a=%x\09&a=%x\09*a=%x\0A\00"
@.str.1 = [12 x i8] c"b=%x\09&b=%x\0A\00"
@.str.2 = [11 x i8] c"c=%x\09&c=%x\00"
define i32 @main() {
%1 = alloca i32*
%2 = alloca i32
%3 = alloca i32*
%4 = alloca i32*
%5 = bitcast i32** %1 to i8*
store i32 0, i32* %2
store i32* %2, i32** %1
%6 = bitcast i32** %3 to i8*
store i32* inttoptr (i64 3 to i32*), i32** %3
%7 = bitcast i32** %4 to i8*
store i32* inttoptr (i64 1 to i32*), i32** %4
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32* %2, i32** %1, i32 0)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32* inttoptr (i64 3 to i32*), i32** %3)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32* inttoptr (i64 1 to i32*), i32** %4)
ret i32 0
}