#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*/ TESTError_Fail(char *, char const *, int, char const *,
                                  char const *, void *, char const *);
int AssertNeqPtr(void *a, void *b, int line, const char *file,
                 const char *function, const char *aexp, const char *bexp) {
  if (a == b) {
    TESTError_Fail("%s:%d> %s() FAILED: %s should not be %d (%s)\n", file, line,
                   function, aexp, b, bexp);
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<AssertNeqPtr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x10(%rbp),%rax
cmp    -0x18(%rbp),%rax
jne    1174 <AssertNeqPtr+0x64>
mov    -0x28(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    0x10(%rbp),%rax
lea    0xea1(%rip),%rdi
mov    %rax,(%rsp)
call   1030 <TESTError_Fail@plt>
movl   $0x0,-0x4(%rbp)
jmp    117b <AssertNeqPtr+0x6b>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AssertNeqPtr>:
mov    $0x1,%eax
cmp    %rsi,%rdi
je     111b <AssertNeqPtr+0xb>
ret
push   %rax
mov    %rdi,%r10
mov    0x10(%rsp),%rax
mov    %rax,(%rsp)
lea    0xed1(%rip),%rdi
mov    %rcx,%rsi
mov    %r8,%rcx
mov    %r9,%r8
mov    %r10,%r9
call   1030 <TESTError_Fail@plt>
xor    %eax,%eax
add    $0x8,%rsp
ret

LLVM IR (-O0):
@.str = [46 x i8] c"%s:%d> %s() FAILED: %s should not be %d (%s)\0A\00"
define i32 @AssertNeqPtr(i8* %0, i8* %1, i32 %2, i8* %3, i8* %4, i8* %5, i8* %6) {
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
store i8* %0, i8** %9
store i8* %1, i8** %10
store i32 %2, i32* %11
store i8* %3, i8** %12
store i8* %4, i8** %13
store i8* %5, i8** %14
store i8* %6, i8** %15
%16 = load i8*, i8** %9
%17 = load i8*, i8** %10
%18 = icmp eq i8* %16, %17
br i1 %18, label %19, label %27
19: ; preds = %7
%20 = load i8*, i8** %12
%21 = load i32, i32* %11
%22 = load i8*, i8** %13
%23 = load i8*, i8** %14
%24 = load i8*, i8** %10
%25 = load i8*, i8** %15
%26 = call i32 @TESTError_Fail(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* %20, i32 %21, i8* %22, i8* %23, i8* %24, i8* %25)
store i32 0, i32* %8
br label %28
27: ; preds = %7
store i32 1, i32* %8
br label %28
28: ; preds = %27, %19
%29 = load i32, i32* %8
ret i32 %29
}

LLVM IR (-O2):
@.str = [46 x i8] c"%s:%d> %s() FAILED: %s should not be %d (%s)\0A\00"
define i32 @AssertNeqPtr(i8* readnone %0, i8* %1, i32 %2, i8* %3, i8* %4, i8* %5, i8* %6) {
%8 = icmp eq i8* %0, %1
br i1 %8, label %9, label %11
9: ; preds = %7
%10 = tail call i32 @TESTError_Fail(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i8* %3, i32 %2, i8* %4, i8* %5, i8* %0, i8* %6)
br label %11
11: ; preds = %7, %9
%12 = phi i32 [ 0, %9 ], [ 1, %7 ]
ret i32 %12
}