main() {
  int a;
  int b;
  printf("&a:%08x\n", &a);
  printf("&b:%08x\n", &b);
  int c;
  printf("&c:%08x\n", &c);
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
  printf("%08x\n", malloc(256));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec8(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xdef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xdb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xd9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xd83(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xd68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xd4d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xd32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xd17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xcfc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xce1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xcc6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xcab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xc90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xc75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xc5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rax,%rsi
lea    0xc3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec0(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
lea    0xe94(%rip),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x100,%edi
call   1040 <malloc@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"&a:%08x\0A\00"
@.str.1 = [9 x i8] c"&b:%08x\0A\00"
@.str.2 = [9 x i8] c"&c:%08x\0A\00"
@.str.3 = [6 x i8] c"%08x\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%7 = call i8* @malloc(i64 256)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %7)
%9 = call i8* @malloc(i64 256)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %9)
%11 = call i8* @malloc(i64 256)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %11)
%13 = call i8* @malloc(i64 256)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %13)
%15 = call i8* @malloc(i64 256)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %15)
%17 = call i8* @malloc(i64 256)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %17)
%19 = call i8* @malloc(i64 256)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %19)
%21 = call i8* @malloc(i64 256)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %21)
%23 = call i8* @malloc(i64 256)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %23)
%25 = call i8* @malloc(i64 256)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %25)
%27 = call i8* @malloc(i64 256)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %27)
%29 = call i8* @malloc(i64 256)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %29)
%31 = call i8* @malloc(i64 256)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %31)
%33 = call i8* @malloc(i64 256)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %33)
%35 = call i8* @malloc(i64 256)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %35)
%37 = call i8* @malloc(i64 256)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %37)
%39 = call i8* @malloc(i64 256)
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %39)
%41 = call i8* @malloc(i64 256)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %41)
%43 = call i8* @malloc(i64 256)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %43)
%45 = call i8* @malloc(i64 256)
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %45)
%47 = call i8* @malloc(i64 256)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %47)
%49 = call i8* @malloc(i64 256)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %49)
%51 = call i8* @malloc(i64 256)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %51)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"&a:%08x\0A\00"
@.str.1 = [9 x i8] c"&b:%08x\0A\00"
@.str.2 = [9 x i8] c"&c:%08x\0A\00"
@.str.3 = [6 x i8] c"%08x\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%8 = bitcast i32* %3 to i8*
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%10 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %10)
%12 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %12)
%14 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %14)
%16 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %16)
%18 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %18)
%20 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %20)
%22 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %22)
%24 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %24)
%26 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %26)
%28 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %28)
%30 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %30)
%32 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %32)
%34 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %34)
%36 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %36)
%38 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %38)
%40 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %40)
%42 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %42)
%44 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %44)
%46 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %46)
%48 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %48)
%50 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %50)
%52 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %52)
%54 = call dereferenceable_or_null(256) i8* @malloc(i64 256)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %54)
ret i32 0
}