#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 *);
int main(void) {
  int a = 1;
  int b = 2;
  int c = 3;
  int d[3] = {4, 5, 6};
  int e = 7;
  int f = 8;
  int g[3] = {9, 10, 11};
  printf("a = %d, address of a = %p\n", a, &a);
  printf("b = %d, address of b = %p\n", b, &b);
  printf("c = %d, address of c = %p\n", c, &c);
  printf("d[0] = %d, address of d[0] = %p\n", d[0], &d[0]);
  printf("d[1] = %d, address of d[1] = %p\n", d[1], &d[1]);
  printf("d[2] = %d, address of d[2] = %p\n", d[2], &d[2]);
  printf("e = %d, address of e = %p\n", e, &e);
  printf("f = %d, address of f = %p\n", f, &f);
  printf("g[0] = %d, address of g[0] = %p\n", g[0], &g[0]);
  printf("g[1] = %d, address of g[1] = %p\n", g[1], &g[1]);
  printf("g[2] = %d, address of g[2] = %p\n", g[2], &g[2]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
movl   $0x3,-0x10(%rbp)
mov    0xec5(%rip),%rax
mov    %rax,-0x1c(%rbp)
mov    0xec3(%rip),%eax
mov    %eax,-0x14(%rbp)
movl   $0x7,-0x20(%rbp)
movl   $0x8,-0x24(%rbp)
mov    0xeaf(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xead(%rip),%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%esi
lea    0xea4(%rip),%rdi
lea    -0x8(%rbp),%rdx
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xeac(%rip),%rdi
lea    -0xc(%rbp),%rdx
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xeb4(%rip),%rdi
lea    -0x10(%rbp),%rdx
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    -0x1c(%rbp),%rdx
lea    0xeb8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
lea    -0x1c(%rbp),%rdx
add    $0x4,%rdx
lea    0xec2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    -0x1c(%rbp),%rdx
add    $0x8,%rdx
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%esi
lea    0xede(%rip),%rdi
lea    -0x20(%rbp),%rdx
call   1030 <printf@plt>
mov    -0x24(%rbp),%esi
lea    0xee6(%rip),%rdi
lea    -0x24(%rbp),%rdx
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
lea    -0x30(%rbp),%rdx
lea    0xeea(%rip),%rdi
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    -0x30(%rbp),%rdx
add    $0x4,%rdx
lea    0xef4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x28(%rbp),%esi
lea    -0x30(%rbp),%rdx
add    $0x8,%rdx
lea    0xefe(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x38,%rsp
movl   $0x1,0x34(%rsp)
movl   $0x2,0x30(%rsp)
movl   $0x3,0x2c(%rsp)
mov    0xed3(%rip),%eax
mov    %eax,0x20(%rsp)
mov    0xec0(%rip),%rax
mov    %rax,0x18(%rsp)
lea    0x20(%rsp),%rbx
movl   $0x7,0x28(%rsp)
movl   $0x8,0x24(%rsp)
mov    0xeb4(%rip),%eax
mov    %eax,0x10(%rsp)
mov    0xea1(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0x10(%rsp),%r14
lea    0xe9c(%rip),%rdi
lea    0x34(%rsp),%rdx
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xea1(%rip),%rdi
lea    0x30(%rsp),%rdx
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xea6(%rip),%rdi
lea    0x2c(%rsp),%rdx
mov    $0x3,%esi
call   1030 <printf@plt>
lea    0xeab(%rip),%rdi
lea    0x18(%rsp),%rdx
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0x1c(%rsp),%rdx
mov    0x1c(%rsp),%esi
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    0x20(%rsp),%esi
lea    0xebe(%rip),%rdi
mov    %rbx,%rdx
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
lea    0x28(%rsp),%rdx
mov    $0x7,%esi
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
lea    0x24(%rsp),%rdx
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
lea    0x8(%rsp),%rdx
mov    $0x9,%esi
call   1030 <printf@plt>
lea    0xc(%rsp),%rdx
mov    0xc(%rsp),%esi
lea    0xedc(%rip),%rdi
call   1030 <printf@plt>
mov    0x10(%rsp),%esi
lea    0xeed(%rip),%rdi
mov    %r14,%rdx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.d = [3 x i32] [i32 4, i32 5, i32 6]
@__const.main.g = [3 x i32] [i32 9, i32 10, i32 11]
@.str = [27 x i8] c"a = %d, address of a = %p\0A\00"
@.str.1 = [27 x i8] c"b = %d, address of b = %p\0A\00"
@.str.2 = [27 x i8] c"c = %d, address of c = %p\0A\00"
@.str.3 = [33 x i8] c"d[0] = %d, address of d[0] = %p\0A\00"
@.str.4 = [33 x i8] c"d[1] = %d, address of d[1] = %p\0A\00"
@.str.5 = [33 x i8] c"d[2] = %d, address of d[2] = %p\0A\00"
@.str.6 = [27 x i8] c"e = %d, address of e = %p\0A\00"
@.str.7 = [27 x i8] c"f = %d, address of f = %p\0A\00"
@.str.8 = [33 x i8] c"g[0] = %d, address of g[0] = %p\0A\00"
@.str.9 = [33 x i8] c"g[1] = %d, address of g[1] = %p\0A\00"
@.str.10 = [33 x i8] c"g[2] = %d, address of g[2] = %p\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [3 x i32]
%6 = alloca i32
%7 = alloca i32
%8 = alloca [3 x i32]
store i32 0, i32* %1
store i32 1, i32* %2
store i32 2, i32* %3
store i32 3, i32* %4
%9 = bitcast [3 x i32]* %5 to i8*
store i32 7, i32* %6
store i32 8, i32* %7
%10 = bitcast [3 x i32]* %8 to i8*
%11 = load i32, i32* %2
%12 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 %11, i32* %2)
%13 = load i32, i32* %3
%14 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 %13, i32* %3)
%15 = load i32, i32* %4
%16 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 %15, i32* %4)
%17 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 0
%18 = load i32, i32* %17
%19 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 0
%20 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %18, i32* %19)
%21 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 1
%22 = load i32, i32* %21
%23 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 1
%24 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %22, i32* %23)
%25 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 2
%26 = load i32, i32* %25
%27 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 2
%28 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 %26, i32* %27)
%29 = load i32, i32* %6
%30 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i32 %29, i32* %6)
%31 = load i32, i32* %7
%32 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 %31, i32* %7)
%33 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 0
%34 = load i32, i32* %33
%35 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 0
%36 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i32 %34, i32* %35)
%37 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 1
%38 = load i32, i32* %37
%39 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 1
%40 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 %38, i32* %39)
%41 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 2
%42 = load i32, i32* %41
%43 = getelementptr inbounds [3 x i32], [3 x i32]* %8, i64 0, i64 2
%44 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i32 %42, i32* %43)
ret i32 0
}

LLVM IR (-O2):
@__const.main.d = [3 x i32] [i32 4, i32 5, i32 6]
@__const.main.g = [3 x i32] [i32 9, i32 10, i32 11]
@.str = [27 x i8] c"a = %d, address of a = %p\0A\00"
@.str.1 = [27 x i8] c"b = %d, address of b = %p\0A\00"
@.str.2 = [27 x i8] c"c = %d, address of c = %p\0A\00"
@.str.3 = [33 x i8] c"d[0] = %d, address of d[0] = %p\0A\00"
@.str.4 = [33 x i8] c"d[1] = %d, address of d[1] = %p\0A\00"
@.str.5 = [33 x i8] c"d[2] = %d, address of d[2] = %p\0A\00"
@.str.6 = [27 x i8] c"e = %d, address of e = %p\0A\00"
@.str.7 = [27 x i8] c"f = %d, address of f = %p\0A\00"
@.str.8 = [33 x i8] c"g[0] = %d, address of g[0] = %p\0A\00"
@.str.9 = [33 x i8] c"g[1] = %d, address of g[1] = %p\0A\00"
@.str.10 = [33 x i8] c"g[2] = %d, address of g[2] = %p\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [3 x i32]
%5 = alloca i32
%6 = alloca i32
%7 = alloca [3 x i32]
%8 = bitcast i32* %1 to i8*
store i32 1, i32* %1
%9 = bitcast i32* %2 to i8*
store i32 2, i32* %2
%10 = bitcast i32* %3 to i8*
store i32 3, i32* %3
%11 = bitcast [3 x i32]* %4 to i8*
%12 = bitcast i32* %5 to i8*
store i32 7, i32* %5
%13 = bitcast i32* %6 to i8*
store i32 8, i32* %6
%14 = bitcast [3 x i32]* %7 to i8*
%15 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i32 1, i32* %1)
%16 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 2, i32* %2)
%17 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i32 3, i32* %3)
%18 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 0
%19 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 4, i32* %18)
%20 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 1
%21 = load i32, i32* %20
%22 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %21, i32* %20)
%23 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 2
%24 = load i32, i32* %23
%25 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i32 %24, i32* %23)
%26 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i32 7, i32* %5)
%27 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i32 8, i32* %6)
%28 = getelementptr inbounds [3 x i32], [3 x i32]* %7, i64 0, i64 0
%29 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i32 9, i32* %28)
%30 = getelementptr inbounds [3 x i32], [3 x i32]* %7, i64 0, i64 1
%31 = load i32, i32* %30
%32 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i32 %31, i32* %30)
%33 = getelementptr inbounds [3 x i32], [3 x i32]* %7, i64 0, i64 2
%34 = load i32, i32* %33
%35 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.10, i64 0, i64 0), i32 %34, i32* %33)
ret i32 0
}