#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*/ primMst(int **, int);
int main() {
  int prim[10][10] = {
      {0, 4, 0, 0, 0, 0, 0, 8, 0},  {4, 0, 8, 0, 0, 0, 0, 11, 0},
      {0, 8, 0, 7, 0, 4, 0, 0, 2},  {0, 0, 7, 0, 9, 14, 0, 0, 0},
      {0, 0, 0, 9, 0, 16, 0, 0, 0}, {0, 0, 4, 14, 16, 0, 2, 0, 0},
      {0, 0, 0, 0, 0, 2, 0, 1, 6},  {8, 11, 0, 0, 0, 0, 1, 0, 7},
      {0, 0, 2, 0, 0, 0, 6, 7, 0}};
  primMst(prim, 9);
  return 0;
}


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

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

LLVM IR (-O0):
@__const.main.prim = [10 x [10 x i32]] [[10 x i32] [i32 0, i32 4, i32 0, i32 0, i32 0, i32 0, i32 0, i32 8, i32 0, i32 0], [10 x i32] [i32 4, i32 0, i32 8, i32 0, i32 0, i32 0, i32 0, i32 11, i32 0, i32 0], [10 x i32] [i32 0, i32 8, i32 0, i32 7, i32 0, i32 4, i32 0, i32 0, i32 2, i32 0], [10 x i32] [i32 0, i32 0, i32 7, i32 0, i32 9, i32 14, i32 0, i32 0, i32 0, i32 0], [10 x i32] [i32 0, i32 0, i32 0, i32 9, i32 0, i32 16, i32 0, i32 0, i32 0, i32 0], [10 x i32] [i32 0, i32 0, i32 4, i32 14, i32 16, i32 0, i32 2, i32 0, i32 0, i32 0], [10 x i32] [i32 0, i32 0, i32 0, i32 0, i32 0, i32 2, i32 0, i32 1, i32 6, i32 0], [10 x i32] [i32 8, i32 11, i32 0, i32 0, i32 0, i32 0, i32 1, i32 0, i32 7, i32 0], [10 x i32] [i32 0, i32 0, i32 2, i32 0, i32 0, i32 0, i32 6, i32 7, i32 0, i32 0], [10 x i32] zeroinitializer]
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x [10 x i32]]
store i32 0, i32* %1
%3 = bitcast [10 x [10 x i32]]* %2 to i8*
%4 = getelementptr inbounds [10 x [10 x i32]], [10 x [10 x i32]]* %2, i64 0, i64 0
%5 = bitcast [10 x i32]* %4 to i32**
%6 = call i32 @primMst(i32** %5, i32 9)
ret i32 0
}

LLVM IR (-O2):
@__const.main.prim = [10 x [10 x i32]] [[10 x i32] [i32 0, i32 4, i32 0, i32 0, i32 0, i32 0, i32 0, i32 8, i32 0, i32 0], [10 x i32] [i32 4, i32 0, i32 8, i32 0, i32 0, i32 0, i32 0, i32 11, i32 0, i32 0], [10 x i32] [i32 0, i32 8, i32 0, i32 7, i32 0, i32 4, i32 0, i32 0, i32 2, i32 0], [10 x i32] [i32 0, i32 0, i32 7, i32 0, i32 9, i32 14, i32 0, i32 0, i32 0, i32 0], [10 x i32] [i32 0, i32 0, i32 0, i32 9, i32 0, i32 16, i32 0, i32 0, i32 0, i32 0], [10 x i32] [i32 0, i32 0, i32 4, i32 14, i32 16, i32 0, i32 2, i32 0, i32 0, i32 0], [10 x i32] [i32 0, i32 0, i32 0, i32 0, i32 0, i32 2, i32 0, i32 1, i32 6, i32 0], [10 x i32] [i32 8, i32 11, i32 0, i32 0, i32 0, i32 0, i32 1, i32 0, i32 7, i32 0], [10 x i32] [i32 0, i32 0, i32 2, i32 0, i32 0, i32 0, i32 6, i32 7, i32 0, i32 0], [10 x i32] zeroinitializer]
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 @primMst(i32** %3, i32 9)
ret i32 0
}