int main() {
  char name[10] = "jack888\n";
  printf("jack888\n");
  char it[8] = "it";
  char it2[8] = {'i', 't', '\0'};
  char it3[8] = {'i', 't', '0'};
  char it4[8] = {'i', 't'};
  char it5[] = {'i', 't'};
  char ary[] = "array";
  int size = sizeof(ary);
  printf("%d\n", size);
  for (int i = 0; i < sizeof(ary); i++) {
    printf("%u-%s\n", ary[i], name);
  }
  printf("--------\n");
  char i[] = "it";
  char i2[] = {'o', 'k', '\0'};
  printf("%s\n", i2);
  printf("%d\n", i);
  printf("%d\n", i2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0xe(%rbp)
mov    0xed7(%rip),%ax
mov    %ax,-0x6(%rbp)
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xeec(%rip),%rax
mov    %rax,-0x16(%rbp)
mov    0xee1(%rip),%rax
mov    %rax,-0x1e(%rbp)
mov    0xede(%rip),%rax
mov    %rax,-0x26(%rbp)
mov    0xecb(%rip),%rax
mov    %rax,-0x2e(%rbp)
mov    0xe94(%rip),%ax
mov    %ax,-0x30(%rbp)
mov    0xe95(%rip),%eax
mov    %eax,-0x36(%rbp)
mov    0xe8f(%rip),%ax
mov    %ax,-0x32(%rbp)
movl   $0x6,-0x3c(%rbp)
mov    -0x3c(%rbp),%esi
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x40(%rbp)
movslq -0x40(%rbp),%rax
cmp    $0x6,%rax
jae    11e4 <main+0xd4>
movslq -0x40(%rbp),%rax
movsbl -0x36(%rbp,%rax,1),%esi
lea    -0xe(%rbp),%rdx
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    11ad <main+0x9d>
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0xe37(%rip),%ax
mov    %ax,-0x43(%rbp)
mov    0xe2f(%rip),%al
mov    %al,-0x41(%rbp)
mov    0xe26(%rip),%ax
mov    %ax,-0x46(%rbp)
mov    0xe1e(%rip),%al
mov    %al,-0x44(%rbp)
lea    -0x46(%rbp),%rsi
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x43(%rbp),%rsi
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x46(%rbp),%rsi
lea    0xdd2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
movabs $0xa3838386b63616a,%rax
38 38 0a
mov    %rax,0x10(%rsp)
movw   $0x0,0x18(%rsp)
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb8(%rip),%r14
mov    %r14,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea6(%rip),%rbx
lea    0x10(%rsp),%r15
mov    %rbx,%rdi
mov    $0x61,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x72,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x72,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x61,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x79,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe46(%rip),%rdi
call   1030 <puts@plt>
movb   $0x0,0xe(%rsp)
movw   $0x7469,0xc(%rsp)
movb   $0x0,0xa(%rsp)
movw   $0x6b6f,0x8(%rsp)
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xc(%rsp),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.name = [10 x i8] c"jack888\0A\00\00"
@.str = [9 x i8] c"jack888\0A\00"
@__const.main.it = [8 x i8] c"it\00\00\00\00\00\00"
@__const.main.it2 = [8 x i8] c"it\00\00\00\00\00\00"
@__const.main.it3 = [8 x i8] c"it0\00\00\00\00\00"
@__const.main.it4 = [8 x i8] c"it\00\00\00\00\00\00"
@__const.main.it5 = [2 x i8] c"it"
@__const.main.ary = [6 x i8] c"array\00"
@.str.1 = [4 x i8] c"%d\0A\00"
@.str.2 = [7 x i8] c"%u-%s\0A\00"
@.str.3 = [10 x i8] c"--------\0A\00"
@__const.main.i = [3 x i8] c"it\00"
@__const.main.i2 = [3 x i8] c"ok\00"
@.str.4 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i8]
%3 = alloca [8 x i8]
%4 = alloca [8 x i8]
%5 = alloca [8 x i8]
%6 = alloca [8 x i8]
%7 = alloca [2 x i8]
%8 = alloca [6 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca [3 x i8]
%12 = alloca [3 x i8]
store i32 0, i32* %1
%13 = bitcast [10 x i8]* %2 to i8*
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%15 = bitcast [8 x i8]* %3 to i8*
%16 = bitcast [8 x i8]* %4 to i8*
%17 = bitcast [8 x i8]* %5 to i8*
%18 = bitcast [8 x i8]* %6 to i8*
%19 = bitcast [2 x i8]* %7 to i8*
%20 = bitcast [6 x i8]* %8 to i8*
store i32 6, i32* %9
%21 = load i32, i32* %9
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %21)
store i32 0, i32* %10
br label %23
23: ; preds = %35, %0
%24 = load i32, i32* %10
%25 = sext i32 %24 to i64
%26 = icmp ult i64 %25, 6
br i1 %26, label %27, label %38
27: ; preds = %23
%28 = load i32, i32* %10
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [6 x i8], [6 x i8]* %8, i64 0, i64 %29
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %32, i8* %33)
br label %35
35: ; preds = %27
%36 = load i32, i32* %10
%37 = add nsw i32 %36, 1
store i32 %37, i32* %10
br label %23
38: ; preds = %23
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%40 = bitcast [3 x i8]* %11 to i8*
%41 = bitcast [3 x i8]* %12 to i8*
%42 = getelementptr inbounds [3 x i8], [3 x i8]* %12, i64 0, i64 0
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %42)
%44 = getelementptr inbounds [3 x i8], [3 x i8]* %11, i64 0, i64 0
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %44)
%46 = getelementptr inbounds [3 x i8], [3 x i8]* %12, i64 0, i64 0
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %46)
ret i32 0
}

LLVM IR (-O2):
@__const.main.name = [10 x i8] c"jack888\0A\00\00"
@.str.1 = [4 x i8] c"%d\0A\00"
@.str.2 = [7 x i8] c"%u-%s\0A\00"
@__const.main.i = [3 x i8] c"it\00"
@__const.main.i2 = [3 x i8] c"ok\00"
@str = [8 x i8] c"jack888\00"
@str.5 = [9 x i8] c"--------\00"
define i32 @main() {
%1 = alloca [10 x i8]
%2 = alloca [3 x i8]
%3 = alloca [3 x i8]
%4 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 6)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 97, i8* %4)
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 114, i8* %4)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 114, i8* %4)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 97, i8* %4)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 121, i8* %4)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 0, i8* %4)
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.5, i64 0, i64 0))
%14 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%15 = getelementptr inbounds [3 x i8], [3 x i8]* %3, i64 0, i64 0
%16 = call i32 @puts(i8* %15)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %14)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %15)
ret i32 0
}