#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*/ printArguments(int, int, int, int *);
int /*<<< orphan*/ printf(char *);
int *readArgs(int *, int *, int *, int, char **);
scalar_t__ theyCanPassAllLevels(int, int, int, int *);
int main(int argc, char *argv[]) {
  int n, p, q;
  int *levelsTheyCanPass;
  if (1 == 0)
    printf("\nP6 - I Wanna Be The Guy:\n");
  levelsTheyCanPass = readArgs(&n, &p, &q, argc, argv);
  if (1 == 0)
    printArguments(n, p, q, levelsTheyCanPass);
  if (n < 1 || n > 100) {
    printf("Invalid levels number. Aborting...\n");
    printf("\n--------------------\n");
    return 1;
  }
  if (1 == 0)
    printf("\nProblem Solution:\n");
  if (theyCanPassAllLevels(n, p, q, levelsTheyCanPass))
    printf("I become the guy.");
  else
    printf("Oh, my keyboard!");
  if (1 == 0)
    printf("\n--------------------\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%ecx
mov    -0x10(%rbp),%r8
lea    -0x14(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
call   1050 <readArgs@plt>
mov    %rax,-0x28(%rbp)
cmpl   $0x1,-0x14(%rbp)
jl     1176 <main+0x46>
cmpl   $0x64,-0x14(%rbp)
jle    119a <main+0x6a>
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    11da <main+0xaa>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x28(%rbp),%rcx
call   1040 <theyCanPassAllLevels@plt>
cmp    $0x0,%rax
je     11c7 <main+0x97>
lea    0xe7e(%rip),%rdi
call   1030 <printf@plt>
jmp    11d3 <main+0xa3>
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
mov    %rsi,%r8
mov    %edi,%ecx
lea    0x14(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1060 <readArgs@plt>
mov    0x14(%rsp),%edi
lea    -0x65(%rdi),%ecx
cmp    $0xffffff9b,%ecx
ja     118b <main+0x4b>
lea    0xeb3(%rip),%rdi
call   1030 <puts@plt>
lea    0xeca(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%eax
add    $0x18,%rsp
ret
mov    0x10(%rsp),%esi
mov    0xc(%rsp),%edx
mov    %rax,%rcx
call   1050 <theyCanPassAllLevels@plt>
test   %rax,%rax
je     11a9 <main+0x69>
lea    0xe59(%rip),%rdi
jmp    11b0 <main+0x70>
lea    0xe62(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [36 x i8] c"Invalid levels number. Aborting...\0A\00"
@.str.1 = [23 x i8] c"\0A--------------------\0A\00"
@.str.2 = [18 x i8] c"I become the guy.\00"
@.str.3 = [17 x i8] c"Oh, my keyboard!\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* %4
%11 = load i8**, i8*** %5
%12 = call i32* @readArgs(i32* %6, i32* %7, i32* %8, i32 %10, i8** %11)
store i32* %12, i32** %9
%13 = load i32, i32* %6
%14 = icmp slt i32 %13, 1
br i1 %14, label %18, label %15
15: ; preds = %2
%16 = load i32, i32* %6
%17 = icmp sgt i32 %16, 100
br i1 %17, label %18, label %21
18: ; preds = %15, %2
%19 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %3
br label %33
21: ; preds = %15
%22 = load i32, i32* %6
%23 = load i32, i32* %7
%24 = load i32, i32* %8
%25 = load i32*, i32** %9
%26 = call i64 @theyCanPassAllLevels(i32 %22, i32 %23, i32 %24, i32* %25)
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %21
%29 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
br label %32
30: ; preds = %21
%31 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
br label %32
32: ; preds = %30, %28
store i32 0, i32* %3
br label %33
33: ; preds = %32, %18
%34 = load i32, i32* %3
ret i32 %34
}

LLVM IR (-O2):
@.str.2 = [18 x i8] c"I become the guy.\00"
@.str.3 = [17 x i8] c"Oh, my keyboard!\00"
@str = [35 x i8] c"Invalid levels number. Aborting...\00"
@str.4 = [22 x i8] c"\0A--------------------\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = bitcast i32* %3 to i8*
%7 = bitcast i32* %4 to i8*
%8 = bitcast i32* %5 to i8*
%9 = call i32* @readArgs(i32* %3, i32* %4, i32* %5, i32 %0, i8** %1)
%10 = load i32, i32* %3
%11 = add i32 %10, -101
%12 = icmp ult i32 %11, -100
br i1 %12, label %13, label %16
13: ; preds = %2
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.4, i64 0, i64 0))
br label %25
16: ; preds = %2
%17 = load i32, i32* %4
%18 = load i32, i32* %5
%19 = call i64 @theyCanPassAllLevels(i32 %10, i32 %17, i32 %18, i32* %9)
%20 = icmp eq i64 %19, 0
br i1 %20, label %23, label %21
21: ; preds = %16
%22 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
br label %25
23: ; preds = %16
%24 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
br label %25
25: ; preds = %21, %23, %13
%26 = phi i32 [ 1, %13 ], [ 0, %23 ], [ 0, %21 ]
ret i32 %26
}