; LLVM IR from specinfo-ua/UAPKI :: library/uapki/src (cert-validator)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.UapkiNS::VectorBA" = type { %"class.std::vector.51" }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl" }
%"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.56" = type { %"struct.std::_Vector_base.57" }
%"struct.std::_Vector_base.57" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.61" = type { ptr }
%"class.UapkiNS::CertValidator::CertValidator" = type { ptr, ptr, ptr, %"class.std::vector.18", %"class.std::vector.23", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA" }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.UapkiNS::Cert::CerStore::AddedCerItem" = type <{ i32, [4 x i8], ptr, i8, [7 x i8] }>
%"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo" = type <{ i32, [4 x i8], i64, i64, i64, i32, [4 x i8] }>

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare i32 @ba_cmp(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare i32 @json_object_set_value(ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @json_value_init_array() #2

declare ptr @json_object_get_array(ptr noundef, ptr noundef) #2

declare void @stacktrace_add(ptr noundef, i64 noundef, i32 noundef) #2

declare i32 @json_object_set_string(ptr noundef, ptr noundef, ptr noundef) #2

declare noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef) #2

declare noundef ptr @_ZN7UapkiNS3Crl14crlReasonToStrENS_9CrlReasonE(i32 noundef) #2

declare void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i64 noundef, i1 noundef zeroext) #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator19processResponseDataERNS_4Ocsp10OcspHelperERNS3_18SingleResponseInfoEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(92) %1, ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.UapkiNS::SmartBA", align 8
  %14 = alloca %"class.UapkiNS::VectorBA", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::vector.56", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.61", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.61", align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.61", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.61", align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca %"class.std::__cxx11::basic_string", align 8
  %31 = alloca %"class.std::__cxx11::basic_string", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %33 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store i64 0, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  invoke void @_ZN7UapkiNS8VectorBAC2Em(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef 0)
          to label %34 unwind label %45

34:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #6
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %54

37:                                               ; preds = %34
  %38 = load ptr, ptr %9, align 8, !tbaa !5
  %39 = invoke noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef -1)
          to label %40 unwind label %49

40:                                               ; preds = %37
  %41 = invoke i32 @json_object_set_string(ptr noundef %38, ptr noundef @.str.1, ptr noundef %39)
          to label %42 unwind label %49

42:                                               ; preds = %40
  %43 = icmp ne i32 %41, 0
  br i1 %43, label %44, label %53

44:                                               ; preds = %42
  store i32 4113, ptr %10, align 4, !tbaa !9
  br label %354

45:                                               ; preds = %4
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %15, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %16, align 4
  br label %359

49:                                               ; preds = %348, %341, %335, %329, %314, %305, %299, %281, %260, %251, %245, %238, %233, %227, %142, %139, %90, %83, %75, %69, %63, %58, %55, %40, %37
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %15, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %16, align 4
  br label %358

53:                                               ; preds = %42
  br label %54

54:                                               ; preds = %53, %34
  br label %55

55:                                               ; preds = %54
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %58 unwind label %49

58:                                               ; preds = %55
  %59 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper25getSerialNumberFromCertIdEmPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %56, i64 noundef 0, ptr noundef %57)
          to label %60 unwind label %49

60:                                               ; preds = %58
  store i32 %59, ptr %10, align 4, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %66

63:                                               ; preds = %60
  %64 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 650, i32 noundef %64)
          to label %65 unwind label %49

65:                                               ; preds = %63
  br label %354

66:                                               ; preds = %60
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper8getCertsERSt6vectorIP12ByteArray_stSaIS4_EE(ptr noundef nonnull align 8 dereferenceable(92) %70, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %72 unwind label %49

72:                                               ; preds = %69
  store i32 %71, ptr %10, align 4, !tbaa !9
  %73 = load i32, ptr %10, align 4, !tbaa !9
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %78

75:                                               ; preds = %72
  %76 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 651, i32 noundef %76)
          to label %77 unwind label %49

77:                                               ; preds = %75
  br label %354

78:                                               ; preds = %72
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  %81 = call noundef zeroext i1 @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br i1 %81, label %136, label %82

82:                                               ; preds = %80
  br label %83

83:                                               ; preds = %82
  %84 = getelementptr inbounds %"class.UapkiNS::CertValidator::CertValidator", ptr %33, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  %86 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore8addCertsEbbRKNS_8VectorBAERSt6vectorINS1_12AddedCerItemESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(96) %85, i1 noundef zeroext false, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %17)
          to label %87 unwind label %49

87:                                               ; preds = %83
  store i32 %86, ptr %10, align 4, !tbaa !9
  %88 = load i32, ptr %10, align 4, !tbaa !9
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %93

90:                                               ; preds = %87
  %91 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 659, i32 noundef %91)
          to label %92 unwind label %49

92:                                               ; preds = %90
  br label %354

93:                                               ; preds = %87
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store ptr %17, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #6
  %98 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.61", ptr %20, i32 0, i32 0
  store ptr %97, ptr %98, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %99 = load ptr, ptr %19, align 8, !tbaa !5
  %100 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #6
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.61", ptr %21, i32 0, i32 0
  store ptr %100, ptr %101, align 8
  br label %102

102:                                              ; preds = %133, %95
  %103 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  br i1 %103, label %105, label %104

104:                                              ; preds = %102
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %135

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %106 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  store ptr %106, ptr %22, align 8, !tbaa !5
  %107 = load ptr, ptr %22, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.UapkiNS::Cert::CerStore::AddedCerItem", ptr %107, i32 0, i32 2
  %109 = load ptr, ptr %108, align 8, !tbaa !24
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %132

111:                                              ; preds = %105
  %112 = load ptr, ptr %22, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.UapkiNS::Cert::CerStore::AddedCerItem", ptr %112, i32 0, i32 2
  %114 = load ptr, ptr %113, align 8, !tbaa !24
  %115 = invoke noundef ptr @_ZNK7UapkiNS4Cert7CerItem15getSerialNumberEv(ptr noundef nonnull align 8 dereferenceable(401) %114)
          to label %116 unwind label %128

116:                                              ; preds = %111
  %117 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %118 unwind label %128

118:                                              ; preds = %116
  %119 = invoke i32 @ba_cmp(ptr noundef %115, ptr noundef %117)
          to label %120 unwind label %128

120:                                              ; preds = %118
  %121 = icmp eq i32 %119, 0
  br i1 %121, label %122, label %132

122:                                              ; preds = %120
  %123 = load ptr, ptr %22, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.UapkiNS::Cert::CerStore::AddedCerItem", ptr %123, i32 0, i32 2
  %125 = load ptr, ptr %124, align 8, !tbaa !24
  %126 = invoke noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401) %125)
          to label %127 unwind label %128

127:                                              ; preds = %122
  store ptr %126, ptr %12, align 8, !tbaa !5
  br label %132

128:                                              ; preds = %122, %118, %116, %111
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %15, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %358

132:                                              ; preds = %127, %120, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %133

133:                                              ; preds = %132
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #6
  br label %102

135:                                              ; preds = %104
  br label %136

136:                                              ; preds = %135, %80
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %226

139:                                              ; preds = %136
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = invoke ptr @json_value_init_array()
          to label %142 unwind label %49

142:                                              ; preds = %139
  %143 = invoke i32 @json_object_set_value(ptr noundef %140, ptr noundef @.str.7, ptr noundef %141)
          to label %144 unwind label %49

144:                                              ; preds = %142
  %145 = icmp ne i32 %143, 0
  br i1 %145, label %146, label %147

146:                                              ; preds = %144
  store i32 4113, ptr %10, align 4, !tbaa !9
  br label %354

147:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = invoke ptr @json_object_get_array(ptr noundef %148, ptr noundef @.str.7)
          to label %150 unwind label %160

150:                                              ; preds = %147
  store ptr %149, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  store ptr %17, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %151 = load ptr, ptr %24, align 8, !tbaa !5
  %152 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #6
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.61", ptr %25, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %154 = load ptr, ptr %24, align 8, !tbaa !5
  %155 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %154) #6
  %156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.61", ptr %26, i32 0, i32 0
  store ptr %155, ptr %156, align 8
  br label %157

157:                                              ; preds = %190, %150
  %158 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  br i1 %158, label %164, label %159

159:                                              ; preds = %157
  store i32 11, ptr %27, align 4
  br label %192

160:                                              ; preds = %209, %197, %147
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %15, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %16, align 4
  br label %225

164:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %165 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  store ptr %165, ptr %28, align 8, !tbaa !5
  br label %166

166:                                              ; preds = %164
  %167 = load ptr, ptr %23, align 8, !tbaa !5
  %168 = load ptr, ptr %28, align 8, !tbaa !5
  %169 = getelementptr inbounds %"struct.UapkiNS::Cert::CerStore::AddedCerItem", ptr %168, i32 0, i32 2
  %170 = load ptr, ptr %169, align 8, !tbaa !24
  %171 = invoke noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401) %170)
          to label %172 unwind label %180

172:                                              ; preds = %166
  %173 = invoke i32 @json_array_append_base64(ptr noundef %167, ptr noundef %171)
          to label %174 unwind label %180

174:                                              ; preds = %172
  store i32 %173, ptr %10, align 4, !tbaa !9
  %175 = load i32, ptr %10, align 4, !tbaa !9
  %176 = icmp ne i32 %175, 0
  br i1 %176, label %177, label %184

177:                                              ; preds = %174
  %178 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 671, i32 noundef %178)
          to label %179 unwind label %180

179:                                              ; preds = %177
  store i32 2, ptr %27, align 4
  br label %187

180:                                              ; preds = %177, %172, %166
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %15, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %225

184:                                              ; preds = %174
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185
  store i32 0, ptr %27, align 4
  br label %187

187:                                              ; preds = %186, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  %188 = load i32, ptr %27, align 4
  switch i32 %188, label %192 [
    i32 0, label %189
  ]

189:                                              ; preds = %187
  br label %190

190:                                              ; preds = %189
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  br label %157

192:                                              ; preds = %187, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %193 = load i32, ptr %27, align 4
  switch i32 %193, label %222 [
    i32 11, label %194
  ]

194:                                              ; preds = %192
  %195 = load ptr, ptr %12, align 8, !tbaa !5
  %196 = icmp ne ptr %195, null
  br i1 %196, label %197, label %205

197:                                              ; preds = %194
  %198 = load ptr, ptr %9, align 8, !tbaa !5
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = invoke i32 @json_object_set_base64(ptr noundef %198, ptr noundef @.str.8, ptr noundef %199)
          to label %201 unwind label %160

201:                                              ; preds = %197
  %202 = icmp ne i32 %200, 0
  br i1 %202, label %203, label %204

203:                                              ; preds = %201
  store i32 4113, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %27, align 4
  br label %222

204:                                              ; preds = %201
  br label %205

205:                                              ; preds = %204, %194
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #6
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  %207 = invoke noundef i64 @_ZNK7UapkiNS4Ocsp10OcspHelper13getProducedAtEv(ptr noundef nonnull align 8 dereferenceable(92) %206)
          to label %208 unwind label %217

208:                                              ; preds = %205
  invoke void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, i64 noundef %207, i1 noundef zeroext false)
          to label %209 unwind label %217

209:                                              ; preds = %208
  %210 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  %211 = load ptr, ptr %9, align 8, !tbaa !5
  %212 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  %213 = invoke i32 @json_object_set_string(ptr noundef %211, ptr noundef @.str.9, ptr noundef %212)
          to label %214 unwind label %160

214:                                              ; preds = %209
  %215 = icmp ne i32 %213, 0
  br i1 %215, label %216, label %221

216:                                              ; preds = %214
  store i32 4113, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %27, align 4
  br label %222

217:                                              ; preds = %208, %205
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %15, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #6
  br label %225

221:                                              ; preds = %214
  store i32 0, ptr %27, align 4
  br label %222

222:                                              ; preds = %221, %216, %203, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  %223 = load i32, ptr %27, align 4
  switch i32 %223, label %356 [
    i32 0, label %224
    i32 2, label %354
  ]

224:                                              ; preds = %222
  br label %226

225:                                              ; preds = %217, %180, %160
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %358

226:                                              ; preds = %224, %136
  br label %227

227:                                              ; preds = %226
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper19scanSingleResponsesEv(ptr noundef nonnull align 8 dereferenceable(92) %228)
          to label %230 unwind label %49

230:                                              ; preds = %227
  store i32 %229, ptr %10, align 4, !tbaa !9
  %231 = load i32, ptr %10, align 4, !tbaa !9
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %236

233:                                              ; preds = %230
  %234 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 682, i32 noundef %234)
          to label %235 unwind label %49

235:                                              ; preds = %233
  br label %354

236:                                              ; preds = %230
  br label %237

237:                                              ; preds = %236
  br label %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNK7UapkiNS4Ocsp10OcspHelper21getSingleResponseInfoEm(ptr noundef nonnull align 8 dereferenceable(92) %239, i64 noundef 0)
          to label %241 unwind label %49

241:                                              ; preds = %238
  %242 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %242, ptr align 8 %240, i64 36, i1 false), !tbaa.struct !27
  %243 = load ptr, ptr %9, align 8, !tbaa !5
  %244 = icmp ne ptr %243, null
  br i1 %244, label %245, label %328

245:                                              ; preds = %241
  %246 = load ptr, ptr %9, align 8, !tbaa !5
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  %248 = getelementptr inbounds %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", ptr %247, i32 0, i32 0
  %249 = load i32, ptr %248, align 8, !tbaa !32
  %250 = invoke noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef %249)
          to label %251 unwind label %49

251:                                              ; preds = %245
  %252 = invoke i32 @json_object_set_string(ptr noundef %246, ptr noundef @.str.1, ptr noundef %250)
          to label %253 unwind label %49

253:                                              ; preds = %251
  %254 = icmp ne i32 %252, 0
  br i1 %254, label %255, label %256

255:                                              ; preds = %253
  store i32 4113, ptr %10, align 4, !tbaa !9
  br label %354

256:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 32, ptr %30) #6
  %257 = load ptr, ptr %8, align 8, !tbaa !5
  %258 = getelementptr inbounds %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", ptr %257, i32 0, i32 2
  %259 = load i64, ptr %258, align 8, !tbaa !34
  invoke void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %30, i64 noundef %259, i1 noundef zeroext false)
          to label %260 unwind label %268

260:                                              ; preds = %256
  %261 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %30) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #6
  %262 = load ptr, ptr %9, align 8, !tbaa !5
  %263 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  %264 = invoke i32 @json_object_set_string(ptr noundef %262, ptr noundef @.str.10, ptr noundef %263)
          to label %265 unwind label %49

265:                                              ; preds = %260
  %266 = icmp ne i32 %264, 0
  br i1 %266, label %267, label %272

267:                                              ; preds = %265
  store i32 4113, ptr %10, align 4, !tbaa !9
  br label %354

268:                                              ; preds = %256
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %15, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %30) #6
  br label %358

272:                                              ; preds = %265
  %273 = load ptr, ptr %8, align 8, !tbaa !5
  %274 = getelementptr inbounds %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", ptr %273, i32 0, i32 3
  %275 = load i64, ptr %274, align 8, !tbaa !35
  %276 = icmp ugt i64 %275, 0
  br i1 %276, label %277, label %294

277:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 32, ptr %31) #6
  %278 = load ptr, ptr %8, align 8, !tbaa !5
  %279 = getelementptr inbounds %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", ptr %278, i32 0, i32 3
  %280 = load i64, ptr %279, align 8, !tbaa !35
  invoke void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %31, i64 noundef %280, i1 noundef zeroext false)
          to label %281 unwind label %289

281:                                              ; preds = %277
  %282 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %31) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  %283 = load ptr, ptr %9, align 8, !tbaa !5
  %284 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  %285 = invoke i32 @json_object_set_string(ptr noundef %283, ptr noundef @.str.11, ptr noundef %284)
          to label %286 unwind label %49

286:                                              ; preds = %281
  %287 = icmp ne i32 %285, 0
  br i1 %287, label %288, label %293

288:                                              ; preds = %286
  store i32 4113, ptr %10, align 4, !tbaa !9
  br label %354

289:                                              ; preds = %277
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %15, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %31) #6
  br label %358

293:                                              ; preds = %286
  br label %294

294:                                              ; preds = %293, %272
  %295 = load ptr, ptr %8, align 8, !tbaa !5
  %296 = getelementptr inbounds %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", ptr %295, i32 0, i32 0
  %297 = load i32, ptr %296, align 8, !tbaa !32
  %298 = icmp eq i32 %297, 1
  br i1 %298, label %299, label %327

299:                                              ; preds = %294
  %300 = load ptr, ptr %9, align 8, !tbaa !5
  %301 = load ptr, ptr %8, align 8, !tbaa !5
  %302 = getelementptr inbounds %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", ptr %301, i32 0, i32 5
  %303 = load i32, ptr %302, align 8, !tbaa !36
  %304 = invoke noundef ptr @_ZN7UapkiNS3Crl14crlReasonToStrENS_9CrlReasonE(i32 noundef %303)
          to label %305 unwind label %49

305:                                              ; preds = %299
  %306 = invoke i32 @json_object_set_string(ptr noundef %300, ptr noundef @.str.4, ptr noundef %304)
          to label %307 unwind label %49

307:                                              ; preds = %305
  %308 = icmp ne i32 %306, 0
  br i1 %308, label %309, label %310

309:                                              ; preds = %307
  store i32 4113, ptr %10, align 4, !tbaa !9
  br label %354

310:                                              ; preds = %307
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #6
  %311 = load ptr, ptr %8, align 8, !tbaa !5
  %312 = getelementptr inbounds %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", ptr %311, i32 0, i32 4
  %313 = load i64, ptr %312, align 8, !tbaa !37
  invoke void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %32, i64 noundef %313, i1 noundef zeroext false)
          to label %314 unwind label %322

314:                                              ; preds = %310
  %315 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  %316 = load ptr, ptr %9, align 8, !tbaa !5
  %317 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  %318 = invoke i32 @json_object_set_string(ptr noundef %316, ptr noundef @.str.5, ptr noundef %317)
          to label %319 unwind label %49

319:                                              ; preds = %314
  %320 = icmp ne i32 %318, 0
  br i1 %320, label %321, label %326

321:                                              ; preds = %319
  store i32 4113, ptr %10, align 4, !tbaa !9
  br label %354

322:                                              ; preds = %310
  %323 = landingpad { ptr, i32 }
          cleanup
  %324 = extractvalue { ptr, i32 } %323, 0
  store ptr %324, ptr %15, align 8
  %325 = extractvalue { ptr, i32 } %323, 1
  store i32 %325, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #6
  br label %358

326:                                              ; preds = %319
  br label %327

327:                                              ; preds = %326, %294
  br label %328

328:                                              ; preds = %327, %241
  br label %329

329:                                              ; preds = %328
  %330 = load ptr, ptr %7, align 8, !tbaa !5
  %331 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper10checkNonceEv(ptr noundef nonnull align 8 dereferenceable(92) %330)
          to label %332 unwind label %49

332:                                              ; preds = %329
  store i32 %331, ptr %10, align 4, !tbaa !9
  %333 = load i32, ptr %10, align 4, !tbaa !9
  %334 = icmp ne i32 %333, 0
  br i1 %334, label %335, label %338

335:                                              ; preds = %332
  %336 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 703, i32 noundef %336)
          to label %337 unwind label %49

337:                                              ; preds = %335
  br label %354

338:                                              ; preds = %332
  br label %339

339:                                              ; preds = %338
  br label %340

340:                                              ; preds = %339
  br label %341

341:                                              ; preds = %340
  %342 = load ptr, ptr %7, align 8, !tbaa !5
  %343 = load ptr, ptr %9, align 8, !tbaa !5
  %344 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator18verifyResponseDataERNS_4Ocsp10OcspHelperEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %33, ptr noundef nonnull align 8 dereferenceable(92) %342, ptr noundef %343)
          to label %345 unwind label %49

345:                                              ; preds = %341
  store i32 %344, ptr %10, align 4, !tbaa !9
  %346 = load i32, ptr %10, align 4, !tbaa !9
  %347 = icmp ne i32 %346, 0
  br i1 %347, label %348, label %351

348:                                              ; preds = %345
  %349 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 704, i32 noundef %349)
          to label %350 unwind label %49

350:                                              ; preds = %348
  br label %354

351:                                              ; preds = %345
  br label %352

352:                                              ; preds = %351
  br label %353

353:                                              ; preds = %352
  br label %354

354:                                              ; preds = %353, %350, %337, %321, %309, %288, %267, %255, %235, %222, %146, %92, %77, %65, %44
  %355 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %355, ptr %5, align 4
  store i32 1, ptr %27, align 4
  br label %356

356:                                              ; preds = %354, %222
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  call void @_ZN7UapkiNS8VectorBAD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %357 = load i32, ptr %5, align 4
  ret i32 %357

358:                                              ; preds = %322, %289, %268, %225, %128, %49
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #6
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  call void @_ZN7UapkiNS8VectorBAD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  br label %359

359:                                              ; preds = %358, %45
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %360

360:                                              ; preds = %359
  %361 = load ptr, ptr %15, align 8
  %362 = load i32, ptr %16, align 4
  %363 = insertvalue { ptr, i32 } poison, ptr %361, 0
  %364 = insertvalue { ptr, i32 } %363, i32 %362, 1
  resume { ptr, i32 } %364
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7UapkiNS8VectorBAC2Em(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper25getSerialNumberFromCertIdEmPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92), i64 noundef, ptr noundef) #2

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper8getCertsERSt6vectorIP12ByteArray_stSaIS4_EE(ptr noundef nonnull align 8 dereferenceable(92), ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

declare noundef i32 @_ZN7UapkiNS4Cert8CerStore8addCertsEbbRKNS_8VectorBAERSt6vectorINS1_12AddedCerItemESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(96), i1 noundef zeroext, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS4Cert7CerItem15getSerialNumberEv(ptr noundef nonnull align 8 dereferenceable(401)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

declare i32 @json_array_append_base64(ptr noundef, ptr noundef) #2

declare i32 @json_object_set_base64(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7UapkiNS4Ocsp10OcspHelper13getProducedAtEv(ptr noundef nonnull align 8 dereferenceable(92)) #0 align 2

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper19scanSingleResponsesEv(ptr noundef nonnull align 8 dereferenceable(92)) #2

declare noundef nonnull align 8 dereferenceable(36) ptr @_ZNK7UapkiNS4Ocsp10OcspHelper21getSingleResponseInfoEm(ptr noundef nonnull align 8 dereferenceable(92), i64 noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper10checkNonceEv(ptr noundef nonnull align 8 dereferenceable(92)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator18verifyResponseDataERNS_4Ocsp10OcspHelperEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(92), ptr noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS8VectorBAD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTSN7UapkiNS13CertValidator13CertValidatorE", !6, i64 0, !6, i64 8, !6, i64 16, !15, i64 24, !19, i64 48, !23, i64 72, !23, i64 80}
!15 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!"_ZTSN7UapkiNS7SmartBAE", !6, i64 0}
!24 = !{!25, !6, i64 8}
!25 = !{!"_ZTSN7UapkiNS4Cert8CerStore12AddedCerItemE", !10, i64 0, !6, i64 8, !26, i64 16}
!26 = !{!"bool", !7, i64 0}
!27 = !{i64 0, i64 4, !28, i64 8, i64 8, !11, i64 16, i64 8, !11, i64 24, i64 8, !11, i64 32, i64 4, !30}
!28 = !{!29, !29, i64 0}
!29 = !{!"_ZTSN7UapkiNS10CertStatusE", !7, i64 0}
!30 = !{!31, !31, i64 0}
!31 = !{!"_ZTSN7UapkiNS9CrlReasonE", !7, i64 0}
!32 = !{!33, !29, i64 0}
!33 = !{!"_ZTSN7UapkiNS4Ocsp10OcspHelper18SingleResponseInfoE", !29, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !31, i64 32}
!34 = !{!33, !12, i64 8}
!35 = !{!33, !12, i64 16}
!36 = !{!33, !31, i64 32}
!37 = !{!33, !12, i64 24}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.UapkiNS::VectorBA" = type { %"class.std::vector.51" }
%"class.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl" }
%"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.56" = type { %"struct.std::_Vector_base.57" }
%"struct.std::_Vector_base.57" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.61" = type { ptr }

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare i32 @ba_cmp(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare i32 @json_object_set_value(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare ptr @json_value_init_array() local_unnamed_addr #2

declare ptr @json_object_get_array(ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @stacktrace_add(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @json_object_set_string(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef) local_unnamed_addr #2

declare noundef ptr @_ZN7UapkiNS3Crl14crlReasonToStrENS_9CrlReasonE(i32 noundef) local_unnamed_addr #2

declare void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i64 noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator19processResponseDataERNS_4Ocsp10OcspHelperERNS3_18SingleResponseInfoEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(92) %1, ptr nocapture noundef nonnull align 8 dereferenceable(36) %2, ptr noundef %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.UapkiNS::SmartBA", align 8
  %6 = alloca %"class.UapkiNS::VectorBA", align 8
  %7 = alloca %"class.std::vector.56", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.61", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.61", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.61", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.61", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  invoke void @_ZN7UapkiNS8VectorBAC2Em(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0)
          to label %17 unwind label %23

17:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %27, label %18

18:                                               ; preds = %17
  %19 = invoke noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef -1)
          to label %20 unwind label %25

20:                                               ; preds = %18
  %21 = invoke i32 @json_object_set_string(ptr noundef nonnull %3, ptr noundef nonnull @.str.1, ptr noundef %19)
          to label %22 unwind label %25

22:                                               ; preds = %20
  %.not89 = icmp eq i32 %21, 0
  br i1 %.not89, label %27, label %.thread119

23:                                               ; preds = %4
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %166

25:                                               ; preds = %164, %161, %160, %157, %150, %144, %140, %130, %119, %113, %110, %107, %106, %103, %68, %66, %43, %38, %35, %32, %31, %27, %20, %18
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %165

27:                                               ; preds = %17, %22
  %28 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %29 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper25getSerialNumberFromCertIdEmPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %1, i64 noundef 0, ptr noundef %28)
          to label %30 unwind label %25

30:                                               ; preds = %27
  %.not90 = icmp eq i32 %29, 0
  br i1 %.not90, label %32, label %31

31:                                               ; preds = %30
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 650, i32 noundef %29)
          to label %.thread119 unwind label %25

32:                                               ; preds = %30
  %33 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper8getCertsERSt6vectorIP12ByteArray_stSaIS4_EE(ptr noundef nonnull align 8 dereferenceable(92) %1, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %34 unwind label %25

34:                                               ; preds = %32
  %.not91 = icmp eq i32 %33, 0
  br i1 %.not91, label %36, label %35

35:                                               ; preds = %34
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 651, i32 noundef %33)
          to label %.thread119 unwind label %25

36:                                               ; preds = %34
  %37 = call noundef zeroext i1 @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br i1 %37, label %65, label %38

38:                                               ; preds = %36
  %39 = getelementptr inbounds i8, ptr %0, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  %41 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore8addCertsEbbRKNS_8VectorBAERSt6vectorINS1_12AddedCerItemESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(96) %40, i1 noundef zeroext false, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %42 unwind label %25

42:                                               ; preds = %38
  %.not92 = icmp eq i32 %41, 0
  br i1 %.not92, label %44, label %43

43:                                               ; preds = %42
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 659, i32 noundef %41)
          to label %.thread119 unwind label %25

44:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %45 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %45, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %46 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %46, ptr %10, align 8
  %47 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %47, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %62, %44
  %.066.lcssa = phi ptr [ null, %44 ], [ %.167, %62 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %65

.lr.ph:                                           ; preds = %44, %62
  %.066124 = phi ptr [ %.167, %62 ], [ null, %44 ]
  %48 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = load ptr, ptr %49, align 8, !tbaa !19
  %.not93 = icmp eq ptr %50, null
  br i1 %.not93, label %62, label %51

51:                                               ; preds = %.lr.ph
  %52 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem15getSerialNumberEv(ptr noundef nonnull align 8 dereferenceable(401) %50)
  %53 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %54 = invoke i32 @ba_cmp(ptr noundef %52, ptr noundef %53)
          to label %55 unwind label %60

55:                                               ; preds = %51
  %56 = icmp eq i32 %54, 0
  br i1 %56, label %57, label %62

57:                                               ; preds = %55
  %58 = load ptr, ptr %49, align 8, !tbaa !19
  %59 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401) %58)
  br label %62

60:                                               ; preds = %51
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br label %165

62:                                               ; preds = %57, %55, %.lr.ph
  %.167 = phi ptr [ %59, %57 ], [ %.066124, %55 ], [ %.066124, %.lr.ph ]
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  %64 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  br i1 %64, label %.lr.ph, label %._crit_edge

65:                                               ; preds = %._crit_edge, %36
  %.268 = phi ptr [ null, %36 ], [ %.066.lcssa, %._crit_edge ]
  br i1 %.not, label %103, label %66

66:                                               ; preds = %65
  %67 = invoke ptr @json_value_init_array()
          to label %68 unwind label %25

68:                                               ; preds = %66
  %69 = invoke i32 @json_object_set_value(ptr noundef nonnull %3, ptr noundef nonnull @.str.7, ptr noundef %67)
          to label %70 unwind label %25

70:                                               ; preds = %68
  %.not94 = icmp eq i32 %69, 0
  br i1 %.not94, label %71, label %.thread119

71:                                               ; preds = %70
  %72 = invoke ptr @json_object_get_array(ptr noundef nonnull %3, ptr noundef nonnull @.str.7)
          to label %73 unwind label %77

73:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %74 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %74, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %75 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  store ptr %75, ptr %12, align 8
  %76 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %76, label %.lr.ph126, label %._crit_edge127

77:                                               ; preds = %96, %91, %71
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %165

.lr.ph126:                                        ; preds = %73, %87
  %79 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  %81 = load ptr, ptr %80, align 8, !tbaa !19
  %82 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401) %81)
  %83 = invoke i32 @json_array_append_base64(ptr noundef %72, ptr noundef %82)
          to label %84 unwind label %.loopexit

84:                                               ; preds = %.lr.ph126
  %.not95 = icmp eq i32 %83, 0
  br i1 %.not95, label %87, label %85

85:                                               ; preds = %84
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 671, i32 noundef %83)
          to label %90 unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %.lr.ph126
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %86

.loopexit.split-lp:                               ; preds = %85
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %86

86:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %165

87:                                               ; preds = %84
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %89 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %89, label %.lr.ph126, label %._crit_edge127

90:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %.thread119

._crit_edge127:                                   ; preds = %87, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  %.not96 = icmp eq ptr %.268, null
  br i1 %.not96, label %94, label %91

91:                                               ; preds = %._crit_edge127
  %92 = invoke i32 @json_object_set_base64(ptr noundef nonnull %3, ptr noundef nonnull @.str.8, ptr noundef nonnull %.268)
          to label %93 unwind label %77

93:                                               ; preds = %91
  %.not97 = icmp eq i32 %92, 0
  br i1 %.not97, label %94, label %.thread119

94:                                               ; preds = %93, %._crit_edge127
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #6
  %95 = call noundef i64 @_ZNK7UapkiNS4Ocsp10OcspHelper13getProducedAtEv(ptr noundef nonnull align 8 dereferenceable(92) %1)
  invoke void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, i64 noundef %95, i1 noundef zeroext false)
          to label %96 unwind label %101

96:                                               ; preds = %94
  %97 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  %98 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %99 = invoke i32 @json_object_set_string(ptr noundef nonnull %3, ptr noundef nonnull @.str.9, ptr noundef %98)
          to label %100 unwind label %77

100:                                              ; preds = %96
  %.not99 = icmp eq i32 %99, 0
  br i1 %.not99, label %103, label %.thread119

101:                                              ; preds = %94
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #6
  br label %165

103:                                              ; preds = %100, %65
  %104 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper19scanSingleResponsesEv(ptr noundef nonnull align 8 dereferenceable(92) %1)
          to label %105 unwind label %25

105:                                              ; preds = %103
  %.not100 = icmp eq i32 %104, 0
  br i1 %.not100, label %107, label %106

106:                                              ; preds = %105
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 682, i32 noundef %104)
          to label %.thread119 unwind label %25

107:                                              ; preds = %105
  %108 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNK7UapkiNS4Ocsp10OcspHelper21getSingleResponseInfoEm(ptr noundef nonnull align 8 dereferenceable(92) %1, i64 noundef 0)
          to label %109 unwind label %25

109:                                              ; preds = %107
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(36) %108, i64 36, i1 false), !tbaa.struct !23
  br i1 %.not, label %157, label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %2, align 8, !tbaa !30
  %112 = invoke noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef %111)
          to label %113 unwind label %25

113:                                              ; preds = %110
  %114 = invoke i32 @json_object_set_string(ptr noundef nonnull %3, ptr noundef nonnull @.str.1, ptr noundef %112)
          to label %115 unwind label %25

115:                                              ; preds = %113
  %.not101 = icmp eq i32 %114, 0
  br i1 %.not101, label %116, label %.thread119

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #6
  %117 = getelementptr inbounds i8, ptr %2, i64 8
  %118 = load i64, ptr %117, align 8, !tbaa !32
  invoke void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, i64 noundef %118, i1 noundef zeroext false)
          to label %119 unwind label %124

119:                                              ; preds = %116
  %120 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  %121 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %122 = invoke i32 @json_object_set_string(ptr noundef nonnull %3, ptr noundef nonnull @.str.10, ptr noundef %121)
          to label %123 unwind label %25

123:                                              ; preds = %119
  %.not102 = icmp eq i32 %122, 0
  br i1 %.not102, label %126, label %.thread119

124:                                              ; preds = %116
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #6
  br label %165

126:                                              ; preds = %123
  %127 = getelementptr inbounds i8, ptr %2, i64 16
  %128 = load i64, ptr %127, align 8, !tbaa !33
  %.not103 = icmp eq i64 %128, 0
  br i1 %.not103, label %137, label %129

129:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #6
  invoke void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %15, i64 noundef %128, i1 noundef zeroext false)
          to label %130 unwind label %135

130:                                              ; preds = %129
  %131 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  %132 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %133 = invoke i32 @json_object_set_string(ptr noundef nonnull %3, ptr noundef nonnull @.str.11, ptr noundef %132)
          to label %134 unwind label %25

134:                                              ; preds = %130
  %.not104 = icmp eq i32 %133, 0
  br i1 %.not104, label %137, label %.thread119

135:                                              ; preds = %129
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #6
  br label %165

137:                                              ; preds = %134, %126
  %138 = load i32, ptr %2, align 8, !tbaa !30
  %139 = icmp eq i32 %138, 1
  br i1 %139, label %140, label %157

140:                                              ; preds = %137
  %141 = getelementptr inbounds i8, ptr %2, i64 32
  %142 = load i32, ptr %141, align 8, !tbaa !34
  %143 = invoke noundef ptr @_ZN7UapkiNS3Crl14crlReasonToStrENS_9CrlReasonE(i32 noundef %142)
          to label %144 unwind label %25

144:                                              ; preds = %140
  %145 = invoke i32 @json_object_set_string(ptr noundef nonnull %3, ptr noundef nonnull @.str.4, ptr noundef %143)
          to label %146 unwind label %25

146:                                              ; preds = %144
  %.not105 = icmp eq i32 %145, 0
  br i1 %.not105, label %147, label %.thread119

147:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #6
  %148 = getelementptr inbounds i8, ptr %2, i64 24
  %149 = load i64, ptr %148, align 8, !tbaa !35
  invoke void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, i64 noundef %149, i1 noundef zeroext false)
          to label %150 unwind label %155

150:                                              ; preds = %147
  %151 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  %152 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %153 = invoke i32 @json_object_set_string(ptr noundef nonnull %3, ptr noundef nonnull @.str.5, ptr noundef %152)
          to label %154 unwind label %25

154:                                              ; preds = %150
  %.not106 = icmp eq i32 %153, 0
  br i1 %.not106, label %157, label %.thread119

155:                                              ; preds = %147
  %156 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #6
  br label %165

157:                                              ; preds = %109, %154, %137
  %158 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper10checkNonceEv(ptr noundef nonnull align 8 dereferenceable(92) %1)
          to label %159 unwind label %25

159:                                              ; preds = %157
  %.not107 = icmp eq i32 %158, 0
  br i1 %.not107, label %161, label %160

160:                                              ; preds = %159
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 703, i32 noundef %158)
          to label %.thread119 unwind label %25

161:                                              ; preds = %159
  %162 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator18verifyResponseDataERNS_4Ocsp10OcspHelperEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(92) %1, ptr noundef %3)
          to label %163 unwind label %25

163:                                              ; preds = %161
  %.not108 = icmp eq i32 %162, 0
  br i1 %.not108, label %.thread119, label %164

164:                                              ; preds = %163
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 704, i32 noundef %162)
          to label %.thread119 unwind label %25

.thread119:                                       ; preds = %100, %93, %90, %31, %35, %43, %106, %160, %164, %163, %22, %70, %115, %123, %134, %146, %154
  %.0 = phi i32 [ %29, %31 ], [ %33, %35 ], [ %104, %106 ], [ %158, %160 ], [ %162, %164 ], [ 0, %163 ], [ %41, %43 ], [ 4113, %22 ], [ 4113, %70 ], [ 4113, %115 ], [ 4113, %123 ], [ 4113, %134 ], [ 4113, %146 ], [ 4113, %154 ], [ 4113, %100 ], [ 4113, %93 ], [ %83, %90 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN7UapkiNS8VectorBAD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  ret i32 %.0

165:                                              ; preds = %77, %86, %101, %155, %135, %124, %60, %25
  %.pn109 = phi { ptr, i32 } [ %26, %25 ], [ %156, %155 ], [ %136, %135 ], [ %125, %124 ], [ %61, %60 ], [ %78, %77 ], [ %102, %101 ], [ %lpad.phi, %86 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #6
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN7UapkiNS8VectorBAD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %166

166:                                              ; preds = %165, %23
  %.pn109.pn = phi { ptr, i32 } [ %.pn109, %165 ], [ %24, %23 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn109.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7UapkiNS8VectorBAC2Em(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper25getSerialNumberFromCertIdEmPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92), i64 noundef, ptr noundef) local_unnamed_addr #2

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper8getCertsERSt6vectorIP12ByteArray_stSaIS4_EE(ptr noundef nonnull align 8 dereferenceable(92), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

declare noundef i32 @_ZN7UapkiNS4Cert8CerStore8addCertsEbbRKNS_8VectorBAERSt6vectorINS1_12AddedCerItemESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(96), i1 noundef zeroext, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS4Cert7CerItem15getSerialNumberEv(ptr noundef nonnull align 8 dereferenceable(401)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

declare i32 @json_array_append_base64(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @json_object_set_base64(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK7UapkiNS4Ocsp10OcspHelper13getProducedAtEv(ptr noundef nonnull align 8 dereferenceable(92)) local_unnamed_addr #0 align 2

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper19scanSingleResponsesEv(ptr noundef nonnull align 8 dereferenceable(92)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(36) ptr @_ZNK7UapkiNS4Ocsp10OcspHelper21getSingleResponseInfoEm(ptr noundef nonnull align 8 dereferenceable(92), i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

declare noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper10checkNonceEv(ptr noundef nonnull align 8 dereferenceable(92)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator18verifyResponseDataERNS_4Ocsp10OcspHelperEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(92), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS8VectorBAD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"_ZTSN7UapkiNS13CertValidator13CertValidatorE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !14, i64 48, !18, i64 72, !18, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!14 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!"_ZTSN7UapkiNS7SmartBAE", !7, i64 0}
!19 = !{!20, !7, i64 8}
!20 = !{!"_ZTSN7UapkiNS4Cert8CerStore12AddedCerItemE", !21, i64 0, !7, i64 8, !22, i64 16}
!21 = !{!"int", !8, i64 0}
!22 = !{!"bool", !8, i64 0}
!23 = !{i64 0, i64 4, !24, i64 8, i64 8, !26, i64 16, i64 8, !26, i64 24, i64 8, !26, i64 32, i64 4, !28}
!24 = !{!25, !25, i64 0}
!25 = !{!"_ZTSN7UapkiNS10CertStatusE", !8, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"long", !8, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"_ZTSN7UapkiNS9CrlReasonE", !8, i64 0}
!30 = !{!31, !25, i64 0}
!31 = !{!"_ZTSN7UapkiNS4Ocsp10OcspHelper18SingleResponseInfoE", !25, i64 0, !27, i64 8, !27, i64 16, !27, i64 24, !29, i64 32}
!32 = !{!31, !27, i64 8}
!33 = !{!31, !27, i64 16}
!34 = !{!31, !29, i64 32}
!35 = !{!31, !27, i64 24}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass