#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 */
scalar_t__ CRYPTO_secure_malloc_init(int, int);
int test_false(char *, int, char *, int);
int /*<<< orphan*/ test_info(char *, int, char *);
int test_sec_mem(void) {
  test_info("/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/secmemtest.c",
            129, "Secure memory is *not* implemented.");
  return test_false(
      "/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/secmemtest.c",
      131, "CRYPTO_secure_malloc_init(4096, 32)",
      (CRYPTO_secure_malloc_init(4096, 32)) != 0);
}


x86 assembly (clang, -O0):
<test_sec_mem>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
mov    $0x81,%esi
lea    0xf67(%rip),%rdx
call   1040 <test_info@plt>
mov    $0x1000,%edi
mov    $0x20,%esi
call   1050 <CRYPTO_secure_malloc_init@plt>
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xe92(%rip),%rdi
mov    $0x83,%esi
lea    0xf58(%rip),%rdx
call   1030 <test_false@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_sec_mem>:
push   %rbx
lea    0xec8(%rip),%rbx
lea    0xf6f(%rip),%rdx
mov    %rbx,%rdi
mov    $0x81,%esi
call   1040 <test_info@plt>
mov    $0x1000,%edi
mov    $0x20,%esi
call   1050 <CRYPTO_secure_malloc_init@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
lea    0xf68(%rip),%rdx
mov    %rbx,%rdi
mov    $0x83,%esi
pop    %rbx
jmp    1030 <test_false@plt>

LLVM IR (-O0):
@.str = [174 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/secmemtest.c\00"
@.str.1 = [36 x i8] c"Secure memory is *not* implemented.\00"
@.str.2 = [36 x i8] c"CRYPTO_secure_malloc_init(4096, 32)\00"
define i32 @test_sec_mem() {
%1 = call i32 @test_info(i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str, i64 0, i64 0), i32 129, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%2 = call i64 @CRYPTO_secure_malloc_init(i32 4096, i32 32)
%3 = icmp ne i64 %2, 0
%4 = zext i1 %3 to i32
%5 = call i32 @test_false(i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str, i64 0, i64 0), i32 131, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 %4)
ret i32 %5
}

LLVM IR (-O2):
@.str = [174 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/secmemtest.c\00"
@.str.1 = [36 x i8] c"Secure memory is *not* implemented.\00"
@.str.2 = [36 x i8] c"CRYPTO_secure_malloc_init(4096, 32)\00"
define i32 @test_sec_mem() {
%1 = tail call i32 @test_info(i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str, i64 0, i64 0), i32 129, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i64 @CRYPTO_secure_malloc_init(i32 4096, i32 32)
%3 = icmp ne i64 %2, 0
%4 = zext i1 %3 to i32
%5 = tail call i32 @test_false(i8* getelementptr inbounds ([174 x i8], [174 x i8]* @.str, i64 0, i64 0), i32 131, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 %4)
ret i32 %5
}