#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*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *,
                           char const *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcmp(char const *, char const *);
void VerificationFailure(const char *exp, const char *file,
                         const char *baseFile, int line) {
  if (!strcmp(file, baseFile)) {
    fprintf(stderr, "Verify333(%s) failed in file %s, line %d\n", exp, file,
            line);
  } else {
    fprintf(stderr,
            "Verify333(%s) failed in file %s (included from %s), line %d\n",
            exp, file, baseFile, line);
  }
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<VerificationFailure>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1185 <VerificationFailure+0x55>
mov    0x2e7c(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
lea    0xe87(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    11ac <VerificationFailure+0x7c>
mov    0x2e54(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x1c(%rbp),%r9d
lea    0xe85(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e25(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<VerificationFailure>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %rdx,%rbp
mov    %rsi,%rbx
mov    %rdi,%r15
mov    %rsi,%rdi
mov    %rdx,%rsi
call   1030 <strcmp@plt>
mov    0x2e8b(%rip),%rcx
mov    (%rcx),%edi
test   %eax,%eax
jne    1174 <VerificationFailure+0x44>
lea    0xe9e(%rip),%rsi
mov    %r15,%rdx
mov    %rbx,%rcx
mov    %r14d,%r8d
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    118e <VerificationFailure+0x5e>
lea    0xeaf(%rip),%rsi
mov    %r15,%rdx
mov    %rbx,%rcx
mov    %rbp,%r8
mov    %r14d,%r9d
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x2e43(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [42 x i8] c"Verify333(%s) failed in file %s, line %d\0A\00"
@.str.1 = [61 x i8] c"Verify333(%s) failed in file %s (included from %s), line %d\0A\00"
@EXIT_FAILURE = global i32 0
define void @VerificationFailure(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%9 = load i8*, i8** %6
%10 = load i8*, i8** %7
%11 = call i32 @strcmp(i8* %9, i8* %10)
%12 = icmp ne i32 %11, 0
br i1 %12, label %19, label %13
13: ; preds = %4
%14 = load i32, i32* @stderr
%15 = load i8*, i8** %5
%16 = load i8*, i8** %6
%17 = load i32, i32* %8
%18 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %15, i8* %16, i32 %17)
br label %26
19: ; preds = %4
%20 = load i32, i32* @stderr
%21 = load i8*, i8** %5
%22 = load i8*, i8** %6
%23 = load i8*, i8** %7
%24 = load i32, i32* %8
%25 = call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i8* %21, i8* %22, i8* %23, i32 %24)
br label %26
26: ; preds = %19, %13
%27 = load i32, i32* @EXIT_FAILURE
%28 = call i32 @exit(i32 %27)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [42 x i8] c"Verify333(%s) failed in file %s, line %d\0A\00"
@.str.1 = [61 x i8] c"Verify333(%s) failed in file %s (included from %s), line %d\0A\00"
@EXIT_FAILURE = global i32 0
define void @VerificationFailure(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = tail call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(1) %2)
%6 = icmp eq i32 %5, 0
%7 = load i32, i32* @stderr
br i1 %6, label %8, label %10
8: ; preds = %4
%9 = tail call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1, i32 %3)
br label %12
10: ; preds = %4
%11 = tail call i32 (i32, i8*, i8*, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %1, i8* %2, i32 %3)
br label %12
12: ; preds = %10, %8
%13 = load i32, i32* @EXIT_FAILURE
%14 = tail call i32 @exit(i32 %13)
unreachable
}