#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*/ arrayPointerSample1();
int /*<<< orphan*/ arrayPointerSample2();
int /*<<< orphan*/ arrayPointerSample3();
int /*<<< orphan*/ arrayPointerSample4(int *);
int /*<<< orphan*/ inversionArr(int *, int);
int /*<<< orphan*/ multidimensionalArray();
int main() {
  arrayPointerSample1();
  arrayPointerSample2();
  arrayPointerSample3();
  int arr5[] = {1, 2, 3, 4, 5};
  arrayPointerSample4(arr5);
  int arr6[] = {1, 2, 3, 4, 5, 8, 111};
  inversionArr(arr6, 7);
  multidimensionalArray();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    $0x0,%al
call   1050 <arrayPointerSample1@plt>
mov    $0x0,%al
call   1070 <arrayPointerSample2@plt>
mov    $0x0,%al
call   1060 <arrayPointerSample3@plt>
mov    0xe7c(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe79(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xe77(%rip),%eax
mov    %eax,-0x10(%rbp)
lea    -0x20(%rbp),%rdi
call   1080 <arrayPointerSample4@plt>
mov    0xe74(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xe71(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe6e(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xe6c(%rip),%eax
mov    %eax,-0x28(%rbp)
lea    -0x40(%rbp),%rdi
mov    $0x7,%esi
call   1040 <inversionArr@plt>
mov    $0x0,%al
call   1030 <multidimensionalArray@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
xor    %eax,%eax
call   1050 <arrayPointerSample1@plt>
xor    %eax,%eax
call   1070 <arrayPointerSample2@plt>
xor    %eax,%eax
call   1060 <arrayPointerSample3@plt>
mov    0xe91(%rip),%eax
mov    %eax,0x10(%rsp)
movaps 0xe76(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
call   1080 <arrayPointerSample4@plt>
movups 0xe8f(%rip),%xmm0
movups %xmm0,0x2c(%rsp)
movaps 0xe77(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0x20(%rsp),%rdi
mov    $0x7,%esi
call   1040 <inversionArr@plt>
xor    %eax,%eax
call   1030 <multidimensionalArray@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@__const.main.arr5 = [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5]
@__const.main.arr6 = [7 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 8, i32 111]
define i32 @main() {
%1 = alloca [5 x i32]
%2 = alloca [7 x i32]
%3 = call i32 (...) @arrayPointerSample1()
%4 = call i32 (...) @arrayPointerSample2()
%5 = call i32 (...) @arrayPointerSample3()
%6 = bitcast [5 x i32]* %1 to i8*
%7 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%8 = call i32 @arrayPointerSample4(i32* %7)
%9 = bitcast [7 x i32]* %2 to i8*
%10 = getelementptr inbounds [7 x i32], [7 x i32]* %2, i64 0, i64 0
%11 = call i32 @inversionArr(i32* %10, i32 7)
%12 = call i32 (...) @multidimensionalArray()
ret i32 0
}

LLVM IR (-O2):
@__const.main.arr5 = [5 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5]
@__const.main.arr6 = [7 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 8, i32 111]
define i32 @main() {
%1 = alloca [5 x i32]
%2 = alloca [7 x i32]
%3 = tail call i32 (...) @arrayPointerSample1()
%4 = tail call i32 (...) @arrayPointerSample2()
%5 = tail call i32 (...) @arrayPointerSample3()
%6 = bitcast [5 x i32]* %1 to i8*
%7 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%8 = call i32 @arrayPointerSample4(i32* %7)
%9 = bitcast [7 x i32]* %2 to i8*
%10 = getelementptr inbounds [7 x i32], [7 x i32]* %2, i64 0, i64 0
%11 = call i32 @inversionArr(i32* %10, i32 7)
%12 = call i32 (...) @multidimensionalArray()
ret i32 0
}