#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*/ ExecuteSuperFunGame();
int atoi(char *);
int /*<<< orphan*/ printf(char *);
int main(int argc, char **argv) {
  int a = 123, b = 5, c = 0x31337, d = 0;
  int i = atoi(argv[0]);
  i = i * a ^ 4 / b >> d + 19;
  if (i == i / c * d ^ 0xb0b) {
    ExecuteSuperFunGame();
  } else {
    printf("You must enter a valid serial number as the first command line "
           "parameter.\n");
    printf("The entered serial number is not valid\n");
  }
}


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)
movl   $0x7b,-0x14(%rbp)
movl   $0x5,-0x18(%rbp)
movl   $0x31337,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    $0x4,%eax
cltd
idivl  -0x18(%rbp)
mov    %eax,%edx
mov    -0x2c(%rbp),%eax
mov    -0x20(%rbp),%ecx
add    $0x13,%ecx
sar    %cl,%edx
mov    %edx,%ecx
xor    %ecx,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%eax
cltd
idivl  -0x1c(%rbp)
mov    %eax,%ecx
mov    -0x28(%rbp),%eax
imul   -0x20(%rbp),%ecx
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
xor    $0xb0b,%eax
cmp    $0x0,%eax
je     11d2 <main+0xa2>
mov    $0x0,%al
call   1040 <ExecuteSuperFunGame@plt>
jmp    11ea <main+0xba>
lea    0xe27(%rip),%rdi
call   1030 <printf@plt>
lea    0xe66(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <ExecuteSuperFunGame@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [75 x i8] c"You must enter a valid serial number as the first command line parameter.\0A\00"
@.str.1 = [40 x i8] c"The entered serial number is not valid\0A\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
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 123, i32* %6
store i32 5, i32* %7
store i32 201527, i32* %8
store i32 0, i32* %9
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 0
%13 = load i8*, i8** %12
%14 = call i32 @atoi(i8* %13)
store i32 %14, i32* %10
%15 = load i32, i32* %10
%16 = load i32, i32* %6
%17 = mul nsw i32 %15, %16
%18 = load i32, i32* %7
%19 = sdiv i32 4, %18
%20 = load i32, i32* %9
%21 = add nsw i32 %20, 19
%22 = ashr i32 %19, %21
%23 = xor i32 %17, %22
store i32 %23, i32* %10
%24 = load i32, i32* %10
%25 = load i32, i32* %10
%26 = load i32, i32* %8
%27 = sdiv i32 %25, %26
%28 = load i32, i32* %9
%29 = mul nsw i32 %27, %28
%30 = icmp eq i32 %24, %29
%31 = zext i1 %30 to i32
%32 = xor i32 %31, 2827
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %2
%35 = call i32 (...) @ExecuteSuperFunGame()
br label %39
36: ; preds = %2
%37 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str, i64 0, i64 0))
%38 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
br label %39
39: ; preds = %36, %34
%40 = load i32, i32* %3
ret i32 %40
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @ExecuteSuperFunGame()
ret i32 0
}