int main() {
  int arr[5][2] = {{11, 12}, {21, 22}, {31, 32}, {41, 42}, {51, 52}};
  int i, j;
  arr[5][0] = 61;
  arr[5][1] = 62;
  for (i = 0; i < 6; i++) {
    for (j = 0; j < 2; j++) {
      printf("%u %u %d %d %d\t", arr[i], arr[i] + j, arr[i][j],
             *(*(arr + i) + j), *(arr[i] + j));
    }
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
lea    0xec6(%rip),%rsi
mov    $0x28,%edx
call   1040 <memcpy@plt>
movl   $0x3d,-0x8(%rbp)
movl   $0x3e,-0x4(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x6,-0x34(%rbp)
jge    1219 <main+0xf9>
movl   $0x0,-0x38(%rbp)
cmpl   $0x2,-0x38(%rbp)
jge    11fd <main+0xdd>
movslq -0x34(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
movslq -0x34(%rbp),%rax
lea    -0x30(%rbp),%rdx
shl    $0x3,%rax
add    %rax,%rdx
movslq -0x38(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdx
movslq -0x34(%rbp),%rcx
lea    -0x30(%rbp),%rax
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
lea    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rdi
shl    $0x3,%rdi
add    %rdi,%rax
movslq -0x38(%rbp),%rdi
mov    (%rax,%rdi,4),%r8d
movslq -0x34(%rbp),%rdi
lea    -0x30(%rbp),%rax
shl    $0x3,%rdi
add    %rdi,%rax
movslq -0x38(%rbp),%rdi
mov    (%rax,%rdi,4),%r9d
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    116a <main+0x4a>
lea    0xe34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1159 <main+0x39>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    0xeeb(%rip),%rax
mov    %rax,0x20(%rsp)
movaps 0xecf(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeb3(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x20(%rsp),%r12
lea    0x10(%rsp),%r13
lea    0x28(%rsp),%r15
movabs $0x3e0000003d,%rax
mov    %rax,0x28(%rsp)
lea    0x2c(%rsp),%r14
lea    0xead(%rip),%rbx
mov    %rsp,%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %rbp,%rdx
mov    $0xb,%ecx
mov    $0xb,%r8d
mov    $0xb,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%rsp),%rdx
mov    0x4(%rsp),%ecx
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %ecx,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x8(%rsp),%rbp
mov    0x8(%rsp),%ecx
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %rbp,%rdx
mov    %ecx,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rsp),%rdx
mov    0xc(%rsp),%ecx
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %ecx,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x10(%rsp),%ecx
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r13,%rdx
mov    %ecx,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14(%rsp),%rdx
mov    0x14(%rsp),%ecx
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %ecx,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x18(%rsp),%rbp
mov    0x18(%rsp),%ecx
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %rbp,%rdx
mov    %ecx,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1c(%rsp),%rdx
mov    0x1c(%rsp),%ecx
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %ecx,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x20(%rsp),%ecx
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r12,%rdx
mov    %ecx,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x24(%rsp),%rdx
mov    0x24(%rsp),%ecx
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %ecx,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x28(%rsp),%ecx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r15,%rdx
mov    %ecx,%r8d
mov    %ecx,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2c(%rsp),%ecx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
mov    %ecx,%r8d
mov    %ecx,%r9d
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):
@__const.main.arr = [5 x [2 x i32]] [[2 x i32] [i32 11, i32 12], [2 x i32] [i32 21, i32 22], [2 x i32] [i32 31, i32 32], [2 x i32] [i32 41, i32 42], [2 x i32] [i32 51, i32 52]]
@.str = [16 x i8] c"%u %u %d %d %d\09\00"
@.str.1 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x [2 x i32]]
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = bitcast [5 x [2 x i32]]* %2 to i8*
%6 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %2, i64 0, i64 5
%7 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
store i32 61, i32* %7
%8 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %2, i64 0, i64 5
%9 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 1
store i32 62, i32* %9
store i32 0, i32* %3
br label %10
10: ; preds = %59, %0
%11 = load i32, i32* %3
%12 = icmp slt i32 %11, 6
br i1 %12, label %13, label %62
13: ; preds = %10
store i32 0, i32* %4
br label %14
14: ; preds = %54, %13
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 2
br i1 %16, label %17, label %57
17: ; preds = %14
%18 = load i32, i32* %3
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %2, i64 0, i64 %19
%21 = getelementptr inbounds [2 x i32], [2 x i32]* %20, i64 0, i64 0
%22 = load i32, i32* %3
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %2, i64 0, i64 %23
%25 = getelementptr inbounds [2 x i32], [2 x i32]* %24, i64 0, i64 0
%26 = load i32, i32* %4
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, i32* %25, i64 %27
%29 = load i32, i32* %3
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %2, i64 0, i64 %30
%32 = load i32, i32* %4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [2 x i32], [2 x i32]* %31, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %2, i64 0, i64 0
%37 = load i32, i32* %3
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [2 x i32], [2 x i32]* %36, i64 %38
%40 = getelementptr inbounds [2 x i32], [2 x i32]* %39, i64 0, i64 0
%41 = load i32, i32* %4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, i32* %40, i64 %42
%44 = load i32, i32* %43
%45 = load i32, i32* %3
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %2, i64 0, i64 %46
%48 = getelementptr inbounds [2 x i32], [2 x i32]* %47, i64 0, i64 0
%49 = load i32, i32* %4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, i32* %48, i64 %50
%52 = load i32, i32* %51
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %21, i32* %28, i32 %35, i32 %44, i32 %52)
br label %54
54: ; preds = %17
%55 = load i32, i32* %4
%56 = add nsw i32 %55, 1
store i32 %56, i32* %4
br label %14
57: ; preds = %14
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %59
59: ; preds = %57
%60 = load i32, i32* %3
%61 = add nsw i32 %60, 1
store i32 %61, i32* %3
br label %10
62: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
@__const.main.arr = [5 x [2 x i32]] [[2 x i32] [i32 11, i32 12], [2 x i32] [i32 21, i32 22], [2 x i32] [i32 31, i32 32], [2 x i32] [i32 41, i32 42], [2 x i32] [i32 51, i32 52]]
@.str = [16 x i8] c"%u %u %d %d %d\09\00"
define i32 @main() {
%1 = alloca [5 x [2 x i32]]
%2 = bitcast [5 x [2 x i32]]* %1 to i8*
%3 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %1, i64 0, i64 5, i64 0
store i32 61, i32* %3
%4 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %1, i64 0, i64 5, i64 1
store i32 62, i32* %4
%5 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %1, i64 0, i64 0, i64 0
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %5, i32* %5, i32 11, i32 11, i32 11)
%7 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %1, i64 0, i64 0, i64 1
%8 = load i32, i32* %7
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %5, i32* %7, i32 %8, i32 %8, i32 %8)
%10 = call i32 @putchar(i32 10)
%11 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %1, i64 0, i64 1, i64 0
%12 = load i32, i32* %11
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %11, i32* %11, i32 %12, i32 %12, i32 %12)
%14 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %1, i64 0, i64 1, i64 1
%15 = load i32, i32* %14
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %11, i32* %14, i32 %15, i32 %15, i32 %15)
%17 = call i32 @putchar(i32 10)
%18 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %1, i64 0, i64 2, i64 0
%19 = load i32, i32* %18
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %18, i32* %18, i32 %19, i32 %19, i32 %19)
%21 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %1, i64 0, i64 2, i64 1
%22 = load i32, i32* %21
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %18, i32* %21, i32 %22, i32 %22, i32 %22)
%24 = call i32 @putchar(i32 10)
%25 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %1, i64 0, i64 3, i64 0
%26 = load i32, i32* %25
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %25, i32* %25, i32 %26, i32 %26, i32 %26)
%28 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %1, i64 0, i64 3, i64 1
%29 = load i32, i32* %28
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %25, i32* %28, i32 %29, i32 %29, i32 %29)
%31 = call i32 @putchar(i32 10)
%32 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %1, i64 0, i64 4, i64 0
%33 = load i32, i32* %32
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %32, i32* %32, i32 %33, i32 %33, i32 %33)
%35 = getelementptr inbounds [5 x [2 x i32]], [5 x [2 x i32]]* %1, i64 0, i64 4, i64 1
%36 = load i32, i32* %35
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %32, i32* %35, i32 %36, i32 %36, i32 %36)
%38 = call i32 @putchar(i32 10)
%39 = load i32, i32* %3
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %3, i32 %39, i32 %39, i32 %39)
%41 = load i32, i32* %4
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4, i32 %41, i32 %41, i32 %41)
%43 = call i32 @putchar(i32 10)
ret i32 0
}