#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*/ failcount(int **, int, int);
int /*<<< orphan*/ highestscore(int **, int, int);
int /*<<< orphan*/ insert(int **, int, int);
int /*<<< orphan*/ lowestscore(int **, int, int);
int /*<<< orphan*/ print(int **, int, int);
main() {
  int stdmrk[10][10];
  int row, col;
  row = sizeof stdmrk / sizeof *stdmrk;
  col = sizeof *stdmrk / sizeof **stdmrk;
  insert(stdmrk, row, col);
  print(stdmrk, row, col);
  highestscore(stdmrk, row, col);
  lowestscore(stdmrk, row, col);
  failcount(stdmrk, row, col);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
movl   $0xa,-0x194(%rbp)
movl   $0xa,-0x198(%rbp)
lea    -0x190(%rbp),%rdi
mov    -0x194(%rbp),%esi
mov    -0x198(%rbp),%edx
call   1060 <insert@plt>
lea    -0x190(%rbp),%rdi
mov    -0x194(%rbp),%esi
mov    -0x198(%rbp),%edx
call   1050 <print@plt>
lea    -0x190(%rbp),%rdi
mov    -0x194(%rbp),%esi
mov    -0x198(%rbp),%edx
call   1030 <highestscore@plt>
lea    -0x190(%rbp),%rdi
mov    -0x194(%rbp),%esi
mov    -0x198(%rbp),%edx
call   1040 <lowestscore@plt>
lea    -0x190(%rbp),%rdi
mov    -0x194(%rbp),%esi
mov    -0x198(%rbp),%edx
call   1070 <failcount@plt>
xor    %eax,%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x190,%rsp
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xa,%edx
call   1060 <insert@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xa,%edx
call   1050 <print@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xa,%edx
call   1030 <highestscore@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xa,%edx
call   1040 <lowestscore@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0xa,%edx
call   1070 <failcount@plt>
xor    %eax,%eax
add    $0x190,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca [10 x [10 x i32]]
%2 = alloca i32
%3 = alloca i32
store i32 10, i32* %2
store i32 10, i32* %3
%4 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 0
%5 = bitcast [10 x i32]* %4 to i32**
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = call i32 @insert(i32** %5, i32 %6, i32 %7)
%9 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 0
%10 = bitcast [10 x i32]* %9 to i32**
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = call i32 @print(i32** %10, i32 %11, i32 %12)
%14 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 0
%15 = bitcast [10 x i32]* %14 to i32**
%16 = load i32, i32* %2
%17 = load i32, i32* %3
%18 = call i32 @highestscore(i32** %15, i32 %16, i32 %17)
%19 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 0
%20 = bitcast [10 x i32]* %19 to i32**
%21 = load i32, i32* %2
%22 = load i32, i32* %3
%23 = call i32 @lowestscore(i32** %20, i32 %21, i32 %22)
%24 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %1, i64 0, i64 0
%25 = bitcast [10 x i32]* %24 to i32**
%26 = load i32, i32* %2
%27 = load i32, i32* %3
%28 = call i32 @failcount(i32** %25, i32 %26, i32 %27)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca [10 x [10 x i32]]
%2 = bitcast [10 x [10 x i32]]* %1 to i8*
%3 = bitcast [10 x [10 x i32]]* %1 to i32**
%4 = call i32 @insert(i32** %3, i32 10, i32 10)
%5 = call i32 @print(i32** %3, i32 10, i32 10)
%6 = call i32 @highestscore(i32** %3, i32 10, i32 10)
%7 = call i32 @lowestscore(i32** %3, i32 10, i32 10)
%8 = call i32 @failcount(i32** %3, i32 10, i32 10)
ret i32 0
}