#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 */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, int, int);
int main(int argc, const char *argv[]) {
  int numberElenments = 5;
  int iterator = 0;
  int values[] = {60, 70, 80, 90, 100};
  int *valuesArrayRf = values;
  int valuesArray[] = {10, 20, 30, 40, 50};
  int array[5] = {19, 10, 8, 17, 9};
  while (iterator < numberElenments) {
    printf("Array = %s; element[%i] = %i\n", "valuesArray", iterator,
           valuesArray[iterator]);
    printf("Array = %s; element[%i] = %i\n", "values", iterator,
           valuesArrayRf[iterator]);
    printf("Array = %s; element[%i] = %i\n", "array", iterator,
           array[iterator]);
    iterator++;
  }
  iterator = 0;
  do {
    printf("Array = %s; element[%i] = %i\n", "valuesArray", iterator,
           valuesArray[iterator]);
    printf("Array = %s; element[%i] = %i\n", "values", iterator,
           valuesArrayRf[iterator]);
    printf("Array = %s; element[%i] = %i\n", "array", iterator,
           array[iterator]);
    iterator++;
  } while (iterator < numberElenments);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x5,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    0xec5(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xec2(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xec0(%rip),%eax
mov    %eax,-0x20(%rbp)
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xeb9(%rip),%eax
mov    %eax,-0x40(%rbp)
mov    0xebf(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xebc(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xeba(%rip),%eax
mov    %eax,-0x60(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1210 <main+0x100>
mov    -0x18(%rbp),%edx
movslq -0x18(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%ecx
lea    0xe9d(%rip),%rdi
lea    0xeb4(%rip),%rsi
call   1030 <printf@plt>
mov    -0x18(%rbp),%edx
mov    -0x38(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
lea    0xe7c(%rip),%rdi
lea    0xe9f(%rip),%rsi
call   1030 <printf@plt>
mov    -0x18(%rbp),%edx
movslq -0x18(%rbp),%rax
mov    -0x70(%rbp,%rax,4),%ecx
lea    0xe5e(%rip),%rdi
lea    0xe88(%rip),%rsi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1199 <main+0x89>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%edx
movslq -0x18(%rbp),%rax
mov    -0x50(%rbp,%rax,4),%ecx
lea    0xe2b(%rip),%rdi
lea    0xe42(%rip),%rsi
call   1030 <printf@plt>
mov    -0x18(%rbp),%edx
mov    -0x38(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
lea    0xe0a(%rip),%rdi
lea    0xe2d(%rip),%rsi
call   1030 <printf@plt>
mov    -0x18(%rbp),%edx
movslq -0x18(%rbp),%rax
mov    -0x70(%rbp,%rax,4),%ecx
lea    0xdec(%rip),%rdi
lea    0xe16(%rip),%rsi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jl     1217 <main+0x107>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xee1(%rip),%rbx
lea    0xef8(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %edx,%edx
mov    $0xa,%ecx
call   1030 <printf@plt>
lea    0xeeb(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0x3c,%ecx
call   1030 <printf@plt>
lea    0xed9(%rip),%r12
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %edx,%edx
mov    $0x13,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x1,%edx
mov    $0x14,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x1,%edx
mov    $0x46,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x1,%edx
mov    $0xa,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x2,%edx
mov    $0x1e,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x2,%edx
mov    $0x50,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x2,%edx
mov    $0x8,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x3,%edx
mov    $0x28,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x3,%edx
mov    $0x5a,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x3,%edx
mov    $0x11,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x4,%edx
mov    $0x32,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x4,%edx
mov    $0x64,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x4,%edx
mov    $0x9,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %edx,%edx
mov    $0xa,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %edx,%edx
mov    $0x3c,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %edx,%edx
mov    $0x13,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x1,%edx
mov    $0x14,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x1,%edx
mov    $0x46,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x1,%edx
mov    $0xa,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x2,%edx
mov    $0x1e,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x2,%edx
mov    $0x50,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x2,%edx
mov    $0x8,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x3,%edx
mov    $0x28,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x3,%edx
mov    $0x5a,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x3,%edx
mov    $0x11,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x4,%edx
mov    $0x32,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x4,%edx
mov    $0x64,%ecx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x4,%edx
mov    $0x9,%ecx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.values = [5 x i32] [i32 60, i32 70, i32 80, i32 90, i32 100]
@__const.main.valuesArray = [5 x i32] [i32 10, i32 20, i32 30, i32 40, i32 50]
@__const.main.array = [5 x i32] [i32 19, i32 10, i32 8, i32 17, i32 9]
@.str = [30 x i8] c"Array = %s; element[%i] = %i\0A\00"
@.str.1 = [12 x i8] c"valuesArray\00"
@.str.2 = [7 x i8] c"values\00"
@.str.3 = [6 x i8] c"array\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [5 x i32]
%9 = alloca i32*
%10 = alloca [5 x i32]
%11 = alloca [5 x i32]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 5, i32* %6
store i32 0, i32* %7
%12 = bitcast [5 x i32]* %8 to i8*
%13 = getelementptr inbounds [5 x i32], [5 x i32]* %8, i64 0, i64 0
store i32* %13, i32** %9
%14 = bitcast [5 x i32]* %10 to i8*
%15 = bitcast [5 x i32]* %11 to i8*
br label %16
16: ; preds = %20, %2
%17 = load i32, i32* %7
%18 = load i32, i32* %6
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %42
20: ; preds = %16
%21 = load i32, i32* %7
%22 = load i32, i32* %7
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [5 x i32], [5 x i32]* %10, i64 0, i64 %23
%25 = load i32, i32* %24
%26 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %21, i32 %25)
%27 = load i32, i32* %7
%28 = load i32*, i32** %9
%29 = load i32, i32* %7
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, i32* %28, i64 %30
%32 = load i32, i32* %31
%33 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %27, i32 %32)
%34 = load i32, i32* %7
%35 = load i32, i32* %7
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [5 x i32], [5 x i32]* %11, i64 0, i64 %36
%38 = load i32, i32* %37
%39 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %34, i32 %38)
%40 = load i32, i32* %7
%41 = add nsw i32 %40, 1
store i32 %41, i32* %7
br label %16
42: ; preds = %16
store i32 0, i32* %7
br label %43
43: ; preds = %65, %42
%44 = load i32, i32* %7
%45 = load i32, i32* %7
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [5 x i32], [5 x i32]* %10, i64 0, i64 %46
%48 = load i32, i32* %47
%49 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 %44, i32 %48)
%50 = load i32, i32* %7
%51 = load i32*, i32** %9
%52 = load i32, i32* %7
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, i32* %51, i64 %53
%55 = load i32, i32* %54
%56 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %50, i32 %55)
%57 = load i32, i32* %7
%58 = load i32, i32* %7
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [5 x i32], [5 x i32]* %11, i64 0, i64 %59
%61 = load i32, i32* %60
%62 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %57, i32 %61)
%63 = load i32, i32* %7
%64 = add nsw i32 %63, 1
store i32 %64, i32* %7
br label %65
65: ; preds = %43
%66 = load i32, i32* %7
%67 = load i32, i32* %6
%68 = icmp slt i32 %66, %67
br i1 %68, label %43, label %69
69: ; preds = %65
ret i32 0
}

LLVM IR (-O2):
@.str = [30 x i8] c"Array = %s; element[%i] = %i\0A\00"
@.str.1 = [12 x i8] c"valuesArray\00"
@.str.2 = [7 x i8] c"values\00"
@.str.3 = [6 x i8] c"array\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 10)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 60)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 19)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 20)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 70)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 10)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 30)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 2, i32 80)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 2, i32 8)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 40)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 3, i32 90)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 3, i32 17)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 50)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 4, i32 100)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 4, i32 9)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 0, i32 10)
%19 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 60)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 0, i32 19)
%21 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 1, i32 20)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 70)
%23 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 10)
%24 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 2, i32 30)
%25 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 2, i32 80)
%26 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 2, i32 8)
%27 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 3, i32 40)
%28 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 3, i32 90)
%29 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 3, i32 17)
%30 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 50)
%31 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 4, i32 100)
%32 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 4, i32 9)
ret i32 0
}