#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 EXIT_SUCCESS;
int /*<<< orphan*/ contestTable(int *, int, int, int /*<<< orphan*/,
                                int /*<<< orphan*/);
int /*<<< orphan*/ printArray(int *, int, int);
int main(void) {
  int dataSize = 8;
  int data[8][8] = {{1, 2, 3, 4, 5, 6, 7, 8}};
  printArray(*data, dataSize, dataSize);
  contestTable(*data, dataSize, dataSize, 0, 0);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x8,-0x8(%rbp)
lea    -0x110(%rbp),%rdi
lea    0xea9(%rip),%rsi
mov    $0x100,%edx
call   1040 <memcpy@plt>
lea    -0x110(%rbp),%rdi
mov    -0x8(%rbp),%esi
mov    -0x8(%rbp),%edx
call   1050 <printArray@plt>
lea    -0x110(%rbp),%rdi
mov    -0x8(%rbp),%esi
mov    -0x8(%rbp),%edx
xor    %r8d,%r8d
mov    %r8d,%ecx
call   1030 <contestTable@plt>
mov    0x2e4e(%rip),%rax
mov    (%rax),%eax
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x100,%rsp
lea    0xec1(%rip),%rsi
mov    %rsp,%rbx
mov    $0x100,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x8,%edx
call   1050 <printArray@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0x8,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
call   1030 <contestTable@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%eax
add    $0x100,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.data = [8 x [8 x i32]] [[8 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8], [8 x i32] zeroinitializer, [8 x i32] zeroinitializer, [8 x i32] zeroinitializer, [8 x i32] zeroinitializer, [8 x i32] zeroinitializer, [8 x i32] zeroinitializer, [8 x i32] zeroinitializer]
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [8 x [8 x i32]]
store i32 0, i32* %1
store i32 8, i32* %2
%4 = bitcast [8 x [8 x i32]]* %3 to i8*
%5 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %3, i64 0, i64 0
%6 = getelementptr inbounds [8 x i32], [8 x i32]* %5, i64 0, i64 0
%7 = load i32, i32* %2
%8 = load i32, i32* %2
%9 = call i32 @printArray(i32* %6, i32 %7, i32 %8)
%10 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %3, i64 0, i64 0
%11 = getelementptr inbounds [8 x i32], [8 x i32]* %10, i64 0, i64 0
%12 = load i32, i32* %2
%13 = load i32, i32* %2
%14 = call i32 @contestTable(i32* %11, i32 %12, i32 %13, i32 0, i32 0)
%15 = load i32, i32* @EXIT_SUCCESS
ret i32 %15
}

LLVM IR (-O2):
@__const.main.data = [8 x [8 x i32]] [[8 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8], [8 x i32] zeroinitializer, [8 x i32] zeroinitializer, [8 x i32] zeroinitializer, [8 x i32] zeroinitializer, [8 x i32] zeroinitializer, [8 x i32] zeroinitializer, [8 x i32] zeroinitializer]
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca [8 x [8 x i32]]
%2 = bitcast [8 x [8 x i32]]* %1 to i8*
%3 = getelementptr inbounds [8 x [8 x i32]], [8 x [8 x i32]]* %1, i64 0, i64 0, i64 0
%4 = call i32 @printArray(i32* %3, i32 8, i32 8)
%5 = call i32 @contestTable(i32* %3, i32 8, i32 8, i32 0, i32 0)
%6 = load i32, i32* @EXIT_SUCCESS
ret i32 %6
}