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


x86 assembly (clang, -O0):
<AssertNeqStr>:
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),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    118d <AssertNeqStr+0x6d>
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    0xe88(%rip),%rdi
mov    %rax,(%rsp)
call   1040 <TESTError_Fail@plt>
movl   $0x0,-0x4(%rbp)
jmp    1194 <AssertNeqStr+0x74>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AssertNeqStr>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %edx,%ebp
mov    %rsi,%rbx
call   1030 <strcmp@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
jne    1171 <AssertNeqStr+0x51>
mov    0x40(%rsp),%rax
mov    %rax,(%rsp)
lea    0xea4(%rip),%rdi
mov    %r12,%rsi
mov    %ebp,%edx
mov    %r15,%rcx
mov    %r14,%r8
mov    %rbx,%r9
call   1040 <TESTError_Fail@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [48 x i8] c"%s:%d> %s() FAILED: %s should not be '%s' (%s)\0A\00"
define i32 @AssertNeqStr(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 = call i64 @strcmp(i8* %16, i8* %17)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %28
20: ; preds = %7
%21 = load i8*, i8** %12
%22 = load i32, i32* %11
%23 = load i8*, i8** %13
%24 = load i8*, i8** %14
%25 = load i8*, i8** %10
%26 = load i8*, i8** %15
%27 = call i32 @TESTError_Fail(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %21, i32 %22, i8* %23, i8* %24, i8* %25, i8* %26)
store i32 0, i32* %8
br label %29
28: ; preds = %7
store i32 1, i32* %8
br label %29
29: ; preds = %28, %20
%30 = load i32, i32* %8
ret i32 %30
}

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