int main() {
  int i = 0;
  int a = 5;
  int *p_0 = &a;
  int *p_1;
  int arr_0[5] = {1, 2, 3, 5, 7};
  int arr_1[] = {1, 200, 546, 90, 22};
  int *arr_2[100];
  char arr_3[100] = {"123 qwe asd"};
  char *arr_4[100] = {"123", "qwe", "asd"};
  printf("a = %d;\n* ( p_0 = & a ) = %d;\np_0 = %p;\n", a, *p_0, p_0);
  p_0 = arr_0;
  printf("\np_0 = arr_0   = %p;\n& arr_0 [ 0 ] = %p;\n* p_0 = %d;\n", p_0,
         &arr_0[0], *p_0);
  for (i = 0; i < 5; i++) {
    printf("arr_0 [ %d ] = * p_0 ++ = %d;\n", i, *p_0++);
  }
  p_0 = arr_1;
  printf("\np_0 = arr_1 = %p;\n", p_0);
  for (i = 0; arr_1[i]; i++) {
    *(arr_2 + i) = arr_1[i];
  }
  for (i = 0; arr_2[i]; i++) {
    printf("arr_2 [ %d ] = %d;\n", i, arr_2[i]);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x710,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x5,-0xc(%rbp)
lea    -0xc(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    0xea1(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe9e(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe9c(%rip),%eax
mov    %eax,-0x30(%rbp)
mov    0xea2(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xe9f(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0xe9d(%rip),%eax
mov    %eax,-0x50(%rbp)
lea    -0x3f0(%rbp),%rdi
lea    0xe9c(%rip),%rsi
mov    $0x64,%edx
call   1050 <memcpy@plt>
lea    -0x710(%rbp),%rdi
xor    %esi,%esi
mov    $0x320,%edx
call   1040 <memset@plt>
lea    0xedc(%rip),%rax
mov    %rax,-0x710(%rbp)
lea    0xed2(%rip),%rax
mov    %rax,-0x708(%rbp)
lea    0xec8(%rip),%rax
mov    %rax,-0x700(%rbp)
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%rcx
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x40(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    -0x40(%rbp),%rdx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x5,-0x8(%rbp)
jge    126b <main+0x13b>
mov    -0x8(%rbp),%esi
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x18(%rbp)
mov    (%rax),%edx
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1231 <main+0x101>
lea    -0x60(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rax
cmpl   $0x0,-0x60(%rbp,%rax,4)
je     12be <main+0x18e>
movslq -0x8(%rbp),%rax
movslq -0x60(%rbp,%rax,4),%rcx
movslq -0x8(%rbp),%rax
mov    %rcx,-0x380(%rbp,%rax,8)
ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    128c <main+0x15c>
movl   $0x0,-0x8(%rbp)
movslq -0x8(%rbp),%rax
cmpq   $0x0,-0x380(%rbp,%rax,8)
je     1303 <main+0x1d3>
mov    -0x8(%rbp),%esi
movslq -0x8(%rbp),%rax
mov    -0x380(%rbp,%rax,8),%rdx
ff
lea    0xe54(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12c5 <main+0x195>
mov    -0x4(%rbp),%eax
add    $0x710,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x378,%rsp
movl   $0x5,0xc(%rsp)
mov    0xee8(%rip),%eax
mov    %eax,0x20(%rsp)
movaps 0xecd(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
mov    0xef2(%rip),%eax
mov    %eax,0x40(%rsp)
movaps 0xed7(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
lea    0xedf(%rip),%rdi
xor    %ebx,%ebx
lea    0xc(%rsp),%rcx
mov    $0x5,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee9(%rip),%rdi
lea    0x10(%rsp),%rdx
mov    %rdx,%rsi
mov    $0x1,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x10(%rsp),%edx
lea    0xf00(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%rsp),%edx
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x18(%rsp),%edx
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x1c(%rsp),%edx
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x20(%rsp),%edx
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec0(%rip),%rdi
lea    0x30(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x30(%rsp),%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cltq
mov    %rax,0x50(%rsp,%rbx,2)
mov    0x34(%rsp,%rbx,1),%eax
add    $0x4,%rbx
test   %eax,%eax
jne    1210 <main+0x100>
mov    0x50(%rsp),%rdx
test   %rdx,%rdx
je     125a <main+0x14a>
lea    0xe92(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x58(%rsp,%rbx,8),%rdx
add    $0x1,%rbx
test   %rdx,%rdx
jne    1240 <main+0x130>
xor    %eax,%eax
add    $0x378,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.arr_0 = [5 x i32] [i32 1, i32 2, i32 3, i32 5, i32 7]
@__const.main.arr_1 = [5 x i32] [i32 1, i32 200, i32 546, i32 90, i32 22]
@__const.main.arr_3 = [100 x i8] c"123 qwe asd\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [4 x i8] c"123\00"
@.str.1 = [4 x i8] c"qwe\00"
@.str.2 = [4 x i8] c"asd\00"
@.str.3 = [41 x i8] c"a = %d;\0A* ( p_0 = & a ) = %d;\0Ap_0 = %p;\0A\00"
@.str.4 = [54 x i8] c"\0Ap_0 = arr_0 = %p;\0A& arr_0 [ 0 ] = %p;\0A* p_0 = %d;\0A\00"
@.str.5 = [31 x i8] c"arr_0 [ %d ] = * p_0 ++ = %d;\0A\00"
@.str.6 = [20 x i8] c"\0Ap_0 = arr_1 = %p;\0A\00"
@.str.7 = [20 x i8] c"arr_2 [ %d ] = %d;\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca [5 x i32]
%7 = alloca [5 x i32]
%8 = alloca [100 x i32*]
%9 = alloca [100 x i8]
%10 = alloca [100 x i8*]
store i32 0, i32* %1
store i32 0, i32* %2
store i32 5, i32* %3
store i32* %3, i32** %4
%11 = bitcast [5 x i32]* %6 to i8*
%12 = bitcast [5 x i32]* %7 to i8*
%13 = bitcast [100 x i8]* %9 to i8*
%14 = bitcast [100 x i8*]* %10 to i8*
%15 = bitcast i8* %14 to <{ i8*, i8*, i8*, [97 x i8*] }>*
%16 = getelementptr inbounds <{ i8*, i8*, i8*, [97 x i8*] }>, <{ i8*, i8*, i8*, [97 x i8*] }>* %15, i32 0, i32 0
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8** %16
%17 = getelementptr inbounds <{ i8*, i8*, i8*, [97 x i8*] }>, <{ i8*, i8*, i8*, [97 x i8*] }>* %15, i32 0, i32 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8** %17
%18 = getelementptr inbounds <{ i8*, i8*, i8*, [97 x i8*] }>, <{ i8*, i8*, i8*, [97 x i8*] }>* %15, i32 0, i32 2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8** %18
%19 = load i32, i32* %3
%20 = load i32*, i32** %4
%21 = load i32, i32* %20
%22 = load i32*, i32** %4
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i32 %19, i32 %21, i32* %22)
%24 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 0
store i32* %24, i32** %4
%25 = load i32*, i32** %4
%26 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 0
%27 = load i32*, i32** %4
%28 = load i32, i32* %27
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0), i32* %25, i32* %26, i32 %28)
store i32 0, i32* %2
br label %30
30: ; preds = %39, %0
%31 = load i32, i32* %2
%32 = icmp slt i32 %31, 5
br i1 %32, label %33, label %42
33: ; preds = %30
%34 = load i32, i32* %2
%35 = load i32*, i32** %4
%36 = getelementptr inbounds i32, i32* %35, i32 1
store i32* %36, i32** %4
%37 = load i32, i32* %35
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 %34, i32 %37)
br label %39
39: ; preds = %33
%40 = load i32, i32* %2
%41 = add nsw i32 %40, 1
store i32 %41, i32* %2
br label %30
42: ; preds = %30
%43 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 0
store i32* %43, i32** %4
%44 = load i32*, i32** %4
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32* %44)
store i32 0, i32* %2
br label %46
46: ; preds = %63, %42
%47 = load i32, i32* %2
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 %48
%50 = load i32, i32* %49
%51 = icmp ne i32 %50, 0
br i1 %51, label %52, label %66
52: ; preds = %46
%53 = load i32, i32* %2
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 %54
%56 = load i32, i32* %55
%57 = sext i32 %56 to i64
%58 = inttoptr i64 %57 to i32*
%59 = getelementptr inbounds [100 x i32*], [100 x i32*]* %8, i64 0, i64 0
%60 = load i32, i32* %2
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i32*, i32** %59, i64 %61
store i32* %58, i32** %62
br label %63
63: ; preds = %52
%64 = load i32, i32* %2
%65 = add nsw i32 %64, 1
store i32 %65, i32* %2
br label %46
66: ; preds = %46
store i32 0, i32* %2
br label %67
67: ; preds = %80, %66
%68 = load i32, i32* %2
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [100 x i32*], [100 x i32*]* %8, i64 0, i64 %69
%71 = load i32*, i32** %70
%72 = icmp ne i32* %71, null
br i1 %72, label %73, label %83
73: ; preds = %67
%74 = load i32, i32* %2
%75 = load i32, i32* %2
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [100 x i32*], [100 x i32*]* %8, i64 0, i64 %76
%78 = load i32*, i32** %77
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %74, i32* %78)
br label %80
80: ; preds = %73
%81 = load i32, i32* %2
%82 = add nsw i32 %81, 1
store i32 %82, i32* %2
br label %67
83: ; preds = %67
%84 = load i32, i32* %1
ret i32 %84
}

LLVM IR (-O2):
@__const.main.arr_0 = [5 x i32] [i32 1, i32 2, i32 3, i32 5, i32 7]
@__const.main.arr_1 = [5 x i32] [i32 1, i32 200, i32 546, i32 90, i32 22]
@.str.3 = [41 x i8] c"a = %d;\0A* ( p_0 = & a ) = %d;\0Ap_0 = %p;\0A\00"
@.str.4 = [54 x i8] c"\0Ap_0 = arr_0 = %p;\0A& arr_0 [ 0 ] = %p;\0A* p_0 = %d;\0A\00"
@.str.5 = [31 x i8] c"arr_0 [ %d ] = * p_0 ++ = %d;\0A\00"
@.str.6 = [20 x i8] c"\0Ap_0 = arr_1 = %p;\0A\00"
@.str.7 = [20 x i8] c"arr_2 [ %d ] = %d;\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x i32]
%3 = alloca [5 x i32]
%4 = alloca [100 x i32*]
%5 = bitcast i32* %1 to i8*
store i32 5, i32* %1
%6 = bitcast [5 x i32]* %2 to i8*
%7 = bitcast [5 x i32]* %3 to i8*
%8 = bitcast [100 x i32*]* %4 to i8*
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i32 5, i32 5, i32* %1)
%10 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 0
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0), i32* %10, i32* %10, i32 1)
%12 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 1
%13 = load i32, i32* %10
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 %13)
%15 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 2
%16 = load i32, i32* %12
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 1, i32 %16)
%18 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 3
%19 = load i32, i32* %15
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 2, i32 %19)
%21 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 4
%22 = load i32, i32* %18
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 3, i32 %22)
%24 = load i32, i32* %21
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 4, i32 %24)
%26 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 0
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32* %26)
%28 = load i32, i32* %26
%29 = icmp ne i32 %28, 0
br label %34
30: ; preds = %34
%31 = getelementptr inbounds [100 x i32*], [100 x i32*]* %4, i64 0, i64 0
%32 = load i32*, i32** %31
%33 = icmp eq i32* %32, null
br i1 %33, label %53, label %44
34: ; preds = %0, %34
%35 = phi i64 [ %40, %34 ], [ 0, %0 ]
%36 = phi i32 [ %42, %34 ], [ %28, %0 ]
%37 = sext i32 %36 to i64
%38 = inttoptr i64 %37 to i32*
%39 = getelementptr inbounds [100 x i32*], [100 x i32*]* %4, i64 0, i64 %35
store i32* %38, i32** %39
%40 = add nuw nsw i64 %35, 1
%41 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 %40
%42 = load i32, i32* %41
%43 = icmp eq i32 %42, 0
br i1 %43, label %30, label %34
44: ; preds = %30, %44
%45 = phi i64 [ %49, %44 ], [ 0, %30 ]
%46 = phi i32* [ %51, %44 ], [ %32, %30 ]
%47 = trunc i64 %45 to i32
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %47, i32* %46)
%49 = add nuw i64 %45, 1
%50 = getelementptr inbounds [100 x i32*], [100 x i32*]* %4, i64 0, i64 %49
%51 = load i32*, i32** %50
%52 = icmp eq i32* %51, null
br i1 %52, label %53, label %44
53: ; preds = %44, %30
ret i32 0
}