; 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::lock_guard" = type { ptr }
%"class.UapkiNS::Ocsp::OcspHelper" = type <{ %"class.std::vector.45", ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, [4 x i8] }>
%"class.std::vector.45" = type { %"struct.std::_Vector_base.46" }
%"struct.std::_Vector_base.46" = type { %"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.50" = 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 }
%"class.UapkiNS::SmartBA" = type { ptr }
%"struct.UapkiNS::Cert::CerItem::Uris" = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"struct.UapkiNS::LibraryConfig::OcspParams" = type { i64 }
%"struct.UapkiNS::Cert::CertStatusInfo" = type { i32, %"struct.std::atomic", ptr, i32, i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"struct.UapkiNS::CertValidator::ResultValidationByOcsp" = type <{ %"struct.UapkiNS::Ocsp::ResponseInfo", %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", %"class.UapkiNS::SmartBA", i8, [7 x i8], %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA", i32, [4 x i8] }>
%"struct.UapkiNS::Ocsp::ResponseInfo" = type { i32, i32, %"class.UapkiNS::SmartBA", i64, %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", i32, ptr }
%"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
@_ZN10HttpHelper25CONTENT_TYPE_OCSP_REQUESTE = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1 align 2

declare ptr @ba_copy_with_alloc(ptr noundef, i64 noundef, i64 noundef) #2

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

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

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

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

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

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

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

declare noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef) #2

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

declare noundef i32 @_ZN7UapkiNS4Cert14CertStatusInfo3setENS_10CertStatusEmPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i64 noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator14validateByOcspEPNS_4Cert7CerItemES4_RNS0_22ResultValidationByOcspEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(156) %3, ptr noundef %4) #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::lock_guard", align 8
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca %"class.UapkiNS::Ocsp::OcspHelper", align 8
  %19 = alloca %"class.std::vector", align 8
  %20 = alloca %"class.std::vector", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.std::vector", align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %28 = load ptr, ptr %7, align 8
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %32, label %31

31:                                               ; preds = %5
  store i32 4101, ptr %6, align 4
  br label %359

32:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN7UapkiNS4Cert7CerItem8getMutexEv(ptr noundef nonnull align 8 dereferenceable(401) %33)
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(40) %34)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %35 = getelementptr inbounds %"class.UapkiNS::CertValidator::CertValidator", ptr %28, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7UapkiNS13LibraryConfig7getOcspEv(ptr noundef nonnull align 8 dereferenceable(97) %36)
          to label %38 unwind label %53

38:                                               ; preds = %32
  store ptr %37, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN7UapkiNS4Cert7CerItem19getCertStatusByOcspEv(ptr noundef nonnull align 8 dereferenceable(401) %39)
          to label %41 unwind label %57

41:                                               ; preds = %38
  store ptr %40, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr %18) #6
  invoke void @_ZN7UapkiNS4Ocsp10OcspHelperC1Ev(ptr noundef nonnull align 8 dereferenceable(92) %18)
          to label %42 unwind label %61

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store ptr null, ptr %21, align 8, !tbaa !5
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = icmp ne ptr %43, null
  br i1 %44, label %45, label %70

45:                                               ; preds = %42
  %46 = load ptr, ptr %11, align 8, !tbaa !5
  %47 = invoke noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef -1)
          to label %48 unwind label %65

48:                                               ; preds = %45
  %49 = invoke i32 @json_object_set_string(ptr noundef %46, ptr noundef @.str.1, ptr noundef %47)
          to label %50 unwind label %65

50:                                               ; preds = %48
  %51 = icmp ne i32 %49, 0
  br i1 %51, label %52, label %69

52:                                               ; preds = %50
  store i32 4113, ptr %13, align 4, !tbaa !9
  br label %353

53:                                               ; preds = %32
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %15, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %16, align 4
  br label %358

57:                                               ; preds = %38
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %15, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %16, align 4
  br label %357

61:                                               ; preds = %41
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %15, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %16, align 4
  br label %356

65:                                               ; preds = %346, %338, %333, %320, %310, %306, %301, %295, %290, %286, %278, %274, %269, %261, %256, %247, %245, %242, %235, %227, %216, %211, %205, %157, %154, %149, %144, %137, %129, %118, %111, %105, %100, %96, %93, %88, %82, %79, %74, %70, %48, %45
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %15, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %16, align 4
  br label %355

69:                                               ; preds = %50
  br label %70

70:                                               ; preds = %69, %42
  %71 = invoke noundef zeroext i1 @_ZN10HttpHelper13isOfflineModeEv()
          to label %72 unwind label %65

72:                                               ; preds = %70
  br i1 %71, label %73, label %79

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  store i32 4120, ptr %13, align 4, !tbaa !9
  %75 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 555, i32 noundef %75, ptr noundef null)
          to label %76 unwind label %65

76:                                               ; preds = %74
  br label %353

77:                                               ; No predecessors!
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78, %72
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNK7UapkiNS4Cert7CerItem7getUrisEv(ptr noundef nonnull align 8 dereferenceable(401) %80)
          to label %82 unwind label %65

82:                                               ; preds = %79
  %83 = getelementptr inbounds %"struct.UapkiNS::Cert::CerItem::Uris", ptr %81, i32 0, i32 2
  %84 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSERKS7_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %83)
          to label %85 unwind label %65

85:                                               ; preds = %82
  %86 = call noundef zeroext i1 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  br i1 %86, label %87, label %93

87:                                               ; preds = %85
  br label %88

88:                                               ; preds = %87
  store i32 4192, ptr %13, align 4, !tbaa !9
  %89 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 560, i32 noundef %89, ptr noundef null)
          to label %90 unwind label %65

90:                                               ; preds = %88
  br label %353

91:                                               ; No predecessors!
  br label %92

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92, %85
  %94 = load ptr, ptr %17, align 8, !tbaa !5
  %95 = invoke noundef i64 @_ZN8TimeUtil8mtimeNowEv()
          to label %96 unwind label %65

96:                                               ; preds = %93
  %97 = invoke noundef zeroext i1 @_ZN7UapkiNS4Cert14CertStatusInfo9isExpiredEm(ptr noundef nonnull align 8 dereferenceable(32) %94, i64 noundef %95)
          to label %98 unwind label %65

98:                                               ; preds = %96
  br i1 %97, label %99, label %223

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  %101 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper4initEv(ptr noundef nonnull align 8 dereferenceable(92) %18)
          to label %102 unwind label %65

102:                                              ; preds = %100
  store i32 %101, ptr %13, align 4, !tbaa !9
  %103 = load i32, ptr %13, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %108

105:                                              ; preds = %102
  %106 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 564, i32 noundef %106)
          to label %107 unwind label %65

107:                                              ; preds = %105
  br label %353

108:                                              ; preds = %102
  br label %109

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper7addCertEPKNS_4Cert7CerItemES5_(ptr noundef nonnull align 8 dereferenceable(92) %18, ptr noundef %112, ptr noundef %113)
          to label %115 unwind label %65

115:                                              ; preds = %111
  store i32 %114, ptr %13, align 4, !tbaa !9
  %116 = load i32, ptr %13, align 4, !tbaa !9
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %121

118:                                              ; preds = %115
  %119 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 565, i32 noundef %119)
          to label %120 unwind label %65

120:                                              ; preds = %118
  br label %353

121:                                              ; preds = %115
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.UapkiNS::LibraryConfig::OcspParams", ptr %124, i32 0, i32 0
  %126 = load i64, ptr %125, align 8, !tbaa !22
  %127 = icmp ugt i64 %126, 0
  br i1 %127, label %128, label %143

128:                                              ; preds = %123
  br label %129

129:                                              ; preds = %128
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.UapkiNS::LibraryConfig::OcspParams", ptr %130, i32 0, i32 0
  %132 = load i64, ptr %131, align 8, !tbaa !22
  %133 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper8genNonceEm(ptr noundef nonnull align 8 dereferenceable(92) %18, i64 noundef %132)
          to label %134 unwind label %65

134:                                              ; preds = %129
  store i32 %133, ptr %13, align 4, !tbaa !9
  %135 = load i32, ptr %13, align 4, !tbaa !9
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %140

137:                                              ; preds = %134
  %138 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 567, i32 noundef %138)
          to label %139 unwind label %65

139:                                              ; preds = %137
  br label %353

140:                                              ; preds = %134
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142, %123
  br label %144

144:                                              ; preds = %143
  %145 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper13encodeRequestEv(ptr noundef nonnull align 8 dereferenceable(92) %18)
          to label %146 unwind label %65

146:                                              ; preds = %144
  store i32 %145, ptr %13, align 4, !tbaa !9
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = icmp ne i32 %147, 0
  br i1 %148, label %149, label %152

149:                                              ; preds = %146
  %150 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 569, i32 noundef %150)
          to label %151 unwind label %65

151:                                              ; preds = %149
  br label %353

152:                                              ; preds = %146
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  %155 = getelementptr inbounds %"class.UapkiNS::CertValidator::CertValidator", ptr %28, i32 0, i32 5
  %156 = invoke noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper17getRequestEncodedEb(ptr noundef nonnull align 8 dereferenceable(92) %18, i1 noundef zeroext true)
          to label %157 unwind label %65

157:                                              ; preds = %154
  %158 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef %156)
          to label %159 unwind label %65

159:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  invoke void @_ZN10HttpHelper10randomURIsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %22, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %160 unwind label %171

160:                                              ; preds = %159
  %161 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSEOS7_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store ptr %19, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %162 = load ptr, ptr %23, align 8, !tbaa !5
  %163 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %162) #6
  %164 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %24, i32 0, i32 0
  store ptr %163, ptr %164, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %165 = load ptr, ptr %23, align 8, !tbaa !5
  %166 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #6
  %167 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %25, i32 0, i32 0
  store ptr %166, ptr %167, align 8
  br label %168

168:                                              ; preds = %198, %160
  %169 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  br i1 %169, label %175, label %170

170:                                              ; preds = %168
  store i32 15, ptr %26, align 4
  br label %200

171:                                              ; preds = %159
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %15, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  br label %355

175:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %176 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  store ptr %176, ptr %27, align 8, !tbaa !5
  %177 = load ptr, ptr %27, align 8, !tbaa !5
  %178 = load ptr, ptr @_ZN10HttpHelper25CONTENT_TYPE_OCSP_REQUESTE, align 8, !tbaa !5
  %179 = getelementptr inbounds %"class.UapkiNS::CertValidator::CertValidator", ptr %28, i32 0, i32 5
  %180 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %179)
          to label %181 unwind label %190

181:                                              ; preds = %175
  %182 = getelementptr inbounds %"class.UapkiNS::CertValidator::CertValidator", ptr %28, i32 0, i32 6
  %183 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %182)
          to label %184 unwind label %190

184:                                              ; preds = %181
  %185 = invoke noundef i32 @_ZN10HttpHelper4postERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPK12ByteArray_stPPSA_(ptr noundef nonnull align 8 dereferenceable(32) %177, ptr noundef %178, ptr noundef %180, ptr noundef %183)
          to label %186 unwind label %190

186:                                              ; preds = %184
  store i32 %185, ptr %13, align 4, !tbaa !9
  %187 = load i32, ptr %13, align 4, !tbaa !9
  %188 = icmp eq i32 %187, 0
  br i1 %188, label %189, label %194

189:                                              ; preds = %186
  store i32 15, ptr %26, align 4
  br label %195

190:                                              ; preds = %184, %181, %175
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %15, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %355

194:                                              ; preds = %186
  store i32 0, ptr %26, align 4
  br label %195

195:                                              ; preds = %194, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  %196 = load i32, ptr %26, align 4
  switch i32 %196, label %200 [
    i32 0, label %197
  ]

197:                                              ; preds = %195
  br label %198

198:                                              ; preds = %197
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #6
  br label %168

200:                                              ; preds = %195, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %13, align 4, !tbaa !9
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %211

204:                                              ; preds = %201
  br label %205

205:                                              ; preds = %204
  %206 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %206, ptr %13, align 4, !tbaa !9
  %207 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 586, i32 noundef %207, ptr noundef null)
          to label %208 unwind label %65

208:                                              ; preds = %205
  br label %353

209:                                              ; No predecessors!
  br label %210

210:                                              ; preds = %209
  br label %222

211:                                              ; preds = %201
  %212 = getelementptr inbounds %"class.UapkiNS::CertValidator::CertValidator", ptr %28, i32 0, i32 6
  %213 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %212)
          to label %214 unwind label %65

214:                                              ; preds = %211
  br i1 %213, label %215, label %221

215:                                              ; preds = %214
  br label %216

216:                                              ; preds = %215
  store i32 4198, ptr %13, align 4, !tbaa !9
  %217 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 589, i32 noundef %217, ptr noundef null)
          to label %218 unwind label %65

218:                                              ; preds = %216
  br label %353

219:                                              ; No predecessors!
  br label %220

220:                                              ; preds = %219
  br label %221

221:                                              ; preds = %220, %214
  br label %222

222:                                              ; preds = %221, %210
  br label %223

223:                                              ; preds = %222, %98
  %224 = load ptr, ptr %17, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.UapkiNS::Cert::CertStatusInfo", ptr %224, i32 0, i32 1
  %226 = call noundef zeroext i1 @_ZNKSt6atomicIbEcvbEv(ptr noundef nonnull align 1 dereferenceable(1) %225) #6
  br i1 %226, label %227, label %231

227:                                              ; preds = %223
  %228 = getelementptr inbounds %"class.UapkiNS::CertValidator::CertValidator", ptr %28, i32 0, i32 6
  %229 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %228)
          to label %230 unwind label %65

230:                                              ; preds = %227
  br label %235

231:                                              ; preds = %223
  %232 = load ptr, ptr %17, align 8, !tbaa !5
  %233 = getelementptr inbounds %"struct.UapkiNS::Cert::CertStatusInfo", ptr %232, i32 0, i32 2
  %234 = load ptr, ptr %233, align 8, !tbaa !25
  br label %235

235:                                              ; preds = %231, %230
  %236 = phi ptr [ %229, %230 ], [ %234, %231 ]
  store ptr %236, ptr %21, align 8, !tbaa !5
  %237 = load ptr, ptr %21, align 8, !tbaa !5
  %238 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper13parseResponseEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %18, ptr noundef %237)
          to label %239 unwind label %65

239:                                              ; preds = %235
  store i32 %238, ptr %13, align 4, !tbaa !9
  %240 = load ptr, ptr %11, align 8, !tbaa !5
  %241 = icmp ne ptr %240, null
  br i1 %241, label %242, label %253

242:                                              ; preds = %239
  %243 = load ptr, ptr %11, align 8, !tbaa !5
  %244 = invoke noundef i32 @_ZNK7UapkiNS4Ocsp10OcspHelper17getResponseStatusEv(ptr noundef nonnull align 8 dereferenceable(92) %18)
          to label %245 unwind label %65

245:                                              ; preds = %242
  %246 = invoke noundef ptr @_ZN7UapkiNS4Ocsp19responseStatusToStrENS0_14ResponseStatusE(i32 noundef %244)
          to label %247 unwind label %65

247:                                              ; preds = %245
  %248 = invoke i32 @json_object_set_string(ptr noundef %243, ptr noundef @.str.6, ptr noundef %246)
          to label %249 unwind label %65

249:                                              ; preds = %247
  %250 = icmp ne i32 %248, 0
  br i1 %250, label %251, label %252

251:                                              ; preds = %249
  store i32 4113, ptr %13, align 4, !tbaa !9
  br label %353

252:                                              ; preds = %249
  br label %253

253:                                              ; preds = %252, %239
  %254 = load i32, ptr %13, align 4, !tbaa !9
  %255 = icmp eq i32 %254, 0
  br i1 %255, label %256, label %352

256:                                              ; preds = %253
  %257 = invoke noundef i32 @_ZNK7UapkiNS4Ocsp10OcspHelper17getResponseStatusEv(ptr noundef nonnull align 8 dereferenceable(92) %18)
          to label %258 unwind label %65

258:                                              ; preds = %256
  %259 = icmp eq i32 %257, 0
  br i1 %259, label %260, label %345

260:                                              ; preds = %258
  br label %261

261:                                              ; preds = %260
  %262 = load ptr, ptr %10, align 8, !tbaa !5
  %263 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByOcsp", ptr %262, i32 0, i32 1
  %264 = load ptr, ptr %11, align 8, !tbaa !5
  %265 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator19processResponseDataERNS_4Ocsp10OcspHelperERNS3_18SingleResponseInfoEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %28, ptr noundef nonnull align 8 dereferenceable(92) %18, ptr noundef nonnull align 8 dereferenceable(36) %263, ptr noundef %264)
          to label %266 unwind label %65

266:                                              ; preds = %261
  store i32 %265, ptr %13, align 4, !tbaa !9
  %267 = load i32, ptr %13, align 4, !tbaa !9
  %268 = icmp ne i32 %267, 0
  br i1 %268, label %269, label %272

269:                                              ; preds = %266
  %270 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 605, i32 noundef %270)
          to label %271 unwind label %65

271:                                              ; preds = %269
  br label %353

272:                                              ; preds = %266
  br label %273

273:                                              ; preds = %272
  br label %274

274:                                              ; preds = %273
  %275 = load ptr, ptr %10, align 8, !tbaa !5
  %276 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByOcsp", ptr %275, i32 0, i32 2
  %277 = invoke noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper27getBasicOcspResponseEncodedEb(ptr noundef nonnull align 8 dereferenceable(92) %18, i1 noundef zeroext true)
          to label %278 unwind label %65

278:                                              ; preds = %274
  %279 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %276, ptr noundef %277)
          to label %280 unwind label %65

280:                                              ; preds = %278
  %281 = load ptr, ptr %10, align 8, !tbaa !5
  %282 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByOcsp", ptr %281, i32 0, i32 3
  %283 = load i8, ptr %282, align 8, !tbaa !32, !range !41, !noundef !42
  %284 = trunc i8 %283 to i1
  br i1 %284, label %285, label %301

285:                                              ; preds = %280
  br label %286

286:                                              ; preds = %285
  %287 = load ptr, ptr %10, align 8, !tbaa !5
  %288 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByOcsp", ptr %287, i32 0, i32 5
  %289 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %288)
          to label %290 unwind label %65

290:                                              ; preds = %286
  %291 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper17getOcspIdentifierEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %18, ptr noundef %289)
          to label %292 unwind label %65

292:                                              ; preds = %290
  store i32 %291, ptr %13, align 4, !tbaa !9
  %293 = load i32, ptr %13, align 4, !tbaa !9
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %298

295:                                              ; preds = %292
  %296 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 609, i32 noundef %296)
          to label %297 unwind label %65

297:                                              ; preds = %295
  br label %353

298:                                              ; preds = %292
  br label %299

299:                                              ; preds = %298
  br label %300

300:                                              ; preds = %299
  br label %301

301:                                              ; preds = %300, %280
  %302 = load ptr, ptr %10, align 8, !tbaa !5
  %303 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByOcsp", ptr %302, i32 0, i32 6
  %304 = load ptr, ptr %21, align 8, !tbaa !5
  %305 = invoke ptr @ba_copy_with_alloc(ptr noundef %304, i64 noundef 0, i64 noundef 0)
          to label %306 unwind label %65

306:                                              ; preds = %301
  %307 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %303, ptr noundef %305)
          to label %308 unwind label %65

308:                                              ; preds = %306
  br i1 %307, label %315, label %309

309:                                              ; preds = %308
  br label %310

310:                                              ; preds = %309
  store i32 4097, ptr %13, align 4, !tbaa !9
  %311 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 612, i32 noundef %311, ptr noundef null)
          to label %312 unwind label %65

312:                                              ; preds = %310
  br label %353

313:                                              ; No predecessors!
  br label %314

314:                                              ; preds = %313
  br label %315

315:                                              ; preds = %314, %308
  %316 = load ptr, ptr %17, align 8, !tbaa !5
  %317 = getelementptr inbounds %"struct.UapkiNS::Cert::CertStatusInfo", ptr %316, i32 0, i32 1
  %318 = call noundef zeroext i1 @_ZNKSt6atomicIbEcvbEv(ptr noundef nonnull align 1 dereferenceable(1) %317) #6
  br i1 %318, label %319, label %344

319:                                              ; preds = %315
  br label %320

320:                                              ; preds = %319
  %321 = load ptr, ptr %17, align 8, !tbaa !5
  %322 = load ptr, ptr %10, align 8, !tbaa !5
  %323 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByOcsp", ptr %322, i32 0, i32 1
  %324 = getelementptr inbounds %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", ptr %323, i32 0, i32 0
  %325 = load i32, ptr %324, align 8, !tbaa !43
  %326 = load ptr, ptr %10, align 8, !tbaa !5
  %327 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByOcsp", ptr %326, i32 0, i32 1
  %328 = getelementptr inbounds %"struct.UapkiNS::Ocsp::OcspHelper::SingleResponseInfo", ptr %327, i32 0, i32 2
  %329 = load i64, ptr %328, align 8, !tbaa !44
  %330 = add i64 %329, 1800000
  %331 = getelementptr inbounds %"class.UapkiNS::CertValidator::CertValidator", ptr %28, i32 0, i32 6
  %332 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %331)
          to label %333 unwind label %65

333:                                              ; preds = %320
  %334 = invoke noundef i32 @_ZN7UapkiNS4Cert14CertStatusInfo3setENS_10CertStatusEmPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(32) %321, i32 noundef %325, i64 noundef %330, ptr noundef %332)
          to label %335 unwind label %65

335:                                              ; preds = %333
  store i32 %334, ptr %13, align 4, !tbaa !9
  %336 = load i32, ptr %13, align 4, !tbaa !9
  %337 = icmp ne i32 %336, 0
  br i1 %337, label %338, label %341

338:                                              ; preds = %335
  %339 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 620, i32 noundef %339)
          to label %340 unwind label %65

340:                                              ; preds = %338
  br label %353

341:                                              ; preds = %335
  br label %342

342:                                              ; preds = %341
  br label %343

343:                                              ; preds = %342
  br label %344

344:                                              ; preds = %343, %315
  br label %351

345:                                              ; preds = %258
  br label %346

346:                                              ; preds = %345
  store i32 4194, ptr %13, align 4, !tbaa !9
  %347 = load i32, ptr %13, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 624, i32 noundef %347, ptr noundef null)
          to label %348 unwind label %65

348:                                              ; preds = %346
  br label %353

349:                                              ; No predecessors!
  br label %350

350:                                              ; preds = %349
  br label %351

351:                                              ; preds = %350, %344
  br label %352

352:                                              ; preds = %351, %253
  br label %353

353:                                              ; preds = %352, %348, %340, %312, %297, %271, %251, %218, %208, %151, %139, %120, %107, %90, %76, %52
  %354 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %354, ptr %6, align 4
  store i32 1, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %18) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %359

355:                                              ; preds = %190, %171, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %18) #6
  br label %356

356:                                              ; preds = %355, %61
  call void @llvm.lifetime.end.p0(i64 96, ptr %18) #6
  br label %357

357:                                              ; preds = %356, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %358

358:                                              ; preds = %357, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %361

359:                                              ; preds = %353, %31
  %360 = load i32, ptr %6, align 4
  ret i32 %360

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

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

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

declare void @_ZN7UapkiNS4Ocsp10OcspHelperC1Ev(ptr noundef nonnull align 8 dereferenceable(92)) unnamed_addr #2

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

declare noundef zeroext i1 @_ZN10HttpHelper13isOfflineModeEv() #2

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

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

declare noundef zeroext i1 @_ZN7UapkiNS4Cert14CertStatusInfo9isExpiredEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2

declare noundef i64 @_ZN8TimeUtil8mtimeNowEv() #2

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

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

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

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

declare noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper17getRequestEncodedEb(ptr noundef nonnull align 8 dereferenceable(92), i1 noundef zeroext) #2

declare void @_ZN10HttpHelper10randomURIsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(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(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

declare noundef i32 @_ZN10HttpHelper4postERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPK12ByteArray_stPPSA_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6atomicIbEcvbEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

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

declare noundef ptr @_ZN7UapkiNS4Ocsp19responseStatusToStrENS0_14ResponseStatusE(i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7UapkiNS4Ocsp10OcspHelper17getResponseStatusEv(ptr noundef nonnull align 8 dereferenceable(92)) #1 align 2

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

declare noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper27getBasicOcspResponseEncodedEb(ptr noundef nonnull align 8 dereferenceable(92), i1 noundef zeroext) #2

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

; Function Attrs: nounwind
declare void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92)) unnamed_addr #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nounwind "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 #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, !6, i64 0}
!12 = !{!"_ZTSN7UapkiNS13CertValidator13CertValidatorE", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !17, i64 48, !21, i64 72, !21, i64 80}
!13 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSN7UapkiNS7SmartBAE", !6, i64 0}
!22 = !{!23, !24, i64 0}
!23 = !{!"_ZTSN7UapkiNS13LibraryConfig10OcspParamsE", !24, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!26, !6, i64 8}
!26 = !{!"_ZTSN7UapkiNS4Cert14CertStatusInfoE", !27, i64 0, !28, i64 4, !6, i64 8, !31, i64 16, !24, i64 24}
!27 = !{!"_ZTSN7UapkiNS4Cert14ValidationTypeE", !7, i64 0}
!28 = !{!"_ZTSSt6atomicIbE", !29, i64 0}
!29 = !{!"_ZTSSt13__atomic_baseIbE", !30, i64 0}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTSN7UapkiNS10CertStatusE", !7, i64 0}
!32 = !{!33, !30, i64 128}
!33 = !{!"_ZTSN7UapkiNS13CertValidator22ResultValidationByOcspE", !34, i64 0, !37, i64 80, !21, i64 120, !30, i64 128, !21, i64 136, !21, i64 144, !40, i64 152}
!34 = !{!"_ZTSN7UapkiNS4Ocsp12ResponseInfoE", !35, i64 0, !36, i64 4, !21, i64 8, !24, i64 16, !37, i64 24, !39, i64 64, !6, i64 72}
!35 = !{!"_ZTSN7UapkiNS4Ocsp14ResponseStatusE", !7, i64 0}
!36 = !{!"_ZTSN7UapkiNS4Ocsp15ResponderIdTypeE", !7, i64 0}
!37 = !{!"_ZTSN7UapkiNS4Ocsp10OcspHelper18SingleResponseInfoE", !31, i64 0, !24, i64 8, !24, i64 16, !24, i64 24, !38, i64 32}
!38 = !{!"_ZTSN7UapkiNS9CrlReasonE", !7, i64 0}
!39 = !{!"_ZTSN7UapkiNS12VerifyStatusE", !7, i64 0}
!40 = !{!"_ZTSN7UapkiNS13CertValidator10DataSourceE", !7, i64 0}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!33, !31, i64 80}
!44 = !{!33, !24, i64 88}


; 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::lock_guard" = type { ptr }
%"class.UapkiNS::Ocsp::OcspHelper" = type <{ %"class.std::vector.45", ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, [4 x i8] }>
%"class.std::vector.45" = type { %"struct.std::_Vector_base.46" }
%"struct.std::_Vector_base.46" = type { %"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.50" = 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
@_ZN10HttpHelper25CONTENT_TYPE_OCSP_REQUESTE = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

declare ptr @ba_copy_with_alloc(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator14validateByOcspEPNS_4Cert7CerItemES4_RNS0_22ResultValidationByOcspEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull align 8 dereferenceable(156) %3, ptr noundef %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::lock_guard", align 8
  %7 = alloca %"class.UapkiNS::Ocsp::OcspHelper", align 8
  %8 = alloca %"class.std::vector", align 8
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %158, label %13

13:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %14 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZN7UapkiNS4Cert7CerItem8getMutexEv(ptr noundef nonnull align 8 dereferenceable(401) %1)
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(40) %14)
  %15 = load ptr, ptr %0, align 8, !tbaa !5
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK7UapkiNS13LibraryConfig7getOcspEv(ptr noundef nonnull align 8 dereferenceable(97) %15)
  %17 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN7UapkiNS4Cert7CerItem19getCertStatusByOcspEv(ptr noundef nonnull align 8 dereferenceable(401) %1)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %7) #6
  invoke void @_ZN7UapkiNS4Ocsp10OcspHelperC1Ev(ptr noundef nonnull align 8 dereferenceable(92) %7)
          to label %18 unwind label %24

18:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %.not81 = icmp eq ptr %4, null
  br i1 %.not81, label %28, label %19

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

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

23:                                               ; preds = %21
  %.not82 = icmp eq i32 %22, 0
  br i1 %.not82, label %28, label %155

24:                                               ; preds = %13
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %157

26:                                               ; preds = %154, %153, %144, %141, %136, %135, %130, %122, %121, %117, %109, %106, %102, %92, %88, %87, %62, %61, %58, %57, %54, %51, %48, %47, %44, %41, %39, %38, %32, %31, %28, %21, %19
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %156

28:                                               ; preds = %23, %18
  %29 = invoke noundef zeroext i1 @_ZN10HttpHelper13isOfflineModeEv()
          to label %30 unwind label %26

30:                                               ; preds = %28
  br i1 %29, label %31, label %32

31:                                               ; preds = %30
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 555, i32 noundef 4120, ptr noundef null)
          to label %155 unwind label %26

32:                                               ; preds = %30
  %33 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK7UapkiNS4Cert7CerItem7getUrisEv(ptr noundef nonnull align 8 dereferenceable(401) %1)
  %34 = getelementptr inbounds i8, ptr %33, i64 48
  %35 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSERKS7_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %34)
          to label %36 unwind label %26

36:                                               ; preds = %32
  %37 = call noundef zeroext i1 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br i1 %37, label %38, label %39

38:                                               ; preds = %36
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 560, i32 noundef 4192, ptr noundef null)
          to label %155 unwind label %26

39:                                               ; preds = %36
  %40 = invoke noundef i64 @_ZN8TimeUtil8mtimeNowEv()
          to label %41 unwind label %26

41:                                               ; preds = %39
  %42 = invoke noundef zeroext i1 @_ZN7UapkiNS4Cert14CertStatusInfo9isExpiredEm(ptr noundef nonnull align 8 dereferenceable(32) %17, i64 noundef %40)
          to label %43 unwind label %26

43:                                               ; preds = %41
  br i1 %42, label %44, label %93

44:                                               ; preds = %43
  %45 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper4initEv(ptr noundef nonnull align 8 dereferenceable(92) %7)
          to label %46 unwind label %26

46:                                               ; preds = %44
  %.not83 = icmp eq i32 %45, 0
  br i1 %.not83, label %48, label %47

47:                                               ; preds = %46
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 564, i32 noundef %45)
          to label %155 unwind label %26

48:                                               ; preds = %46
  %49 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper7addCertEPKNS_4Cert7CerItemES5_(ptr noundef nonnull align 8 dereferenceable(92) %7, ptr noundef %2, ptr noundef nonnull %1)
          to label %50 unwind label %26

50:                                               ; preds = %48
  %.not84 = icmp eq i32 %49, 0
  br i1 %.not84, label %52, label %51

51:                                               ; preds = %50
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 565, i32 noundef %49)
          to label %155 unwind label %26

52:                                               ; preds = %50
  %53 = load i64, ptr %16, align 8, !tbaa !19
  %.not85 = icmp eq i64 %53, 0
  br i1 %.not85, label %58, label %54

54:                                               ; preds = %52
  %55 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper8genNonceEm(ptr noundef nonnull align 8 dereferenceable(92) %7, i64 noundef %53)
          to label %56 unwind label %26

56:                                               ; preds = %54
  %.not86 = icmp eq i32 %55, 0
  br i1 %.not86, label %58, label %57

57:                                               ; preds = %56
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 567, i32 noundef %55)
          to label %155 unwind label %26

58:                                               ; preds = %52, %56
  %59 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper13encodeRequestEv(ptr noundef nonnull align 8 dereferenceable(92) %7)
          to label %60 unwind label %26

60:                                               ; preds = %58
  %.not87 = icmp eq i32 %59, 0
  br i1 %.not87, label %62, label %61

61:                                               ; preds = %60
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 569, i32 noundef %59)
          to label %155 unwind label %26

62:                                               ; preds = %60
  %63 = getelementptr inbounds i8, ptr %0, i64 72
  %64 = invoke noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper17getRequestEncodedEb(ptr noundef nonnull align 8 dereferenceable(92) %7, i1 noundef zeroext true)
          to label %65 unwind label %26

65:                                               ; preds = %62
  %66 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef %64)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  invoke void @_ZN10HttpHelper10randomURIsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %67 unwind label %73

67:                                               ; preds = %65
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSEOS7_(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %69 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  store ptr %69, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %70 = call ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  store ptr %70, ptr %12, align 8
  %71 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %71, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %67
  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 %88

.lr.ph:                                           ; preds = %67
  %72 = getelementptr inbounds i8, ptr %0, i64 80
  br label %75

73:                                               ; preds = %65
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  br label %156

75:                                               ; preds = %.lr.ph, %84
  %76 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %77 = load ptr, ptr @_ZN10HttpHelper25CONTENT_TYPE_OCSP_REQUESTE, align 8, !tbaa !22
  %78 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %63)
  %79 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %72)
  %80 = invoke noundef i32 @_ZN10HttpHelper4postERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPK12ByteArray_stPPSA_(ptr noundef nonnull align 8 dereferenceable(32) %76, ptr noundef %77, ptr noundef %78, ptr noundef %79)
          to label %81 unwind label %82

81:                                               ; preds = %75
  %.not88 = icmp eq i32 %80, 0
  br i1 %.not88, label %.thread, label %84

.thread:                                          ; preds = %81
  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 %88

82:                                               ; preds = %75
  %83 = landingpad { ptr, i32 }
          cleanup
  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 %156

84:                                               ; preds = %81
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  %86 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  br i1 %86, label %75, label %87

87:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 586, i32 noundef %80, ptr noundef null)
          to label %155 unwind label %26

88:                                               ; preds = %._crit_edge.thread, %.thread
  %89 = getelementptr inbounds i8, ptr %0, i64 80
  %90 = invoke noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8) %89)
          to label %91 unwind label %26

91:                                               ; preds = %88
  br i1 %90, label %92, label %93

92:                                               ; preds = %91
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 589, i32 noundef 4198, ptr noundef null)
          to label %155 unwind label %26

93:                                               ; preds = %91, %43
  %94 = getelementptr inbounds i8, ptr %17, i64 4
  %95 = call noundef zeroext i1 @_ZNKSt6atomicIbEcvbEv(ptr noundef nonnull align 1 dereferenceable(1) %94) #6
  br i1 %95, label %96, label %99

96:                                               ; preds = %93
  %97 = getelementptr inbounds i8, ptr %0, i64 80
  %98 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %97)
  br label %102

99:                                               ; preds = %93
  %100 = getelementptr inbounds i8, ptr %17, i64 8
  %101 = load ptr, ptr %100, align 8, !tbaa !23
  br label %102

102:                                              ; preds = %99, %96
  %103 = phi ptr [ %98, %96 ], [ %101, %99 ]
  %104 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper13parseResponseEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %7, ptr noundef %103)
          to label %105 unwind label %26

105:                                              ; preds = %102
  br i1 %.not81, label %112, label %106

106:                                              ; preds = %105
  %107 = call noundef i32 @_ZNK7UapkiNS4Ocsp10OcspHelper17getResponseStatusEv(ptr noundef nonnull align 8 dereferenceable(92) %7)
  %108 = invoke noundef ptr @_ZN7UapkiNS4Ocsp19responseStatusToStrENS0_14ResponseStatusE(i32 noundef %107)
          to label %109 unwind label %26

109:                                              ; preds = %106
  %110 = invoke i32 @json_object_set_string(ptr noundef nonnull %4, ptr noundef nonnull @.str.6, ptr noundef %108)
          to label %111 unwind label %26

111:                                              ; preds = %109
  %.not90 = icmp eq i32 %110, 0
  br i1 %.not90, label %112, label %155

112:                                              ; preds = %111, %105
  %113 = icmp eq i32 %104, 0
  br i1 %113, label %114, label %155

114:                                              ; preds = %112
  %115 = call noundef i32 @_ZNK7UapkiNS4Ocsp10OcspHelper17getResponseStatusEv(ptr noundef nonnull align 8 dereferenceable(92) %7)
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %154

117:                                              ; preds = %114
  %118 = getelementptr inbounds i8, ptr %3, i64 80
  %119 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator19processResponseDataERNS_4Ocsp10OcspHelperERNS3_18SingleResponseInfoEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull align 8 dereferenceable(92) %7, ptr noundef nonnull align 8 dereferenceable(36) %118, ptr noundef %4)
          to label %120 unwind label %26

120:                                              ; preds = %117
  %.not91 = icmp eq i32 %119, 0
  br i1 %.not91, label %122, label %121

121:                                              ; preds = %120
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 605, i32 noundef %119)
          to label %155 unwind label %26

122:                                              ; preds = %120
  %123 = invoke noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper27getBasicOcspResponseEncodedEb(ptr noundef nonnull align 8 dereferenceable(92) %7, i1 noundef zeroext true)
          to label %124 unwind label %26

124:                                              ; preds = %122
  %125 = getelementptr inbounds i8, ptr %3, i64 120
  %126 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef %123)
  %127 = getelementptr inbounds i8, ptr %3, i64 128
  %128 = load i8, ptr %127, align 8, !tbaa !30, !range !39, !noundef !40
  %129 = trunc nuw i8 %128 to i1
  br i1 %129, label %130, label %136

130:                                              ; preds = %124
  %131 = getelementptr inbounds i8, ptr %3, i64 136
  %132 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %131)
  %133 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper17getOcspIdentifierEPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %7, ptr noundef %132)
          to label %134 unwind label %26

134:                                              ; preds = %130
  %.not92 = icmp eq i32 %133, 0
  br i1 %.not92, label %136, label %135

135:                                              ; preds = %134
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 609, i32 noundef %133)
          to label %155 unwind label %26

136:                                              ; preds = %134, %124
  %137 = invoke ptr @ba_copy_with_alloc(ptr noundef %103, i64 noundef 0, i64 noundef 0)
          to label %138 unwind label %26

138:                                              ; preds = %136
  %139 = getelementptr inbounds i8, ptr %3, i64 144
  %140 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef %137)
  br i1 %140, label %142, label %141

141:                                              ; preds = %138
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 612, i32 noundef 4097, ptr noundef null)
          to label %155 unwind label %26

142:                                              ; preds = %138
  %143 = call noundef zeroext i1 @_ZNKSt6atomicIbEcvbEv(ptr noundef nonnull align 1 dereferenceable(1) %94) #6
  br i1 %143, label %144, label %155

144:                                              ; preds = %142
  %145 = load i32, ptr %118, align 8, !tbaa !41
  %146 = getelementptr inbounds i8, ptr %3, i64 88
  %147 = load i64, ptr %146, align 8, !tbaa !42
  %148 = add i64 %147, 1800000
  %149 = getelementptr inbounds i8, ptr %0, i64 80
  %150 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %149)
  %151 = invoke noundef i32 @_ZN7UapkiNS4Cert14CertStatusInfo3setENS_10CertStatusEmPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(32) %17, i32 noundef %145, i64 noundef %148, ptr noundef %150)
          to label %152 unwind label %26

152:                                              ; preds = %144
  %.not93 = icmp eq i32 %151, 0
  br i1 %.not93, label %155, label %153

153:                                              ; preds = %152
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 620, i32 noundef %151)
          to label %155 unwind label %26

154:                                              ; preds = %114
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 624, i32 noundef 4194, ptr noundef null)
          to label %155 unwind label %26

155:                                              ; preds = %111, %23, %112, %142, %152, %154, %153, %141, %135, %121, %92, %87, %61, %57, %51, %47, %38, %31
  %.3 = phi i32 [ 4120, %31 ], [ 4192, %38 ], [ %45, %47 ], [ %49, %51 ], [ %55, %57 ], [ %59, %61 ], [ %80, %87 ], [ 4198, %92 ], [ %119, %121 ], [ %133, %135 ], [ %151, %153 ], [ 0, %152 ], [ 0, %142 ], [ 4097, %141 ], [ 4194, %154 ], [ %104, %112 ], [ 4113, %23 ], [ 4113, %111 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %7) #6
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %7) #6
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %158

156:                                              ; preds = %82, %73, %26
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %83, %82 ], [ %74, %73 ]
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %7) #6
  br label %157

157:                                              ; preds = %156, %24
  %.pn.pn = phi { ptr, i32 } [ %.pn, %156 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %7) #6
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn.pn

158:                                              ; preds = %5, %155
  %.0 = phi i32 [ %.3, %155 ], [ 4101, %5 ]
  ret i32 %.0
}

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

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

declare void @_ZN7UapkiNS4Ocsp10OcspHelperC1Ev(ptr noundef nonnull align 8 dereferenceable(92)) unnamed_addr #2

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

declare noundef zeroext i1 @_ZN10HttpHelper13isOfflineModeEv() local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEaSERKS7_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

declare noundef zeroext i1 @_ZN7UapkiNS4Cert14CertStatusInfo9isExpiredEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2

declare noundef i64 @_ZN8TimeUtil8mtimeNowEv() local_unnamed_addr #2

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

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

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

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

declare noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper17getRequestEncodedEb(ptr noundef nonnull align 8 dereferenceable(92), i1 noundef zeroext) local_unnamed_addr #2

declare void @_ZN10HttpHelper10randomURIsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EE(ptr dead_on_unwind writable sret(%"class.std::vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_(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(32) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

declare noundef i32 @_ZN10HttpHelper4postERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKcPK12ByteArray_stPPSA_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK7UapkiNS7SmartBA5emptyEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6atomicIbEcvbEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK7UapkiNS4Ocsp10OcspHelper17getResponseStatusEv(ptr noundef nonnull align 8 dereferenceable(92)) local_unnamed_addr #1 align 2

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

declare noundef ptr @_ZN7UapkiNS4Ocsp10OcspHelper27getBasicOcspResponseEncodedEb(ptr noundef nonnull align 8 dereferenceable(92), i1 noundef zeroext) local_unnamed_addr #2

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

; Function Attrs: nounwind
declare void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92)) unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { nounwind "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 #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 0}
!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, !21, i64 0}
!20 = !{!"_ZTSN7UapkiNS13LibraryConfig10OcspParamsE", !21, i64 0}
!21 = !{!"long", !8, i64 0}
!22 = !{!7, !7, i64 0}
!23 = !{!24, !7, i64 8}
!24 = !{!"_ZTSN7UapkiNS4Cert14CertStatusInfoE", !25, i64 0, !26, i64 4, !7, i64 8, !29, i64 16, !21, i64 24}
!25 = !{!"_ZTSN7UapkiNS4Cert14ValidationTypeE", !8, i64 0}
!26 = !{!"_ZTSSt6atomicIbE", !27, i64 0}
!27 = !{!"_ZTSSt13__atomic_baseIbE", !28, i64 0}
!28 = !{!"bool", !8, i64 0}
!29 = !{!"_ZTSN7UapkiNS10CertStatusE", !8, i64 0}
!30 = !{!31, !28, i64 128}
!31 = !{!"_ZTSN7UapkiNS13CertValidator22ResultValidationByOcspE", !32, i64 0, !35, i64 80, !18, i64 120, !28, i64 128, !18, i64 136, !18, i64 144, !38, i64 152}
!32 = !{!"_ZTSN7UapkiNS4Ocsp12ResponseInfoE", !33, i64 0, !34, i64 4, !18, i64 8, !21, i64 16, !35, i64 24, !37, i64 64, !7, i64 72}
!33 = !{!"_ZTSN7UapkiNS4Ocsp14ResponseStatusE", !8, i64 0}
!34 = !{!"_ZTSN7UapkiNS4Ocsp15ResponderIdTypeE", !8, i64 0}
!35 = !{!"_ZTSN7UapkiNS4Ocsp10OcspHelper18SingleResponseInfoE", !29, i64 0, !21, i64 8, !21, i64 16, !21, i64 24, !36, i64 32}
!36 = !{!"_ZTSN7UapkiNS9CrlReasonE", !8, i64 0}
!37 = !{!"_ZTSN7UapkiNS12VerifyStatusE", !8, i64 0}
!38 = !{!"_ZTSN7UapkiNS13CertValidator10DataSourceE", !8, i64 0}
!39 = !{i8 0, i8 2}
!40 = !{}
!41 = !{!31, !29, i64 80}
!42 = !{!31, !21, i64 88}


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