int main() {
  char wlan[10][6] = {"abcdef", "123456", "ABCDEF"};
  int i = 0;
  for (i = 0; i < 18; i++) {
    printf("char = %c, addr = %p\n", *(*wlan + i), (void *)(*wlan + i));
  }
  trans((char *)wlan);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xeb6(%rip),%rsi
mov    $0x3c,%edx
call   1050 <memcpy@plt>
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0x12,-0x44(%rbp)
jge    119c <main+0x6c>
movslq -0x44(%rbp),%rax
movsbl -0x40(%rbp,%rax,1),%esi
lea    -0x40(%rbp),%rdx
movslq -0x44(%rbp),%rax
add    %rax,%rdx
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1162 <main+0x32>
lea    -0x40(%rbp),%rdi
mov    $0x0,%al
call   1030 <trans@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x40,%rsp
movups 0xefc(%rip),%xmm0
movups %xmm0,0x2c(%rsp)
movaps 0xee4(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xec8(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeac(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x10(%rsp),%r15
lea    0xed8(%rip),%rbx
mov    %rsp,%r14
mov    %rbx,%rdi
mov    $0x61,%esi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1(%rsp),%rdx
movsbl 0x1(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2(%rsp),%rdx
movsbl 0x2(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x3(%rsp),%rdx
movsbl 0x3(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%rsp),%rdx
movsbl 0x4(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x5(%rsp),%rdx
movsbl 0x5(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x6(%rsp),%rdx
movsbl 0x6(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x7(%rsp),%rdx
movsbl 0x7(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rdx
movsbl 0x8(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x9(%rsp),%rdx
movsbl 0x9(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xa(%rsp),%rdx
movsbl 0xa(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb(%rsp),%rdx
movsbl 0xb(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc(%rsp),%rdx
movsbl 0xc(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd(%rsp),%rdx
movsbl 0xd(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe(%rsp),%rdx
movsbl 0xe(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf(%rsp),%rdx
movsbl 0xf(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x10(%rsp),%esi
mov    %rbx,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x11(%rsp),%rdx
movsbl 0x11(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <trans@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.wlan = [10 x [6 x i8]] [[6 x i8] c"abcdef", [6 x i8] c"123456", [6 x i8] c"ABCDEF", [6 x i8] zeroinitializer, [6 x i8] zeroinitializer, [6 x i8] zeroinitializer, [6 x i8] zeroinitializer, [6 x i8] zeroinitializer, [6 x i8] zeroinitializer, [6 x i8] zeroinitializer]
@.str = [22 x i8] c"char = %c, addr = %p\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x [6 x i8]]
%3 = alloca i32
store i32 0, i32* %1
%4 = bitcast [10 x [6 x i8]]* %2 to i8*
store i32 0, i32* %3
store i32 0, i32* %3
br label %5
5: ; preds = %22, %0
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 18
br i1 %7, label %8, label %25
8: ; preds = %5
%9 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %2, i64 0, i64 0
%10 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
%11 = load i32, i32* %3
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i8, i8* %10, i64 %12
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %2, i64 0, i64 0
%17 = getelementptr inbounds [6 x i8], [6 x i8]* %16, i64 0, i64 0
%18 = load i32, i32* %3
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, i8* %17, i64 %19
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %15, i8* %20)
br label %22
22: ; preds = %8
%23 = load i32, i32* %3
%24 = add nsw i32 %23, 1
store i32 %24, i32* %3
br label %5
25: ; preds = %5
%26 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %2, i64 0, i64 0
%27 = bitcast [6 x i8]* %26 to i8*
%28 = call i32 (i8*, ...) bitcast (i32 (...)* @trans to i32 (i8*, ...)*)(i8* %27)
ret i32 0
}

LLVM IR (-O2):
@__const.main.wlan = [10 x [6 x i8]] [[6 x i8] c"abcdef", [6 x i8] c"123456", [6 x i8] c"ABCDEF", [6 x i8] zeroinitializer, [6 x i8] zeroinitializer, [6 x i8] zeroinitializer, [6 x i8] zeroinitializer, [6 x i8] zeroinitializer, [6 x i8] zeroinitializer, [6 x i8] zeroinitializer]
@.str = [22 x i8] c"char = %c, addr = %p\0A\00"
define i32 @main() {
%1 = alloca [10 x [6 x i8]]
%2 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 0
%3 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 97, i8* %2)
%4 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 1
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %6, i8* %4)
%8 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 2
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %10, i8* %8)
%12 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 3
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %14, i8* %12)
%16 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 4
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %18, i8* %16)
%20 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 5
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %22, i8* %20)
%24 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 6
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %26, i8* %24)
%28 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 7
%29 = load i8, i8* %28
%30 = sext i8 %29 to i32
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %30, i8* %28)
%32 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 8
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %34, i8* %32)
%36 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 9
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %38, i8* %36)
%40 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 10
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %42, i8* %40)
%44 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 11
%45 = load i8, i8* %44
%46 = sext i8 %45 to i32
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %46, i8* %44)
%48 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 12
%49 = load i8, i8* %48
%50 = sext i8 %49 to i32
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %50, i8* %48)
%52 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 13
%53 = load i8, i8* %52
%54 = sext i8 %53 to i32
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %54, i8* %52)
%56 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 14
%57 = load i8, i8* %56
%58 = sext i8 %57 to i32
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %58, i8* %56)
%60 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 15
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %62, i8* %60)
%64 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 16
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %66, i8* %64)
%68 = getelementptr inbounds [10 x [6 x i8]], [10 x [6 x i8]]* %1, i64 0, i64 0, i64 17
%69 = load i8, i8* %68
%70 = sext i8 %69 to i32
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %70, i8* %68)
%72 = call i32 (i8*, ...) bitcast (i32 (...)* @trans to i32 (i8*, ...)*)(i8* %2)
ret i32 0
}