#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ ptr;
typedef int /*<<< orphan*/ arr;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int arr[] = {200, 400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000};
  int *ptr = arr;
  printf("arr[0]: %p\n ", &arr[0]);
  printf("arr[1]: %p\n ", &arr[1]);
  printf("arr[2]: %p\n ", &arr[2]);
  printf("arr[3]: %p\n ", &arr[3]);
  printf("arr[4]: %p\n ", &arr[4]);
  printf("arr[5]: %p\n ", &arr[5]);
  printf("arr[6]: %p\n ", &arr[6]);
  printf("arr[7]: %p\n ", &arr[7]);
  printf("arr[8]: %p\n ", &arr[8]);
  printf("arr[9]: %p\n ", &arr[9]);
  printf("sizeof(ptr) %ld\n", sizeof(ptr));
  printf("sizeof(arr[0]) %ld\n", sizeof(arr[0]));
  printf("arr %p\n", arr);
  printf("ptr %p\n", ptr);
  printf("arr[1] %p\n", &arr[1]);
  printf("arr[9] %p\n", &arr[9]);
  printf("&ptr %p\n", &ptr);
  ptr++;
  printf("*ptr %i\n", *ptr);
  printf("ptr %p\n", ptr);
  *++ptr;
  printf("*++ptr %i\n", *ptr);
  printf("ptr %p\n", ptr);
  *ptr++;
  printf("*ptr++ %i\n", *ptr);
  printf("ptr %p\n", ptr);
  ptr = arr;
  printf("*++ptr %i\n", *++ptr);
  printf("ptr %p\n", ptr);
  printf("*ptr++ %i\n", *ptr++);
  printf("ptr %p\n", ptr);
  ptr = arr;
  *ptr += 1;
  printf("*ptr %i\n", *ptr);
  printf("ptr %p\n", ptr);
  printf("*(ptr+1) %i\n", *(ptr + 1));
  ptr = arr;
  *(arr + 2) = *ptr + 100;
  printf("*(arr+2) %i\n", *(arr + 2));
  ptr = arr + 5;
  printf("*ptr %i\n", *ptr);
  printf("ptr %p\n", ptr);
  ptr = arr;
  arr[2] = *(ptr + 5);
  printf("arr[2] %i\n", arr[2]);
  ptr = (arr + 10);
  printf("ptr %p\n", ptr);
  printf("*ptr %i\n", *ptr);
  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>
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    -0x30(%rbp),%rsi
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
add    $0x4,%rsi
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
add    $0x8,%rsi
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
add    $0xc,%rsi
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
add    $0x10,%rsi
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
add    $0x14,%rsi
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
add    $0x18,%rsi
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
add    $0x1c,%rsi
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
add    $0x20,%rsi
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
add    $0x24,%rsi
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7f(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7d(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
add    $0x4,%rsi
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
add    $0x24,%rsi
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4c(%rip),%rdi
lea    -0x38(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%esi
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%esi
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%esi
lea    0xde1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x38(%rbp)
mov    0x4(%rax),%esi
lea    0xd9c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xd79(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x38(%rbp)
mov    (%rax),%esi
lea    0xd76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xd48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
mov    -0x38(%rbp),%rax
mov    (%rax),%esi
lea    0xd29(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xd0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
mov    0x4(%rax),%esi
lea    0xd21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%eax
add    $0x64,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%esi
lea    0xd09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rax
add    $0x14,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    (%rax),%esi
lea    0xcbd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xca3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    0x14(%rax),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%esi
lea    0xcc1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rax
add    $0x28,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0xc62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
mov    (%rax),%esi
lea    0xc56(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
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    $0x38,%rsp
mov    0xefb(%rip),%rax
mov    %rax,0x30(%rsp)
movaps 0xedf(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xec3(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0x30(%rsp),%r13
lea    0x20(%rsp),%rbx
lea    0x10(%rsp),%r15
mov    %r15,0x8(%rsp)
lea    0xecb(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x14(%rsp),%r12
lea    0xec2(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x18(%rsp),%rsi
lea    0xeb9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x1c(%rsp),%rsi
lea    0xeb3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x24(%rsp),%rsi
lea    0xea9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x28(%rsp),%rsi
lea    0xea3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x2c(%rsp),%rsi
lea    0xe9d(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe9c(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x34(%rsp),%r13
lea    0xe93(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe8f(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe8d(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe8e(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rsi
lea    0xe97(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe6f(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe69(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe63(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rax
lea    0x4(%rax),%rcx
mov    %rcx,0x8(%rsp)
mov    0x4(%rax),%esi
lea    0xe48(%rip),%r13
mov    %r13,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rax
lea    0x4(%rax),%rcx
mov    %rcx,0x8(%rsp)
mov    0x4(%rax),%esi
lea    0xe20(%rip),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rax
lea    0x4(%rax),%rcx
mov    %rcx,0x8(%rsp)
mov    0x4(%rax),%esi
lea    0xdfa(%rip),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r12,0x8(%rsp)
mov    0x14(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rax
lea    0x4(%rax),%rcx
mov    %rcx,0x8(%rsp)
mov    (%rax),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,0x8(%rsp)
mov    0x10(%rsp),%esi
add    $0x1,%esi
mov    %esi,0x10(%rsp)
mov    %r13,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rax
mov    0x4(%rax),%esi
lea    0xd69(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,0x8(%rsp)
mov    0x10(%rsp),%esi
add    $0x64,%esi
mov    %esi,0x18(%rsp)
lea    0xd58(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x24(%rsp),%rax
mov    %rax,0x8(%rsp)
mov    0x24(%rsp),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r15,0x8(%rsp)
mov    0x24(%rsp),%esi
mov    %esi,0x18(%rsp)
lea    0xd23(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x38(%rsp),%rsi
mov    %rsi,0x8(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rax
mov    (%rax),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.arr = [10 x i32] [i32 200, i32 400, i32 600, i32 800, i32 1000, i32 1200, i32 1400, i32 1600, i32 1800, i32 2000]
@.str = [13 x i8] c"arr[0]: %p\0A \00"
@.str.1 = [13 x i8] c"arr[1]: %p\0A \00"
@.str.2 = [13 x i8] c"arr[2]: %p\0A \00"
@.str.3 = [13 x i8] c"arr[3]: %p\0A \00"
@.str.4 = [13 x i8] c"arr[4]: %p\0A \00"
@.str.5 = [13 x i8] c"arr[5]: %p\0A \00"
@.str.6 = [13 x i8] c"arr[6]: %p\0A \00"
@.str.7 = [13 x i8] c"arr[7]: %p\0A \00"
@.str.8 = [13 x i8] c"arr[8]: %p\0A \00"
@.str.9 = [13 x i8] c"arr[9]: %p\0A \00"
@.str.10 = [17 x i8] c"sizeof(ptr) %ld\0A\00"
@.str.11 = [20 x i8] c"sizeof(arr[0]) %ld\0A\00"
@.str.12 = [8 x i8] c"arr %p\0A\00"
@.str.13 = [8 x i8] c"ptr %p\0A\00"
@.str.14 = [11 x i8] c"arr[1] %p\0A\00"
@.str.15 = [11 x i8] c"arr[9] %p\0A\00"
@.str.16 = [9 x i8] c"&ptr %p\0A\00"
@.str.17 = [9 x i8] c"*ptr %i\0A\00"
@.str.18 = [11 x i8] c"*++ptr %i\0A\00"
@.str.19 = [11 x i8] c"*ptr++ %i\0A\00"
@.str.20 = [13 x i8] c"*(ptr+1) %i\0A\00"
@.str.21 = [13 x i8] c"*(arr+2) %i\0A\00"
@.str.22 = [11 x i8] c"arr[2] %i\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32*
store i32 0, i32* %1
%4 = bitcast [10 x i32]* %2 to i8*
%5 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
store i32* %5, i32** %3
%6 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32* %6)
%8 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32* %10)
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 3
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32* %12)
%14 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 4
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32* %14)
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 5
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32* %16)
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 6
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32* %18)
%20 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 7
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i32* %20)
%22 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 8
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32* %22)
%24 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 9
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32* %24)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i64 8)
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0), i64 4)
%28 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i32* %28)
%30 = load i32*, i32** %3
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %30)
%32 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 1
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32* %32)
%34 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 9
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), i32* %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), i32** %3)
%37 = load i32*, i32** %3
%38 = getelementptr inbounds i32, i32* %37, i32 1
store i32* %38, i32** %3
%39 = load i32*, i32** %3
%40 = load i32, i32* %39
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 %40)
%42 = load i32*, i32** %3
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %42)
%44 = load i32*, i32** %3
%45 = getelementptr inbounds i32, i32* %44, i32 1
store i32* %45, i32** %3
%46 = load i32, i32* %45
%47 = load i32*, i32** %3
%48 = load i32, i32* %47
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0), i32 %48)
%50 = load i32*, i32** %3
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %50)
%52 = load i32*, i32** %3
%53 = getelementptr inbounds i32, i32* %52, i32 1
store i32* %53, i32** %3
%54 = load i32, i32* %52
%55 = load i32*, i32** %3
%56 = load i32, i32* %55
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0), i32 %56)
%58 = load i32*, i32** %3
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %58)
%60 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
store i32* %60, i32** %3
%61 = load i32*, i32** %3
%62 = getelementptr inbounds i32, i32* %61, i32 1
store i32* %62, i32** %3
%63 = load i32, i32* %62
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0), i32 %63)
%65 = load i32*, i32** %3
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %65)
%67 = load i32*, i32** %3
%68 = getelementptr inbounds i32, i32* %67, i32 1
store i32* %68, i32** %3
%69 = load i32, i32* %67
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0), i32 %69)
%71 = load i32*, i32** %3
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %71)
%73 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
store i32* %73, i32** %3
%74 = load i32*, i32** %3
%75 = load i32, i32* %74
%76 = add nsw i32 %75, 1
store i32 %76, i32* %74
%77 = load i32*, i32** %3
%78 = load i32, i32* %77
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 %78)
%80 = load i32*, i32** %3
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %80)
%82 = load i32*, i32** %3
%83 = getelementptr inbounds i32, i32* %82, i64 1
%84 = load i32, i32* %83
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i32 %84)
%86 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
store i32* %86, i32** %3
%87 = load i32*, i32** %3
%88 = load i32, i32* %87
%89 = add nsw i32 %88, 100
%90 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%91 = getelementptr inbounds i32, i32* %90, i64 2
store i32 %89, i32* %91
%92 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%93 = getelementptr inbounds i32, i32* %92, i64 2
%94 = load i32, i32* %93
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0), i32 %94)
%96 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%97 = getelementptr inbounds i32, i32* %96, i64 5
store i32* %97, i32** %3
%98 = load i32*, i32** %3
%99 = load i32, i32* %98
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 %99)
%101 = load i32*, i32** %3
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %101)
%103 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
store i32* %103, i32** %3
%104 = load i32*, i32** %3
%105 = getelementptr inbounds i32, i32* %104, i64 5
%106 = load i32, i32* %105
%107 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 2
store i32 %106, i32* %107
%108 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 2
%109 = load i32, i32* %108
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.22, i64 0, i64 0), i32 %109)
%111 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%112 = getelementptr inbounds i32, i32* %111, i64 10
store i32* %112, i32** %3
%113 = load i32*, i32** %3
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %113)
%115 = load i32*, i32** %3
%116 = load i32, i32* %115
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 %116)
ret i32 0
}

LLVM IR (-O2):
@__const.main.arr = [10 x i32] [i32 200, i32 400, i32 600, i32 800, i32 1000, i32 1200, i32 1400, i32 1600, i32 1800, i32 2000]
@.str = [13 x i8] c"arr[0]: %p\0A \00"
@.str.1 = [13 x i8] c"arr[1]: %p\0A \00"
@.str.2 = [13 x i8] c"arr[2]: %p\0A \00"
@.str.3 = [13 x i8] c"arr[3]: %p\0A \00"
@.str.4 = [13 x i8] c"arr[4]: %p\0A \00"
@.str.5 = [13 x i8] c"arr[5]: %p\0A \00"
@.str.6 = [13 x i8] c"arr[6]: %p\0A \00"
@.str.7 = [13 x i8] c"arr[7]: %p\0A \00"
@.str.8 = [13 x i8] c"arr[8]: %p\0A \00"
@.str.9 = [13 x i8] c"arr[9]: %p\0A \00"
@.str.10 = [17 x i8] c"sizeof(ptr) %ld\0A\00"
@.str.11 = [20 x i8] c"sizeof(arr[0]) %ld\0A\00"
@.str.12 = [8 x i8] c"arr %p\0A\00"
@.str.13 = [8 x i8] c"ptr %p\0A\00"
@.str.14 = [11 x i8] c"arr[1] %p\0A\00"
@.str.15 = [11 x i8] c"arr[9] %p\0A\00"
@.str.16 = [9 x i8] c"&ptr %p\0A\00"
@.str.17 = [9 x i8] c"*ptr %i\0A\00"
@.str.18 = [11 x i8] c"*++ptr %i\0A\00"
@.str.19 = [11 x i8] c"*ptr++ %i\0A\00"
@.str.20 = [13 x i8] c"*(ptr+1) %i\0A\00"
@.str.21 = [13 x i8] c"*(arr+2) %i\0A\00"
@.str.22 = [11 x i8] c"arr[2] %i\0A\00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = alloca i32*
%3 = bitcast [10 x i32]* %1 to i8*
%4 = bitcast i32** %2 to i8*
%5 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
store i32* %5, i32** %2
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32* %5)
%7 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%9 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32* %9)
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32* %11)
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32* %13)
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32* %15)
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32* %17)
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i32* %19)
%21 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32* %21)
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32* %23)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i64 8)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0), i64 4)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i32* %5)
%28 = load i32*, i32** %2
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %28)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32* %7)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), i32* %23)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), i32** %2)
%33 = load i32*, i32** %2
%34 = getelementptr inbounds i32, i32* %33, i64 1
store i32* %34, i32** %2
%35 = load i32, i32* %34
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 %35)
%37 = load i32*, i32** %2
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %37)
%39 = load i32*, i32** %2
%40 = getelementptr inbounds i32, i32* %39, i64 1
store i32* %40, i32** %2
%41 = load i32, i32* %40
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0), i32 %41)
%43 = load i32*, i32** %2
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %43)
%45 = load i32*, i32** %2
%46 = getelementptr inbounds i32, i32* %45, i64 1
store i32* %46, i32** %2
%47 = load i32, i32* %46
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0), i32 %47)
%49 = load i32*, i32** %2
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %49)
store i32* %7, i32** %2
%51 = load i32, i32* %7
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.18, i64 0, i64 0), i32 %51)
%53 = load i32*, i32** %2
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %53)
%55 = load i32*, i32** %2
%56 = getelementptr inbounds i32, i32* %55, i64 1
store i32* %56, i32** %2
%57 = load i32, i32* %55
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.19, i64 0, i64 0), i32 %57)
%59 = load i32*, i32** %2
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %59)
store i32* %5, i32** %2
%61 = load i32, i32* %5
%62 = add nsw i32 %61, 1
store i32 %62, i32* %5
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 %62)
%64 = load i32*, i32** %2
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %64)
%66 = load i32*, i32** %2
%67 = getelementptr inbounds i32, i32* %66, i64 1
%68 = load i32, i32* %67
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i32 %68)
store i32* %5, i32** %2
%70 = load i32, i32* %5
%71 = add nsw i32 %70, 100
store i32 %71, i32* %9
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0), i32 %71)
store i32* %15, i32** %2
%73 = load i32, i32* %15
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 %73)
%75 = load i32*, i32** %2
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %75)
store i32* %5, i32** %2
%77 = load i32, i32* %15
store i32 %77, i32* %9
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.22, i64 0, i64 0), i32 %77)
%79 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 10
store i32* %79, i32** %2
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i32* %79)
%81 = load i32*, i32** %2
%82 = load i32, i32* %81
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0), i32 %82)
ret i32 0
}