#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 char uint8_t;

/* Variables and functions */
int /*<<< orphan*/ abort();
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
  if (size < 0)
    return 0;
  if (data[0] == 'a')
    abort();
  if (size < 4)
    return 0;
  if (data[0] == 't' && data[1] == 'i' && data[2] == 'm' && data[3] == 'e')
    while (1)
      ;
  return 0;
}


x86 assembly (clang, -O0):
<LLVMFuzzerTestOneInput>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jae    1137 <LLVMFuzzerTestOneInput+0x27>
movl   $0x0,-0x4(%rbp)
jmp    11b9 <LLVMFuzzerTestOneInput+0xa9>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x61,%eax
jne    114e <LLVMFuzzerTestOneInput+0x3e>
mov    $0x0,%al
call   1030 <abort@plt>
cmpq   $0x4,-0x18(%rbp)
jae    1165 <LLVMFuzzerTestOneInput+0x55>
movl   $0x0,-0x4(%rbp)
jmp    11b9 <LLVMFuzzerTestOneInput+0xa9>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x74,%eax
jne    11b2 <LLVMFuzzerTestOneInput+0xa2>
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x69,%eax
jne    11b2 <LLVMFuzzerTestOneInput+0xa2>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
cmp    $0x6d,%eax
jne    11b2 <LLVMFuzzerTestOneInput+0xa2>
mov    -0x10(%rbp),%rax
movsbl 0x3(%rax),%eax
cmp    $0x65,%eax
jne    11b2 <LLVMFuzzerTestOneInput+0xa2>
jmp    11ad <LLVMFuzzerTestOneInput+0x9d>
jmp    11ad <LLVMFuzzerTestOneInput+0x9d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LLVMFuzzerTestOneInput>:
push   %rax
mov    (%rdi),%al
cmp    $0x61,%al
je     1146 <LLVMFuzzerTestOneInput+0x36>
cmp    $0x4,%rsi
jb     1142 <LLVMFuzzerTestOneInput+0x32>
cmp    $0x74,%al
jne    1142 <LLVMFuzzerTestOneInput+0x32>
cmpb   $0x69,0x1(%rdi)
jne    1142 <LLVMFuzzerTestOneInput+0x32>
cmpb   $0x6d,0x2(%rdi)
jne    1142 <LLVMFuzzerTestOneInput+0x32>
cmpb   $0x65,0x3(%rdi)
jne    1142 <LLVMFuzzerTestOneInput+0x32>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
jmp    1140 <LLVMFuzzerTestOneInput+0x30>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @LLVMFuzzerTestOneInput(i8* %0, i64 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i64
store i8* %0, i8** %4
store i64 %1, i64* %5
%6 = load i64, i64* %5
%7 = icmp ult i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %2
store i32 0, i32* %3
br label %48
9: ; preds = %2
%10 = load i8*, i8** %4
%11 = getelementptr inbounds i8, i8* %10, i64 0
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 97
br i1 %14, label %15, label %17
15: ; preds = %9
%16 = call i32 (...) @abort()
unreachable
17: ; preds = %9
%18 = load i64, i64* %5
%19 = icmp ult i64 %18, 4
br i1 %19, label %20, label %21
20: ; preds = %17
store i32 0, i32* %3
br label %48
21: ; preds = %17
%22 = load i8*, i8** %4
%23 = getelementptr inbounds i8, i8* %22, i64 0
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = icmp eq i32 %25, 116
br i1 %26, label %27, label %47
27: ; preds = %21
%28 = load i8*, i8** %4
%29 = getelementptr inbounds i8, i8* %28, i64 1
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 105
br i1 %32, label %33, label %47
33: ; preds = %27
%34 = load i8*, i8** %4
%35 = getelementptr inbounds i8, i8* %34, i64 2
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 109
br i1 %38, label %39, label %47
39: ; preds = %33
%40 = load i8*, i8** %4
%41 = getelementptr inbounds i8, i8* %40, i64 3
%42 = load i8, i8* %41
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %43, 101
br i1 %44, label %45, label %47
45: ; preds = %39
br label %46
46: ; preds = %45, %46
br label %46
47: ; preds = %39, %33, %27, %21
store i32 0, i32* %3
br label %48
48: ; preds = %47, %20, %8
%49 = load i32, i32* %3
ret i32 %49
}

LLVM IR (-O2):
define i32 @LLVMFuzzerTestOneInput(i8* nocapture %0, i64 %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 97
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 (...) @abort()
unreachable
7: ; preds = %2
%8 = icmp ugt i64 %1, 3
%9 = icmp eq i8 %3, 116
%10 = select i1 %8, i1 %9, i1 false
br i1 %10, label %11, label %24
11: ; preds = %7
%12 = getelementptr inbounds i8, i8* %0, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 105
br i1 %14, label %15, label %24
15: ; preds = %11
%16 = getelementptr inbounds i8, i8* %0, i64 2
%17 = load i8, i8* %16
%18 = icmp eq i8 %17, 109
br i1 %18, label %19, label %24
19: ; preds = %15
%20 = getelementptr inbounds i8, i8* %0, i64 3
%21 = load i8, i8* %20
%22 = icmp eq i8 %21, 101
br i1 %22, label %23, label %24
23: ; preds = %19, %23
br label %23
24: ; preds = %11, %15, %19, %7
ret i32 0
}