#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*/ check(void *, int, char *, char const *, char const *,
                         char const *, char const *);
scalar_t__ strcmp(char const *, char const *);
void __string_is_equal(void *context, const char *desc1, const char *subject1,
                       const char *desc2, const char *subject2) {
  subject1 = subject1 == NULL ? "NULL" : subject1;
  subject2 = subject2 == NULL ? "NULL" : subject2;
  check(context, strcmp(subject1, subject2) != 0,
        "\"%s\" (%s) does not equal \"%s\" (%s)", subject1, desc1, subject2,
        desc2);
}


x86 assembly (clang, -O0):
<__string_is_equal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1157 <__string_is_equal+0x37>
lea    0xeb2(%rip),%rax
mov    %rax,-0x30(%rbp)
jmp    115f <__string_is_equal+0x3f>
mov    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1182 <__string_is_equal+0x62>
lea    0xe87(%rip),%rax
mov    %rax,-0x38(%rbp)
jmp    118a <__string_is_equal+0x6a>
mov    -0x28(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1030 <strcmp@plt>
mov    -0x40(%rbp),%rdi
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%esi
mov    -0x18(%rbp),%rcx
mov    -0x10(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0x20(%rbp),%rax
lea    0xe37(%rip),%rdx
mov    %rax,(%rsp)
call   1040 <check@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__string_is_equal>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
mov    %rdx,%r14
test   %rdx,%rdx
lea    0xec6(%rip),%rbx
cmove  %rbx,%r14
mov    %rcx,%r15
mov    %rsi,%r12
mov    %rdi,%r13
test   %r8,%r8
cmovne %r8,%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <strcmp@plt>
xor    %esi,%esi
test   %rax,%rax
setne  %sil
mov    %r15,(%rsp)
lea    0xe98(%rip),%rdx
mov    %r13,%rdi
mov    %r14,%rcx
mov    %r12,%r8
mov    %rbx,%r9
call   1040 <check@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [5 x i8] c"NULL\00"
@.str.1 = [35 x i8] c"\22%s\22 (%s) does not equal \22%s\22 (%s)\00"
define void @__string_is_equal(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%11 = load i8*, i8** %8
%12 = icmp eq i8* %11, null
br i1 %12, label %13, label %14
13: ; preds = %5
br label %16
14: ; preds = %5
%15 = load i8*, i8** %8
br label %16
16: ; preds = %14, %13
%17 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), %13 ], [ %15, %14 ]
store i8* %17, i8** %8
%18 = load i8*, i8** %10
%19 = icmp eq i8* %18, null
br i1 %19, label %20, label %21
20: ; preds = %16
br label %23
21: ; preds = %16
%22 = load i8*, i8** %10
br label %23
23: ; preds = %21, %20
%24 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), %20 ], [ %22, %21 ]
store i8* %24, i8** %10
%25 = load i8*, i8** %6
%26 = load i8*, i8** %8
%27 = load i8*, i8** %10
%28 = call i64 @strcmp(i8* %26, i8* %27)
%29 = icmp ne i64 %28, 0
%30 = zext i1 %29 to i32
%31 = load i8*, i8** %8
%32 = load i8*, i8** %7
%33 = load i8*, i8** %10
%34 = load i8*, i8** %9
%35 = call i32 @check(i8* %25, i32 %30, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0), i8* %31, i8* %32, i8* %33, i8* %34)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"NULL\00"
@.str.1 = [35 x i8] c"\22%s\22 (%s) does not equal \22%s\22 (%s)\00"
define void @__string_is_equal(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = icmp eq i8* %2, null
%7 = select i1 %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %2
%8 = icmp eq i8* %4, null
%9 = select i1 %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %4
%10 = tail call i64 @strcmp(i8* %7, i8* %9)
%11 = icmp ne i64 %10, 0
%12 = zext i1 %11 to i32
%13 = tail call i32 @check(i8* %0, i32 %12, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0), i8* %7, i8* %1, i8* %9, i8* %3)
ret void
}