#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*/ _assert_int_equal(unsigned long long, unsigned long long,
                                     char *, int);
scalar_t__ find_operator_function_by_string(int /*<<< orphan*/,
                                            int /*<<< orphan*/ *, char *);
void test_find_operator_function_by_string_valid_null_functions(void **state) {
  (void)state;
  _assert_int_equal(
      ((unsigned long long)((unsigned)(size_t)(find_operator_function_by_string(
          0, NULL, "test")))),
      ((unsigned long long)((unsigned)(size_t)(NULL))),
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/akikoskinen/cmocka/refs/heads/master/src/"
      "example/calculator_test.c",
      162);
}


x86 assembly (clang, -O0):
<test_find_operator_function_by_string_valid_null_functions>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
lea    0xec7(%rip),%rdx
call   1030 <find_operator_function_by_string@plt>
mov    %eax,%eax
mov    %eax,%edi
xor    %eax,%eax
mov    %eax,%esi
lea    0xeb8(%rip),%rdx
mov    $0xa2,%ecx
call   1040 <_assert_int_equal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_find_operator_function_by_string_valid_null_functions>:
push   %rax
lea    0xed8(%rip),%rdx
xor    %edi,%edi
xor    %esi,%esi
call   1030 <find_operator_function_by_string@plt>
mov    %eax,%edi
lea    0xecb(%rip),%rdx
xor    %esi,%esi
mov    $0xa2,%ecx
pop    %rax
jmp    1040 <_assert_int_equal@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"test\00"
@.str.1 = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/akikoskinen/cmocka/refs/heads/master/src/example/calculator_test.c\00"
define void @test_find_operator_function_by_string_valid_null_functions(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = call i64 @find_operator_function_by_string(i32 0, i32* null, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%5 = trunc i64 %4 to i32
%6 = zext i32 %5 to i64
%7 = call i32 @_assert_int_equal(i64 %6, i64 0, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i32 162)
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"test\00"
@.str.1 = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/akikoskinen/cmocka/refs/heads/master/src/example/calculator_test.c\00"
define void @test_find_operator_function_by_string_valid_null_functions(i8** nocapture readnone %0) {
%2 = tail call i64 @find_operator_function_by_string(i32 0, i32* null, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = and i64 %2, 4294967295
%4 = tail call i32 @_assert_int_equal(i64 %3, i64 0, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.1, i64 0, i64 0), i32 162)
ret void
}