#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*/ uint64_t;
typedef int /*<<< orphan*/ keybytes;
typedef int /*<<< orphan*/ X509_NAME;
typedef int /*<<< orphan*/ OCSP_CERTID;
typedef int /*<<< orphan*/ OCSP_BASICRESP;
typedef int /*<<< orphan*/ ASN1_TIME;
typedef int /*<<< orphan*/ ASN1_INTEGER;
typedef int /*<<< orphan*/ ASN1_BIT_STRING;

/* Variables and functions */
int /*<<< orphan*/ ASN1_BIT_STRING_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ *ASN1_BIT_STRING_new();
int /*<<< orphan*/ ASN1_BIT_STRING_set(int /*<<< orphan*/ *, unsigned char *,
                                       int);
int /*<<< orphan*/ ASN1_INTEGER_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ *ASN1_INTEGER_new();
int /*<<< orphan*/ ASN1_INTEGER_set_uint64(int /*<<< orphan*/ *,
                                           int /*<<< orphan*/);
int /*<<< orphan*/ ASN1_TIME_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ *ASN1_TIME_set(int /*<<< orphan*/ *, scalar_t__);
int /*<<< orphan*/ EVP_sha256();
int /*<<< orphan*/ MBSTRING_ASC;
int /*<<< orphan*/ NID_commonName;
int /*<<< orphan*/ OCSP_BASICRESP_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ *OCSP_BASICRESP_new();
int /*<<< orphan*/ OCSP_CERTID_free(int /*<<< orphan*/ *);
scalar_t__ OCSP_basic_add1_status(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                                  int /*<<< orphan*/, int /*<<< orphan*/,
                                  int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                                  int /*<<< orphan*/ *);
int /*<<< orphan*/ *OCSP_cert_id_new(int /*<<< orphan*/, int /*<<< orphan*/ *,
                                     int /*<<< orphan*/ *,
                                     int /*<<< orphan*/ *);
int /*<<< orphan*/ V_OCSP_CERTSTATUS_UNKNOWN;
int /*<<< orphan*/ X509_NAME_add_entry_by_NID(int /*<<< orphan*/ *,
                                              int /*<<< orphan*/,
                                              int /*<<< orphan*/,
                                              unsigned char const *, int, int,
                                              int);
int /*<<< orphan*/ X509_NAME_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ *X509_NAME_new();
int /*<<< orphan*/ test_ptr(char *, int, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ test_true(char *, int, char *, int);
scalar_t__ time(int /*<<< orphan*/ *);
OCSP_BASICRESP *make_dummy_resp(void) {
  const unsigned char namestr[] = "openssl.example.com";
  unsigned char keybytes[128] = {7};
  OCSP_BASICRESP *bs = OCSP_BASICRESP_new();
  OCSP_BASICRESP *bs_out = NULL;
  OCSP_CERTID *cid = NULL;
  ASN1_TIME *thisupd = ASN1_TIME_set(NULL, time(NULL));
  ASN1_TIME *nextupd = ASN1_TIME_set(NULL, time(NULL) + 200);
  X509_NAME *name = X509_NAME_new();
  ASN1_BIT_STRING *key = ASN1_BIT_STRING_new();
  ASN1_INTEGER *serial = ASN1_INTEGER_new();
  if (!X509_NAME_add_entry_by_NID(name, NID_commonName, MBSTRING_ASC, namestr,
                                  -1, -1, 1) ||
      !ASN1_BIT_STRING_set(key, keybytes, sizeof(keybytes)) ||
      !ASN1_INTEGER_set_uint64(serial, (uint64_t)1))
    goto err;
  cid = OCSP_cert_id_new(EVP_sha256(), name, key, serial);
  if (!test_ptr(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/ocspapitest.c",
          69, "bs", bs) ||
      !test_ptr(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/ocspapitest.c",
          70, "thisupd", thisupd) ||
      !test_ptr(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/ocspapitest.c",
          71, "nextupd", nextupd) ||
      !test_ptr(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/ocspapitest.c",
          72, "cid", cid) ||
      !test_true(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/"
          "humble-video-captive/src/main/gnu/openssl/csrc/test/ocspapitest.c",
          73,
          "OCSP_basic_add1_status(bs, cid, V_OCSP_CERTSTATUS_UNKNOWN, 0, NULL, "
          "thisupd, nextupd)",
          (OCSP_basic_add1_status(bs, cid, V_OCSP_CERTSTATUS_UNKNOWN, 0, NULL,
                                  thisupd, nextupd)) != 0))
    goto err;
  bs_out = bs;
  bs = NULL;
err:
  ASN1_TIME_free(thisupd);
  ASN1_TIME_free(nextupd);
  ASN1_BIT_STRING_free(key);
  ASN1_INTEGER_free(serial);
  OCSP_CERTID_free(cid);
  OCSP_BASICRESP_free(bs);
  X509_NAME_free(name);
  return bs_out;
}


x86 assembly (clang, -O0):
<make_dummy_resp>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    0xd9e(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xd9b(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xd99(%rip),%eax
mov    %eax,-0x10(%rbp)
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   10a0 <memset@plt>
movb   $0x7,-0xa0(%rbp)
mov    $0x0,%al
call   1110 <OCSP_BASICRESP_new@plt>
mov    %rax,-0xa8(%rbp)
movq   $0x0,-0xb0(%rbp)
movq   $0x0,-0xb8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   10f0 <time@plt>
mov    %rax,%rsi
xor    %eax,%eax
mov    %eax,%edi
call   10b0 <ASN1_TIME_set@plt>
mov    %rax,-0xc0(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   10f0 <time@plt>
mov    %rax,%rsi
add    $0xc8,%rsi
xor    %eax,%eax
mov    %eax,%edi
call   10b0 <ASN1_TIME_set@plt>
mov    %rax,-0xc8(%rbp)
mov    $0x0,%al
call   1100 <X509_NAME_new@plt>
mov    %rax,-0xd0(%rbp)
mov    $0x0,%al
call   1090 <ASN1_BIT_STRING_new@plt>
mov    %rax,-0xd8(%rbp)
mov    $0x0,%al
call   1070 <ASN1_INTEGER_new@plt>
mov    %rax,-0xe0(%rbp)
mov    -0xd0(%rbp),%rdi
mov    0x2ca1(%rip),%rax
mov    (%rax),%esi
mov    0x2cb0(%rip),%rax
mov    (%rax),%edx
lea    -0x20(%rbp),%rcx
mov    $0xffffffff,%r9d
mov    %r9d,%r8d
movl   $0x1,(%rsp)
call   1060 <X509_NAME_add_entry_by_NID@plt>
cmp    $0x0,%eax
je     1397 <make_dummy_resp+0x147>
mov    -0xd8(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    $0x80,%edx
call   1150 <ASN1_BIT_STRING_set@plt>
cmp    $0x0,%eax
je     1397 <make_dummy_resp+0x147>
mov    -0xe0(%rbp),%rdi
mov    $0x1,%esi
call   1120 <ASN1_INTEGER_set_uint64@plt>
cmp    $0x0,%eax
jne    139c <make_dummy_resp+0x14c>
jmp    14e4 <make_dummy_resp+0x294>
mov    $0x0,%al
call   1160 <EVP_sha256@plt>
mov    %eax,%edi
mov    -0xd0(%rbp),%rsi
mov    -0xd8(%rbp),%rdx
mov    -0xe0(%rbp),%rcx
call   10c0 <OCSP_cert_id_new@plt>
mov    %rax,-0xb8(%rbp)
mov    -0xa8(%rbp),%rcx
lea    0xc40(%rip),%rdi
mov    $0x45,%esi
lea    0xcf9(%rip),%rdx
call   1080 <test_ptr@plt>
cmp    $0x0,%eax
je     14c6 <make_dummy_resp+0x276>
mov    -0xc0(%rbp),%rcx
lea    0xc18(%rip),%rdi
mov    $0x46,%esi
lea    0xcd4(%rip),%rdx
call   1080 <test_ptr@plt>
cmp    $0x0,%eax
je     14c6 <make_dummy_resp+0x276>
mov    -0xc8(%rbp),%rcx
lea    0xbf0(%rip),%rdi
mov    $0x47,%esi
lea    0xcb4(%rip),%rdx
call   1080 <test_ptr@plt>
cmp    $0x0,%eax
je     14c6 <make_dummy_resp+0x276>
mov    -0xb8(%rbp),%rcx
lea    0xbc8(%rip),%rdi
mov    $0x48,%esi
lea    0xc94(%rip),%rdx
call   1080 <test_ptr@plt>
cmp    $0x0,%eax
je     14c6 <make_dummy_resp+0x276>
mov    -0xa8(%rbp),%rdi
mov    -0xb8(%rbp),%rsi
mov    0x2b5d(%rip),%rax
mov    (%rax),%edx
mov    -0xc0(%rbp),%r9
mov    -0xc8(%rbp),%rax
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    %rax,(%rsp)
call   10d0 <OCSP_basic_add1_status@plt>
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xb68(%rip),%rdi
mov    $0x49,%esi
lea    0xc38(%rip),%rdx
call   1030 <test_true@plt>
cmp    $0x0,%eax
jne    14cb <make_dummy_resp+0x27b>
jmp    14e4 <make_dummy_resp+0x294>
mov    -0xa8(%rbp),%rax
mov    %rax,-0xb0(%rbp)
movq   $0x0,-0xa8(%rbp)
mov    -0xc0(%rbp),%rdi
call   1130 <ASN1_TIME_free@plt>
mov    -0xc8(%rbp),%rdi
call   1130 <ASN1_TIME_free@plt>
mov    -0xd8(%rbp),%rdi
call   10e0 <ASN1_BIT_STRING_free@plt>
mov    -0xe0(%rbp),%rdi
call   1140 <ASN1_INTEGER_free@plt>
mov    -0xb8(%rbp),%rdi
call   1040 <OCSP_CERTID_free@plt>
mov    -0xa8(%rbp),%rdi
call   1050 <OCSP_BASICRESP_free@plt>
mov    -0xd0(%rbp),%rdi
call   1170 <X509_NAME_free@plt>
mov    -0xb0(%rbp),%rax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_dummy_resp>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
movaps 0xda8(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movl   $0x6d6f63,0x30(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movb   $0x7,0x40(%rsp)
xor    %r12d,%r12d
xor    %eax,%eax
call   1100 <OCSP_BASICRESP_new@plt>
mov    %rax,%r13
xor    %edi,%edi
call   10e0 <time@plt>
xor    %edi,%edi
mov    %rax,%rsi
call   10a0 <ASN1_TIME_set@plt>
mov    %rax,0x18(%rsp)
xor    %edi,%edi
call   10e0 <time@plt>
lea    0xc8(%rax),%rsi
xor    %edi,%edi
call   10a0 <ASN1_TIME_set@plt>
mov    %rax,0x10(%rsp)
xor    %eax,%eax
call   10f0 <X509_NAME_new@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1090 <ASN1_BIT_STRING_new@plt>
mov    %rax,%rbp
xor    %eax,%eax
call   1070 <ASN1_INTEGER_new@plt>
mov    %rax,%r14
mov    0x2ccd(%rip),%rax
mov    (%rax),%esi
mov    0x2cdc(%rip),%rax
mov    (%rax),%edx
movl   $0x1,(%rsp)
lea    0x20(%rsp),%rcx
mov    %rbx,%rdi
mov    $0xffffffff,%r8d
mov    $0xffffffff,%r9d
call   1060 <X509_NAME_add_entry_by_NID@plt>
test   %eax,%eax
je     1468 <make_dummy_resp+0x228>
lea    0x40(%rsp),%rsi
mov    %rbp,%rdi
mov    $0x80,%edx
call   1140 <ASN1_BIT_STRING_set@plt>
test   %eax,%eax
je     1465 <make_dummy_resp+0x225>
mov    %r14,%rdi
mov    $0x1,%esi
call   1110 <ASN1_INTEGER_set_uint64@plt>
test   %eax,%eax
je     1465 <make_dummy_resp+0x225>
xor    %r15d,%r15d
xor    %eax,%eax
call   1150 <EVP_sha256@plt>
mov    %eax,%edi
mov    %rbx,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
call   10b0 <OCSP_cert_id_new@plt>
mov    %rax,%r12
lea    0xc8b(%rip),%rdi
lea    0xd49(%rip),%rdx
mov    $0x45,%esi
mov    %r13,%rcx
call   1080 <test_ptr@plt>
test   %eax,%eax
je     146b <make_dummy_resp+0x22b>
lea    0xc68(%rip),%rdi
lea    0xd29(%rip),%rdx
mov    $0x46,%esi
mov    0x18(%rsp),%rcx
call   1080 <test_ptr@plt>
test   %eax,%eax
je     1468 <make_dummy_resp+0x228>
lea    0xc43(%rip),%rdi
lea    0xd0c(%rip),%rdx
mov    $0x47,%esi
mov    0x10(%rsp),%rcx
call   1080 <test_ptr@plt>
test   %eax,%eax
je     1468 <make_dummy_resp+0x228>
lea    0xc22(%rip),%rdi
lea    0xcf3(%rip),%rdx
mov    $0x48,%esi
mov    %r12,%rcx
call   1080 <test_ptr@plt>
test   %eax,%eax
je     1468 <make_dummy_resp+0x228>
mov    0x2bc7(%rip),%rax
mov    (%rax),%edx
mov    0x10(%rsp),%rax
mov    %rax,(%rsp)
mov    %r13,%rdi
mov    %r12,%rsi
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    0x18(%rsp),%r9
call   10c0 <OCSP_basic_add1_status@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
lea    0xbd4(%rip),%rdi
lea    0xca9(%rip),%rdx
mov    $0x49,%esi
call   1030 <test_true@plt>
test   %eax,%eax
mov    %r13,%r15
mov    $0x0,%eax
cmove  %rax,%r15
cmovne %rax,%r13
jmp    146b <make_dummy_resp+0x22b>
xor    %r12d,%r12d
xor    %r15d,%r15d
mov    0x18(%rsp),%rdi
call   1120 <ASN1_TIME_free@plt>
mov    0x10(%rsp),%rdi
call   1120 <ASN1_TIME_free@plt>
mov    %rbp,%rdi
call   10d0 <ASN1_BIT_STRING_free@plt>
mov    %r14,%rdi
call   1130 <ASN1_INTEGER_free@plt>
mov    %r12,%rdi
call   1040 <OCSP_CERTID_free@plt>
mov    %r13,%rdi
call   1050 <OCSP_BASICRESP_free@plt>
mov    %rbx,%rdi
call   1160 <X509_NAME_free@plt>
mov    %r15,%rax
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.make_dummy_resp.namestr = [20 x i8] c"openssl.example.com\00"
@NID_commonName = global i32 0
@MBSTRING_ASC = global i32 0
@.str = [197 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/ocspapitest.c\00"
@.str.1 = [3 x i8] c"bs\00"
@.str.2 = [8 x i8] c"thisupd\00"
@.str.3 = [8 x i8] c"nextupd\00"
@.str.4 = [4 x i8] c"cid\00"
@.str.5 = [86 x i8] c"OCSP_basic_add1_status(bs, cid, V_OCSP_CERTSTATUS_UNKNOWN, 0, NULL, thisupd, nextupd)\00"
@V_OCSP_CERTSTATUS_UNKNOWN = global i32 0
define i32* @make_dummy_resp() {
%1 = alloca [20 x i8]
%2 = alloca [128 x i8]
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = bitcast [20 x i8]* %1 to i8*
%12 = bitcast [128 x i8]* %2 to i8*
%13 = bitcast i8* %12 to <{ i8, [127 x i8] }>*
%14 = getelementptr inbounds <{ i8, [127 x i8] }>, <{ i8, [127 x i8] }>* %13, i32 0, i32 0
store i8 7, i8* %14
%15 = call i32* (...) @OCSP_BASICRESP_new()
store i32* %15, i32** %3
store i32* null, i32** %4
store i32* null, i32** %5
%16 = call i64 @time(i32* null)
%17 = call i32* @ASN1_TIME_set(i32* null, i64 %16)
store i32* %17, i32** %6
%18 = call i64 @time(i32* null)
%19 = add nsw i64 %18, 200
%20 = call i32* @ASN1_TIME_set(i32* null, i64 %19)
store i32* %20, i32** %7
%21 = call i32* (...) @X509_NAME_new()
store i32* %21, i32** %8
%22 = call i32* (...) @ASN1_BIT_STRING_new()
store i32* %22, i32** %9
%23 = call i32* (...) @ASN1_INTEGER_new()
store i32* %23, i32** %10
%24 = load i32*, i32** %8
%25 = load i32, i32* @NID_commonName
%26 = load i32, i32* @MBSTRING_ASC
%27 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%28 = call i32 @X509_NAME_add_entry_by_NID(i32* %24, i32 %25, i32 %26, i8* %27, i32 -1, i32 -1, i32 1)
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %39
30: ; preds = %0
%31 = load i32*, i32** %9
%32 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%33 = call i32 @ASN1_BIT_STRING_set(i32* %31, i8* %32, i32 128)
%34 = icmp ne i32 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %30
%36 = load i32*, i32** %10
%37 = call i32 @ASN1_INTEGER_set_uint64(i32* %36, i32 1)
%38 = icmp ne i32 %37, 0
br i1 %38, label %40, label %39
39: ; preds = %35, %30, %0
br label %75
40: ; preds = %35
%41 = call i32 (...) @EVP_sha256()
%42 = load i32*, i32** %8
%43 = load i32*, i32** %9
%44 = load i32*, i32** %10
%45 = call i32* @OCSP_cert_id_new(i32 %41, i32* %42, i32* %43, i32* %44)
store i32* %45, i32** %5
%46 = load i32*, i32** %3
%47 = call i32 @test_ptr(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0), i32 69, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %46)
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %72
49: ; preds = %40
%50 = load i32*, i32** %6
%51 = call i32 @test_ptr(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0), i32 70, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32* %50)
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %72
53: ; preds = %49
%54 = load i32*, i32** %7
%55 = call i32 @test_ptr(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0), i32 71, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32* %54)
%56 = icmp ne i32 %55, 0
br i1 %56, label %57, label %72
57: ; preds = %53
%58 = load i32*, i32** %5
%59 = call i32 @test_ptr(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0), i32 72, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32* %58)
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %72
61: ; preds = %57
%62 = load i32*, i32** %3
%63 = load i32*, i32** %5
%64 = load i32, i32* @V_OCSP_CERTSTATUS_UNKNOWN
%65 = load i32*, i32** %6
%66 = load i32*, i32** %7
%67 = call i64 @OCSP_basic_add1_status(i32* %62, i32* %63, i32 %64, i32 0, i32* null, i32* %65, i32* %66)
%68 = icmp ne i64 %67, 0
%69 = zext i1 %68 to i32
%70 = call i32 @test_true(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0), i32 73, i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.5, i64 0, i64 0), i32 %69)
%71 = icmp ne i32 %70, 0
br i1 %71, label %73, label %72
72: ; preds = %61, %57, %53, %49, %40
br label %75
73: ; preds = %61
%74 = load i32*, i32** %3
store i32* %74, i32** %4
store i32* null, i32** %3
br label %75
75: ; preds = %73, %72, %39
%76 = load i32*, i32** %6
%77 = call i32 @ASN1_TIME_free(i32* %76)
%78 = load i32*, i32** %7
%79 = call i32 @ASN1_TIME_free(i32* %78)
%80 = load i32*, i32** %9
%81 = call i32 @ASN1_BIT_STRING_free(i32* %80)
%82 = load i32*, i32** %10
%83 = call i32 @ASN1_INTEGER_free(i32* %82)
%84 = load i32*, i32** %5
%85 = call i32 @OCSP_CERTID_free(i32* %84)
%86 = load i32*, i32** %3
%87 = call i32 @OCSP_BASICRESP_free(i32* %86)
%88 = load i32*, i32** %8
%89 = call i32 @X509_NAME_free(i32* %88)
%90 = load i32*, i32** %4
ret i32* %90
}

LLVM IR (-O2):
@__const.make_dummy_resp.namestr = [20 x i8] c"openssl.example.com\00"
@NID_commonName = global i32 0
@MBSTRING_ASC = global i32 0
@.str = [197 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/ocspapitest.c\00"
@.str.1 = [3 x i8] c"bs\00"
@.str.2 = [8 x i8] c"thisupd\00"
@.str.3 = [8 x i8] c"nextupd\00"
@.str.4 = [4 x i8] c"cid\00"
@.str.5 = [86 x i8] c"OCSP_basic_add1_status(bs, cid, V_OCSP_CERTSTATUS_UNKNOWN, 0, NULL, thisupd, nextupd)\00"
@V_OCSP_CERTSTATUS_UNKNOWN = global i32 0
define i32* @make_dummy_resp() {
%1 = alloca [20 x i8]
%2 = alloca [128 x i8]
%3 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
store i8 7, i8* %4
%5 = tail call i32* (...) @OCSP_BASICRESP_new()
%6 = tail call i64 @time(i32* null)
%7 = tail call i32* @ASN1_TIME_set(i32* null, i64 %6)
%8 = tail call i64 @time(i32* null)
%9 = add nsw i64 %8, 200
%10 = tail call i32* @ASN1_TIME_set(i32* null, i64 %9)
%11 = tail call i32* (...) @X509_NAME_new()
%12 = tail call i32* (...) @ASN1_BIT_STRING_new()
%13 = tail call i32* (...) @ASN1_INTEGER_new()
%14 = load i32, i32* @NID_commonName
%15 = load i32, i32* @MBSTRING_ASC
%16 = call i32 @X509_NAME_add_entry_by_NID(i32* %11, i32 %14, i32 %15, i8* %3, i32 -1, i32 -1, i32 1)
%17 = icmp eq i32 %16, 0
br i1 %17, label %47, label %18
18: ; preds = %0
%19 = call i32 @ASN1_BIT_STRING_set(i32* %12, i8* %4, i32 128)
%20 = icmp eq i32 %19, 0
br i1 %20, label %47, label %21
21: ; preds = %18
%22 = call i32 @ASN1_INTEGER_set_uint64(i32* %13, i32 1)
%23 = icmp eq i32 %22, 0
br i1 %23, label %47, label %24
24: ; preds = %21
%25 = call i32 (...) @EVP_sha256()
%26 = call i32* @OCSP_cert_id_new(i32 %25, i32* %11, i32* %12, i32* %13)
%27 = call i32 @test_ptr(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0), i32 69, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %5)
%28 = icmp eq i32 %27, 0
br i1 %28, label %47, label %29
29: ; preds = %24
%30 = call i32 @test_ptr(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0), i32 70, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i32* %7)
%31 = icmp eq i32 %30, 0
br i1 %31, label %47, label %32
32: ; preds = %29
%33 = call i32 @test_ptr(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0), i32 71, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32* %10)
%34 = icmp eq i32 %33, 0
br i1 %34, label %47, label %35
35: ; preds = %32
%36 = call i32 @test_ptr(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0), i32 72, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32* %26)
%37 = icmp eq i32 %36, 0
br i1 %37, label %47, label %38
38: ; preds = %35
%39 = load i32, i32* @V_OCSP_CERTSTATUS_UNKNOWN
%40 = call i64 @OCSP_basic_add1_status(i32* %5, i32* %26, i32 %39, i32 0, i32* null, i32* %7, i32* %10)
%41 = icmp ne i64 %40, 0
%42 = zext i1 %41 to i32
%43 = call i32 @test_true(i8* getelementptr inbounds ([197 x i8], [197 x i8]* @.str, i64 0, i64 0), i32 73, i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str.5, i64 0, i64 0), i32 %42)
%44 = icmp eq i32 %43, 0
%45 = select i1 %44, i32* null, i32* %5
%46 = select i1 %44, i32* %5, i32* null
br label %47
47: ; preds = %38, %24, %29, %32, %35, %0, %18, %21
%48 = phi i32* [ %26, %35 ], [ %26, %32 ], [ %26, %29 ], [ %26, %24 ], [ null, %21 ], [ null, %18 ], [ null, %0 ], [ %26, %38 ]
%49 = phi i32* [ null, %35 ], [ null, %32 ], [ null, %29 ], [ null, %24 ], [ null, %21 ], [ null, %18 ], [ null, %0 ], [ %45, %38 ]
%50 = phi i32* [ %5, %35 ], [ %5, %32 ], [ %5, %29 ], [ %5, %24 ], [ %5, %21 ], [ %5, %18 ], [ %5, %0 ], [ %46, %38 ]
%51 = call i32 @ASN1_TIME_free(i32* %7)
%52 = call i32 @ASN1_TIME_free(i32* %10)
%53 = call i32 @ASN1_BIT_STRING_free(i32* %12)
%54 = call i32 @ASN1_INTEGER_free(i32* %13)
%55 = call i32 @OCSP_CERTID_free(i32* %48)
%56 = call i32 @OCSP_BASICRESP_free(i32* %50)
%57 = call i32 @X509_NAME_free(i32* %11)
ret i32* %49
}