#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*/ empty_plane(int **);
int /*<<< orphan*/ print_plane(int **);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ take_place(int **, int);
int main() {
  int airplane[16][6];
  empty_plane(airplane);
  take_place(airplane, 1);
  print_plane(airplane);
  printf("\n");
  take_place(airplane, 2);
  print_plane(airplane);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x190(%rbp),%rdi
call   1060 <empty_plane@plt>
lea    -0x190(%rbp),%rdi
mov    $0x1,%esi
call   1040 <take_place@plt>
lea    -0x190(%rbp),%rdi
call   1050 <print_plane@plt>
lea    0xe7e(%rip),%rdi
call   1030 <printf@plt>
lea    -0x190(%rbp),%rdi
mov    $0x2,%esi
call   1040 <take_place@plt>
lea    -0x190(%rbp),%rdi
call   1050 <print_plane@plt>
lea    0xe55(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x180,%rsp
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1060 <empty_plane@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
call   1040 <take_place@plt>
mov    %rbx,%rdi
call   1050 <print_plane@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1040 <take_place@plt>
mov    %rbx,%rdi
call   1050 <print_plane@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x180,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [16 x [6 x i32]]
store i32 0, i32* %1
%3 = getelementptr inbounds [16 x [6 x i32]], [16 x [6 x i32]]* %2, i64 0, i64 0
%4 = bitcast [6 x i32]* %3 to i32**
%5 = call i32 @empty_plane(i32** %4)
%6 = getelementptr inbounds [16 x [6 x i32]], [16 x [6 x i32]]* %2, i64 0, i64 0
%7 = bitcast [6 x i32]* %6 to i32**
%8 = call i32 @take_place(i32** %7, i32 1)
%9 = getelementptr inbounds [16 x [6 x i32]], [16 x [6 x i32]]* %2, i64 0, i64 0
%10 = bitcast [6 x i32]* %9 to i32**
%11 = call i32 @print_plane(i32** %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = getelementptr inbounds [16 x [6 x i32]], [16 x [6 x i32]]* %2, i64 0, i64 0
%14 = bitcast [6 x i32]* %13 to i32**
%15 = call i32 @take_place(i32** %14, i32 2)
%16 = getelementptr inbounds [16 x [6 x i32]], [16 x [6 x i32]]* %2, i64 0, i64 0
%17 = bitcast [6 x i32]* %16 to i32**
%18 = call i32 @print_plane(i32** %17)
%19 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca [16 x [6 x i32]]
%2 = bitcast [16 x [6 x i32]]* %1 to i8*
%3 = bitcast [16 x [6 x i32]]* %1 to i32**
%4 = call i32 @empty_plane(i32** %3)
%5 = call i32 @take_place(i32** %3, i32 1)
%6 = call i32 @print_plane(i32** %3)
%7 = call i32 @putchar(i32 10)
%8 = call i32 @take_place(i32** %3, i32 2)
%9 = call i32 @print_plane(i32** %3)
%10 = call i32 @putchar(i32 10)
ret i32 0
}