#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*/ displayMax(int **);
main() {
  int val[10][20] = {
      {4, 6, 7, 43, 56, 23, 4, 5, 4, 37, 79, 2, 5, 55, 6, 3, 5, 7, 8, 34},
      {4, 5, 5, 6, 7, 8, 6, 4, 6, 7, 43, 56, 23, 4, 5, 4, 3, 7, 9, 2},
      {5, 5, 6, 3, 5, 7, 8, 3, 4, 1, 4, 5, 5, 6, 7, 8, 6, 4, 6, 7},
      {43, 56, 23, 4, 5, 4, 3, 7, 9, 2, 5, 5, 6, 3, 5, 7, 8, 3, 4, 14},
      {4, 5, 5, 6, 7, 8, 6, 4, 6, 7, 43, 56, 23, 4, 5, 4, 3, 7, 9, 2},
      {5, 5, 6, 3, 5, 7, 8, 3, 4, 1, 4, 5, 5, 6, 7, 8, 6, 4, 6, 7},
      {4, 5, 5, 6, 7, 8, 6, 4, 6, 7, 43, 56, 23, 4, 5, 4, 3, 7, 9, 2},
      {5, 5, 6, 3, 5, 7, 8, 3, 4, 1, 4, 5, 5, 6, 7, 8, 6, 4, 6, 7},
      {5, 5, 6, 3, 5, 7, 8, 3, 4, 1, 4, 5, 5, 6, 7, 8, 6, 4, 6, 7},
      {43, 56, 23, 4, 5, 4, 3, 7, 9, 2, 5, 5, 96, 3, 5, 7, 8, 3, 4, 14}};
  displayMax(val);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x330,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x330(%rbp),%rdi
lea    0xec0(%rip),%rsi
mov    $0x320,%edx
call   1040 <memcpy@plt>
lea    -0x330(%rbp),%rdi
call   1030 <displayMax@plt>
xor    %eax,%eax
add    $0x330,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x320,%rsp
lea    0xed1(%rip),%rsi
mov    %rsp,%rbx
mov    $0x320,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
mov    %rbx,%rdi
call   1030 <displayMax@plt>
xor    %eax,%eax
add    $0x320,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.val = [10 x [20 x i32]] [[20 x i32] [i32 4, i32 6, i32 7, i32 43, i32 56, i32 23, i32 4, i32 5, i32 4, i32 37, i32 79, i32 2, i32 5, i32 55, i32 6, i32 3, i32 5, i32 7, i32 8, i32 34], [20 x i32] [i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7, i32 43, i32 56, i32 23, i32 4, i32 5, i32 4, i32 3, i32 7, i32 9, i32 2], [20 x i32] [i32 5, i32 5, i32 6, i32 3, i32 5, i32 7, i32 8, i32 3, i32 4, i32 1, i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7], [20 x i32] [i32 43, i32 56, i32 23, i32 4, i32 5, i32 4, i32 3, i32 7, i32 9, i32 2, i32 5, i32 5, i32 6, i32 3, i32 5, i32 7, i32 8, i32 3, i32 4, i32 14], [20 x i32] [i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7, i32 43, i32 56, i32 23, i32 4, i32 5, i32 4, i32 3, i32 7, i32 9, i32 2], [20 x i32] [i32 5, i32 5, i32 6, i32 3, i32 5, i32 7, i32 8, i32 3, i32 4, i32 1, i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7], [20 x i32] [i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7, i32 43, i32 56, i32 23, i32 4, i32 5, i32 4, i32 3, i32 7, i32 9, i32 2], [20 x i32] [i32 5, i32 5, i32 6, i32 3, i32 5, i32 7, i32 8, i32 3, i32 4, i32 1, i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7], [20 x i32] [i32 5, i32 5, i32 6, i32 3, i32 5, i32 7, i32 8, i32 3, i32 4, i32 1, i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7], [20 x i32] [i32 43, i32 56, i32 23, i32 4, i32 5, i32 4, i32 3, i32 7, i32 9, i32 2, i32 5, i32 5, i32 96, i32 3, i32 5, i32 7, i32 8, i32 3, i32 4, i32 14]]
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x [20 x i32]]
store i32 0, i32* %1
%3 = bitcast [10 x [20 x i32]]* %2 to i8*
%4 = getelementptr inbounds [10 x [20 x i32]], [10 x [20 x i32]]* %2, i64 0, i64 0
%5 = bitcast [20 x i32]* %4 to i32**
%6 = call i32 @displayMax(i32** %5)
ret i32 0
}

LLVM IR (-O2):
@__const.main.val = [10 x [20 x i32]] [[20 x i32] [i32 4, i32 6, i32 7, i32 43, i32 56, i32 23, i32 4, i32 5, i32 4, i32 37, i32 79, i32 2, i32 5, i32 55, i32 6, i32 3, i32 5, i32 7, i32 8, i32 34], [20 x i32] [i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7, i32 43, i32 56, i32 23, i32 4, i32 5, i32 4, i32 3, i32 7, i32 9, i32 2], [20 x i32] [i32 5, i32 5, i32 6, i32 3, i32 5, i32 7, i32 8, i32 3, i32 4, i32 1, i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7], [20 x i32] [i32 43, i32 56, i32 23, i32 4, i32 5, i32 4, i32 3, i32 7, i32 9, i32 2, i32 5, i32 5, i32 6, i32 3, i32 5, i32 7, i32 8, i32 3, i32 4, i32 14], [20 x i32] [i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7, i32 43, i32 56, i32 23, i32 4, i32 5, i32 4, i32 3, i32 7, i32 9, i32 2], [20 x i32] [i32 5, i32 5, i32 6, i32 3, i32 5, i32 7, i32 8, i32 3, i32 4, i32 1, i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7], [20 x i32] [i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7, i32 43, i32 56, i32 23, i32 4, i32 5, i32 4, i32 3, i32 7, i32 9, i32 2], [20 x i32] [i32 5, i32 5, i32 6, i32 3, i32 5, i32 7, i32 8, i32 3, i32 4, i32 1, i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7], [20 x i32] [i32 5, i32 5, i32 6, i32 3, i32 5, i32 7, i32 8, i32 3, i32 4, i32 1, i32 4, i32 5, i32 5, i32 6, i32 7, i32 8, i32 6, i32 4, i32 6, i32 7], [20 x i32] [i32 43, i32 56, i32 23, i32 4, i32 5, i32 4, i32 3, i32 7, i32 9, i32 2, i32 5, i32 5, i32 96, i32 3, i32 5, i32 7, i32 8, i32 3, i32 4, i32 14]]
define i32 @main() {
%1 = alloca [10 x [20 x i32]]
%2 = bitcast [10 x [20 x i32]]* %1 to i8*
%3 = bitcast [10 x [20 x i32]]* %1 to i32**
%4 = call i32 @displayMax(i32** %3)
ret i32 0
}