#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*/ abort();
int /*<<< orphan*/ printf(char *, char const *, int, char const *, char const *,
                          char const *);
scalar_t__ strcmp(char const *, char const *);
void mu_assert_eq_str_impl(const char *file, int line, const char *func,
                           const char *a, const char *b) {
  if (strcmp(a, b) != 0) {
    printf("%s:%d in %s: %s != %s\n", file, line, func, a, b);
    abort();
  }
}


x86 assembly (clang, -O0):
<mu_assert_eq_str_impl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
je     1188 <mu_assert_eq_str_impl+0x58>
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
lea    0xe84(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <abort@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mu_assert_eq_str_impl>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r8,%r14
mov    %rcx,%rbx
mov    %rdx,%r15
mov    %esi,%r12d
mov    %rdi,%rbp
mov    %rcx,%rdi
mov    %r8,%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
jne    1160 <mu_assert_eq_str_impl+0x30>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe99(%rip),%rdi
mov    %rbp,%rsi
mov    %r12d,%edx
mov    %r15,%rcx
mov    %rbx,%r8
mov    %r14,%r9
call   1040 <printf@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"%s:%d in %s: %s != %s\0A\00"
define void @mu_assert_eq_str_impl(i8* %0, i32 %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
store i8* %0, i8** %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%11 = load i8*, i8** %9
%12 = load i8*, i8** %10
%13 = call i64 @strcmp(i8* %11, i8* %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %23
15: ; preds = %5
%16 = load i8*, i8** %6
%17 = load i32, i32* %7
%18 = load i8*, i8** %8
%19 = load i8*, i8** %9
%20 = load i8*, i8** %10
%21 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %16, i32 %17, i8* %18, i8* %19, i8* %20)
%22 = call i32 (...) @abort()
unreachable
23: ; preds = %5
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"%s:%d in %s: %s != %s\0A\00"
define void @mu_assert_eq_str_impl(i8* %0, i32 %1, i8* %2, i8* %3, i8* %4) {
%6 = tail call i64 @strcmp(i8* %3, i8* %4)
%7 = icmp eq i64 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %5
%9 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %1, i8* %2, i8* %3, i8* %4)
%10 = tail call i32 (...) @abort()
unreachable
11: ; preds = %5
ret void
}