#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*/ __create_tag(char *);
scalar_t__ __lets_play(char *);
int /*<<< orphan*/ __print_error_message();
int /*<<< orphan*/ __print_sw_title(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  if (argc != 2) {
    __print_sw_title(argv[0]);
    return -1;
  }
  if (__lets_play(argv[1])) {
    __create_tag(argv[0]);
    printf("\n +-+ Bang ! +-+ \n");
  } else {
    __print_error_message();
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1197 <main+0x37>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1050 <__print_sw_title@plt>
mov    $0xffffffff,%eax
add    $0x10,%rsp
pop    %rbp
ret
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <__lets_play@plt>
cmp    $0x0,%rax
je     11cb <main+0x6b>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1080 <__create_tag@plt>
lea    0xe3f(%rip),%rdi
call   1040 <printf@plt>
jmp    11d2 <main+0x72>
mov    $0x0,%al
call   1030 <__print_error_message@plt>
xor    %edi,%edi
call   1070 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %rsi,%rbx
cmp    $0x2,%edi
je     1178 <main+0x18>
mov    (%rbx),%rdi
call   1050 <__print_sw_title@plt>
mov    $0xffffffff,%eax
pop    %rbx
ret
mov    0x8(%rbx),%rdi
call   1060 <__lets_play@plt>
test   %rax,%rax
jne    1194 <main+0x34>
xor    %eax,%eax
call   1040 <__print_error_message@plt>
xor    %edi,%edi
call   1070 <exit@plt>
mov    (%rbx),%rdi
call   1080 <__create_tag@plt>
lea    0xe5d(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1070 <exit@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"\0A +-+ Bang ! +-+ \0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp ne i32 %6, 2
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 0
%11 = load i8*, i8** %10
%12 = call i32 @__print_sw_title(i8* %11)
ret i32 -1
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i64 @__lets_play(i8* %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %13
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 0
%22 = load i8*, i8** %21
%23 = call i32 @__create_tag(i8* %22)
%24 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
br label %27
25: ; preds = %13
%26 = call i32 (...) @__print_error_message()
br label %27
27: ; preds = %25, %19
%28 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [18 x i8] c"\0A +-+ Bang ! +-+ \00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = load i8*, i8** %1
%6 = tail call i32 @__print_sw_title(i8* %5)
ret i32 -1
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = tail call i64 @__lets_play(i8* %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %7
%13 = load i8*, i8** %1
%14 = tail call i32 @__create_tag(i8* %13)
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
br label %18
16: ; preds = %7
%17 = tail call i32 (...) @__print_error_message()
br label %18
18: ; preds = %16, %12
%19 = tail call i32 @exit(i32 0)
unreachable
}