#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*/ test_fail_memory_common(char const *, char const *, int,
                                           char const *, char const *,
                                           char const *, char const *,
                                           unsigned char const *, size_t,
                                           unsigned char const *, size_t);
int /*<<< orphan*/ test_printf_stderr(char *);
void test_fail_memory_message(const char *prefix, const char *file, int line,
                              const char *type, const char *left,
                              const char *right, const char *op,
                              const unsigned char *m1, size_t l1,
                              const unsigned char *m2, size_t l2) {
  test_fail_memory_common(prefix, file, line, type, left, right, op, m1, l1, m2,
                          l2);
  test_printf_stderr("\n");
}


x86 assembly (clang, -O0):
<test_fail_memory_message>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0x60,%rsp
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %edx,-0x24(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x24(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    -0x40(%rbp),%r9
mov    0x10(%rbp),%r14
mov    0x18(%rbp),%rbx
mov    0x20(%rbp),%r11
mov    0x28(%rbp),%r10
mov    0x30(%rbp),%rax
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
call   1040 <test_fail_memory_common@plt>
lea    0xe5b(%rip),%rdi
call   1030 <test_printf_stderr@plt>
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_fail_memory_message>:
sub    $0x28,%rsp
movaps 0x30(%rsp),%xmm0
movaps 0x40(%rsp),%xmm1
mov    0x50(%rsp),%rax
mov    %rax,0x20(%rsp)
movups %xmm1,0x10(%rsp)
movups %xmm0,(%rsp)
call   1040 <test_fail_memory_common@plt>
lea    0xeb3(%rip),%rdi
add    $0x28,%rsp
jmp    1030 <test_printf_stderr@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define void @test_fail_memory_message(i8* %0, i8* %1, i32 %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i64 %8, i8* %9, i64 %10) {
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i64
%21 = alloca i8*
%22 = alloca i64
store i8* %0, i8** %12
store i8* %1, i8** %13
store i32 %2, i32* %14
store i8* %3, i8** %15
store i8* %4, i8** %16
store i8* %5, i8** %17
store i8* %6, i8** %18
store i8* %7, i8** %19
store i64 %8, i64* %20
store i8* %9, i8** %21
store i64 %10, i64* %22
%23 = load i8*, i8** %12
%24 = load i8*, i8** %13
%25 = load i32, i32* %14
%26 = load i8*, i8** %15
%27 = load i8*, i8** %16
%28 = load i8*, i8** %17
%29 = load i8*, i8** %18
%30 = load i8*, i8** %19
%31 = load i64, i64* %20
%32 = load i8*, i8** %21
%33 = load i64, i64* %22
%34 = call i32 @test_fail_memory_common(i8* %23, i8* %24, i32 %25, i8* %26, i8* %27, i8* %28, i8* %29, i8* %30, i64 %31, i8* %32, i64 %33)
%35 = call i32 @test_printf_stderr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
define void @test_fail_memory_message(i8* %0, i8* %1, i32 %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i64 %8, i8* %9, i64 %10) {
%12 = tail call i32 @test_fail_memory_common(i8* %0, i8* %1, i32 %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i64 %8, i8* %9, i64 %10)
%13 = tail call i32 @test_printf_stderr(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}