#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 */
typedef struct TYPE_40__ TYPE_9__;
typedef struct TYPE_39__ TYPE_8__;
typedef struct TYPE_38__ TYPE_7__;
typedef struct TYPE_37__ TYPE_6__;
typedef struct TYPE_36__ TYPE_5__;
typedef struct TYPE_35__ TYPE_4__;
typedef struct TYPE_34__ TYPE_3__;
typedef struct TYPE_33__ TYPE_2__;
typedef struct TYPE_32__ TYPE_20__;
typedef struct TYPE_31__ TYPE_1__;
typedef struct TYPE_30__ TYPE_19__;
typedef struct TYPE_29__ TYPE_18__;
typedef struct TYPE_28__ TYPE_17__;
typedef struct TYPE_27__ TYPE_16__;
typedef struct TYPE_26__ TYPE_15__;
typedef struct TYPE_25__ TYPE_14__;
typedef struct TYPE_24__ TYPE_13__;
typedef struct TYPE_23__ TYPE_12__;
typedef struct TYPE_22__ TYPE_11__;
typedef struct TYPE_21__ TYPE_10__;

/* Type definitions */
struct TYPE_40__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
  int member_4;
  int member_5;
  int member_6;
  int member_7;
  int member_8;
  int member_9;
};
struct TYPE_39__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
  int member_4;
  int member_5;
  int member_6;
  int member_7;
  int member_8;
  int member_9;
};
struct TYPE_38__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
  int member_4;
  int member_5;
  int member_6;
  int member_7;
  int member_8;
  int member_9;
};
struct TYPE_37__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
  int member_4;
  int member_5;
  int member_6;
  int member_7;
  int member_8;
  int member_9;
};
struct TYPE_36__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
  int member_4;
  int member_5;
  int member_6;
  int member_7;
  int member_8;
  int member_9;
};
struct TYPE_35__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
  int member_4;
  int member_5;
  int member_6;
  int member_7;
  int member_8;
  int member_9;
};
struct TYPE_34__ {
  int member_2;
  int member_3;
  int member_4;
  int member_5;
  int member_6;
  int member_7;
  int member_8;
  int member_9;
  int /*<<< orphan*/ member_1;
  int /*<<< orphan*/ member_0;
};
struct TYPE_33__ {
  int member_2;
  int member_3;
  int member_4;
  int member_5;
  int member_6;
  int member_7;
  int member_8;
  int member_9;
  int /*<<< orphan*/ member_1;
  int /*<<< orphan*/ member_0;
};
struct TYPE_32__ {
  double member_0;
  double member_1;
  double member_2;
  double member_3;
  double member_4;
  double member_5;
  double member_6;
  double member_7;
  double member_8;
  double member_9;
};
struct TYPE_31__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
  int member_4;
  int member_5;
  int member_6;
  int member_7;
  int member_8;
  int member_9;
};
struct TYPE_30__ {
  double member_0;
  double member_1;
  double member_2;
  double member_3;
  double member_4;
  double member_5;
  double member_6;
  double member_7;
  double member_8;
  double member_9;
};
struct TYPE_29__ {
  double member_0;
  double member_1;
  double member_2;
  double member_3;
  double member_4;
  double member_5;
  double member_6;
  double member_7;
  double member_8;
  double member_9;
};
struct TYPE_28__ {
  double member_0;
  double member_1;
  double member_2;
  double member_3;
  double member_4;
  double member_5;
  double member_6;
  double member_7;
  double member_8;
  double member_9;
};
struct TYPE_27__ {
  double member_0;
  double member_1;
  double member_2;
  double member_3;
  double member_4;
  double member_5;
  double member_6;
  double member_7;
  double member_8;
  double member_9;
};
struct TYPE_26__ {
  double member_0;
  double member_1;
  double member_2;
  double member_3;
  double member_4;
  double member_5;
  double member_6;
  double member_7;
  double member_8;
  double member_9;
};
struct TYPE_25__ {
  double member_0;
  double member_1;
  double member_2;
  double member_3;
  double member_4;
  double member_5;
  double member_6;
  double member_7;
  double member_8;
  double member_9;
};
struct TYPE_24__ {
  double member_0;
  double member_1;
  double member_2;
  double member_3;
  double member_4;
  double member_5;
  double member_6;
  double member_7;
  double member_8;
  double member_9;
};
struct TYPE_23__ {
  double member_0;
  double member_1;
  double member_2;
  double member_3;
  double member_4;
  double member_5;
  double member_6;
  double member_7;
  double member_8;
  double member_9;
};
struct TYPE_22__ {
  double member_0;
  double member_1;
  double member_2;
  double member_3;
  double member_4;
  double member_5;
  double member_6;
  double member_7;
  double member_8;
  double member_9;
};
struct TYPE_21__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
  int member_4;
  int member_5;
  int member_6;
  int member_7;
  int member_8;
  int member_9;
};

/* Variables and functions */
int /*<<< orphan*/ run_(float *, int *, int *, int *, int ***, float ***,
                        char *, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char *);
int main() {
  char *name = "../tutorial2/tutorial2";
  float GACHNOFLO = -9999.0;
  int NLAY = 1;
  int NROW = 10;
  int NCOL = 10;
  int GACIBOUND[1][10][10] = {{{1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
                               {0, 0, 1, 1, 1, 1, 1, 1, 1, 1},
                               {0, 0, 1, 1, 1, 1, 1, 1, 1, 1},
                               {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
                               {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
                               {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
                               {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
                               {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
                               {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
                               {1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}};
  float GACSTRT[1][10][10] = {
      {{10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0},
       {10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0},
       {10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0},
       {10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0},
       {10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0},
       {10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0},
       {10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0},
       {10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0},
       {10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0},
       {10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0}}};
  run_(&GACHNOFLO, &NLAY, &NROW, &NCOL, GACIBOUND, GACSTRT, name, strlen(name));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x370,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xebb(%rip),%rax
mov    %rax,-0x10(%rbp)
movss  0xeab(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movl   $0x1,-0x18(%rbp)
movl   $0xa,-0x1c(%rbp)
movl   $0xa,-0x20(%rbp)
lea    -0x1b0(%rbp),%rdi
lea    0xea3(%rip),%rsi
mov    $0x190,%edx
call   1050 <memcpy@plt>
lea    -0x340(%rbp),%rdi
lea    0x101b(%rip),%rsi
mov    $0x190,%edx
call   1050 <memcpy@plt>
lea    -0x1b0(%rbp),%rax
mov    %rax,-0x358(%rbp)
lea    -0x340(%rbp),%rax
mov    %rax,-0x350(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x348(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x358(%rbp),%r8
mov    -0x350(%rbp),%r9
mov    -0x348(%rbp),%r10
lea    -0x14(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
lea    -0x20(%rbp),%rcx
mov    %r10,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <run_@plt>
xor    %eax,%eax
add    $0x370,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x330,%rsp
movl   $0xc61c3c00,0xc(%rsp)
c6
movl   $0x1,0x8(%rsp)
movl   $0xa,0x4(%rsp)
movl   $0xa,(%rsp)
lea    0xebe(%rip),%rsi
lea    0x1a0(%rsp),%r14
mov    $0x190,%edx
mov    %r14,%rdi
call   1050 <memcpy@plt>
lea    0x1032(%rip),%rsi
lea    0x10(%rsp),%r15
mov    $0x190,%edx
mov    %r15,%rdi
call   1050 <memcpy@plt>
lea    0xe69(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
lea    0xc(%rsp),%rdi
lea    0x8(%rsp),%rsi
lea    0x4(%rsp),%rdx
mov    %rsp,%rcx
mov    %r14,%r8
mov    %r15,%r9
push   %rax
push   %rbx
call   1040 <run_@plt>
add    $0x10,%rsp
xor    %eax,%eax
add    $0x330,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [23 x i8] c"../tutorial2/tutorial2\00"
@__const.main.GACIBOUND = [1 x [10 x [10 x i32]]] [[10 x [10 x i32]] [[10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 0, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 0, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1]]]
@__const.main.GACSTRT = [1 x [10 x [10 x float]]] [[10 x [10 x float]] [[10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01]]]
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca float
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [1 x [10 x [10 x i32]]]
%8 = alloca [1 x [10 x [10 x float]]]
store i32 0, i32* %1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8** %2
store float -9.999000e+03, float* %3
store i32 1, i32* %4
store i32 10, i32* %5
store i32 10, i32* %6
%9 = bitcast [1 x [10 x [10 x i32]]]* %7 to i8*
%10 = bitcast [1 x [10 x [10 x float]]]* %8 to i8*
%11 = getelementptr inbounds [1 x [10 x [10 x i32]]], [1 x [10 x [10 x i32]]]* %7, i64 0, i64 0
%12 = bitcast [10 x [10 x i32]]* %11 to i32***
%13 = getelementptr inbounds [1 x [10 x [10 x float]]], [1 x [10 x [10 x float]]]* %8, i64 0, i64 0
%14 = bitcast [10 x [10 x float]]* %13 to float***
%15 = load i8*, i8** %2
%16 = load i8*, i8** %2
%17 = call i32 @strlen(i8* %16)
%18 = call i32 @run_(float* %3, i32* %4, i32* %5, i32* %6, i32*** %12, float*** %14, i8* %15, i32 %17)
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"../tutorial2/tutorial2\00"
@__const.main.GACIBOUND = [1 x [10 x [10 x i32]]] [[10 x [10 x i32]] [[10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 0, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 0, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1], [10 x i32] [i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1]]]
@__const.main.GACSTRT = [1 x [10 x [10 x float]]] [[10 x [10 x float]] [[10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01], [10 x float] [float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01, float 1.000000e+01]]]
define i32 @main() {
%1 = alloca float
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca [1 x [10 x [10 x i32]]]
%6 = alloca [1 x [10 x [10 x float]]]
%7 = bitcast float* %1 to i8*
store float -9.999000e+03, float* %1
%8 = bitcast i32* %2 to i8*
store i32 1, i32* %2
%9 = bitcast i32* %3 to i8*
store i32 10, i32* %3
%10 = bitcast i32* %4 to i8*
store i32 10, i32* %4
%11 = bitcast [1 x [10 x [10 x i32]]]* %5 to i8*
%12 = bitcast [1 x [10 x [10 x float]]]* %6 to i8*
%13 = bitcast [1 x [10 x [10 x i32]]]* %5 to i32***
%14 = bitcast [1 x [10 x [10 x float]]]* %6 to float***
%15 = tail call i32 @strlen(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @run_(float* %1, i32* %2, i32* %3, i32* %4, i32*** %13, float*** %14, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %15)
ret i32 0
}