void test1() {
  int a[3][3] = {{11, 12, 13}, {21, 22, 23}, {31, 32, 33}};
  printf("%-12s = %8d\n", "a", a);
  printf("%-12s = %8d\n", "*a", *a);
  printf("%-12s = %8d\n", "a[0]", a[0]);
  printf("%-12s = %8d\n", "&a[0]", &a[0]);
  printf("%-12s = %8d\n", "&a[0][0]", &a[0][0]);
  printf("%-12s = %8d\n", "a+0", a + 0);
  printf("%-12s = %8d\n", "*(a+0)", *(a + 0));
  printf("%-12s = %8d\n", "*(a+0)+0", *(a + 0) + 0);
  printf("%-12s = %8d\n", "a[0][0]", a[0][0]);
  printf("%-12s = %8d\n", "*(*(a+0)+0)", *(*(a + 0) + 0));
  printf("%-12s = %8d\n", "a+1", a + 1);
  printf("%-12s = %8d\n", "*(a+1)", *(a + 1));
  printf("%-12s = %8d\n", "*(a+1)+0", *(a + 1) + 0);
  printf("%-12s = %8d\n", "a[1][0]", a[1][0]);
  printf("%-12s = %8d\n", "*(*(a+1)+0)", *(*(a + 1) + 0));
  printArray(a, 3);
  int b[3] = {11, 12, 13};
  printf("%-12s = %8d\n", "b", b);
  printf("%-12s = %8d\n", "*b", *b);
  printf("%-12s = %8d\n", "b[0]", b[0]);
  printf("%-12s = %8d\n", "&b[0]", &b[0]);
  printf("%-12s = %8d\n", "b+0", b + 0);
  printf("%-12s = %8d\n", "*(b+0)", *(b + 0));
  char *str = "Hello";
  printf("%s\n", str);
  printf("%d\n", str);
  printf("%c\n", *str);
  printf("%d\n", *str);
}


x86 assembly (clang, -O0):
<test1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    -0x30(%rbp),%rdi
lea    0xebd(%rip),%rsi
mov    $0x24,%edx
call   1040 <memcpy@plt>
lea    -0x30(%rbp),%rdx
lea    0xed8(%rip),%rdi
lea    0xedf(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdx
lea    0xebf(%rip),%rdi
lea    0xec5(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdx
lea    0xea6(%rip),%rdi
lea    0xeb0(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdx
lea    0xe8d(%rip),%rdi
lea    0xe96(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdx
lea    0xe74(%rip),%rdi
lea    0xe83(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdx
lea    0xe5b(%rip),%rdi
lea    0xe73(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdx
lea    0xe42(%rip),%rdi
lea    0xe5e(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdx
lea    0xe29(%rip),%rdi
lea    0xe4c(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%edx
lea    0xe11(%rip),%rdi
lea    0xe21(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%edx
lea    0xdf9(%rip),%rdi
lea    0xe25(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdx
add    $0xc,%rdx
lea    0xddc(%rip),%rdi
lea    0xe14(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdx
add    $0xc,%rdx
lea    0xdbf(%rip),%rdi
lea    0xdfb(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdx
add    $0xc,%rdx
lea    0xda2(%rip),%rdi
lea    0xde5(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%edx
lea    0xd8a(%rip),%rdi
lea    0xdd6(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x24(%rbp),%edx
lea    0xd72(%rip),%rdi
lea    0xdc6(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    $0x3,%esi
mov    $0x0,%al
call   1050 <printArray@plt>
mov    0xd41(%rip),%rax
mov    %rax,-0x3c(%rbp)
mov    0xd3f(%rip),%eax
mov    %eax,-0x34(%rbp)
lea    -0x3c(%rbp),%rdx
lea    0xd35(%rip),%rdi
lea    0xd96(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%edx
lea    0xd1d(%rip),%rdi
lea    0xd7d(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%edx
lea    0xd05(%rip),%rdi
lea    0xd69(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x3c(%rbp),%rdx
lea    0xcec(%rip),%rdi
lea    0xd4f(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x3c(%rbp),%rdx
lea    0xcd3(%rip),%rdi
lea    0xd3c(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%edx
lea    0xcbb(%rip),%rdi
lea    0xd28(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd21(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rsi
lea    0xd18(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%rsi
lea    0xd0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%rax
movsbl (%rax),%esi
lea    0xcf9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%rax
movsbl (%rax),%esi
lea    0xce0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test1>:
push   %r15
push   %r14
push   %rbx
sub    $0x40,%rsp
mov    0xee1(%rip),%eax
mov    %eax,0x30(%rsp)
movaps 0xec6(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xeaa(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0xece(%rip),%rbx
lea    0xed5(%rip),%rsi
lea    0x10(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebb(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeab(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe96(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe88(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe7d(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe6d(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe60(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%edx
lea    0xe35(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%edx
lea    0xe3c(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1c(%rsp),%r15
lea    0xe32(%rip),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe22(%rip),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe15(%rip),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%edx
lea    0xe06(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x1c(%rsp),%edx
lea    0xdf9(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printArray@plt>
mov    0xd7b(%rip),%eax
mov    %eax,0x8(%rsp)
mov    0xd68(%rip),%rax
mov    %rax,(%rsp)
lea    0xdd1(%rip),%rsi
mov    %rsp,%r14
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%edx
lea    0xdb6(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%edx
lea    0xda6(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd94(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd86(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%edx
lea    0xd73(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd69(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xd60(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd50(%rip),%rdi
mov    $0x48,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x48,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.test1.a = [3 x [3 x i32]] [[3 x i32] [i32 11, i32 12, i32 13], [3 x i32] [i32 21, i32 22, i32 23], [3 x i32] [i32 31, i32 32, i32 33]]
@.str = [13 x i8] c"%-12s = %8d\0A\00"
@.str.1 = [2 x i8] c"a\00"
@.str.2 = [3 x i8] c"*a\00"
@.str.3 = [5 x i8] c"a[0]\00"
@.str.4 = [6 x i8] c"&a[0]\00"
@.str.5 = [9 x i8] c"&a[0][0]\00"
@.str.6 = [4 x i8] c"a+0\00"
@.str.7 = [7 x i8] c"*(a+0)\00"
@.str.8 = [9 x i8] c"*(a+0)+0\00"
@.str.9 = [8 x i8] c"a[0][0]\00"
@.str.10 = [12 x i8] c"*(*(a+0)+0)\00"
@.str.11 = [4 x i8] c"a+1\00"
@.str.12 = [7 x i8] c"*(a+1)\00"
@.str.13 = [9 x i8] c"*(a+1)+0\00"
@.str.14 = [8 x i8] c"a[1][0]\00"
@.str.15 = [12 x i8] c"*(*(a+1)+0)\00"
@__const.test1.b = [3 x i32] [i32 11, i32 12, i32 13]
@.str.16 = [2 x i8] c"b\00"
@.str.17 = [3 x i8] c"*b\00"
@.str.18 = [5 x i8] c"b[0]\00"
@.str.19 = [6 x i8] c"&b[0]\00"
@.str.20 = [4 x i8] c"b+0\00"
@.str.21 = [7 x i8] c"*(b+0)\00"
@.str.22 = [6 x i8] c"Hello\00"
@.str.23 = [4 x i8] c"%s\0A\00"
@.str.24 = [4 x i8] c"%d\0A\00"
@.str.25 = [4 x i8] c"%c\0A\00"
define void @test1() {
%1 = alloca [3 x [3 x i32]]
%2 = alloca [3 x i32]
%3 = alloca i8*
%4 = bitcast [3 x [3 x i32]]* %1 to i8*
%5 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), [3 x i32]* %5)
%7 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%8 = getelementptr inbounds [3 x i32], [3 x i32]* %7, i64 0, i64 0
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %8)
%10 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%11 = getelementptr inbounds [3 x i32], [3 x i32]* %10, i64 0, i64 0
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32* %11)
%13 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), [3 x i32]* %13)
%15 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%16 = getelementptr inbounds [3 x i32], [3 x i32]* %15, i64 0, i64 0
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i32* %16)
%18 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%19 = getelementptr inbounds [3 x i32], [3 x i32]* %18, i64 0
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), [3 x i32]* %19)
%21 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%22 = getelementptr inbounds [3 x i32], [3 x i32]* %21, i64 0
%23 = getelementptr inbounds [3 x i32], [3 x i32]* %22, i64 0, i64 0
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32* %23)
%25 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%26 = getelementptr inbounds [3 x i32], [3 x i32]* %25, i64 0
%27 = getelementptr inbounds [3 x i32], [3 x i32]* %26, i64 0, i64 0
%28 = getelementptr inbounds i32, i32* %27, i64 0
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32* %28)
%30 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%31 = getelementptr inbounds [3 x i32], [3 x i32]* %30, i64 0, i64 0
%32 = load i32, i32* %31
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i32 %32)
%34 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%35 = getelementptr inbounds [3 x i32], [3 x i32]* %34, i64 0
%36 = getelementptr inbounds [3 x i32], [3 x i32]* %35, i64 0, i64 0
%37 = getelementptr inbounds i32, i32* %36, i64 0
%38 = load i32, i32* %37
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0), i32 %38)
%40 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%41 = getelementptr inbounds [3 x i32], [3 x i32]* %40, i64 1
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), [3 x i32]* %41)
%43 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%44 = getelementptr inbounds [3 x i32], [3 x i32]* %43, i64 1
%45 = getelementptr inbounds [3 x i32], [3 x i32]* %44, i64 0, i64 0
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i32* %45)
%47 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%48 = getelementptr inbounds [3 x i32], [3 x i32]* %47, i64 1
%49 = getelementptr inbounds [3 x i32], [3 x i32]* %48, i64 0, i64 0
%50 = getelementptr inbounds i32, i32* %49, i64 0
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), i32* %50)
%52 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 1
%53 = getelementptr inbounds [3 x i32], [3 x i32]* %52, i64 0, i64 0
%54 = load i32, i32* %53
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i64 0, i64 0), i32 %54)
%56 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%57 = getelementptr inbounds [3 x i32], [3 x i32]* %56, i64 1
%58 = getelementptr inbounds [3 x i32], [3 x i32]* %57, i64 0, i64 0
%59 = getelementptr inbounds i32, i32* %58, i64 0
%60 = load i32, i32* %59
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 %60)
%62 = getelementptr inbounds [3 x [3 x i32]], [3 x [3 x i32]]* %1, i64 0, i64 0
%63 = call i32 ([3 x i32]*, i32, ...) bitcast (i32 (...)* @printArray to i32 ([3 x i32]*, i32, ...)*)([3 x i32]* %62, i32 3)
%64 = bitcast [3 x i32]* %2 to i8*
%65 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0), i32* %65)
%67 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%68 = load i32, i32* %67
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i32 %68)
%70 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%71 = load i32, i32* %70
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i32 %71)
%73 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i32* %73)
%75 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%76 = getelementptr inbounds i32, i32* %75, i64 0
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0), i32* %76)
%78 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%79 = getelementptr inbounds i32, i32* %78, i64 0
%80 = load i32, i32* %79
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i32 %80)
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i8** %3
%82 = load i8*, i8** %3
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0), i8* %82)
%84 = load i8*, i8** %3
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0), i8* %84)
%86 = load i8*, i8** %3
%87 = load i8, i8* %86
%88 = sext i8 %87 to i32
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i64 0, i64 0), i32 %88)
%90 = load i8*, i8** %3
%91 = load i8, i8* %90
%92 = sext i8 %91 to i32
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0), i32 %92)
ret void
}

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