#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*/ ASN1_STRING_TABLE;

/* Variables and functions */
int ASN1_STRING_TABLE_add(int, int, int, int /*<<< orphan*/,
                          int /*<<< orphan*/);
int /*<<< orphan*/ ASN1_STRING_TABLE_cleanup();
int /*<<< orphan*/ *ASN1_STRING_TABLE_get(int);
int /*<<< orphan*/ MBSTRING_ASC;
int /*<<< orphan*/ test_info(char *, int, char *, ...);
int /*<<< orphan*/ test_ptr(char *, int, char *, int /*<<< orphan*/ const *);
int /*<<< orphan*/ test_ptr_null(char *, int, char *,
                                 int /*<<< orphan*/ const *);
int /*<<< orphan*/ test_true(char *, int, char *, int);
int test_string_tbl(void) {
  const ASN1_STRING_TABLE *tmp = NULL;
  int nid = 12345678, nid2 = 87654321, rv = 0, ret = 0;
  tmp = ASN1_STRING_TABLE_get(nid);
  if (!test_ptr_null("/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/asn1_string_table_test.c",
                     24, "tmp", tmp)) {
    test_info("/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/"
              "asn1_string_table_test.c",
              25, "asn1 string table: ASN1_STRING_TABLE_get non-exist nid");
    goto out;
  }
  ret = ASN1_STRING_TABLE_add(nid, -1, -1, MBSTRING_ASC, 0);
  if (!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/asn1_string_table_test.c",
                 30, "ret", (ret) != 0)) {
    test_info("/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/"
              "asn1_string_table_test.c",
              31, "asn1 string table: add NID(%d) failed", nid);
    goto out;
  }
  ret = ASN1_STRING_TABLE_add(nid2, -1, -1, MBSTRING_ASC, 0);
  if (!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/asn1_string_table_test.c",
                 36, "ret", (ret) != 0)) {
    test_info("/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/"
              "asn1_string_table_test.c",
              37, "asn1 string table: add NID(%d) failed", nid2);
    goto out;
  }
  tmp = ASN1_STRING_TABLE_get(nid);
  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/asn1_string_table_test.c",
                42, "tmp", tmp)) {
    test_info("/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/"
              "asn1_string_table_test.c",
              43, "asn1 string table: get NID(%d) failed", nid);
    goto out;
  }
  tmp = ASN1_STRING_TABLE_get(nid2);
  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/asn1_string_table_test.c",
                48, "tmp", tmp)) {
    test_info("/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/"
              "asn1_string_table_test.c",
              49, "asn1 string table: get NID(%d) failed", nid2);
    goto out;
  }
  ASN1_STRING_TABLE_cleanup();
  tmp = ASN1_STRING_TABLE_get(nid);
  if (!test_ptr_null("/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/asn1_string_table_test.c",
                     57, "tmp", tmp)) {
    test_info("/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/"
              "asn1_string_table_test.c",
              58, "asn1 string table: get NID(%d) failed", nid);
    goto out;
  }
  tmp = ASN1_STRING_TABLE_get(nid2);
  if (!test_ptr_null("/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/asn1_string_table_test.c",
                     63, "tmp", tmp)) {
    test_info("/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/"
              "asn1_string_table_test.c",
              64, "asn1 string table: get NID(%d) failed", nid2);
    goto out;
  }
  rv = 1;
out:
  return rv;
}


x86 assembly (clang, -O0):
<test_string_tbl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movq   $0x0,-0x8(%rbp)
movl   $0xbc614e,-0xc(%rbp)
movl   $0x5397fb1,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0xc(%rbp),%edi
call   1080 <ASN1_STRING_TABLE_get@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
lea    0xe4d(%rip),%rdi
mov    $0x18,%esi
lea    0xf11(%rip),%rdx
call   1090 <test_ptr_null@plt>
cmp    $0x0,%eax
jne    11ec <test_string_tbl+0x7c>
lea    0xe2c(%rip),%rdi
mov    $0x19,%esi
lea    0xef4(%rip),%rdx
mov    $0x0,%al
call   1060 <test_info@plt>
jmp    1420 <test_string_tbl+0x2b0>
mov    -0xc(%rbp),%edi
mov    0x2df2(%rip),%rax
mov    (%rax),%ecx
mov    $0xffffffff,%edx
xor    %r8d,%r8d
mov    %edx,%esi
call   1050 <ASN1_STRING_TABLE_add@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xde3(%rip),%rdi
mov    $0x1e,%esi
lea    0xee2(%rip),%rdx
call   1030 <test_true@plt>
cmp    $0x0,%eax
jne    1259 <test_string_tbl+0xe9>
mov    -0xc(%rbp),%ecx
lea    0xdbf(%rip),%rdi
mov    $0x1f,%esi
lea    0xec2(%rip),%rdx
mov    $0x0,%al
call   1060 <test_info@plt>
jmp    1420 <test_string_tbl+0x2b0>
mov    -0x10(%rbp),%edi
mov    0x2d85(%rip),%rax
mov    (%rax),%ecx
mov    $0xffffffff,%edx
xor    %r8d,%r8d
mov    %edx,%esi
call   1050 <ASN1_STRING_TABLE_add@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xd76(%rip),%rdi
mov    $0x24,%esi
lea    0xe75(%rip),%rdx
call   1030 <test_true@plt>
cmp    $0x0,%eax
jne    12c6 <test_string_tbl+0x156>
mov    -0x10(%rbp),%ecx
lea    0xd52(%rip),%rdi
mov    $0x25,%esi
lea    0xe55(%rip),%rdx
mov    $0x0,%al
call   1060 <test_info@plt>
jmp    1420 <test_string_tbl+0x2b0>
mov    -0xc(%rbp),%edi
call   1080 <ASN1_STRING_TABLE_get@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
lea    0xd23(%rip),%rdi
mov    $0x2a,%esi
lea    0xde7(%rip),%rdx
call   1040 <test_ptr@plt>
cmp    $0x0,%eax
jne    1319 <test_string_tbl+0x1a9>
mov    -0xc(%rbp),%ecx
lea    0xcff(%rip),%rdi
mov    $0x2b,%esi
lea    0xe28(%rip),%rdx
mov    $0x0,%al
call   1060 <test_info@plt>
jmp    1420 <test_string_tbl+0x2b0>
mov    -0x10(%rbp),%edi
call   1080 <ASN1_STRING_TABLE_get@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
lea    0xcd0(%rip),%rdi
mov    $0x30,%esi
lea    0xd94(%rip),%rdx
call   1040 <test_ptr@plt>
cmp    $0x0,%eax
jne    136c <test_string_tbl+0x1fc>
mov    -0x10(%rbp),%ecx
lea    0xcac(%rip),%rdi
mov    $0x31,%esi
lea    0xdd5(%rip),%rdx
mov    $0x0,%al
call   1060 <test_info@plt>
jmp    1420 <test_string_tbl+0x2b0>
mov    $0x0,%al
call   1070 <ASN1_STRING_TABLE_cleanup@plt>
mov    -0xc(%rbp),%edi
call   1080 <ASN1_STRING_TABLE_get@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
lea    0xc76(%rip),%rdi
mov    $0x39,%esi
lea    0xd3a(%rip),%rdx
call   1090 <test_ptr_null@plt>
cmp    $0x0,%eax
jne    13c6 <test_string_tbl+0x256>
mov    -0xc(%rbp),%ecx
lea    0xc52(%rip),%rdi
mov    $0x3a,%esi
lea    0xd7b(%rip),%rdx
mov    $0x0,%al
call   1060 <test_info@plt>
jmp    1420 <test_string_tbl+0x2b0>
mov    -0x10(%rbp),%edi
call   1080 <ASN1_STRING_TABLE_get@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
lea    0xc23(%rip),%rdi
mov    $0x3f,%esi
lea    0xce7(%rip),%rdx
call   1090 <test_ptr_null@plt>
cmp    $0x0,%eax
jne    1419 <test_string_tbl+0x2a9>
mov    -0x10(%rbp),%ecx
lea    0xbff(%rip),%rdi
mov    $0x40,%esi
lea    0xd28(%rip),%rdx
mov    $0x0,%al
call   1060 <test_info@plt>
jmp    1420 <test_string_tbl+0x2b0>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_string_tbl>:
push   %rbp
push   %rbx
push   %rax
mov    $0xbc614e,%edi
call   1080 <ASN1_STRING_TABLE_get@plt>
lea    0xe7c(%rip),%rdi
lea    0xf45(%rip),%rdx
mov    $0x18,%esi
mov    %rax,%rcx
call   1090 <test_ptr_null@plt>
test   %eax,%eax
je     1304 <test_string_tbl+0x194>
mov    0x2e41(%rip),%rbx
mov    (%rbx),%ecx
xor    %ebp,%ebp
mov    $0xbc614e,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
xor    %r8d,%r8d
call   1050 <ASN1_STRING_TABLE_add@plt>
xor    %ecx,%ecx
test   %eax,%eax
setne  %cl
lea    0xe30(%rip),%rdi
lea    0xf34(%rip),%rdx
mov    $0x1e,%esi
call   1030 <test_true@plt>
test   %eax,%eax
je     1322 <test_string_tbl+0x1b2>
mov    (%rbx),%ecx
xor    %ebp,%ebp
mov    $0x5397fb1,%edi
mov    $0xffffffff,%esi
mov    $0xffffffff,%edx
xor    %r8d,%r8d
call   1050 <ASN1_STRING_TABLE_add@plt>
xor    %ecx,%ecx
test   %eax,%eax
setne  %cl
lea    0xdee(%rip),%rdi
lea    0xef2(%rip),%rdx
mov    $0x24,%esi
call   1030 <test_true@plt>
test   %eax,%eax
je     133c <test_string_tbl+0x1cc>
mov    $0xbc614e,%edi
call   1080 <ASN1_STRING_TABLE_get@plt>
lea    0xdc4(%rip),%rdi
lea    0xe8d(%rip),%rdx
mov    $0x2a,%esi
mov    %rax,%rcx
call   1040 <test_ptr@plt>
test   %eax,%eax
je     1351 <test_string_tbl+0x1e1>
mov    $0x5397fb1,%edi
call   1080 <ASN1_STRING_TABLE_get@plt>
lea    0xd97(%rip),%rdi
lea    0xe60(%rip),%rdx
mov    $0x30,%esi
mov    %rax,%rcx
call   1040 <test_ptr@plt>
test   %eax,%eax
je     136d <test_string_tbl+0x1fd>
xor    %ebp,%ebp
xor    %eax,%eax
call   1070 <ASN1_STRING_TABLE_cleanup@plt>
mov    $0xbc614e,%edi
call   1080 <ASN1_STRING_TABLE_get@plt>
lea    0xd61(%rip),%rdi
lea    0xe2a(%rip),%rdx
mov    $0x39,%esi
mov    %rax,%rcx
call   1090 <test_ptr_null@plt>
test   %eax,%eax
je     1397 <test_string_tbl+0x227>
mov    $0x5397fb1,%edi
call   1080 <ASN1_STRING_TABLE_get@plt>
lea    0xd34(%rip),%rdi
lea    0xdfd(%rip),%rdx
mov    $0x3f,%esi
mov    %rax,%rcx
call   1090 <test_ptr_null@plt>
mov    $0x1,%ebp
test   %eax,%eax
jne    138e <test_string_tbl+0x21e>
lea    0xd0c(%rip),%rdi
lea    0xe3a(%rip),%rdx
xor    %ebp,%ebp
mov    $0x40,%esi
jmp    1382 <test_string_tbl+0x212>
lea    0xcf5(%rip),%rdi
lea    0xdc2(%rip),%rdx
xor    %ebp,%ebp
mov    $0x19,%esi
xor    %eax,%eax
call   1060 <test_info@plt>
jmp    138e <test_string_tbl+0x21e>
lea    0xcd7(%rip),%rdi
lea    0xddf(%rip),%rdx
mov    $0x1f,%esi
mov    $0xbc614e,%ecx
jmp    1387 <test_string_tbl+0x217>
lea    0xcbd(%rip),%rdi
lea    0xdc5(%rip),%rdx
mov    $0x25,%esi
jmp    1382 <test_string_tbl+0x212>
lea    0xca8(%rip),%rdi
lea    0xdd6(%rip),%rdx
xor    %ebp,%ebp
mov    $0x2b,%esi
mov    $0xbc614e,%ecx
jmp    1387 <test_string_tbl+0x217>
lea    0xc8c(%rip),%rdi
lea    0xdba(%rip),%rdx
xor    %ebp,%ebp
mov    $0x31,%esi
mov    $0x5397fb1,%ecx
xor    %eax,%eax
call   1060 <test_info@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
lea    0xc62(%rip),%rdi
lea    0xd90(%rip),%rdx
mov    $0x3a,%esi
mov    $0xbc614e,%ecx
jmp    1387 <test_string_tbl+0x217>

LLVM IR (-O0):
@.str = [208 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/asn1_string_table_test.c\00"
@.str.1 = [4 x i8] c"tmp\00"
@.str.2 = [55 x i8] c"asn1 string table: ASN1_STRING_TABLE_get non-exist nid\00"
@MBSTRING_ASC = global i32 0
@.str.3 = [4 x i8] c"ret\00"
@.str.4 = [38 x i8] c"asn1 string table: add NID(%d) failed\00"
@.str.5 = [38 x i8] c"asn1 string table: get NID(%d) failed\00"
define i32 @test_string_tbl() {
%1 = alloca i32*
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32* null, i32** %1
store i32 12345678, i32* %2
store i32 87654321, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
%6 = load i32, i32* %2
%7 = call i32* @ASN1_STRING_TABLE_get(i32 %6)
store i32* %7, i32** %1
%8 = load i32*, i32** %1
%9 = call i32 @test_ptr_null(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %0
%12 = call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0))
br label %75
13: ; preds = %0
%14 = load i32, i32* %2
%15 = load i32, i32* @MBSTRING_ASC
%16 = call i32 @ASN1_STRING_TABLE_add(i32 %14, i32 -1, i32 -1, i32 %15, i32 0)
store i32 %16, i32* %5
%17 = load i32, i32* %5
%18 = icmp ne i32 %17, 0
%19 = zext i1 %18 to i32
%20 = call i32 @test_true(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 30, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %13
%23 = load i32, i32* %2
%24 = call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 31, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i32 %23)
br label %75
25: ; preds = %13
%26 = load i32, i32* %3
%27 = load i32, i32* @MBSTRING_ASC
%28 = call i32 @ASN1_STRING_TABLE_add(i32 %26, i32 -1, i32 -1, i32 %27, i32 0)
store i32 %28, i32* %5
%29 = load i32, i32* %5
%30 = icmp ne i32 %29, 0
%31 = zext i1 %30 to i32
%32 = call i32 @test_true(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 36, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %31)
%33 = icmp ne i32 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %25
%35 = load i32, i32* %3
%36 = call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i32 %35)
br label %75
37: ; preds = %25
%38 = load i32, i32* %2
%39 = call i32* @ASN1_STRING_TABLE_get(i32 %38)
store i32* %39, i32** %1
%40 = load i32*, i32** %1
%41 = call i32 @test_ptr(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %40)
%42 = icmp ne i32 %41, 0
br i1 %42, label %46, label %43
43: ; preds = %37
%44 = load i32, i32* %2
%45 = call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 43, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 %44)
br label %75
46: ; preds = %37
%47 = load i32, i32* %3
%48 = call i32* @ASN1_STRING_TABLE_get(i32 %47)
store i32* %48, i32** %1
%49 = load i32*, i32** %1
%50 = call i32 @test_ptr(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %49)
%51 = icmp ne i32 %50, 0
br i1 %51, label %55, label %52
52: ; preds = %46
%53 = load i32, i32* %3
%54 = call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 49, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 %53)
br label %75
55: ; preds = %46
%56 = call i32 (...) @ASN1_STRING_TABLE_cleanup()
%57 = load i32, i32* %2
%58 = call i32* @ASN1_STRING_TABLE_get(i32 %57)
store i32* %58, i32** %1
%59 = load i32*, i32** %1
%60 = call i32 @test_ptr_null(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 57, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %59)
%61 = icmp ne i32 %60, 0
br i1 %61, label %65, label %62
62: ; preds = %55
%63 = load i32, i32* %2
%64 = call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 58, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 %63)
br label %75
65: ; preds = %55
%66 = load i32, i32* %3
%67 = call i32* @ASN1_STRING_TABLE_get(i32 %66)
store i32* %67, i32** %1
%68 = load i32*, i32** %1
%69 = call i32 @test_ptr_null(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 63, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %68)
%70 = icmp ne i32 %69, 0
br i1 %70, label %74, label %71
71: ; preds = %65
%72 = load i32, i32* %3
%73 = call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 64, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 %72)
br label %75
74: ; preds = %65
store i32 1, i32* %4
br label %75
75: ; preds = %74, %71, %62, %52, %43, %34, %22, %11
%76 = load i32, i32* %4
ret i32 %76
}

LLVM IR (-O2):
@.str = [208 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/asn1_string_table_test.c\00"
@.str.1 = [4 x i8] c"tmp\00"
@.str.2 = [55 x i8] c"asn1 string table: ASN1_STRING_TABLE_get non-exist nid\00"
@MBSTRING_ASC = global i32 0
@.str.3 = [4 x i8] c"ret\00"
@.str.4 = [38 x i8] c"asn1 string table: add NID(%d) failed\00"
@.str.5 = [38 x i8] c"asn1 string table: get NID(%d) failed\00"
define i32 @test_string_tbl() {
%1 = tail call i32* @ASN1_STRING_TABLE_get(i32 12345678)
%2 = tail call i32 @test_ptr_null(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = tail call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 25, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.2, i64 0, i64 0))
br label %49
6: ; preds = %0
%7 = load i32, i32* @MBSTRING_ASC
%8 = tail call i32 @ASN1_STRING_TABLE_add(i32 12345678, i32 -1, i32 -1, i32 %7, i32 0)
%9 = icmp ne i32 %8, 0
%10 = zext i1 %9 to i32
%11 = tail call i32 @test_true(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 30, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %10)
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %6
%14 = tail call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 31, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i32 12345678)
br label %49
15: ; preds = %6
%16 = load i32, i32* @MBSTRING_ASC
%17 = tail call i32 @ASN1_STRING_TABLE_add(i32 87654321, i32 -1, i32 -1, i32 %16, i32 0)
%18 = icmp ne i32 %17, 0
%19 = zext i1 %18 to i32
%20 = tail call i32 @test_true(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 36, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %19)
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %15
%23 = tail call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i32 87654321)
br label %49
24: ; preds = %15
%25 = tail call i32* @ASN1_STRING_TABLE_get(i32 12345678)
%26 = tail call i32 @test_ptr(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 42, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %25)
%27 = icmp eq i32 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = tail call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 43, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 12345678)
br label %49
30: ; preds = %24
%31 = tail call i32* @ASN1_STRING_TABLE_get(i32 87654321)
%32 = tail call i32 @test_ptr(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 48, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %31)
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = tail call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 49, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 87654321)
br label %49
36: ; preds = %30
%37 = tail call i32 (...) @ASN1_STRING_TABLE_cleanup()
%38 = tail call i32* @ASN1_STRING_TABLE_get(i32 12345678)
%39 = tail call i32 @test_ptr_null(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 57, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %38)
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %36
%42 = tail call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 58, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 12345678)
br label %49
43: ; preds = %36
%44 = tail call i32* @ASN1_STRING_TABLE_get(i32 87654321)
%45 = tail call i32 @test_ptr_null(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 63, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %44)
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = tail call i32 (i8*, i32, i8*, ...) @test_info(i8* getelementptr inbounds ([208 x i8], [208 x i8]* @.str, i64 0, i64 0), i32 64, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 87654321)
br label %49
49: ; preds = %43, %47, %41, %34, %28, %22, %13, %4
%50 = phi i32 [ 0, %47 ], [ 0, %41 ], [ 0, %34 ], [ 0, %28 ], [ 0, %22 ], [ 0, %13 ], [ 0, %4 ], [ 1, %43 ]
ret i32 %50
}