#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*/ TS_TST_INFO;
typedef int /*<<< orphan*/ TS_ACCURACY;
typedef int /*<<< orphan*/ GENERAL_NAME;
typedef int /*<<< orphan*/ BIO;
typedef int /*<<< orphan*/ ASN1_OBJECT;
typedef int /*<<< orphan*/ ASN1_INTEGER;
typedef int /*<<< orphan*/ ASN1_GENERALIZEDTIME;

/* Variables and functions */
int /*<<< orphan*/ ASN1_GENERALIZEDTIME_print(int /*<<< orphan*/ *,
                                              int /*<<< orphan*/ const *);
int /*<<< orphan*/ BIO_printf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ BIO_write(int /*<<< orphan*/ *, char *, int);
int /*<<< orphan*/ CONF_VALUE;
int STACK_OF(int /*<<< orphan*/);
int /*<<< orphan*/ TS_ACCURACY_print_bio(int /*<<< orphan*/ *,
                                         int /*<<< orphan*/ *);
int /*<<< orphan*/ TS_ASN1_INTEGER_print_bio(int /*<<< orphan*/ *,
                                             int /*<<< orphan*/ const *);
int /*<<< orphan*/ TS_MSG_IMPRINT_print_bio(int /*<<< orphan*/ *,
                                            int /*<<< orphan*/);
int /*<<< orphan*/ TS_OBJ_print_bio(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ *TS_TST_INFO_get_accuracy(int /*<<< orphan*/ *);
int /*<<< orphan*/ TS_TST_INFO_get_exts(int /*<<< orphan*/ *);
int /*<<< orphan*/ TS_TST_INFO_get_msg_imprint(int /*<<< orphan*/ *);
int /*<<< orphan*/ *TS_TST_INFO_get_nonce(int /*<<< orphan*/ *);
scalar_t__ TS_TST_INFO_get_ordering(int /*<<< orphan*/ *);
int /*<<< orphan*/ *TS_TST_INFO_get_policy_id(int /*<<< orphan*/ *);
int /*<<< orphan*/ *TS_TST_INFO_get_serial(int /*<<< orphan*/ *);
int /*<<< orphan*/ *TS_TST_INFO_get_time(int /*<<< orphan*/ *);
int /*<<< orphan*/ *TS_TST_INFO_get_tsa(int /*<<< orphan*/ *);
int TS_TST_INFO_get_version(int /*<<< orphan*/ *);
int /*<<< orphan*/ TS_ext_print_bio(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ X509V3_EXT_val_prn(int /*<<< orphan*/ *, int,
                                      int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ X509V3_conf_free;
int i2v_GENERAL_NAME(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                     int /*<<< orphan*/ *);
int nval;
int /*<<< orphan*/ sk_CONF_VALUE_pop_free(int, int /*<<< orphan*/);
int TS_TST_INFO_print_bio(BIO *bio, TS_TST_INFO *a) {
  int v;
  ASN1_OBJECT *policy_id;
  const ASN1_INTEGER *serial;
  const ASN1_GENERALIZEDTIME *gtime;
  TS_ACCURACY *accuracy;
  const ASN1_INTEGER *nonce;
  GENERAL_NAME *tsa_name;
  if (a == NULL)
    return 0;
  v = TS_TST_INFO_get_version(a);
  BIO_printf(bio, "Version: %d\n", v);
  BIO_printf(bio, "Policy OID: ");
  policy_id = TS_TST_INFO_get_policy_id(a);
  TS_OBJ_print_bio(bio, policy_id);
  TS_MSG_IMPRINT_print_bio(bio, TS_TST_INFO_get_msg_imprint(a));
  BIO_printf(bio, "Serial number: ");
  serial = TS_TST_INFO_get_serial(a);
  if (serial == NULL)
    BIO_printf(bio, "unspecified");
  else
    TS_ASN1_INTEGER_print_bio(bio, serial);
  BIO_write(bio, "\n", 1);
  BIO_printf(bio, "Time stamp: ");
  gtime = TS_TST_INFO_get_time(a);
  ASN1_GENERALIZEDTIME_print(bio, gtime);
  BIO_write(bio, "\n", 1);
  BIO_printf(bio, "Accuracy: ");
  accuracy = TS_TST_INFO_get_accuracy(a);
  if (accuracy == NULL)
    BIO_printf(bio, "unspecified");
  else
    TS_ACCURACY_print_bio(bio, accuracy);
  BIO_write(bio, "\n", 1);
  BIO_printf(bio, "Ordering: %s\n", TS_TST_INFO_get_ordering(a) ? "yes" : "no");
  BIO_printf(bio, "Nonce: ");
  nonce = TS_TST_INFO_get_nonce(a);
  if (nonce == NULL)
    BIO_printf(bio, "unspecified");
  else
    TS_ASN1_INTEGER_print_bio(bio, nonce);
  BIO_write(bio, "\n", 1);
  BIO_printf(bio, "TSA: ");
  tsa_name = TS_TST_INFO_get_tsa(a);
  if (tsa_name == NULL)
    BIO_printf(bio, "unspecified");
  else {
    STACK_OF(CONF_VALUE) * nval;
    if ((nval = i2v_GENERAL_NAME(NULL, tsa_name, NULL)))
      X509V3_EXT_val_prn(bio, nval, 0, 0);
    sk_CONF_VALUE_pop_free(nval, X509V3_conf_free);
  }
  BIO_write(bio, "\n", 1);
  TS_ext_print_bio(bio, TS_TST_INFO_get_exts(a));
  return 1;
}


x86 assembly (clang, -O0):
<TS_TST_INFO_print_bio>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1287 <TS_TST_INFO_print_bio+0x27>
movl   $0x0,-0x4(%rbp)
jmp    156c <TS_TST_INFO_print_bio+0x30c>
mov    -0x18(%rbp),%rdi
call   1100 <TS_TST_INFO_get_version@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xd5f(%rip),%rsi
mov    $0x0,%al
call   1070 <BIO_printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xd5a(%rip),%rsi
mov    $0x0,%al
call   1070 <BIO_printf@plt>
mov    -0x18(%rbp),%rdi
call   10c0 <TS_TST_INFO_get_policy_id@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1180 <TS_OBJ_print_bio@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x18(%rbp),%rdi
call   1170 <TS_TST_INFO_get_msg_imprint@plt>
mov    -0x58(%rbp),%rdi
mov    %eax,%esi
call   1120 <TS_MSG_IMPRINT_print_bio@plt>
mov    -0x10(%rbp),%rdi
lea    0xd1f(%rip),%rsi
mov    $0x0,%al
call   1070 <BIO_printf@plt>
mov    -0x18(%rbp),%rdi
call   10d0 <TS_TST_INFO_get_serial@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    1331 <TS_TST_INFO_print_bio+0xd1>
mov    -0x10(%rbp),%rdi
lea    0xd05(%rip),%rsi
mov    $0x0,%al
call   1070 <BIO_printf@plt>
jmp    133e <TS_TST_INFO_print_bio+0xde>
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   10e0 <TS_ASN1_INTEGER_print_bio@plt>
mov    -0x10(%rbp),%rdi
lea    0xcc2(%rip),%rsi
mov    $0x1,%edx
call   1160 <BIO_write@plt>
mov    -0x10(%rbp),%rdi
lea    0xcd8(%rip),%rsi
mov    $0x0,%al
call   1070 <BIO_printf@plt>
mov    -0x18(%rbp),%rdi
call   1130 <TS_TST_INFO_get_time@plt>
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   10b0 <ASN1_GENERALIZEDTIME_print@plt>
mov    -0x10(%rbp),%rdi
lea    0xc81(%rip),%rsi
mov    $0x1,%edx
call   1160 <BIO_write@plt>
mov    -0x10(%rbp),%rdi
lea    0xca4(%rip),%rsi
mov    $0x0,%al
call   1070 <BIO_printf@plt>
mov    -0x18(%rbp),%rdi
call   1140 <TS_TST_INFO_get_accuracy@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jne    13d5 <TS_TST_INFO_print_bio+0x175>
mov    -0x10(%rbp),%rdi
lea    0xc61(%rip),%rsi
mov    $0x0,%al
call   1070 <BIO_printf@plt>
jmp    13e2 <TS_TST_INFO_print_bio+0x182>
mov    -0x10(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1080 <TS_ACCURACY_print_bio@plt>
mov    -0x10(%rbp),%rdi
lea    0xc1e(%rip),%rsi
mov    $0x1,%edx
call   1160 <BIO_write@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x18(%rbp),%rdi
call   1110 <TS_TST_INFO_get_ordering@plt>
mov    -0x60(%rbp),%rdi
mov    %rax,%rcx
lea    0xc4a(%rip),%rdx
lea    0xc3f(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rdx
lea    0xc22(%rip),%rsi
mov    $0x0,%al
call   1070 <BIO_printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xc25(%rip),%rsi
mov    $0x0,%al
call   1070 <BIO_printf@plt>
mov    -0x18(%rbp),%rdi
call   10a0 <TS_TST_INFO_get_nonce@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    1474 <TS_TST_INFO_print_bio+0x214>
mov    -0x10(%rbp),%rdi
lea    0xbc2(%rip),%rsi
mov    $0x0,%al
call   1070 <BIO_printf@plt>
jmp    1481 <TS_TST_INFO_print_bio+0x221>
mov    -0x10(%rbp),%rdi
mov    -0x48(%rbp),%rsi
call   10e0 <TS_ASN1_INTEGER_print_bio@plt>
mov    -0x10(%rbp),%rdi
lea    0xb7f(%rip),%rsi
mov    $0x1,%edx
call   1160 <BIO_write@plt>
mov    -0x10(%rbp),%rdi
lea    0xbca(%rip),%rsi
mov    $0x0,%al
call   1070 <BIO_printf@plt>
mov    -0x18(%rbp),%rdi
call   10f0 <TS_TST_INFO_get_tsa@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    14d7 <TS_TST_INFO_print_bio+0x277>
mov    -0x10(%rbp),%rdi
lea    0xb5f(%rip),%rsi
mov    $0x0,%al
call   1070 <BIO_printf@plt>
jmp    1534 <TS_TST_INFO_print_bio+0x2d4>
mov    0x2af2(%rip),%rax
mov    (%rax),%edi
call   1060 <STACK_OF@plt>
mov    -0x50(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
mov    %rdx,%rdi
call   1150 <i2v_GENERAL_NAME@plt>
mov    0x2adc(%rip),%rcx
mov    %eax,(%rcx)
cmp    $0x0,%eax
je     151d <TS_TST_INFO_print_bio+0x2bd>
mov    -0x10(%rbp),%rdi
mov    0x2ac6(%rip),%rax
mov    (%rax),%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1050 <X509V3_EXT_val_prn@plt>
mov    0x2ab4(%rip),%rax
mov    (%rax),%edi
mov    0x2abb(%rip),%rax
mov    (%rax),%esi
call   1090 <sk_CONF_VALUE_pop_free@plt>
mov    -0x10(%rbp),%rdi
lea    0xacc(%rip),%rsi
mov    $0x1,%edx
call   1160 <BIO_write@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <TS_TST_INFO_get_exts@plt>
mov    -0x68(%rbp),%rdi
mov    %eax,%esi
call   1040 <TS_ext_print_bio@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TS_TST_INFO_print_bio>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
test   %rsi,%rsi
je     12f2 <TS_TST_INFO_print_bio+0x92>
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1100 <TS_TST_INFO_get_version@plt>
lea    0xd7b(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <BIO_printf@plt>
lea    0xd75(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <BIO_printf@plt>
mov    %r14,%rdi
call   10c0 <TS_TST_INFO_get_policy_id@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1180 <TS_OBJ_print_bio@plt>
mov    %r14,%rdi
call   1170 <TS_TST_INFO_get_msg_imprint@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1120 <TS_MSG_IMPRINT_print_bio@plt>
lea    0xd4c(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <BIO_printf@plt>
mov    %r14,%rdi
call   10d0 <TS_TST_INFO_get_serial@plt>
test   %rax,%rax
je     12f9 <TS_TST_INFO_print_bio+0x99>
mov    %rbx,%rdi
mov    %rax,%rsi
call   10e0 <TS_ASN1_INTEGER_print_bio@plt>
jmp    130a <TS_TST_INFO_print_bio+0xaa>
xor    %ebp,%ebp
jmp    14d0 <TS_TST_INFO_print_bio+0x270>
lea    0xd2a(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <BIO_printf@plt>
lea    0xcfa(%rip),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x1,%edx
call   1160 <BIO_write@plt>
lea    0xd0e(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <BIO_printf@plt>
mov    %r14,%rdi
call   1130 <TS_TST_INFO_get_time@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   10b0 <ASN1_GENERALIZEDTIME_print@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x1,%edx
call   1160 <BIO_write@plt>
lea    0xce7(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <BIO_printf@plt>
mov    %r14,%rdi
call   1140 <TS_TST_INFO_get_accuracy@plt>
test   %rax,%rax
je     1380 <TS_TST_INFO_print_bio+0x120>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1080 <TS_ACCURACY_print_bio@plt>
jmp    1391 <TS_TST_INFO_print_bio+0x131>
lea    0xca3(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <BIO_printf@plt>
lea    0xc73(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1160 <BIO_write@plt>
mov    %r14,%rdi
call   1110 <TS_TST_INFO_get_ordering@plt>
test   %rax,%rax
lea    0xca9(%rip),%rax
lea    0xc9e(%rip),%rdx
cmove  %rax,%rdx
lea    0xc85(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <BIO_printf@plt>
lea    0xc89(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <BIO_printf@plt>
mov    %r14,%rdi
call   10a0 <TS_TST_INFO_get_nonce@plt>
test   %rax,%rax
je     13fe <TS_TST_INFO_print_bio+0x19e>
mov    %rbx,%rdi
mov    %rax,%rsi
call   10e0 <TS_ASN1_INTEGER_print_bio@plt>
jmp    140f <TS_TST_INFO_print_bio+0x1af>
lea    0xc25(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <BIO_printf@plt>
lea    0xbf5(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%edx
call   1160 <BIO_write@plt>
lea    0xc41(%rip),%rsi
xor    %r15d,%r15d
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <BIO_printf@plt>
mov    %r14,%rdi
call   10f0 <TS_TST_INFO_get_tsa@plt>
test   %rax,%rax
je     1494 <TS_TST_INFO_print_bio+0x234>
mov    %rax,%rbp
mov    0x2b82(%rip),%rax
mov    (%rax),%edi
call   1060 <STACK_OF@plt>
xor    %edi,%edi
mov    %rbp,%rsi
xor    %edx,%edx
call   1150 <i2v_GENERAL_NAME@plt>
mov    0x2b70(%rip),%rbp
mov    %eax,0x0(%rbp)
test   %eax,%eax
je     1481 <TS_TST_INFO_print_bio+0x221>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1050 <X509V3_EXT_val_prn@plt>
mov    0x0(%rbp),%r15d
mov    0x2b60(%rip),%rax
mov    (%rax),%esi
mov    %r15d,%edi
call   1090 <sk_CONF_VALUE_pop_free@plt>
jmp    14a5 <TS_TST_INFO_print_bio+0x245>
lea    0xb8f(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <BIO_printf@plt>
lea    0xb5f(%rip),%rsi
mov    $0x1,%ebp
mov    %rbx,%rdi
mov    $0x1,%edx
call   1160 <BIO_write@plt>
mov    %r14,%rdi
call   1030 <TS_TST_INFO_get_exts@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <TS_ext_print_bio@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"Version: %d\0A\00"
@.str.1 = [13 x i8] c"Policy OID: \00"
@.str.2 = [16 x i8] c"Serial number: \00"
@.str.3 = [12 x i8] c"unspecified\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [13 x i8] c"Time stamp: \00"
@.str.6 = [11 x i8] c"Accuracy: \00"
@.str.7 = [14 x i8] c"Ordering: %s\0A\00"
@.str.8 = [4 x i8] c"yes\00"
@.str.9 = [3 x i8] c"no\00"
@.str.10 = [8 x i8] c"Nonce: \00"
@.str.11 = [6 x i8] c"TSA: \00"
@CONF_VALUE = global i32 0
@nval = global i32 0
@X509V3_conf_free = global i32 0
define i32 @TS_TST_INFO_print_bio(i32* %0, i32* %1) {
%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 = alloca i32*
%12 = alloca i32*
store i32* %0, i32** %4
store i32* %1, i32** %5
%13 = load i32*, i32** %5
%14 = icmp eq i32* %13, null
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 0, i32* %3
br label %129
16: ; preds = %2
%17 = load i32*, i32** %5
%18 = call i32 @TS_TST_INFO_get_version(i32* %17)
store i32 %18, i32* %6
%19 = load i32*, i32** %4
%20 = load i32, i32* %6
%21 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %19, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %20)
%22 = load i32*, i32** %4
%23 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %22, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%24 = load i32*, i32** %5
%25 = call i32* @TS_TST_INFO_get_policy_id(i32* %24)
store i32* %25, i32** %7
%26 = load i32*, i32** %4
%27 = load i32*, i32** %7
%28 = call i32 @TS_OBJ_print_bio(i32* %26, i32* %27)
%29 = load i32*, i32** %4
%30 = load i32*, i32** %5
%31 = call i32 @TS_TST_INFO_get_msg_imprint(i32* %30)
%32 = call i32 @TS_MSG_IMPRINT_print_bio(i32* %29, i32 %31)
%33 = load i32*, i32** %4
%34 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %33, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%35 = load i32*, i32** %5
%36 = call i32* @TS_TST_INFO_get_serial(i32* %35)
store i32* %36, i32** %8
%37 = load i32*, i32** %8
%38 = icmp eq i32* %37, null
br i1 %38, label %39, label %42
39: ; preds = %16
%40 = load i32*, i32** %4
%41 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %40, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
br label %46
42: ; preds = %16
%43 = load i32*, i32** %4
%44 = load i32*, i32** %8
%45 = call i32 @TS_ASN1_INTEGER_print_bio(i32* %43, i32* %44)
br label %46
46: ; preds = %42, %39
%47 = load i32*, i32** %4
%48 = call i32 @BIO_write(i32* %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%49 = load i32*, i32** %4
%50 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %49, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%51 = load i32*, i32** %5
%52 = call i32* @TS_TST_INFO_get_time(i32* %51)
store i32* %52, i32** %9
%53 = load i32*, i32** %4
%54 = load i32*, i32** %9
%55 = call i32 @ASN1_GENERALIZEDTIME_print(i32* %53, i32* %54)
%56 = load i32*, i32** %4
%57 = call i32 @BIO_write(i32* %56, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%58 = load i32*, i32** %4
%59 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %58, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%60 = load i32*, i32** %5
%61 = call i32* @TS_TST_INFO_get_accuracy(i32* %60)
store i32* %61, i32** %10
%62 = load i32*, i32** %10
%63 = icmp eq i32* %62, null
br i1 %63, label %64, label %67
64: ; preds = %46
%65 = load i32*, i32** %4
%66 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %65, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
br label %71
67: ; preds = %46
%68 = load i32*, i32** %4
%69 = load i32*, i32** %10
%70 = call i32 @TS_ACCURACY_print_bio(i32* %68, i32* %69)
br label %71
71: ; preds = %67, %64
%72 = load i32*, i32** %4
%73 = call i32 @BIO_write(i32* %72, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%74 = load i32*, i32** %4
%75 = load i32*, i32** %5
%76 = call i64 @TS_TST_INFO_get_ordering(i32* %75)
%77 = icmp ne i64 %76, 0
%78 = zext i1 %77 to i64
%79 = select i1 %77, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0)
%80 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %74, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* %79)
%81 = load i32*, i32** %4
%82 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %81, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%83 = load i32*, i32** %5
%84 = call i32* @TS_TST_INFO_get_nonce(i32* %83)
store i32* %84, i32** %11
%85 = load i32*, i32** %11
%86 = icmp eq i32* %85, null
br i1 %86, label %87, label %90
87: ; preds = %71
%88 = load i32*, i32** %4
%89 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %88, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
br label %94
90: ; preds = %71
%91 = load i32*, i32** %4
%92 = load i32*, i32** %11
%93 = call i32 @TS_ASN1_INTEGER_print_bio(i32* %91, i32* %92)
br label %94
94: ; preds = %90, %87
%95 = load i32*, i32** %4
%96 = call i32 @BIO_write(i32* %95, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%97 = load i32*, i32** %4
%98 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %97, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%99 = load i32*, i32** %5
%100 = call i32* @TS_TST_INFO_get_tsa(i32* %99)
store i32* %100, i32** %12
%101 = load i32*, i32** %12
%102 = icmp eq i32* %101, null
br i1 %102, label %103, label %106
103: ; preds = %94
%104 = load i32*, i32** %4
%105 = call i32 (i32*, i8*, ...) @BIO_printf(i32* %104, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
br label %122
106: ; preds = %94
%107 = load i32, i32* @CONF_VALUE
%108 = call i32 @STACK_OF(i32 %107)
%109 = load i32, i32* @nval
%110 = mul nsw i32 %108, %109
%111 = load i32*, i32** %12
%112 = call i32 @i2v_GENERAL_NAME(i32* null, i32* %111, i32* null)
store i32 %112, i32* @nval
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %118
114: ; preds = %106
%115 = load i32*, i32** %4
%116 = load i32, i32* @nval
%117 = call i32 @X509V3_EXT_val_prn(i32* %115, i32 %116, i32 0, i32 0)
br label %118
118: ; preds = %114, %106
%119 = load i32, i32* @nval
%120 = load i32, i32* @X509V3_conf_free
%121 = call i32 @sk_CONF_VALUE_pop_free(i32 %119, i32 %120)
br label %122
122: ; preds = %118, %103
%123 = load i32*, i32** %4
%124 = call i32 @BIO_write(i32* %123, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%125 = load i32*, i32** %4
%126 = load i32*, i32** %5
%127 = call i32 @TS_TST_INFO_get_exts(i32* %126)
%128 = call i32 @TS_ext_print_bio(i32* %125, i32 %127)
store i32 1, i32* %3
br label %129
129: ; preds = %122, %15
%130 = load i32, i32* %3
ret i32 %130
}

LLVM IR (-O2):
@.str = [13 x i8] c"Version: %d\0A\00"
@.str.1 = [13 x i8] c"Policy OID: \00"
@.str.2 = [16 x i8] c"Serial number: \00"
@.str.3 = [12 x i8] c"unspecified\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [13 x i8] c"Time stamp: \00"
@.str.6 = [11 x i8] c"Accuracy: \00"
@.str.7 = [14 x i8] c"Ordering: %s\0A\00"
@.str.8 = [4 x i8] c"yes\00"
@.str.9 = [3 x i8] c"no\00"
@.str.10 = [8 x i8] c"Nonce: \00"
@.str.11 = [6 x i8] c"TSA: \00"
@CONF_VALUE = global i32 0
@nval = global i32 0
@X509V3_conf_free = global i32 0
define i32 @TS_TST_INFO_print_bio(i32* %0, i32* %1) {
%3 = icmp eq i32* %1, null
br i1 %3, label %68, label %4
4: ; preds = %2
%5 = tail call i32 @TS_TST_INFO_get_version(i32* %1)
%6 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32* @TS_TST_INFO_get_policy_id(i32* %1)
%9 = tail call i32 @TS_OBJ_print_bio(i32* %0, i32* %8)
%10 = tail call i32 @TS_TST_INFO_get_msg_imprint(i32* %1)
%11 = tail call i32 @TS_MSG_IMPRINT_print_bio(i32* %0, i32 %10)
%12 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32* @TS_TST_INFO_get_serial(i32* %1)
%14 = icmp eq i32* %13, null
br i1 %14, label %15, label %17
15: ; preds = %4
%16 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
br label %19
17: ; preds = %4
%18 = tail call i32 @TS_ASN1_INTEGER_print_bio(i32* %0, i32* %13)
br label %19
19: ; preds = %17, %15
%20 = tail call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%21 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%22 = tail call i32* @TS_TST_INFO_get_time(i32* %1)
%23 = tail call i32 @ASN1_GENERALIZEDTIME_print(i32* %0, i32* %22)
%24 = tail call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%25 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%26 = tail call i32* @TS_TST_INFO_get_accuracy(i32* %1)
%27 = icmp eq i32* %26, null
br i1 %27, label %28, label %30
28: ; preds = %19
%29 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
br label %32
30: ; preds = %19
%31 = tail call i32 @TS_ACCURACY_print_bio(i32* %0, i32* %26)
br label %32
32: ; preds = %30, %28
%33 = tail call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%34 = tail call i64 @TS_TST_INFO_get_ordering(i32* %1)
%35 = icmp eq i64 %34, 0
%36 = select i1 %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0)
%37 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* %36)
%38 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%39 = tail call i32* @TS_TST_INFO_get_nonce(i32* %1)
%40 = icmp eq i32* %39, null
br i1 %40, label %41, label %43
41: ; preds = %32
%42 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
br label %45
43: ; preds = %32
%44 = tail call i32 @TS_ASN1_INTEGER_print_bio(i32* %0, i32* %39)
br label %45
45: ; preds = %43, %41
%46 = tail call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%47 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%48 = tail call i32* @TS_TST_INFO_get_tsa(i32* %1)
%49 = icmp eq i32* %48, null
br i1 %49, label %50, label %52
50: ; preds = %45
%51 = tail call i32 (i32*, i8*, ...) @BIO_printf(i32* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
br label %64
52: ; preds = %45
%53 = load i32, i32* @CONF_VALUE
%54 = tail call i32 @STACK_OF(i32 %53)
%55 = tail call i32 @i2v_GENERAL_NAME(i32* null, i32* %48, i32* null)
store i32 %55, i32* @nval
%56 = icmp eq i32 %55, 0
br i1 %56, label %60, label %57
57: ; preds = %52
%58 = tail call i32 @X509V3_EXT_val_prn(i32* %0, i32 %55, i32 0, i32 0)
%59 = load i32, i32* @nval
br label %60
60: ; preds = %57, %52
%61 = phi i32 [ %59, %57 ], [ 0, %52 ]
%62 = load i32, i32* @X509V3_conf_free
%63 = tail call i32 @sk_CONF_VALUE_pop_free(i32 %61, i32 %62)
br label %64
64: ; preds = %60, %50
%65 = tail call i32 @BIO_write(i32* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%66 = tail call i32 @TS_TST_INFO_get_exts(i32* %1)
%67 = tail call i32 @TS_ext_print_bio(i32* %0, i32 %66)
br label %68
68: ; preds = %2, %64
%69 = phi i32 [ 1, %64 ], [ 0, %2 ]
ret i32 %69
}