#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 EXIT_SUCCESS;
int /*<<< orphan*/ fill_array(int *, int *, int);
int /*<<< orphan*/ print_in_binary(int *, int);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ start_game(int *, int *, int);
int main(int argc, char **argv) {
  int coordinateCount;
  scanf("%d", &coordinateCount);
  int board[10] = {0};
  int temp[10] = {0};
  fill_array(board, temp, coordinateCount);
  start_game(board, temp, 10);
  print_in_binary(board, 10);
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe93(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1060 <scanf@plt>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1050 <fill_array@plt>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
mov    $0xa,%edx
call   1070 <start_game@plt>
lea    -0x40(%rbp),%rdi
mov    $0xa,%esi
call   1040 <print_in_binary@plt>
mov    0x2e13(%rip),%rax
mov    (%rax),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x68,%rsp
lea    0xeb2(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movq   $0x0,0x60(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movq   $0x0,0x30(%rsp)
mov    0xc(%rsp),%edx
lea    0x40(%rsp),%rbx
lea    0x10(%rsp),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <fill_array@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0xa,%edx
call   1060 <start_game@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1030 <print_in_binary@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%eax
add    $0x68,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [10 x i32]
%8 = alloca [10 x i32]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
%10 = bitcast [10 x i32]* %7 to i8*
%11 = bitcast [10 x i32]* %8 to i8*
%12 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 0
%13 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 0
%14 = load i32, i32* %6
%15 = call i32 @fill_array(i32* %12, i32* %13, i32 %14)
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 0
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %8, i64 0, i64 0
%18 = call i32 @start_game(i32* %16, i32* %17, i32 10)
%19 = getelementptr inbounds [10 x i32], [10 x i32]* %7, i64 0, i64 0
%20 = call i32 @print_in_binary(i32* %19, i32 10)
%21 = load i32, i32* @EXIT_SUCCESS
ret i32 %21
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca [10 x i32]
%5 = alloca [10 x i32]
%6 = bitcast i32* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%8 = bitcast [10 x i32]* %4 to i8*
%9 = bitcast [10 x i32]* %5 to i8*
%10 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 0
%11 = getelementptr inbounds [10 x i32], [10 x i32]* %5, i64 0, i64 0
%12 = load i32, i32* %3
%13 = call i32 @fill_array(i32* %10, i32* %11, i32 %12)
%14 = call i32 @start_game(i32* %10, i32* %11, i32 10)
%15 = call i32 @print_in_binary(i32* %10, i32 10)
%16 = load i32, i32* @EXIT_SUCCESS
ret i32 %16
}