#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 */
struct test_suite {
  int dummy;
};
struct test_context {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ test_abort(struct test_context *, char *, int, char *,
                              char const *);
void test_case_pointer_failure_5(struct test_suite *test_suite,
                                 struct test_context *test_context) {
  do {
    const char *value_str_ = "NULL";
    if (!NULL)
      test_abort(test_context,
                 "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/galdor/libutest/refs/heads/"
                 "master/tests/main.c",
                 122, "%s is null", value_str_);
  } while (0);
}


x86 assembly (clang, -O0):
<test_case_pointer_failure_5>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed9(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%r8
lea    0xecb(%rip),%rsi
mov    $0x7a,%edx
lea    0xf48(%rip),%rcx
call   1030 <test_abort@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_case_pointer_failure_5>:
mov    %rsi,%rdi
lea    0xeeb(%rip),%rsi
lea    0xf6d(%rip),%rcx
lea    0xed8(%rip),%r8
mov    $0x7a,%edx
jmp    1030 <test_abort@plt>

LLVM IR (-O0):
%struct.test_suite = type { i32 }
%struct.test_context = type { i32 }
@.str = [5 x i8] c"NULL\00"
@.str.1 = [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/galdor/libutest/refs/heads/master/tests/main.c\00"
@.str.2 = [11 x i8] c"%s is null\00"
define void @test_case_pointer_failure_5(%struct.test_suite* %0, %struct.test_context* %1) {
%3 = alloca %struct.test_suite*
%4 = alloca %struct.test_context*
%5 = alloca i8*
store %struct.test_suite* %0, %struct.test_suite** %3
store %struct.test_context* %1, %struct.test_context** %4
br label %6
6: ; preds = %2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %5
%7 = load %struct.test_context*, %struct.test_context** %4
%8 = load i8*, i8** %5
%9 = call i32 @test_abort(%struct.test_context* %7, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0), i32 122, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %8)
br label %10
10: ; preds = %6
ret void
}

LLVM IR (-O2):
%struct.test_suite = type { i32 }
%struct.test_context = type { i32 }
@.str = [5 x i8] c"NULL\00"
@.str.1 = [137 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/galdor/libutest/refs/heads/master/tests/main.c\00"
@.str.2 = [11 x i8] c"%s is null\00"
define void @test_case_pointer_failure_5(%struct.test_suite* nocapture readnone %0, %struct.test_context* %1) {
%3 = tail call i32 @test_abort(%struct.test_context* %1, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.1, i64 0, i64 0), i32 122, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret void
}