#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 */
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ test_case(int, char *, int /*<<< orphan*/);
int /*<<< orphan*/ test_mem_eq(char *, int, char *, char *, char *, int, char *,
                               int);
int /*<<< orphan*/ test_mem_ne(char *, int, char *, char *, char *,
                               int /*<<< orphan*/, char *, int /*<<< orphan*/);
int test_memory(void) {
  static char buf[] = "xyz";
  if (!test_case(
          (1), "TEST_mem_eq(NULL, 0, NULL, 0)",
          (test_mem_eq(
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/"
              "heads/master/Src/OSF/OpenSSL-111/test/test_test.c",
              284, "NULL", "NULL", NULL, 0, NULL, 0))) |
      !test_case(
          (1), "TEST_mem_eq(NULL, 1, NULL, 2)",
          (test_mem_eq(
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/"
              "heads/master/Src/OSF/OpenSSL-111/test/test_test.c",
              285, "NULL", "NULL", NULL, 1, NULL, 2))) |
      !test_case(
          (0), "TEST_mem_eq(NULL, 0, \"xyz\", 3)",
          (test_mem_eq(
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/"
              "heads/master/Src/OSF/OpenSSL-111/test/test_test.c",
              286, "NULL", "\"xyz\"", NULL, 0, "xyz", 3))) |
      !test_case(
          (0), "TEST_mem_eq(NULL, 7, \"abc\", 3)",
          (test_mem_eq(
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/"
              "heads/master/Src/OSF/OpenSSL-111/test/test_test.c",
              287, "NULL", "\"abc\"", NULL, 7, "abc", 3))) |
      !test_case(
          (0), "TEST_mem_ne(NULL, 0, NULL, 0)",
          (test_mem_ne(
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/"
              "heads/master/Src/OSF/OpenSSL-111/test/test_test.c",
              288, "NULL", "NULL", NULL, 0, NULL, 0))) |
      !test_case(
          (0), "TEST_mem_eq(NULL, 0, \"\", 0)",
          (test_mem_eq(
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/"
              "heads/master/Src/OSF/OpenSSL-111/test/test_test.c",
              289, "NULL", "\"\"", NULL, 0, "", 0))) |
      !test_case(
          (0), "TEST_mem_eq(\"\", 0, NULL, 0)",
          (test_mem_eq(
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/"
              "heads/master/Src/OSF/OpenSSL-111/test/test_test.c",
              290, "\"\"", "NULL", "", 0, NULL, 0))) |
      !test_case(
          (0), "TEST_mem_ne(\"\", 0, \"\", 0)",
          (test_mem_ne(
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/"
              "heads/master/Src/OSF/OpenSSL-111/test/test_test.c",
              291, "\"\"", "\"\"", "", 0, "", 0))) |
      !test_case(
          (0), "TEST_mem_eq(\"xyz\", 3, NULL, 0)",
          (test_mem_eq(
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/"
              "heads/master/Src/OSF/OpenSSL-111/test/test_test.c",
              292, "\"xyz\"", "NULL", "xyz", 3, NULL, 0))) |
      !test_case(
          (0), "TEST_mem_eq(\"xyz\", 3, buf, sizeof(buf))",
          (test_mem_eq(
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/"
              "heads/master/Src/OSF/OpenSSL-111/test/test_test.c",
              293, "\"xyz\"", "buf", "xyz", 3, buf, sizeof(buf)))) |
      !test_case(
          (1), "TEST_mem_eq(\"xyz\", 4, buf, sizeof(buf))",
          (test_mem_eq(
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/"
              "heads/master/Src/OSF/OpenSSL-111/test/test_test.c",
              294, "\"xyz\"", "buf", "xyz", 4, buf, sizeof(buf)))))
    goto err;
  return 1;
err:
  return 0;
}


x86 assembly (clang, -O0):
<test_memory>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    0xedf(%rip),%rdi
mov    $0x11c,%esi
lea    0xf80(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
xor    %r9d,%r9d
mov    %rcx,%rdx
movq   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1050 <test_mem_eq@plt>
mov    %eax,%edx
mov    $0x1,%edi
lea    0xe87(%rip),%rsi
call   1040 <test_case@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x2c(%rbp)
lea    0xe89(%rip),%rdi
mov    $0x11d,%esi
lea    0xf2a(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
mov    $0x1,%r9d
mov    %rcx,%rdx
movq   $0x0,(%rsp)
movl   $0x2,0x8(%rsp)
call   1050 <test_mem_eq@plt>
mov    %eax,%edx
mov    $0x1,%edi
lea    0xefe(%rip),%rsi
call   1040 <test_case@plt>
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x28(%rbp)
lea    0xe27(%rip),%rdi
mov    $0x11e,%esi
lea    0xec8(%rip),%rdx
lea    0xf03(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
xor    %r9d,%r9d
lea    0xefa(%rip),%rax
mov    %rax,(%rsp)
movl   $0x3,0x8(%rsp)
call   1050 <test_mem_eq@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xeb9(%rip),%rsi
call   1040 <test_case@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x24(%rbp)
lea    0xdc4(%rip),%rdi
mov    $0x11f,%esi
lea    0xe65(%rip),%rdx
lea    0xec9(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
mov    $0x7,%r9d
lea    0xebd(%rip),%rax
mov    %rax,(%rsp)
movl   $0x3,0x8(%rsp)
call   1050 <test_mem_eq@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xe7c(%rip),%rsi
call   1040 <test_case@plt>
mov    %eax,%ecx
mov    -0x24(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x20(%rbp)
lea    0xd5e(%rip),%rdi
mov    $0x120,%esi
lea    0xdff(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
xor    %r9d,%r9d
mov    %rcx,%rdx
movq   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1030 <test_mem_ne@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xe49(%rip),%rsi
call   1040 <test_case@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x1c(%rbp)
lea    0xd02(%rip),%rdi
mov    $0x121,%esi
lea    0xda3(%rip),%rdx
lea    0xe4b(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
xor    %r9d,%r9d
lea    0xe3e(%rip),%rax
mov    %rax,(%rsp)
movl   $0x0,0x8(%rsp)
call   1050 <test_mem_eq@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xe04(%rip),%rsi
call   1040 <test_case@plt>
mov    %eax,%ecx
mov    -0x1c(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x18(%rbp)
lea    0xc9f(%rip),%rdi
mov    $0x122,%esi
lea    0xdef(%rip),%rdx
lea    0xd39(%rip),%rcx
lea    0xde3(%rip),%r8
xor    %r9d,%r9d
xor    %eax,%eax
movq   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1050 <test_mem_eq@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xdbf(%rip),%rsi
call   1040 <test_case@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x14(%rbp)
lea    0xc3b(%rip),%rdi
mov    $0x123,%esi
lea    0xd8b(%rip),%rcx
lea    0xd86(%rip),%rax
xor    %r9d,%r9d
mov    %rcx,%rdx
mov    %rax,%r8
mov    %rax,(%rsp)
movl   $0x0,0x8(%rsp)
call   1030 <test_mem_ne@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xd7e(%rip),%rsi
call   1040 <test_case@plt>
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
lea    0xbde(%rip),%rdi
mov    $0x124,%esi
lea    0xcc1(%rip),%rdx
lea    0xc78(%rip),%rcx
lea    0xcb9(%rip),%r8
mov    $0x3,%r9d
xor    %eax,%eax
xor    %eax,%eax
movq   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1050 <test_mem_eq@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xd2f(%rip),%rsi
call   1040 <test_case@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
lea    0xb75(%rip),%rdi
mov    $0x125,%esi
lea    0xc58(%rip),%rdx
lea    0xd3e(%rip),%rcx
lea    0xc50(%rip),%r8
mov    $0x3,%r9d
lea    0x2b68(%rip),%rax
mov    %rax,(%rsp)
movl   $0x4,0x8(%rsp)
call   1050 <test_mem_eq@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xce6(%rip),%rsi
call   1040 <test_case@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x8(%rbp)
lea    0xb0d(%rip),%rdi
mov    $0x126,%esi
lea    0xbf0(%rip),%rdx
lea    0xcd6(%rip),%rcx
lea    0xbe8(%rip),%r8
mov    $0x4,%r9d
lea    0x2b00(%rip),%rax
mov    %rax,(%rsp)
movl   $0x4,0x8(%rsp)
call   1050 <test_mem_eq@plt>
mov    %eax,%edx
mov    $0x1,%edi
lea    0xca7(%rip),%rsi
call   1040 <test_case@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
cmp    $0x0,%eax
je     1580 <test_memory+0x450>
jmp    158c <test_memory+0x45c>
movl   $0x1,-0x4(%rbp)
jmp    1593 <test_memory+0x463>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_memory>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xedc(%rip),%r13
lea    0xf82(%rip),%r14
mov    %r13,%rdi
mov    $0x11c,%esi
mov    %r14,%rdx
mov    %r14,%rcx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x0
call   1050 <test_mem_eq@plt>
add    $0x10,%rsp
lea    0xe8f(%rip),%rsi
mov    $0x1,%edi
mov    %eax,%edx
call   1040 <test_case@plt>
test   %eax,%eax
setne  %bpl
mov    %r13,%rdi
mov    $0x11d,%esi
mov    %r14,%rdx
mov    %r14,%rcx
xor    %r8d,%r8d
mov    $0x1,%r9d
push   $0x2
push   $0x0
call   1050 <test_mem_eq@plt>
add    $0x10,%rsp
lea    0xf22(%rip),%rsi
mov    $0x1,%edi
mov    %eax,%edx
call   1040 <test_case@plt>
test   %eax,%eax
setne  %bl
and    %bpl,%bl
lea    0xf4a(%rip),%rax
lea    0xf3d(%rip),%rcx
mov    %r13,%rdi
mov    $0x11e,%esi
mov    %r14,%rdx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x3
push   %rax
call   1050 <test_mem_eq@plt>
add    $0x10,%rsp
lea    0xefa(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1040 <test_case@plt>
test   %eax,%eax
setne  %bpl
lea    0xf32(%rip),%rax
lea    0xf25(%rip),%rcx
mov    %r13,%rdi
mov    $0x11f,%esi
mov    %r14,%rdx
xor    %r8d,%r8d
mov    $0x7,%r9d
push   $0x3
push   %rax
call   1050 <test_mem_eq@plt>
add    $0x10,%rsp
lea    0xedf(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1040 <test_case@plt>
test   %eax,%eax
setne  %r12b
and    %bpl,%r12b
and    %bl,%r12b
mov    %r13,%rdi
mov    $0x120,%esi
mov    %r14,%rbp
mov    %r14,%rdx
mov    %r14,%rcx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x0
call   1030 <test_mem_ne@plt>
add    $0x10,%rsp
lea    0xec8(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1040 <test_case@plt>
test   %eax,%eax
setne  %bl
lea    0xeef(%rip),%rax
lea    0xee6(%rip),%r15
mov    %r13,%rdi
mov    %r13,%r14
mov    $0x121,%esi
mov    %rbp,%rdx
mov    %r15,%rcx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x0
push   %rax
mov    %rax,%rbp
call   1050 <test_mem_eq@plt>
add    $0x10,%rsp
lea    0xe9d(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1040 <test_case@plt>
test   %eax,%eax
setne  %r13b
and    %bl,%r13b
mov    %r14,%rdi
mov    %r14,%rbx
mov    $0x122,%esi
mov    %r15,%rdx
lea    0xde3(%rip),%rcx
mov    %rbp,%r8
xor    %r9d,%r9d
push   $0x0
push   $0x0
call   1050 <test_mem_eq@plt>
add    $0x10,%rsp
lea    0xe7b(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1040 <test_case@plt>
test   %eax,%eax
setne  %r14b
and    %r13b,%r14b
and    %r12b,%r14b
mov    %rbx,%r12
mov    %rbx,%rdi
mov    $0x123,%esi
mov    %r15,%rdx
mov    %r15,%rcx
mov    %rbp,%r8
xor    %r9d,%r9d
push   $0x0
push   %rbp
call   1030 <test_mem_ne@plt>
add    $0x10,%rsp
lea    0xe58(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1040 <test_case@plt>
test   %eax,%eax
setne  %bpl
mov    %rbx,%rdi
mov    $0x124,%esi
lea    0xdae(%rip),%rbx
mov    %rbx,%rdx
lea    0xd62(%rip),%rcx
lea    0xda3(%rip),%r13
mov    %r13,%r8
mov    $0x3,%r9d
push   $0x0
push   $0x0
call   1050 <test_mem_eq@plt>
add    $0x10,%rsp
lea    0xe26(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1040 <test_case@plt>
test   %eax,%eax
setne  %r15b
and    %bpl,%r15b
lea    0x2c92(%rip),%rax
lea    0xe4d(%rip),%rbp
mov    %r12,%rdi
mov    $0x125,%esi
mov    %rbx,%rdx
mov    %rbp,%rcx
mov    %r13,%r8
mov    $0x3,%r9d
push   $0x4
push   %rax
call   1050 <test_mem_eq@plt>
add    $0x10,%rsp
lea    0xdfb(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1040 <test_case@plt>
test   %eax,%eax
setne  %bl
and    %r15b,%bl
mov    %r12,%rdi
mov    $0x126,%esi
lea    0xd16(%rip),%rdx
mov    %rbp,%rcx
mov    %r13,%r8
mov    $0x4,%r9d
push   $0x4
lea    0x2c2c(%rip),%rax
push   %rax
call   1050 <test_mem_eq@plt>
add    $0x10,%rsp
lea    0xde1(%rip),%rsi
mov    $0x1,%edi
mov    %eax,%edx
call   1040 <test_case@plt>
test   %eax,%eax
setne  %al
and    %bl,%al
and    %r14b,%al
movzbl %al,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@test_memory.buf = internal global [4 x i8] c"xyz\00"
@.str = [30 x i8] c"TEST_mem_eq(NULL, 0, NULL, 0)\00"
@.str.1 = [173 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/master/Src/OSF/OpenSSL-111/test/test_test.c\00"
@.str.2 = [5 x i8] c"NULL\00"
@.str.3 = [30 x i8] c"TEST_mem_eq(NULL, 1, NULL, 2)\00"
@.str.4 = [31 x i8] c"TEST_mem_eq(NULL, 0, \22xyz\22, 3)\00"
@.str.5 = [6 x i8] c"\22xyz\22\00"
@.str.6 = [4 x i8] c"xyz\00"
@.str.7 = [31 x i8] c"TEST_mem_eq(NULL, 7, \22abc\22, 3)\00"
@.str.8 = [6 x i8] c"\22abc\22\00"
@.str.9 = [4 x i8] c"abc\00"
@.str.10 = [30 x i8] c"TEST_mem_ne(NULL, 0, NULL, 0)\00"
@.str.11 = [28 x i8] c"TEST_mem_eq(NULL, 0, \22\22, 0)\00"
@.str.12 = [3 x i8] c"\22\22\00"
@.str.13 = [1 x i8] zeroinitializer
@.str.14 = [28 x i8] c"TEST_mem_eq(\22\22, 0, NULL, 0)\00"
@.str.15 = [26 x i8] c"TEST_mem_ne(\22\22, 0, \22\22, 0)\00"
@.str.16 = [31 x i8] c"TEST_mem_eq(\22xyz\22, 3, NULL, 0)\00"
@.str.17 = [40 x i8] c"TEST_mem_eq(\22xyz\22, 3, buf, sizeof(buf))\00"
@.str.18 = [4 x i8] c"buf\00"
@.str.19 = [40 x i8] c"TEST_mem_eq(\22xyz\22, 4, buf, sizeof(buf))\00"
define i32 @test_memory() {
%1 = alloca i32
%2 = call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 284, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* null, i32 0, i8* null, i32 0)
%3 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = icmp ne i32 %3, 0
%5 = xor i1 %4, true
%6 = zext i1 %5 to i32
%7 = call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 285, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* null, i32 1, i8* null, i32 2)
%8 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = icmp ne i32 %8, 0
%10 = xor i1 %9, true
%11 = zext i1 %10 to i32
%12 = or i32 %6, %11
%13 = call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 286, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* null, i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 3)
%14 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i32 %13)
%15 = icmp ne i32 %14, 0
%16 = xor i1 %15, true
%17 = zext i1 %16 to i32
%18 = or i32 %12, %17
%19 = call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 287, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* null, i32 7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 3)
%20 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %19)
%21 = icmp ne i32 %20, 0
%22 = xor i1 %21, true
%23 = zext i1 %22 to i32
%24 = or i32 %18, %23
%25 = call i32 @test_mem_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 288, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* null, i32 0, i8* null, i32 0)
%26 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %25)
%27 = icmp ne i32 %26, 0
%28 = xor i1 %27, true
%29 = zext i1 %28 to i32
%30 = or i32 %24, %29
%31 = call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 289, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* null, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.13, i64 0, i64 0), i32 0)
%32 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0), i32 %31)
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
%35 = zext i1 %34 to i32
%36 = or i32 %30, %35
%37 = call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 290, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.13, i64 0, i64 0), i32 0, i8* null, i32 0)
%38 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i32 %37)
%39 = icmp ne i32 %38, 0
%40 = xor i1 %39, true
%41 = zext i1 %40 to i32
%42 = or i32 %36, %41
%43 = call i32 @test_mem_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 291, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.13, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.13, i64 0, i64 0), i32 0)
%44 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i32 %43)
%45 = icmp ne i32 %44, 0
%46 = xor i1 %45, true
%47 = zext i1 %46 to i32
%48 = or i32 %42, %47
%49 = call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 292, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 3, i8* null, i32 0)
%50 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.16, i64 0, i64 0), i32 %49)
%51 = icmp ne i32 %50, 0
%52 = xor i1 %51, true
%53 = zext i1 %52 to i32
%54 = or i32 %48, %53
%55 = call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 293, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @test_memory.buf, i64 0, i64 0), i32 4)
%56 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.17, i64 0, i64 0), i32 %55)
%57 = icmp ne i32 %56, 0
%58 = xor i1 %57, true
%59 = zext i1 %58 to i32
%60 = or i32 %54, %59
%61 = call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 294, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @test_memory.buf, i64 0, i64 0), i32 4)
%62 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.19, i64 0, i64 0), i32 %61)
%63 = icmp ne i32 %62, 0
%64 = xor i1 %63, true
%65 = zext i1 %64 to i32
%66 = or i32 %60, %65
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %69
68: ; preds = %0
br label %70
69: ; preds = %0
store i32 1, i32* %1
br label %71
70: ; preds = %68
store i32 0, i32* %1
br label %71
71: ; preds = %70, %69
%72 = load i32, i32* %1
ret i32 %72
}

LLVM IR (-O2):
@test_memory.buf = internal global [4 x i8] c"xyz\00"
@.str = [30 x i8] c"TEST_mem_eq(NULL, 0, NULL, 0)\00"
@.str.1 = [173 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/master/Src/OSF/OpenSSL-111/test/test_test.c\00"
@.str.2 = [5 x i8] c"NULL\00"
@.str.3 = [30 x i8] c"TEST_mem_eq(NULL, 1, NULL, 2)\00"
@.str.4 = [31 x i8] c"TEST_mem_eq(NULL, 0, \22xyz\22, 3)\00"
@.str.5 = [6 x i8] c"\22xyz\22\00"
@.str.6 = [4 x i8] c"xyz\00"
@.str.7 = [31 x i8] c"TEST_mem_eq(NULL, 7, \22abc\22, 3)\00"
@.str.8 = [6 x i8] c"\22abc\22\00"
@.str.9 = [4 x i8] c"abc\00"
@.str.10 = [30 x i8] c"TEST_mem_ne(NULL, 0, NULL, 0)\00"
@.str.11 = [28 x i8] c"TEST_mem_eq(NULL, 0, \22\22, 0)\00"
@.str.12 = [3 x i8] c"\22\22\00"
@.str.13 = [1 x i8] zeroinitializer
@.str.14 = [28 x i8] c"TEST_mem_eq(\22\22, 0, NULL, 0)\00"
@.str.15 = [26 x i8] c"TEST_mem_ne(\22\22, 0, \22\22, 0)\00"
@.str.16 = [31 x i8] c"TEST_mem_eq(\22xyz\22, 3, NULL, 0)\00"
@.str.17 = [40 x i8] c"TEST_mem_eq(\22xyz\22, 3, buf, sizeof(buf))\00"
@.str.18 = [4 x i8] c"buf\00"
@.str.19 = [40 x i8] c"TEST_mem_eq(\22xyz\22, 4, buf, sizeof(buf))\00"
define i32 @test_memory() {
%1 = tail call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 284, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* null, i32 0, i8* null, i32 0)
%2 = tail call i32 @test_case(i32 1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = icmp eq i32 %2, 0
%4 = tail call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 285, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* null, i32 1, i8* null, i32 2)
%5 = tail call i32 @test_case(i32 1, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %4)
%6 = icmp eq i32 %5, 0
%7 = or i1 %3, %6
%8 = tail call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 286, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* null, i32 0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 3)
%9 = tail call i32 @test_case(i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i32 %8)
%10 = icmp eq i32 %9, 0
%11 = or i1 %7, %10
%12 = tail call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 287, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* null, i32 7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 3)
%13 = tail call i32 @test_case(i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %12)
%14 = icmp eq i32 %13, 0
%15 = or i1 %11, %14
%16 = tail call i32 @test_mem_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 288, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* null, i32 0, i8* null, i32 0)
%17 = tail call i32 @test_case(i32 0, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %16)
%18 = icmp eq i32 %17, 0
%19 = or i1 %15, %18
%20 = tail call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 289, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* null, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.13, i64 0, i64 0), i32 0)
%21 = tail call i32 @test_case(i32 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0), i32 %20)
%22 = icmp eq i32 %21, 0
%23 = or i1 %19, %22
%24 = tail call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 290, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.13, i64 0, i64 0), i32 0, i8* null, i32 0)
%25 = tail call i32 @test_case(i32 0, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i32 %24)
%26 = icmp eq i32 %25, 0
%27 = or i1 %23, %26
%28 = tail call i32 @test_mem_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 291, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.13, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.13, i64 0, i64 0), i32 0)
%29 = tail call i32 @test_case(i32 0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i32 %28)
%30 = icmp eq i32 %29, 0
%31 = or i1 %27, %30
%32 = tail call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 292, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 3, i8* null, i32 0)
%33 = tail call i32 @test_case(i32 0, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.16, i64 0, i64 0), i32 %32)
%34 = icmp eq i32 %33, 0
%35 = or i1 %31, %34
%36 = tail call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 293, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @test_memory.buf, i64 0, i64 0), i32 4)
%37 = tail call i32 @test_case(i32 0, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.17, i64 0, i64 0), i32 %36)
%38 = icmp eq i32 %37, 0
%39 = or i1 %35, %38
%40 = tail call i32 @test_mem_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 294, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i32 4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @test_memory.buf, i64 0, i64 0), i32 4)
%41 = tail call i32 @test_case(i32 1, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.19, i64 0, i64 0), i32 %40)
%42 = icmp eq i32 %41, 0
%43 = or i1 %39, %42
%44 = xor i1 %43, true
%45 = zext i1 %44 to i32
ret i32 %45
}