int main(void) {
  int(*(array1[])) = {
      (int[]){0, 1, 2},
      (int[]){3, 1},
      (int[]){6, 7, 8},
  };
  for (int j = 0; j < 3; j++) {
    for (int i = 0; i < 3; i++) {
      printf("array1:[%d][%d] --> Adress:%p --> Value:%d\n", j, i,
             &array1[j][i], array1[j][i]);
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x1,-0x28(%rbp)
movl   $0x2,-0x24(%rbp)
lea    -0x2c(%rbp),%rax
mov    %rax,-0x20(%rbp)
movl   $0x3,-0x34(%rbp)
movl   $0x1,-0x30(%rbp)
lea    -0x34(%rbp),%rax
mov    %rax,-0x18(%rbp)
movl   $0x6,-0x40(%rbp)
movl   $0x7,-0x3c(%rbp)
movl   $0x8,-0x38(%rbp)
lea    -0x40(%rbp),%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0x3,-0x44(%rbp)
jge    11f4 <main+0xe4>
movl   $0x0,-0x48(%rbp)
cmpl   $0x3,-0x48(%rbp)
jge    11d8 <main+0xc8>
mov    -0x44(%rbp),%esi
mov    -0x48(%rbp),%edx
movslq -0x44(%rbp),%rax
mov    -0x20(%rbp,%rax,8),%rcx
movslq -0x48(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rcx
movslq -0x44(%rbp),%rax
mov    -0x20(%rbp,%rax,8),%rax
movslq -0x48(%rbp),%rdi
mov    (%rax,%rdi,4),%r8d
lea    0xe3d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1187 <main+0x77>
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1176 <main+0x66>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movabs $0x100000000,%rax
mov    %rax,0x1c(%rsp)
lea    0x20(%rsp),%rbp
lea    0x24(%rsp),%r13
movl   $0x2,0x24(%rsp)
movabs $0x100000003,%rax
mov    %rax,0x8(%rsp)
lea    0xc(%rsp),%r12
movabs $0x700000006,%rax
mov    %rax,0x10(%rsp)
lea    0x14(%rsp),%r15
lea    0x18(%rsp),%r14
movl   $0x8,0x18(%rsp)
lea    0xe75(%rip),%rbx
lea    0x1c(%rsp),%rcx
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
xor    %r8d,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%r8d
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x24(%rsp),%r8d
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x2,%edx
mov    %r13,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x8(%rsp),%rcx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %edx,%edx
mov    $0x3,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%r8d
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    %r12,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10(%rsp),%rcx
mov    0x10(%rsp),%r8d
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10(%rsp),%rcx
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %edx,%edx
mov    $0x6,%r8d
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x14(%rsp),%r8d
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %r15,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x18(%rsp),%r8d
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x2,%edx
mov    %r14,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [44 x i8] c"array1:[%d][%d] --> Adress:%p --> Value:%d\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x i32*]
%3 = alloca [3 x i32]
%4 = alloca [2 x i32]
%5 = alloca [3 x i32]
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = getelementptr inbounds [3 x i32*], [3 x i32*]* %2, i64 0, i64 0
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
store i32 0, i32* %9
%10 = getelementptr inbounds i32, i32* %9, i64 1
store i32 1, i32* %10
%11 = getelementptr inbounds i32, i32* %10, i64 1
store i32 2, i32* %11
%12 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
store i32* %12, i32** %8
%13 = getelementptr inbounds i32*, i32** %8, i64 1
%14 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
store i32 3, i32* %14
%15 = getelementptr inbounds i32, i32* %14, i64 1
store i32 1, i32* %15
%16 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
store i32* %16, i32** %13
%17 = getelementptr inbounds i32*, i32** %13, i64 1
%18 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 0
store i32 6, i32* %18
%19 = getelementptr inbounds i32, i32* %18, i64 1
store i32 7, i32* %19
%20 = getelementptr inbounds i32, i32* %19, i64 1
store i32 8, i32* %20
%21 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 0
store i32* %21, i32** %17
store i32 0, i32* %6
br label %22
22: ; preds = %53, %0
%23 = load i32, i32* %6
%24 = icmp slt i32 %23, 3
br i1 %24, label %25, label %56
25: ; preds = %22
store i32 0, i32* %7
br label %26
26: ; preds = %48, %25
%27 = load i32, i32* %7
%28 = icmp slt i32 %27, 3
br i1 %28, label %29, label %51
29: ; preds = %26
%30 = load i32, i32* %6
%31 = load i32, i32* %7
%32 = load i32, i32* %6
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [3 x i32*], [3 x i32*]* %2, i64 0, i64 %33
%35 = load i32*, i32** %34
%36 = load i32, i32* %7
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i32, i32* %35, i64 %37
%39 = load i32, i32* %6
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [3 x i32*], [3 x i32*]* %2, i64 0, i64 %40
%42 = load i32*, i32** %41
%43 = load i32, i32* %7
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, i32* %42, i64 %44
%46 = load i32, i32* %45
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i32 %30, i32 %31, i32* %38, i32 %46)
br label %48
48: ; preds = %29
%49 = load i32, i32* %7
%50 = add nsw i32 %49, 1
store i32 %50, i32* %7
br label %26
51: ; preds = %26
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %53
53: ; preds = %51
%54 = load i32, i32* %6
%55 = add nsw i32 %54, 1
store i32 %55, i32* %6
br label %22
56: ; preds = %22
ret i32 0
}

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