#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 */
scalar_t__ MHD_str_has_token_caseless_(char const *, char const *, size_t);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *,
                           char const *, unsigned long);
int /*<<< orphan*/ stderr;
int expect_not_found_n(const char *str, const char *token, size_t token_len) {
  if (MHD_str_has_token_caseless_(str, token, token_len)) {
    fprintf(stderr,
            "MHD_str_has_token_caseless_() "
            "FAILED:\n\tMHD_str_has_token_caseless_(%s, %s, %lu) return true\n",
            str, token, (unsigned long)token_len);
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<expect_not_found_n>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1040 <MHD_str_has_token_caseless_@plt>
cmp    $0x0,%rax
je     117c <expect_not_found_n+0x5c>
mov    0x2e8a(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
lea    0xe95(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1183 <expect_not_found_n+0x63>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<expect_not_found_n>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
call   1040 <MHD_str_has_token_caseless_@plt>
test   %rax,%rax
je     115d <expect_not_found_n+0x3d>
mov    0x2ea1(%rip),%rax
mov    (%rax),%edi
lea    0xeb8(%rip),%rsi
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %r14,%r8
call   1030 <fprintf@plt>
mov    $0x1,%eax
jmp    115f <expect_not_found_n+0x3f>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [93 x i8] c"MHD_str_has_token_caseless_() FAILED:\0A\09MHD_str_has_token_caseless_(%s, %s, %lu) return true\0A\00"
define i32 @expect_not_found_n(i8* %0, i8* %1, i64 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i64
store i8* %0, i8** %5
store i8* %1, i8** %6
store i64 %2, i64* %7
%8 = load i8*, i8** %5
%9 = load i8*, i8** %6
%10 = load i64, i64* %7
%11 = call i64 @MHD_str_has_token_caseless_(i8* %8, i8* %9, i64 %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %19
13: ; preds = %3
%14 = load i32, i32* @stderr
%15 = load i8*, i8** %5
%16 = load i8*, i8** %6
%17 = load i64, i64* %7
%18 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str, i64 0, i64 0), i8* %15, i8* %16, i64 %17)
store i32 1, i32* %4
br label %20
19: ; preds = %3
store i32 0, i32* %4
br label %20
20: ; preds = %19, %13
%21 = load i32, i32* %4
ret i32 %21
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [93 x i8] c"MHD_str_has_token_caseless_() FAILED:\0A\09MHD_str_has_token_caseless_(%s, %s, %lu) return true\0A\00"
define i32 @expect_not_found_n(i8* %0, i8* %1, i64 %2) {
%4 = tail call i64 @MHD_str_has_token_caseless_(i8* %0, i8* %1, i64 %2)
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %3
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1, i64 %2)
br label %9
9: ; preds = %3, %6
%10 = phi i32 [ 1, %6 ], [ 0, %3 ]
ret i32 %10
}