#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 const atoi(char *);
int /*<<< orphan*/ catcher();
int /*<<< orphan*/ puts(char *);
int main(int argc, char **argv) {
  const int pass = 271;
  if (argc == 2) {
    if (pass == atoi(argv[1])) {
      catcher();
    } else {
      puts("Please enter 3 pass!");
    }
  } else {
    puts("need 3 pass!");
  }
  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)
movl   $0x10f,-0x14(%rbp)
cmpl   $0x2,-0x8(%rbp)
jne    1190 <main+0x60>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1050 <atoi@plt>
mov    %eax,%ecx
mov    $0x10f,%eax
cmp    %ecx,%eax
jne    117f <main+0x4f>
mov    $0x0,%al
call   1040 <catcher@plt>
jmp    118b <main+0x5b>
lea    0xe7a(%rip),%rdi
call   1030 <puts@plt>
jmp    119c <main+0x6c>
lea    0xe7e(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cmp    $0x2,%edi
jne    114f <main+0x1f>
mov    0x8(%rsi),%rdi
call   1050 <atoi@plt>
cmp    $0x10f,%eax
jne    1158 <main+0x28>
xor    %eax,%eax
call   1040 <catcher@plt>
jmp    1164 <main+0x34>
lea    0xebf(%rip),%rdi
jmp    115f <main+0x2f>
lea    0xea1(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [21 x i8] c"Please enter 3 pass!\00"
@.str.1 = [13 x i8] c"need 3 pass!\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
store i32 271, i32* %6
%7 = load i32, i32* %4
%8 = icmp eq i32 %7, 2
br i1 %8, label %9, label %20
9: ; preds = %2
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 1
%12 = load i8*, i8** %11
%13 = call i32 @atoi(i8* %12)
%14 = icmp eq i32 271, %13
br i1 %14, label %15, label %17
15: ; preds = %9
%16 = call i32 (...) @catcher()
br label %19
17: ; preds = %9
%18 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %19
19: ; preds = %17, %15
br label %22
20: ; preds = %2
%21 = call i32 @puts(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %22
22: ; preds = %20, %19
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"Please enter 3 pass!\00"
@.str.1 = [13 x i8] c"need 3 pass!\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %4, label %13
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @atoi(i8* %6)
%8 = icmp eq i32 %7, 271
br i1 %8, label %9, label %11
9: ; preds = %4
%10 = tail call i32 (...) @catcher()
br label %15
11: ; preds = %4
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
br label %15
13: ; preds = %2
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %15
15: ; preds = %9, %11, %13
ret i32 0
}