#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_case(int, char *, int /*<<< orphan*/);
int /*<<< orphan*/ test_ptr(char *, int, char *, char *);
int /*<<< orphan*/ test_ptr_eq(char *, int, char *, char *, ...);
int /*<<< orphan*/ test_ptr_ne(char *, int, char *, char *, ...);
int /*<<< orphan*/ test_ptr_null(char *, int, char *, char *);
int test_pointer(void) {
  int x = 0;
  char y = 1;
  if (!test_case(
          (1), "TEST_ptr(&y)",
          (test_ptr(
              "/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",
              221, "&y", &y))) |
      !test_case(
          (0), "TEST_ptr(NULL)",
          (test_ptr(
              "/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",
              222, "NULL", NULL))) |
      !test_case(
          (0), "TEST_ptr_null(&y)",
          (test_ptr_null(
              "/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",
              223, "&y", &y))) |
      !test_case(
          (1), "TEST_ptr_null(NULL)",
          (test_ptr_null(
              "/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",
              224, "NULL", NULL))) |
      !test_case(
          (1), "TEST_ptr_eq(NULL, NULL)",
          (test_ptr_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",
              225, "NULL", "NULL", NULL, NULL))) |
      !test_case(
          (0), "TEST_ptr_eq(NULL, &y)",
          (test_ptr_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",
              226, "NULL", "&y", NULL, &y))) |
      !test_case(
          (0), "TEST_ptr_eq(&y, NULL)",
          (test_ptr_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",
              227, "&y", "NULL", &y, NULL))) |
      !test_case(
          (0), "TEST_ptr_eq(&y, &x)",
          (test_ptr_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",
              228, "&y", "&x", &y, &x))) |
      !test_case(
          (1), "TEST_ptr_eq(&x, &x)",
          (test_ptr_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",
              229, "&x", "&x", &x, &x))) |
      !test_case(
          (0), "TEST_ptr_ne(NULL, NULL)",
          (test_ptr_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",
              230, "NULL", "NULL", NULL, NULL))) |
      !test_case(
          (1), "TEST_ptr_ne(NULL, &y)",
          (test_ptr_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",
              231, "NULL", "&y", NULL, &y))) |
      !test_case(
          (1), "TEST_ptr_ne(&y, NULL)",
          (test_ptr_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",
              232, "&y", "NULL", &y, NULL))) |
      !test_case(
          (1), "TEST_ptr_ne(&y, &x)",
          (test_ptr_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",
              233, "&y", "&x", &y, &x))) |
      !test_case(
          (0), "TEST_ptr_ne(&x, &x)",
          (test_ptr_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",
              234, "&x", "&x", &x, &x))))
    goto err;
  return 1;
err:
  return 0;
}


x86 assembly (clang, -O0):
<test_pointer>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x8(%rbp)
movb   $0x1,-0x9(%rbp)
lea    0xea3(%rip),%rdi
mov    $0xdd,%esi
lea    0xf44(%rip),%rdx
lea    -0x9(%rbp),%rcx
call   1050 <test_ptr@plt>
mov    %eax,%edx
mov    $0x1,%edi
lea    0xe73(%rip),%rsi
call   1060 <test_case@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x40(%rbp)
lea    0xe64(%rip),%rdi
mov    $0xde,%esi
lea    0xf17(%rip),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   1050 <test_ptr@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xef4(%rip),%rsi
call   1060 <test_case@plt>
mov    %eax,%ecx
mov    -0x40(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x3c(%rbp)
lea    0xe1f(%rip),%rdi
mov    $0xdf,%esi
lea    0xec0(%rip),%rdx
lea    -0x9(%rbp),%rcx
call   1070 <test_ptr_null@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xec3(%rip),%rsi
call   1060 <test_case@plt>
mov    %eax,%ecx
mov    -0x3c(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x38(%rbp)
lea    0xdda(%rip),%rdi
mov    $0xe0,%esi
lea    0xe8d(%rip),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   1070 <test_ptr_null@plt>
mov    %eax,%edx
mov    $0x1,%edi
lea    0xe8d(%rip),%rsi
call   1060 <test_case@plt>
mov    %eax,%ecx
mov    -0x38(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x34(%rbp)
lea    0xd92(%rip),%rdi
mov    $0xe1,%esi
lea    0xe45(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r9d
mov    %rcx,%rdx
mov    %r9,%r8
mov    $0x0,%al
call   1040 <test_ptr_eq@plt>
mov    %eax,%edx
mov    $0x1,%edi
lea    0xe50(%rip),%rsi
call   1060 <test_case@plt>
mov    %eax,%ecx
mov    -0x34(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x30(%rbp)
lea    0xd41(%rip),%rdi
mov    $0xe2,%esi
lea    0xdf4(%rip),%rdx
lea    0xddb(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
lea    -0x9(%rbp),%r9
mov    $0x0,%al
call   1040 <test_ptr_eq@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xe15(%rip),%rsi
call   1060 <test_case@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%eax
cmp    $0x0,%ecx
setne  %cl
xor    $0xff,%cl
and    $0x1,%cl
movzbl %cl,%ecx
or     %ecx,%eax
mov    %eax,-0x2c(%rbp)
lea    0xcee(%rip),%rdi
mov    $0xe3,%esi
lea    0xd8f(%rip),%rdx
lea    0xd9a(%rip),%rcx
lea    -0x9(%rbp),%r8
xor    %eax,%eax
mov    %eax,%r9d
mov    $0x0,%al
call   1040 <test_ptr_eq@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xdd8(%rip),%rsi
call   1060 <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    0xc9b(%rip),%rdi
mov    $0xe4,%esi
lea    0xd3c(%rip),%rdx
lea    0xdca(%rip),%rcx
lea    -0x9(%rbp),%r8
lea    -0x8(%rbp),%r9
mov    $0x0,%al
call   1040 <test_ptr_eq@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xd9c(%rip),%rsi
call   1060 <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    0xc49(%rip),%rdi
mov    $0xe5,%esi
lea    0xd7f(%rip),%rcx
lea    -0x8(%rbp),%r9
mov    %rcx,%rdx
mov    %r9,%r8
mov    $0x0,%al
call   1040 <test_ptr_eq@plt>
mov    %eax,%edx
mov    $0x1,%edi
lea    0xd63(%rip),%rsi
call   1060 <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    0xbf9(%rip),%rdi
mov    $0xe6,%esi
lea    0xcac(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r9d
mov    %rcx,%rdx
mov    %r9,%r8
mov    $0x0,%al
call   1030 <test_ptr_ne@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xd29(%rip),%rsi
call   1060 <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    0xbab(%rip),%rdi
mov    $0xe7,%esi
lea    0xc5e(%rip),%rdx
lea    0xc45(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
lea    -0x9(%rbp),%r9
mov    $0x0,%al
call   1030 <test_ptr_ne@plt>
mov    %eax,%edx
mov    $0x1,%edi
lea    0xceb(%rip),%rsi
call   1060 <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    0xb55(%rip),%rdi
mov    $0xe8,%esi
lea    0xbf6(%rip),%rdx
lea    0xc01(%rip),%rcx
lea    -0x9(%rbp),%r8
xor    %eax,%eax
mov    %eax,%r9d
mov    $0x0,%al
call   1030 <test_ptr_ne@plt>
mov    %eax,%edx
mov    $0x1,%edi
lea    0xcab(%rip),%rsi
call   1060 <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    0xaff(%rip),%rdi
mov    $0xe9,%esi
lea    0xba0(%rip),%rdx
lea    0xc2e(%rip),%rcx
lea    -0x9(%rbp),%r8
lea    -0x8(%rbp),%r9
mov    $0x0,%al
call   1030 <test_ptr_ne@plt>
mov    %eax,%edx
mov    $0x1,%edi
lea    0xc6c(%rip),%rsi
call   1060 <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    0xaaa(%rip),%rdi
mov    $0xea,%esi
lea    0xbe0(%rip),%rcx
lea    -0x8(%rbp),%r9
mov    %rcx,%rdx
mov    %r9,%r8
mov    $0x0,%al
call   1030 <test_ptr_ne@plt>
mov    %eax,%edx
xor    %edi,%edi
lea    0xc33(%rip),%rsi
call   1060 <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
cmp    $0x0,%eax
je     15b4 <test_pointer+0x464>
jmp    15c0 <test_pointer+0x470>
movl   $0x1,-0x4(%rbp)
jmp    15c7 <test_pointer+0x477>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_pointer>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movl   $0x0,0x4(%rsp)
movb   $0x1,0x3(%rsp)
lea    0xe9e(%rip),%r15
lea    0xf44(%rip),%r13
lea    0x3(%rsp),%r14
mov    %r15,%rdi
mov    $0xdd,%esi
mov    %r13,%rdx
mov    %r14,%rcx
call   1050 <test_ptr@plt>
lea    0xe6b(%rip),%rsi
mov    $0x1,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %bl
lea    0xf1f(%rip),%r12
mov    %r15,%rdi
mov    $0xde,%esi
mov    %r12,%rdx
xor    %ecx,%ecx
call   1050 <test_ptr@plt>
lea    0xef7(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %bpl
and    %bl,%bpl
mov    %r15,%rdi
mov    $0xdf,%esi
mov    %r13,%rdx
mov    %r14,%rcx
call   1070 <test_ptr_null@plt>
lea    0xedf(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %r14b
mov    %r15,%rdi
mov    $0xe0,%esi
mov    %r12,%rdx
xor    %ecx,%ecx
call   1070 <test_ptr_null@plt>
lea    0xec9(%rip),%rsi
mov    $0x1,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %r13b
and    %r14b,%r13b
and    %bpl,%r13b
mov    %r15,%rdi
mov    $0xe1,%esi
mov    %r12,%rdx
mov    %r12,%rcx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1040 <test_ptr_eq@plt>
lea    0xea3(%rip),%rsi
mov    $0x1,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %r14b
mov    %r15,%rdi
mov    $0xe2,%esi
mov    %r12,%rdx
lea    0xe42(%rip),%rbp
mov    %rbp,%rcx
xor    %r8d,%r8d
lea    0x3(%rsp),%r12
mov    %r12,%r9
xor    %eax,%eax
call   1040 <test_ptr_eq@plt>
lea    0xe7b(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %bl
and    %r14b,%bl
mov    %r15,%rdi
mov    $0xe3,%esi
mov    %rbp,%rdx
lea    0xe15(%rip),%rcx
mov    %r12,%r8
mov    %r12,%r15
xor    %r9d,%r9d
xor    %eax,%eax
call   1040 <test_ptr_eq@plt>
lea    0xe57(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %r14b
and    %bl,%r14b
and    %r13b,%r14b
lea    0xe65(%rip),%rbp
lea    0x4(%rsp),%r12
lea    0xd17(%rip),%r13
mov    %r13,%rdi
mov    $0xe4,%esi
lea    0xdb5(%rip),%rdx
mov    %rbp,%rcx
mov    %r15,%r8
mov    %r12,%r9
xor    %eax,%eax
call   1040 <test_ptr_eq@plt>
lea    0xe1f(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %bl
mov    %r13,%rdi
mov    $0xe5,%esi
mov    %rbp,%rdx
mov    %rbp,%rcx
mov    %r12,%r8
mov    %r12,%r9
xor    %eax,%eax
call   1040 <test_ptr_eq@plt>
lea    0xe06(%rip),%rsi
mov    $0x1,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %bpl
and    %bl,%bpl
mov    %r13,%rdi
mov    %r13,%r15
mov    $0xe6,%esi
lea    0xd59(%rip),%rcx
mov    %rcx,%rdx
mov    %rcx,%rbx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <test_ptr_ne@plt>
lea    0xdd9(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %r13b
and    %bpl,%r13b
mov    %r15,%rdi
mov    $0xe7,%esi
mov    %rbx,%rdx
lea    0xd09(%rip),%r15
mov    %r15,%rcx
xor    %r8d,%r8d
lea    0x3(%rsp),%rbp
mov    %rbp,%r9
xor    %eax,%eax
call   1030 <test_ptr_ne@plt>
lea    0xdb1(%rip),%rsi
mov    $0x1,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %r12b
and    %r13b,%r12b
and    %r14b,%r12b
lea    0xc21(%rip),%rbx
mov    %rbx,%rdi
mov    $0xe8,%esi
mov    %r15,%rdx
lea    0xcce(%rip),%rcx
mov    %rbp,%r8
mov    %rbp,%r14
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <test_ptr_ne@plt>
lea    0xd7f(%rip),%rsi
mov    $0x1,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %bpl
mov    %rbx,%rdi
mov    $0xe9,%esi
mov    %r15,%rdx
lea    0xd16(%rip),%r13
mov    %r13,%rcx
mov    %r14,%r8
lea    0x4(%rsp),%r14
mov    %r14,%r9
xor    %eax,%eax
call   1030 <test_ptr_ne@plt>
lea    0xd55(%rip),%rsi
mov    $0x1,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %bl
and    %bpl,%bl
lea    0xb9d(%rip),%rdi
mov    $0xea,%esi
mov    %r13,%rdx
mov    %r13,%rcx
mov    %r14,%r8
mov    %r14,%r9
xor    %eax,%eax
call   1030 <test_ptr_ne@plt>
lea    0xd2f(%rip),%rsi
xor    %edi,%edi
mov    %eax,%edx
call   1060 <test_case@plt>
test   %eax,%eax
setne  %al
and    %bl,%al
and    %r12b,%al
movzbl %al,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"TEST_ptr(&y)\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 = [3 x i8] c"&y\00"
@.str.3 = [15 x i8] c"TEST_ptr(NULL)\00"
@.str.4 = [5 x i8] c"NULL\00"
@.str.5 = [18 x i8] c"TEST_ptr_null(&y)\00"
@.str.6 = [20 x i8] c"TEST_ptr_null(NULL)\00"
@.str.7 = [24 x i8] c"TEST_ptr_eq(NULL, NULL)\00"
@.str.8 = [22 x i8] c"TEST_ptr_eq(NULL, &y)\00"
@.str.9 = [22 x i8] c"TEST_ptr_eq(&y, NULL)\00"
@.str.10 = [20 x i8] c"TEST_ptr_eq(&y, &x)\00"
@.str.11 = [3 x i8] c"&x\00"
@.str.12 = [20 x i8] c"TEST_ptr_eq(&x, &x)\00"
@.str.13 = [24 x i8] c"TEST_ptr_ne(NULL, NULL)\00"
@.str.14 = [22 x i8] c"TEST_ptr_ne(NULL, &y)\00"
@.str.15 = [22 x i8] c"TEST_ptr_ne(&y, NULL)\00"
@.str.16 = [20 x i8] c"TEST_ptr_ne(&y, &x)\00"
@.str.17 = [20 x i8] c"TEST_ptr_ne(&x, &x)\00"
define i32 @test_pointer() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
store i32 0, i32* %2
store i8 1, i8* %3
%4 = call i32 @test_ptr(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 221, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %3)
%5 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = icmp ne i32 %5, 0
%7 = xor i1 %6, true
%8 = zext i1 %7 to i32
%9 = call i32 @test_ptr(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 222, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* null)
%10 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %9)
%11 = icmp ne i32 %10, 0
%12 = xor i1 %11, true
%13 = zext i1 %12 to i32
%14 = or i32 %8, %13
%15 = call i32 @test_ptr_null(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 223, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %3)
%16 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 %15)
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
%19 = zext i1 %18 to i32
%20 = or i32 %14, %19
%21 = call i32 @test_ptr_null(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 224, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* null)
%22 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %21)
%23 = icmp ne i32 %22, 0
%24 = xor i1 %23, true
%25 = zext i1 %24 to i32
%26 = or i32 %20, %25
%27 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 225, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* null, i8* null)
%28 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i32 %27)
%29 = icmp ne i32 %28, 0
%30 = xor i1 %29, true
%31 = zext i1 %30 to i32
%32 = or i32 %26, %31
%33 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 226, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* null, i8* %3)
%34 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %33)
%35 = icmp ne i32 %34, 0
%36 = xor i1 %35, true
%37 = zext i1 %36 to i32
%38 = or i32 %32, %37
%39 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 227, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %3, i8* null)
%40 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i32 %39)
%41 = icmp ne i32 %40, 0
%42 = xor i1 %41, true
%43 = zext i1 %42 to i32
%44 = or i32 %38, %43
%45 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 228, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* %3, i32* %2)
%46 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i32 %45)
%47 = icmp ne i32 %46, 0
%48 = xor i1 %47, true
%49 = zext i1 %48 to i32
%50 = or i32 %44, %49
%51 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 229, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %2, i32* %2)
%52 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i32 %51)
%53 = icmp ne i32 %52, 0
%54 = xor i1 %53, true
%55 = zext i1 %54 to i32
%56 = or i32 %50, %55
%57 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 230, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* null, i8* null)
%58 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0), i32 %57)
%59 = icmp ne i32 %58, 0
%60 = xor i1 %59, true
%61 = zext i1 %60 to i32
%62 = or i32 %56, %61
%63 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 231, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* null, i8* %3)
%64 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i32 %63)
%65 = icmp ne i32 %64, 0
%66 = xor i1 %65, true
%67 = zext i1 %66 to i32
%68 = or i32 %62, %67
%69 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 232, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %3, i8* null)
%70 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), i32 %69)
%71 = icmp ne i32 %70, 0
%72 = xor i1 %71, true
%73 = zext i1 %72 to i32
%74 = or i32 %68, %73
%75 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 233, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* %3, i32* %2)
%76 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0), i32 %75)
%77 = icmp ne i32 %76, 0
%78 = xor i1 %77, true
%79 = zext i1 %78 to i32
%80 = or i32 %74, %79
%81 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 234, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %2, i32* %2)
%82 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.17, i64 0, i64 0), i32 %81)
%83 = icmp ne i32 %82, 0
%84 = xor i1 %83, true
%85 = zext i1 %84 to i32
%86 = or i32 %80, %85
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %89
88: ; preds = %0
br label %90
89: ; preds = %0
store i32 1, i32* %1
br label %91
90: ; preds = %88
store i32 0, i32* %1
br label %91
91: ; preds = %90, %89
%92 = load i32, i32* %1
ret i32 %92
}

LLVM IR (-O2):
@.str = [13 x i8] c"TEST_ptr(&y)\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 = [3 x i8] c"&y\00"
@.str.3 = [15 x i8] c"TEST_ptr(NULL)\00"
@.str.4 = [5 x i8] c"NULL\00"
@.str.5 = [18 x i8] c"TEST_ptr_null(&y)\00"
@.str.6 = [20 x i8] c"TEST_ptr_null(NULL)\00"
@.str.7 = [24 x i8] c"TEST_ptr_eq(NULL, NULL)\00"
@.str.8 = [22 x i8] c"TEST_ptr_eq(NULL, &y)\00"
@.str.9 = [22 x i8] c"TEST_ptr_eq(&y, NULL)\00"
@.str.10 = [20 x i8] c"TEST_ptr_eq(&y, &x)\00"
@.str.11 = [3 x i8] c"&x\00"
@.str.12 = [20 x i8] c"TEST_ptr_eq(&x, &x)\00"
@.str.13 = [24 x i8] c"TEST_ptr_ne(NULL, NULL)\00"
@.str.14 = [22 x i8] c"TEST_ptr_ne(NULL, &y)\00"
@.str.15 = [22 x i8] c"TEST_ptr_ne(&y, NULL)\00"
@.str.16 = [20 x i8] c"TEST_ptr_ne(&y, &x)\00"
@.str.17 = [20 x i8] c"TEST_ptr_ne(&x, &x)\00"
define i32 @test_pointer() {
%1 = alloca i32
%2 = alloca i8
%3 = bitcast i32* %1 to i8*
store i32 0, i32* %1
store i8 1, i8* %2
%4 = call i32 @test_ptr(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 221, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %2)
%5 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = icmp eq i32 %5, 0
%7 = call i32 @test_ptr(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 222, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* null)
%8 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = icmp eq i32 %8, 0
%10 = or i1 %6, %9
%11 = call i32 @test_ptr_null(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 223, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %2)
%12 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = icmp eq i32 %12, 0
%14 = or i1 %10, %13
%15 = call i32 @test_ptr_null(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 224, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* null)
%16 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %15)
%17 = icmp eq i32 %16, 0
%18 = or i1 %14, %17
%19 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 225, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* null, i8* null)
%20 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0), i32 %19)
%21 = icmp eq i32 %20, 0
%22 = or i1 %18, %21
%23 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 226, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* null, i8* %2)
%24 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %23)
%25 = icmp eq i32 %24, 0
%26 = or i1 %22, %25
%27 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 227, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %2, i8* null)
%28 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i32 %27)
%29 = icmp eq i32 %28, 0
%30 = or i1 %26, %29
%31 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 228, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* %2, i32* %1)
%32 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i32 %31)
%33 = icmp eq i32 %32, 0
%34 = or i1 %30, %33
%35 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_eq(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 229, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %1, i32* %1)
%36 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i32 %35)
%37 = icmp eq i32 %36, 0
%38 = or i1 %34, %37
%39 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 230, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* null, i8* null)
%40 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0), i32 %39)
%41 = icmp eq i32 %40, 0
%42 = or i1 %38, %41
%43 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 231, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* null, i8* %2)
%44 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i32 %43)
%45 = icmp eq i32 %44, 0
%46 = or i1 %42, %45
%47 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 232, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* %2, i8* null)
%48 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), i32 %47)
%49 = icmp eq i32 %48, 0
%50 = or i1 %46, %49
%51 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 233, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* %2, i32* %1)
%52 = call i32 @test_case(i32 1, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0), i32 %51)
%53 = icmp eq i32 %52, 0
%54 = or i1 %50, %53
%55 = call i32 (i8*, i32, i8*, i8*, ...) @test_ptr_ne(i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str.1, i64 0, i64 0), i32 234, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32* %1, i32* %1)
%56 = call i32 @test_case(i32 0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.17, i64 0, i64 0), i32 %55)
%57 = icmp eq i32 %56, 0
%58 = or i1 %54, %57
%59 = xor i1 %58, true
%60 = zext i1 %59 to i32
ret i32 %60
}