int main() {
  static int array[10] = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100};
  int *pntr;
  int i;
  printf("\n *** Example of pointer arith *pntr++ *** \n");
  printf("Memory Loc	Array Element	Content \n");
  for (i = 0; i < 10; i++) {
    printf("%d		array[%d]	%d\n", &array[i], i, array[i]);
  }
  pntr = array;
  printf("\n****** Note efect of '*pntr++'  ******\n");
  printf("Before *pntr++	:   pntr = %15d		array = %d\n", pntr, array);
  printf("At *pntr++	:  *pntr = %15d\n", *pntr++);
  printf("After *pntr++	:  *pntr = %15d		pntr = %d\n", *pntr, pntr);
  pntr = array;
  printf("\n****** Note efect of '*(pntr++)'  ******\n");
  printf("Before *(pntr++)  :   pntr = %15d         array = %d\n", pntr, array);
  printf("At *(pntr++)      :  *pntr = %15d\n", *(pntr++));
  printf("After *(pntr++)   :  *pntr = %15d         pntr = %d\n", *pntr, pntr);
  pntr = array;
  printf("\n****** Note efect of '(*pntr)++'  ******\n");
  printf("Before (*pntr)++  :   pntr = %15d         array = %d\n", pntr, array);
  printf("At (*pntr)++      :  *pntr = %15d\n", (*pntr)++);
  printf("After (*pntr)++   :  *pntr = %15d         pntr = %d\n", *pntr, pntr);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jge    118b <main+0x7b>
movslq -0x14(%rbp),%rax
lea    0x2ed9(%rip),%rsi
shl    $0x2,%rax
add    %rax,%rsi
mov    -0x14(%rbp),%edx
movslq -0x14(%rbp),%rcx
lea    0x2ec4(%rip),%rax
mov    (%rax,%rcx,4),%ecx
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1142 <main+0x32>
lea    0x2e9e(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xedc(%rip),%rdi
lea    0x2e7a(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%esi
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rdx
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x2e35(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xef7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xf10(%rip),%rdi
lea    0x2e11(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%esi
lea    0xf20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rdx
lea    0xf2b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x2dcc(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xf47(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xf60(%rip),%rdi
lea    0x2da8(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
mov    %esi,%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
lea    0xf74(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
mov    -0x10(%rbp),%rdx
lea    0xf7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
lea    0x1074(%rip),%rdi
call   1030 <puts@plt>
lea    0x1094(%rip),%rdi
call   1030 <puts@plt>
mov    0x2efd(%rip),%ecx
lea    0x2ef6(%rip),%r15
lea    0xeaf(%rip),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2ede(%rip),%ecx
lea    0x2ed7(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2ec3(%rip),%ecx
lea    0x2ebc(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2eab(%rip),%ecx
lea    0x2ea4(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e93(%rip),%ecx
lea    0x2e8c(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e7b(%rip),%ecx
lea    0x2e74(%rip),%rsi
mov    %rbx,%rdi
mov    $0x5,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e63(%rip),%ecx
lea    0x2e5c(%rip),%rsi
mov    %rbx,%rdi
mov    $0x6,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e4b(%rip),%ecx
lea    0x2e44(%rip),%rsi
mov    %rbx,%rdi
mov    $0x7,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e33(%rip),%ecx
lea    0x2e2c(%rip),%rsi
mov    %rbx,%rdi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e1b(%rip),%ecx
lea    0x2e14(%rip),%rsi
mov    %rbx,%rdi
mov    $0x9,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf88(%rip),%rdi
call   1030 <puts@plt>
lea    0xda0(%rip),%rdi
mov    %r15,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dbb(%rip),%esi
lea    0xdb2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dab(%rip),%esi
lea    0xdba(%rip),%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf65(%rip),%rdi
call   1030 <puts@plt>
lea    0xdc7(%rip),%rdi
mov    %r15,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d70(%rip),%esi
lea    0xde3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d60(%rip),%esi
lea    0xdf2(%rip),%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf44(%rip),%rdi
call   1030 <puts@plt>
lea    0xe0a(%rip),%rdi
mov    %r15,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d25(%rip),%esi
lea    0x1(%rsi),%eax
mov    %eax,0x2d1c(%rip)
lea    0xe1d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d08(%rip),%esi
lea    0xe2c(%rip),%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@main.array = internal global [10 x i32] [i32 10, i32 20, i32 30, i32 40, i32 50, i32 60, i32 70, i32 80, i32 90, i32 100]
@.str = [45 x i8] c"\0A *** Example of pointer arith *pntr++ *** \0A\00"
@.str.1 = [35 x i8] c"Memory Loc\09Array Element\09Content \0A\00"
@.str.2 = [18 x i8] c"%d\09\09array[%d]\09%d\0A\00"
@.str.3 = [41 x i8] c"\0A****** Note efect of '*pntr++' ******\0A\00"
@.str.4 = [44 x i8] c"Before *pntr++\09: pntr = %15d\09\09array = %d\0A\00"
@.str.5 = [28 x i8] c"At *pntr++\09: *pntr = %15d\0A\00"
@.str.6 = [42 x i8] c"After *pntr++\09: *pntr = %15d\09\09pntr = %d\0A\00"
@.str.7 = [43 x i8] c"\0A****** Note efect of '*(pntr++)' ******\0A\00"
@.str.8 = [54 x i8] c"Before *(pntr++) : pntr = %15d array = %d\0A\00"
@.str.9 = [35 x i8] c"At *(pntr++) : *pntr = %15d\0A\00"
@.str.10 = [53 x i8] c"After *(pntr++) : *pntr = %15d pntr = %d\0A\00"
@.str.11 = [43 x i8] c"\0A****** Note efect of '(*pntr)++' ******\0A\00"
@.str.12 = [54 x i8] c"Before (*pntr)++ : pntr = %15d array = %d\0A\00"
@.str.13 = [35 x i8] c"At (*pntr)++ : *pntr = %15d\0A\00"
@.str.14 = [53 x i8] c"After (*pntr)++ : *pntr = %15d pntr = %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %6
6: ; preds = %19, %0
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 10
br i1 %8, label %9, label %22
9: ; preds = %6
%10 = load i32, i32* %3
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [10 x i32], [10 x i32]* @main.array, i64 0, i64 %11
%13 = load i32, i32* %3
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [10 x i32], [10 x i32]* @main.array, i64 0, i64 %15
%17 = load i32, i32* %16
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* %12, i32 %13, i32 %17)
br label %19
19: ; preds = %9
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 1
store i32 %21, i32* %3
br label %6
22: ; preds = %6
store i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0), i32** %2
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%24 = load i32*, i32** %2
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i32* %24, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0))
%26 = load i32*, i32** %2
%27 = getelementptr inbounds i32, i32* %26, i32 1
store i32* %27, i32** %2
%28 = load i32, i32* %26
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 %28)
%30 = load i32*, i32** %2
%31 = load i32, i32* %30
%32 = load i32*, i32** %2
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i32 %31, i32* %32)
store i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0), i32** %2
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%35 = load i32*, i32** %2
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0), i32* %35, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0))
%37 = load i32*, i32** %2
%38 = getelementptr inbounds i32, i32* %37, i32 1
store i32* %38, i32** %2
%39 = load i32, i32* %37
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), i32 %39)
%41 = load i32*, i32** %2
%42 = load i32, i32* %41
%43 = load i32*, i32** %2
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0), i32 %42, i32* %43)
store i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0), i32** %2
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%46 = load i32*, i32** %2
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0), i32* %46, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0))
%48 = load i32*, i32** %2
%49 = load i32, i32* %48
%50 = add nsw i32 %49, 1
store i32 %50, i32* %48
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0), i32 %49)
%52 = load i32*, i32** %2
%53 = load i32, i32* %52
%54 = load i32*, i32** %2
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0), i32 %53, i32* %54)
%56 = load i32, i32* %1
ret i32 %56
}

LLVM IR (-O2):
@main.array = internal global [10 x i32] [i32 10, i32 20, i32 30, i32 40, i32 50, i32 60, i32 70, i32 80, i32 90, i32 100]
@.str.2 = [18 x i8] c"%d\09\09array[%d]\09%d\0A\00"
@.str.4 = [44 x i8] c"Before *pntr++\09: pntr = %15d\09\09array = %d\0A\00"
@.str.5 = [28 x i8] c"At *pntr++\09: *pntr = %15d\0A\00"
@.str.6 = [42 x i8] c"After *pntr++\09: *pntr = %15d\09\09pntr = %d\0A\00"
@.str.8 = [54 x i8] c"Before *(pntr++) : pntr = %15d array = %d\0A\00"
@.str.9 = [35 x i8] c"At *(pntr++) : *pntr = %15d\0A\00"
@.str.10 = [53 x i8] c"After *(pntr++) : *pntr = %15d pntr = %d\0A\00"
@.str.12 = [54 x i8] c"Before (*pntr)++ : pntr = %15d array = %d\0A\00"
@.str.13 = [35 x i8] c"At (*pntr)++ : *pntr = %15d\0A\00"
@.str.14 = [53 x i8] c"After (*pntr)++ : *pntr = %15d pntr = %d\0A\00"
@str = [44 x i8] c"\0A *** Example of pointer arith *pntr++ *** \00"
@str.15 = [34 x i8] c"Memory Loc\09Array Element\09Content \00"
@str.16 = [40 x i8] c"\0A****** Note efect of '*pntr++' ******\00"
@str.17 = [42 x i8] c"\0A****** Note efect of '*(pntr++)' ******\00"
@str.18 = [42 x i8] c"\0A****** Note efect of '(*pntr)++' ******\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.15, i64 0, i64 0))
%3 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0), i32 0, i32 %3)
%5 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 1)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 1), i32 1, i32 %5)
%7 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 2)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 2), i32 2, i32 %7)
%9 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 3)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 3), i32 3, i32 %9)
%11 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 4)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 4), i32 4, i32 %11)
%13 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 5)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 5), i32 5, i32 %13)
%15 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 6)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 6), i32 6, i32 %15)
%17 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 7)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 7), i32 7, i32 %17)
%19 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 8)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 8), i32 8, i32 %19)
%21 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 9)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 9), i32 9, i32 %21)
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.16, i64 0, i64 0))
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0))
%25 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 %25)
%27 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 1)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i32 %27, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 1))
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.17, i64 0, i64 0))
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0))
%31 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0)
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), i32 %31)
%33 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 1)
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0), i32 %33, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 1))
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.18, i64 0, i64 0))
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.12, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0), i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0))
%37 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0)
%38 = add nsw i32 %37, 1
store i32 %38, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0)
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0), i32 %37)
%40 = load i32, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0)
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0), i32 %40, i32* getelementptr inbounds ([10 x i32], [10 x i32]* @main.array, i64 0, i64 0))
ret i32 0
}