#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*/ _failed_test_case(int, int /*<<< orphan*/);
char *_get_color_lassert(int);
int /*<<< orphan*/ printf(char *, char *, int, char *, char *);
void _REQUIRE_not_null_failed(char *statement, int line) {
  if (statement)
    printf("\n%sFailed to allocate outside a test case line %d :\n\t%s %s\n",
           _get_color_lassert(3), line, statement, _get_color_lassert(0));
  _failed_test_case(1, 0);
}


x86 assembly (clang, -O0):
<_REQUIRE_not_null_failed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1187 <_REQUIRE_not_null_failed+0x57>
mov    $0x3,%edi
call   1040 <_get_color_lassert@plt>
mov    %rax,-0x28(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
xor    %edi,%edi
call   1040 <_get_color_lassert@plt>
mov    -0x28(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    %rax,%r8
lea    0xe7e(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1050 <_failed_test_case@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_REQUIRE_not_null_failed>:
test   %rdi,%rdi
je     116f <_REQUIRE_not_null_failed+0x3f>
push   %rbp
push   %r14
push   %rbx
mov    %esi,%r14d
mov    %rdi,%rbx
mov    $0x3,%edi
call   1040 <_get_color_lassert@plt>
mov    %rax,%rbp
xor    %edi,%edi
call   1040 <_get_color_lassert@plt>
lea    0xea6(%rip),%rdi
mov    %rbp,%rsi
mov    %r14d,%edx
mov    %rbx,%rcx
mov    %rax,%r8
call   1030 <printf@plt>
pop    %rbx
pop    %r14
pop    %rbp
mov    $0x1,%edi
xor    %esi,%esi
jmp    1050 <_failed_test_case@plt>

LLVM IR (-O0):
@.str = [60 x i8] c"\0A%sFailed to allocate outside a test case line %d :\0A\09%s %s\0A\00"
define void @_REQUIRE_not_null_failed(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = icmp ne i8* %5, null
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = call i8* @_get_color_lassert(i32 3)
%9 = load i32, i32* %4
%10 = load i8*, i8** %3
%11 = call i8* @_get_color_lassert(i32 0)
%12 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0), i8* %8, i32 %9, i8* %10, i8* %11)
br label %13
13: ; preds = %7, %2
%14 = call i32 @_failed_test_case(i32 1, i32 0)
ret void
}

LLVM IR (-O2):
@.str = [60 x i8] c"\0A%sFailed to allocate outside a test case line %d :\0A\09%s %s\0A\00"
define void @_REQUIRE_not_null_failed(i8* %0, i32 %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = tail call i8* @_get_color_lassert(i32 3)
%6 = tail call i8* @_get_color_lassert(i32 0)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0), i8* %5, i32 %1, i8* %0, i8* %6)
br label %8
8: ; preds = %4, %2
%9 = tail call i32 @_failed_test_case(i32 1, i32 0)
ret void
}