#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 */
typedef int /*<<< orphan*/ uint8_t;
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ md5_hash(int /*<<< orphan*/ *, int /*<<< orphan*/, int *);
int /*<<< orphan*/ strlen(char const *);
int taskCheck(const char *key) {
  uint32_t hash[4];
  md5_hash((uint8_t *)key, strlen(key), hash);
  if (hash[0] == 3501299899 && hash[1] == 3889505205 && hash[2] == 1429338499 &&
      hash[3] == 3053614861)
    return 0;
  else
    return 1;
}


x86 assembly (clang, -O0):
<taskCheck>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x28(%rbp),%rdi
mov    %eax,%esi
lea    -0x20(%rbp),%rdx
call   1040 <md5_hash@plt>
movslq -0x20(%rbp),%rax
mov    $0xd0b198bb,%ecx
cmp    %rcx,%rax
jne    119b <taskCheck+0x7b>
movslq -0x1c(%rbp),%rax
mov    $0xe7d523b5,%ecx
cmp    %rcx,%rax
jne    119b <taskCheck+0x7b>
cmpl   $0x5531f983,-0x18(%rbp)
jne    119b <taskCheck+0x7b>
movslq -0x14(%rbp),%rax
mov    $0xb602770d,%ecx
cmp    %rcx,%rax
jne    119b <taskCheck+0x7b>
movl   $0x0,-0x4(%rbp)
jmp    11a2 <taskCheck+0x82>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<taskCheck>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
call   1030 <strlen@plt>
mov    %rsp,%rdx
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <md5_hash@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @taskCheck(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca [4 x i32]
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = bitcast i8* %5 to i32*
%7 = load i8*, i8** %3
%8 = call i32 @strlen(i8* %7)
%9 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
%10 = call i32 @md5_hash(i32* %6, i32 %8, i32* %9)
%11 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
%12 = load i32, i32* %11
%13 = sext i32 %12 to i64
%14 = icmp eq i64 %13, 3501299899
br i1 %14, label %15, label %30
15: ; preds = %1
%16 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 1
%17 = load i32, i32* %16
%18 = sext i32 %17 to i64
%19 = icmp eq i64 %18, 3889505205
br i1 %19, label %20, label %30
20: ; preds = %15
%21 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 2
%22 = load i32, i32* %21
%23 = icmp eq i32 %22, 1429338499
br i1 %23, label %24, label %30
24: ; preds = %20
%25 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 3
%26 = load i32, i32* %25
%27 = sext i32 %26 to i64
%28 = icmp eq i64 %27, 3053614861
br i1 %28, label %29, label %30
29: ; preds = %24
store i32 0, i32* %2
br label %31
30: ; preds = %24, %20, %15, %1
store i32 1, i32* %2
br label %31
31: ; preds = %30, %29
%32 = load i32, i32* %2
ret i32 %32
}

LLVM IR (-O2):
define i32 @taskCheck(i8* %0) {
%2 = alloca [4 x i32]
%3 = bitcast [4 x i32]* %2 to i8*
%4 = bitcast i8* %0 to i32*
%5 = tail call i32 @strlen(i8* %0)
%6 = getelementptr inbounds [4 x i32], [4 x i32]* %2, i64 0, i64 0
%7 = call i32 @md5_hash(i32* %4, i32 %5, i32* %6)
ret i32 1
}