#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*/ SANDSHREW_MD5(unsigned char *, char *);
scalar_t__ __strcmp_ssse3(unsigned char *, unsigned char *);
int /*<<< orphan*/ abort();
int main(int argc, char *argv[]) {
  unsigned char in[32];
  unsigned char orig_result[16];
  unsigned char user_result[16];
  SANDSHREW_MD5(orig_result, "s0m3_1nput_123");
  SANDSHREW_MD5(user_result, argv[1]);
  if (__strcmp_ssse3(orig_result, user_result) == 0)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xeaf(%rip),%rsi
call   1050 <SANDSHREW_MD5@plt>
lea    -0x50(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1050 <SANDSHREW_MD5@plt>
lea    -0x40(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1040 <__strcmp_ssse3@plt>
cmp    $0x0,%rax
jne    1185 <main+0x55>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
lea    0xebf(%rip),%rsi
lea    0x10(%rsp),%r14
mov    %r14,%rdi
call   1050 <SANDSHREW_MD5@plt>
mov    0x8(%rbx),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1050 <SANDSHREW_MD5@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <__strcmp_ssse3@plt>
test   %rax,%rax
je     1177 <main+0x47>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"s0m3_1nput_123\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [32 x i8]
%7 = alloca [16 x i8]
%8 = alloca [16 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = getelementptr inbounds [16 x i8], [16 x i8]* %7, i64 0, i64 0
%10 = call i32 @SANDSHREW_MD5(i8* %9, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds [16 x i8], [16 x i8]* %8, i64 0, i64 0
%12 = load i8**, i8*** %5
%13 = getelementptr inbounds i8*, i8** %12, i64 1
%14 = load i8*, i8** %13
%15 = call i32 @SANDSHREW_MD5(i8* %11, i8* %14)
%16 = getelementptr inbounds [16 x i8], [16 x i8]* %7, i64 0, i64 0
%17 = getelementptr inbounds [16 x i8], [16 x i8]* %8, i64 0, i64 0
%18 = call i64 @__strcmp_ssse3(i8* %16, i8* %17)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (...) @abort()
unreachable
22: ; preds = %2
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"s0m3_1nput_123\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [16 x i8]
%4 = alloca [16 x i8]
%5 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [16 x i8], [16 x i8]* %4, i64 0, i64 0
%7 = call i32 @SANDSHREW_MD5(i8* %5, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = call i32 @SANDSHREW_MD5(i8* %6, i8* %9)
%11 = call i64 @__strcmp_ssse3(i8* %5, i8* %6)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %2
%14 = call i32 (...) @abort()
unreachable
15: ; preds = %2
ret i32 0
}