#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 atoi(char const *);
int /*<<< orphan*/ beckerg17();
int /*<<< orphan*/ bryanj17();
int /*<<< orphan*/ printf(char *, char const *);
int /*<<< orphan*/ robPrintAscii();
int /*<<< orphan*/ robPrintMessage(int);
int main(int argc, const char *argv[]) {
  if (argc > 2) {
    printf("usage: %s <number> \n", argv[0]);
    return -1;
  }
  if (argc == 1) {
    robPrintAscii();
  } else {
    int num = atoi(argv[1]);
    robPrintAscii();
    robPrintMessage(num);
    beckerg17();
    bryanj17();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jle    119f <main+0x3f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe72(%rip),%rdi
call   1030 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    11e9 <main+0x89>
cmpl   $0x1,-0x8(%rbp)
jne    11b5 <main+0x55>
mov    $0x0,%al
call   1040 <robPrintAscii@plt>
jmp    11e2 <main+0x82>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1040 <robPrintAscii@plt>
mov    -0x14(%rbp),%edi
call   1060 <robPrintMessage@plt>
mov    $0x0,%al
call   1050 <beckerg17@plt>
mov    $0x0,%al
call   1080 <bryanj17@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
cmp    $0x3,%edi
jl     117e <main+0x1e>
mov    (%rsi),%rsi
lea    0xe8e(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffffffff,%ebx
jmp    11b7 <main+0x57>
cmp    $0x1,%edi
jne    118e <main+0x2e>
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <robPrintAscii@plt>
jmp    11b7 <main+0x57>
mov    0x8(%rsi),%rdi
call   1070 <atoi@plt>
mov    %eax,%ebp
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <robPrintAscii@plt>
mov    %ebp,%edi
call   1060 <robPrintMessage@plt>
xor    %eax,%eax
call   1050 <beckerg17@plt>
xor    %eax,%eax
call   1080 <bryanj17@plt>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [21 x i8] c"usage: %s <number> \0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i32, i32* %4
%8 = icmp sgt i32 %7, 2
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 0
%12 = load i8*, i8** %11
%13 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %12)
store i32 -1, i32* %3
br label %30
14: ; preds = %2
%15 = load i32, i32* %4
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 (...) @robPrintAscii()
br label %29
19: ; preds = %14
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i32 @atoi(i8* %22)
store i32 %23, i32* %6
%24 = call i32 (...) @robPrintAscii()
%25 = load i32, i32* %6
%26 = call i32 @robPrintMessage(i32 %25)
%27 = call i32 (...) @beckerg17()
%28 = call i32 (...) @bryanj17()
br label %29
29: ; preds = %19, %17
store i32 0, i32* %3
br label %30
30: ; preds = %29, %9
%31 = load i32, i32* %3
ret i32 %31
}

LLVM IR (-O2):
@.str = [21 x i8] c"usage: %s <number> \0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 2
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %5)
br label %19
7: ; preds = %2
%8 = icmp eq i32 %0, 1
br i1 %8, label %9, label %11
9: ; preds = %7
%10 = tail call i32 (...) @robPrintAscii()
br label %19
11: ; preds = %7
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = tail call i32 @atoi(i8* %13)
%15 = tail call i32 (...) @robPrintAscii()
%16 = tail call i32 @robPrintMessage(i32 %14)
%17 = tail call i32 (...) @beckerg17()
%18 = tail call i32 (...) @bryanj17()
br label %19
19: ; preds = %9, %11, %4
%20 = phi i32 [ -1, %4 ], [ 0, %11 ], [ 0, %9 ]
ret i32 %20
}