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

; 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.UapkiNS::CertValidator::CertValidator" = type { ptr, ptr, ptr, %"class.std::vector", %"class.std::vector.0", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.UapkiNS::CertValidator::ResultValidationByCrl" = type { i32, ptr, ptr, %"struct.UapkiNS::Crl::RevokedCertItem" }
%"struct.UapkiNS::Crl::RevokedCertItem" = type { i64, i32, i64 }
%"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 [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local i32 @uapki_verify_cert(ptr noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.UapkiNS::CertValidator::CertValidator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.UapkiNS::SmartBA", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca i8, align 1
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i64, align 8
  %23 = alloca %"class.UapkiNS::SmartBA", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca %"struct.UapkiNS::CertValidator::ResultValidationByCrl", align 8
  %28 = alloca %"struct.UapkiNS::CertValidator::ResultValidationByOcsp", align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 88, ptr %6) #7
  call void @_ZN7UapkiNS13CertValidator13CertValidatorC1Ev(ptr noundef nonnull align 8 dereferenceable(88) %6)
  %29 = invoke noundef ptr @_ZN7UapkiNS10get_configEv()
          to label %30 unwind label %38

30:                                               ; preds = %2
  %31 = invoke noundef ptr @_ZN7UapkiNS12get_cerstoreEv()
          to label %32 unwind label %38

32:                                               ; preds = %30
  %33 = invoke noundef ptr @_ZN7UapkiNS12get_crlstoreEv()
          to label %34 unwind label %38

34:                                               ; preds = %32
  %35 = invoke noundef zeroext i1 @_ZN7UapkiNS13CertValidator13CertValidator4initEPNS_13LibraryConfigEPNS_4Cert8CerStoreEPNS_3Crl8CrlStoreE(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef %29, ptr noundef %31, ptr noundef %33)
          to label %36 unwind label %38

36:                                               ; preds = %34
  br i1 %35, label %42, label %37

37:                                               ; preds = %36
  store i32 4097, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %411

38:                                               ; preds = %44, %42, %34, %32, %30, %2
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %7, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %8, align 4
  br label %413

42:                                               ; preds = %36
  %43 = invoke noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator12getLibConfigEv(ptr noundef nonnull align 8 dereferenceable(88) %6)
          to label %44 unwind label %38

44:                                               ; preds = %42
  %45 = invoke noundef zeroext i1 @_ZNK7UapkiNS13LibraryConfig13isInitializedEv(ptr noundef nonnull align 8 dereferenceable(97) %43)
          to label %46 unwind label %38

46:                                               ; preds = %44
  br i1 %45, label %48, label %47

47:                                               ; preds = %46
  store i32 4105, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %411

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store ptr null, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store ptr null, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %49 unwind label %63

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #7
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  invoke void @_ZN12ParsonHelper19jsonObjectGetStringEP13json_object_tPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef %50, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %51 unwind label %67

51:                                               ; preds = %49
  %52 = invoke noundef i32 @_ZN7UapkiNS4Cert21validationTypeFromStrERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %53 unwind label %71

53:                                               ; preds = %51
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  store i32 %52, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #7
  store i8 0, ptr %19, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  store i8 0, ptr %20, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  store i8 0, ptr %21, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store i64 0, ptr %22, align 8, !tbaa !15
  %54 = load i32, ptr %16, align 4, !tbaa !11
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %59, label %56

56:                                               ; preds = %53
  %57 = load i32, ptr %16, align 4, !tbaa !11
  %58 = icmp eq i32 %57, 2
  br i1 %58, label %59, label %82

59:                                               ; preds = %56, %53
  br label %60

60:                                               ; preds = %59
  store i32 4101, ptr %10, align 4, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str.1, i64 noundef 87, i32 noundef %61, ptr noundef null)
          to label %62 unwind label %76

62:                                               ; preds = %60
  br label %391

63:                                               ; preds = %48
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %7, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %8, align 4
  br label %410

67:                                               ; preds = %49
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %7, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %8, align 4
  br label %75

71:                                               ; preds = %51
  %72 = landingpad { ptr, i32 }
          cleanup
  %73 = extractvalue { ptr, i32 } %72, 0
  store ptr %73, ptr %7, align 8
  %74 = extractvalue { ptr, i32 } %72, 1
  store i32 %74, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  br label %75

75:                                               ; preds = %71, %67
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #7
  br label %409

76:                                               ; preds = %397, %394, %303, %298, %294, %285, %283, %279, %273, %266, %260, %255, %251, %243, %234, %229, %224, %218, %212, %205, %199, %194, %190, %177, %169, %164, %156, %96, %91, %89, %85, %82, %60
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %7, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %8, align 4
  br label %408

80:                                               ; No predecessors!
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81, %56
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = invoke ptr @json_object_get_base64(ptr noundef %83, ptr noundef @.str.2)
          to label %85 unwind label %76

85:                                               ; preds = %82
  %86 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef %84)
          to label %87 unwind label %76

87:                                               ; preds = %85
  br i1 %86, label %88, label %103

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  %90 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %91 unwind label %76

91:                                               ; preds = %89
  %92 = invoke noundef i32 @_ZN7UapkiNS4Cert9parseCertEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef %90, ptr noundef %12)
          to label %93 unwind label %76

93:                                               ; preds = %91
  store i32 %92, ptr %10, align 4, !tbaa !9
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %99

96:                                               ; preds = %93
  %97 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 91, i32 noundef %97)
          to label %98 unwind label %76

98:                                               ; preds = %96
  br label %391

99:                                               ; preds = %93
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %102, ptr %13, align 8, !tbaa !5
  br label %145

103:                                              ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %104 unwind label %123

104:                                              ; preds = %103
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = invoke ptr @json_object_get_base64(ptr noundef %105, ptr noundef @.str.3)
          to label %107 unwind label %127

107:                                              ; preds = %104
  %108 = invoke noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef %106)
          to label %109 unwind label %127

109:                                              ; preds = %107
  br i1 %108, label %110, label %134

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  %112 = invoke noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %6)
          to label %113 unwind label %127

113:                                              ; preds = %111
  %114 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %115 unwind label %127

115:                                              ; preds = %113
  %116 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore15getCertByCertIdEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %112, ptr noundef %114, ptr noundef %13)
          to label %117 unwind label %127

117:                                              ; preds = %115
  store i32 %116, ptr %10, align 4, !tbaa !9
  %118 = load i32, ptr %10, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %131

120:                                              ; preds = %117
  %121 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 98, i32 noundef %121)
          to label %122 unwind label %127

122:                                              ; preds = %120
  store i32 4, ptr %9, align 4
  br label %141

123:                                              ; preds = %103
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %7, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %8, align 4
  br label %144

127:                                              ; preds = %135, %120, %115, %113, %111, %107, %104
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %7, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %8, align 4
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  br label %144

131:                                              ; preds = %117
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  br label %140

134:                                              ; preds = %109
  br label %135

135:                                              ; preds = %134
  store i32 4101, ptr %10, align 4, !tbaa !9
  %136 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str.1, i64 noundef 101, i32 noundef %136, ptr noundef null)
          to label %137 unwind label %127

137:                                              ; preds = %135
  store i32 4, ptr %9, align 4
  br label %141

138:                                              ; No predecessors!
  br label %139

139:                                              ; preds = %138
  br label %140

140:                                              ; preds = %139, %133
  store i32 0, ptr %9, align 4
  br label %141

141:                                              ; preds = %140, %137, %122
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %142 = load i32, ptr %9, align 4
  switch i32 %142, label %407 [
    i32 0, label %143
    i32 4, label %391
  ]

143:                                              ; preds = %141
  br label %145

144:                                              ; preds = %127, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %408

145:                                              ; preds = %143, %101
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #7
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  invoke void @_ZN12ParsonHelper19jsonObjectGetStringEP13json_object_tPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef %146, ptr noundef @.str.4, ptr noundef nonnull align 8 dereferenceable(32) %25)
          to label %147 unwind label %159

147:                                              ; preds = %145
  %148 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  %149 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  %150 = zext i1 %149 to i8
  store i8 %150, ptr %21, align 1, !tbaa !13
  %151 = load i8, ptr %21, align 1, !tbaa !13, !range !17, !noundef !18
  %152 = trunc i8 %151 to i1
  br i1 %152, label %156, label %153

153:                                              ; preds = %147
  %154 = load i32, ptr %16, align 4, !tbaa !11
  %155 = icmp eq i32 %154, 4
  br i1 %155, label %156, label %163

156:                                              ; preds = %153, %147
  %157 = invoke noundef i64 @_ZN8TimeUtil8mtimeNowEv()
          to label %158 unwind label %76

158:                                              ; preds = %156
  store i64 %157, ptr %22, align 8, !tbaa !15
  br label %175

159:                                              ; preds = %145
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %7, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  br label %408

163:                                              ; preds = %153
  br label %164

164:                                              ; preds = %163
  %165 = invoke noundef i32 @_ZN8TimeUtil12ftimeToMtimeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERm(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %166 unwind label %76

166:                                              ; preds = %164
  store i32 %165, ptr %10, align 4, !tbaa !9
  %167 = load i32, ptr %10, align 4, !tbaa !9
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %172

169:                                              ; preds = %166
  %170 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 111, i32 noundef %170)
          to label %171 unwind label %76

171:                                              ; preds = %169
  br label %391

172:                                              ; preds = %166
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174, %158
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #7
  %176 = load i64, ptr %22, align 8, !tbaa !15
  invoke void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %26, i64 noundef %176, i1 noundef zeroext false)
          to label %177 unwind label %185

177:                                              ; preds = %175
  %178 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #7
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  %181 = invoke i32 @json_object_set_string(ptr noundef %179, ptr noundef @.str.4, ptr noundef %180)
          to label %182 unwind label %76

182:                                              ; preds = %177
  %183 = icmp ne i32 %181, 0
  br i1 %183, label %184, label %189

184:                                              ; preds = %182
  store i32 4113, ptr %10, align 4, !tbaa !9
  br label %391

185:                                              ; preds = %175
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %7, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #7
  br label %408

189:                                              ; preds = %182
  br label %190

190:                                              ; preds = %189
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = invoke noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401) %192)
          to label %194 unwind label %76

194:                                              ; preds = %190
  %195 = invoke i32 @json_object_set_base64(ptr noundef %191, ptr noundef @.str.5, ptr noundef %193)
          to label %196 unwind label %76

196:                                              ; preds = %194
  store i32 %195, ptr %10, align 4, !tbaa !9
  %197 = load i32, ptr %10, align 4, !tbaa !9
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %199, label %202

199:                                              ; preds = %196
  %200 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 116, i32 noundef %200)
          to label %201 unwind label %76

201:                                              ; preds = %199
  br label %391

202:                                              ; preds = %196
  br label %203

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203
  br label %205

205:                                              ; preds = %204
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = load ptr, ptr %13, align 8, !tbaa !5
  %208 = invoke noundef i32 @_ZN7UapkiNS4Cert14validityToJsonEP13json_object_tPKNS0_7CerItemE(ptr noundef %206, ptr noundef %207)
          to label %209 unwind label %76

209:                                              ; preds = %205
  store i32 %208, ptr %10, align 4, !tbaa !9
  %210 = load i32, ptr %10, align 4, !tbaa !9
  %211 = icmp ne i32 %210, 0
  br i1 %211, label %212, label %215

212:                                              ; preds = %209
  %213 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 117, i32 noundef %213)
          to label %214 unwind label %76

214:                                              ; preds = %212
  br label %391

215:                                              ; preds = %209
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216
  br label %218

218:                                              ; preds = %217
  %219 = load ptr, ptr %13, align 8, !tbaa !5
  %220 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator13getIssuerCertEPNS_4Cert7CerItemEPS4_Rb(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef %219, ptr noundef %11, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %221 unwind label %76

221:                                              ; preds = %218
  store i32 %220, ptr %10, align 4, !tbaa !9
  %222 = load i32, ptr %10, align 4, !tbaa !9
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %227

224:                                              ; preds = %221
  %225 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 119, i32 noundef %225)
          to label %226 unwind label %76

226:                                              ; preds = %224
  br label %391

227:                                              ; preds = %221
  br label %228

228:                                              ; preds = %227
  br label %229

229:                                              ; preds = %228
  %230 = load ptr, ptr %11, align 8, !tbaa !5
  %231 = load ptr, ptr %13, align 8, !tbaa !5
  %232 = load i64, ptr %22, align 8, !tbaa !15
  %233 = invoke noundef zeroext i1 @_ZL19check_validity_timePKN7UapkiNS4Cert7CerItemES3_m(ptr noundef %230, ptr noundef %231, i64 noundef %232)
          to label %234 unwind label %76

234:                                              ; preds = %229
  %235 = zext i1 %233 to i8
  store i8 %235, ptr %19, align 1, !tbaa !13
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  %237 = load i8, ptr %19, align 1, !tbaa !13, !range !17, !noundef !18
  %238 = trunc i8 %237 to i1
  %239 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %236, ptr noundef @.str.6, i1 noundef zeroext %238)
          to label %240 unwind label %76

240:                                              ; preds = %234
  %241 = icmp ne i32 %239, 0
  br i1 %241, label %242, label %243

242:                                              ; preds = %240
  store i32 4113, ptr %10, align 4, !tbaa !9
  br label %391

243:                                              ; preds = %240
  %244 = load ptr, ptr %5, align 8, !tbaa !5
  %245 = load i8, ptr %20, align 1, !tbaa !13, !range !17, !noundef !18
  %246 = trunc i8 %245 to i1
  %247 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %244, ptr noundef @.str.7, i1 noundef zeroext %246)
          to label %248 unwind label %76

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

250:                                              ; preds = %248
  store i32 4113, ptr %10, align 4, !tbaa !9
  br label %391

251:                                              ; preds = %248
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = load ptr, ptr %13, align 8, !tbaa !5
  %254 = invoke noundef zeroext i1 @_ZNK7UapkiNS4Cert7CerItem9isTrustedEv(ptr noundef nonnull align 8 dereferenceable(401) %253)
          to label %255 unwind label %76

255:                                              ; preds = %251
  %256 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %252, ptr noundef @.str.8, i1 noundef zeroext %254)
          to label %257 unwind label %76

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

259:                                              ; preds = %257
  store i32 4113, ptr %10, align 4, !tbaa !9
  br label %391

260:                                              ; preds = %257
  %261 = load ptr, ptr %13, align 8, !tbaa !5
  %262 = invoke noundef i32 @_ZNK7UapkiNS4Cert7CerItem15getVerifyStatusEv(ptr noundef nonnull align 8 dereferenceable(401) %261)
          to label %263 unwind label %76

263:                                              ; preds = %260
  %264 = icmp eq i32 %262, 0
  br i1 %264, label %265, label %279

265:                                              ; preds = %263
  br label %266

266:                                              ; preds = %265
  %267 = load ptr, ptr %13, align 8, !tbaa !5
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = invoke noundef i32 @_ZN7UapkiNS4Cert7CerItem6verifyEPKS1_b(ptr noundef nonnull align 8 dereferenceable(401) %267, ptr noundef %268, i1 noundef zeroext false)
          to label %270 unwind label %76

270:                                              ; preds = %266
  store i32 %269, ptr %10, align 4, !tbaa !9
  %271 = load i32, ptr %10, align 4, !tbaa !9
  %272 = icmp ne i32 %271, 0
  br i1 %272, label %273, label %276

273:                                              ; preds = %270
  %274 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 125, i32 noundef %274)
          to label %275 unwind label %76

275:                                              ; preds = %273
  br label %391

276:                                              ; preds = %270
  br label %277

277:                                              ; preds = %276
  br label %278

278:                                              ; preds = %277
  br label %279

279:                                              ; preds = %278, %263
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = load ptr, ptr %13, align 8, !tbaa !5
  %282 = invoke noundef i32 @_ZNK7UapkiNS4Cert7CerItem15getVerifyStatusEv(ptr noundef nonnull align 8 dereferenceable(401) %281)
          to label %283 unwind label %76

283:                                              ; preds = %279
  %284 = invoke noundef ptr @_ZN7UapkiNS4Cert17verifyStatusToStrENS0_12VerifyStatusE(i32 noundef %282)
          to label %285 unwind label %76

285:                                              ; preds = %283
  %286 = invoke i32 @json_object_set_string(ptr noundef %280, ptr noundef @.str.9, ptr noundef %284)
          to label %287 unwind label %76

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

289:                                              ; preds = %287
  store i32 4113, ptr %10, align 4, !tbaa !9
  br label %391

290:                                              ; preds = %287
  %291 = load i8, ptr %20, align 1, !tbaa !13, !range !17, !noundef !18
  %292 = trunc i8 %291 to i1
  br i1 %292, label %309, label %293

293:                                              ; preds = %290
  br label %294

294:                                              ; preds = %293
  %295 = load ptr, ptr %5, align 8, !tbaa !5
  %296 = load ptr, ptr %11, align 8, !tbaa !5
  %297 = invoke noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401) %296)
          to label %298 unwind label %76

298:                                              ; preds = %294
  %299 = invoke i32 @json_object_set_base64(ptr noundef %295, ptr noundef @.str.10, ptr noundef %297)
          to label %300 unwind label %76

300:                                              ; preds = %298
  store i32 %299, ptr %10, align 4, !tbaa !9
  %301 = load i32, ptr %10, align 4, !tbaa !9
  %302 = icmp ne i32 %301, 0
  br i1 %302, label %303, label %306

303:                                              ; preds = %300
  %304 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 130, i32 noundef %304)
          to label %305 unwind label %76

305:                                              ; preds = %303
  br label %391

306:                                              ; preds = %300
  br label %307

307:                                              ; preds = %306
  br label %308

308:                                              ; preds = %307
  br label %309

309:                                              ; preds = %308, %290
  %310 = load i32, ptr %16, align 4, !tbaa !11
  %311 = icmp eq i32 %310, 3
  br i1 %311, label %312, label %348

312:                                              ; preds = %309
  call void @llvm.lifetime.start.p0(i64 48, ptr %27) #7
  invoke void @_ZN7UapkiNS13CertValidator21ResultValidationByCrlC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %27)
          to label %313 unwind label %321

313:                                              ; preds = %312
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = invoke ptr @json_value_init_object()
          to label %316 unwind label %321

316:                                              ; preds = %313
  %317 = invoke i32 @json_object_set_value(ptr noundef %314, ptr noundef @.str.11, ptr noundef %315)
          to label %318 unwind label %321

318:                                              ; preds = %316
  %319 = icmp ne i32 %317, 0
  br i1 %319, label %320, label %325

320:                                              ; preds = %318
  store i32 4113, ptr %10, align 4, !tbaa !9
  store i32 4, ptr %9, align 4
  br label %345

321:                                              ; preds = %339, %334, %326, %316, %313, %312
  %322 = landingpad { ptr, i32 }
          cleanup
  %323 = extractvalue { ptr, i32 } %322, 0
  store ptr %323, ptr %7, align 8
  %324 = extractvalue { ptr, i32 } %322, 1
  store i32 %324, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #7
  br label %408

325:                                              ; preds = %318
  br label %326

326:                                              ; preds = %325
  %327 = load ptr, ptr %13, align 8, !tbaa !5
  %328 = load ptr, ptr %11, align 8, !tbaa !5
  %329 = load i64, ptr %22, align 8, !tbaa !15
  %330 = load i8, ptr %21, align 1, !tbaa !13, !range !17, !noundef !18
  %331 = trunc i8 %330 to i1
  %332 = load ptr, ptr %5, align 8, !tbaa !5
  %333 = invoke ptr @json_object_get_object(ptr noundef %332, ptr noundef @.str.11)
          to label %334 unwind label %321

334:                                              ; preds = %326
  %335 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator13validateByCrlEPNS_4Cert7CerItemES4_mbRNS0_21ResultValidationByCrlEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef %327, ptr noundef %328, i64 noundef %329, i1 noundef zeroext %331, ptr noundef nonnull align 8 dereferenceable(48) %27, ptr noundef %333)
          to label %336 unwind label %321

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

339:                                              ; preds = %336
  %340 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 143, i32 noundef %340)
          to label %341 unwind label %321

341:                                              ; preds = %339
  store i32 4, ptr %9, align 4
  br label %345

342:                                              ; preds = %336
  br label %343

343:                                              ; preds = %342
  br label %344

344:                                              ; preds = %343
  store i32 0, ptr %9, align 4
  br label %345

345:                                              ; preds = %344, %341, %320
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #7
  %346 = load i32, ptr %9, align 4
  switch i32 %346, label %407 [
    i32 0, label %347
    i32 4, label %391
  ]

347:                                              ; preds = %345
  br label %390

348:                                              ; preds = %309
  %349 = load i32, ptr %16, align 4, !tbaa !11
  %350 = icmp eq i32 %349, 4
  br i1 %350, label %351, label %389

351:                                              ; preds = %348
  call void @llvm.lifetime.start.p0(i64 160, ptr %28) #7
  invoke void @_ZN7UapkiNS13CertValidator22ResultValidationByOcspC2Eb(ptr noundef nonnull align 8 dereferenceable(156) %28, i1 noundef zeroext false)
          to label %352 unwind label %360

352:                                              ; preds = %351
  %353 = load ptr, ptr %5, align 8, !tbaa !5
  %354 = invoke ptr @json_value_init_object()
          to label %355 unwind label %364

355:                                              ; preds = %352
  %356 = invoke i32 @json_object_set_value(ptr noundef %353, ptr noundef @.str.12, ptr noundef %354)
          to label %357 unwind label %364

357:                                              ; preds = %355
  %358 = icmp ne i32 %356, 0
  br i1 %358, label %359, label %368

359:                                              ; preds = %357
  store i32 4113, ptr %10, align 4, !tbaa !9
  store i32 4, ptr %9, align 4
  br label %385

360:                                              ; preds = %351
  %361 = landingpad { ptr, i32 }
          cleanup
  %362 = extractvalue { ptr, i32 } %361, 0
  store ptr %362, ptr %7, align 8
  %363 = extractvalue { ptr, i32 } %361, 1
  store i32 %363, ptr %8, align 4
  br label %388

364:                                              ; preds = %379, %374, %369, %355, %352
  %365 = landingpad { ptr, i32 }
          cleanup
  %366 = extractvalue { ptr, i32 } %365, 0
  store ptr %366, ptr %7, align 8
  %367 = extractvalue { ptr, i32 } %365, 1
  store i32 %367, ptr %8, align 4
  call void @_ZN7UapkiNS13CertValidator22ResultValidationByOcspD2Ev(ptr noundef nonnull align 8 dereferenceable(156) %28) #7
  br label %388

368:                                              ; preds = %357
  br label %369

369:                                              ; preds = %368
  %370 = load ptr, ptr %13, align 8, !tbaa !5
  %371 = load ptr, ptr %11, align 8, !tbaa !5
  %372 = load ptr, ptr %5, align 8, !tbaa !5
  %373 = invoke ptr @json_object_get_object(ptr noundef %372, ptr noundef @.str.12)
          to label %374 unwind label %364

374:                                              ; preds = %369
  %375 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator14validateByOcspEPNS_4Cert7CerItemES4_RNS0_22ResultValidationByOcspEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef %370, ptr noundef %371, ptr noundef nonnull align 8 dereferenceable(156) %28, ptr noundef %373)
          to label %376 unwind label %364

376:                                              ; preds = %374
  store i32 %375, ptr %10, align 4, !tbaa !9
  %377 = load i32, ptr %10, align 4, !tbaa !9
  %378 = icmp ne i32 %377, 0
  br i1 %378, label %379, label %382

379:                                              ; preds = %376
  %380 = load i32, ptr %10, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str.1, i64 noundef 153, i32 noundef %380)
          to label %381 unwind label %364

381:                                              ; preds = %379
  store i32 4, ptr %9, align 4
  br label %385

382:                                              ; preds = %376
  br label %383

383:                                              ; preds = %382
  br label %384

384:                                              ; preds = %383
  store i32 0, ptr %9, align 4
  br label %385

385:                                              ; preds = %384, %381, %359
  call void @_ZN7UapkiNS13CertValidator22ResultValidationByOcspD2Ev(ptr noundef nonnull align 8 dereferenceable(156) %28) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr %28) #7
  %386 = load i32, ptr %9, align 4
  switch i32 %386, label %407 [
    i32 0, label %387
    i32 4, label %391
  ]

387:                                              ; preds = %385
  br label %389

388:                                              ; preds = %364, %360
  call void @llvm.lifetime.end.p0(i64 160, ptr %28) #7
  br label %408

389:                                              ; preds = %387, %348
  br label %390

390:                                              ; preds = %389, %347
  br label %391

391:                                              ; preds = %390, %385, %345, %305, %289, %275, %259, %250, %242, %226, %214, %201, %184, %171, %141, %98, %62
  %392 = load i32, ptr %10, align 4, !tbaa !9
  %393 = icmp ne i32 %392, 0
  br i1 %393, label %394, label %401

394:                                              ; preds = %391
  %395 = load ptr, ptr %5, align 8, !tbaa !5
  %396 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator23expectedCertItemsToJsonEP13json_object_tPKc(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef %395, ptr noundef @.str.13)
          to label %397 unwind label %76

397:                                              ; preds = %394
  %398 = load ptr, ptr %5, align 8, !tbaa !5
  %399 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator22expectedCrlItemsToJsonEP13json_object_tPKc(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef %398, ptr noundef @.str.14)
          to label %400 unwind label %76

400:                                              ; preds = %397
  br label %401

401:                                              ; preds = %400, %391
  %402 = load ptr, ptr %12, align 8, !tbaa !5
  %403 = icmp eq ptr %402, null
  br i1 %403, label %405, label %404

404:                                              ; preds = %401
  call void @_ZN7UapkiNS4Cert7CerItemD1Ev(ptr noundef nonnull align 8 dereferenceable(401) %402) #7
  call void @_ZdlPvm(ptr noundef %402, i64 noundef 408) #8
  br label %405

405:                                              ; preds = %404, %401
  %406 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %406, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %407

407:                                              ; preds = %405, %385, %345, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %411

408:                                              ; preds = %388, %321, %185, %159, %144, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #7
  br label %409

409:                                              ; preds = %408, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %410

410:                                              ; preds = %409, %63
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %413

411:                                              ; preds = %407, %47, %37
  call void @_ZN7UapkiNS13CertValidator13CertValidatorD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %6) #7
  %412 = load i32, ptr %3, align 4
  ret i32 %412

413:                                              ; preds = %410, %38
  call void @_ZN7UapkiNS13CertValidator13CertValidatorD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr %6) #7
  br label %414

414:                                              ; preds = %413
  %415 = load ptr, ptr %7, align 8
  %416 = load i32, ptr %8, align 4
  %417 = insertvalue { ptr, i32 } poison, ptr %415, 0
  %418 = insertvalue { ptr, i32 } %417, i32 %416, 1
  resume { ptr, i32 } %418
}

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

declare void @_ZN7UapkiNS13CertValidator13CertValidatorC1Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2

declare noundef zeroext i1 @_ZN7UapkiNS13CertValidator13CertValidator4initEPNS_13LibraryConfigEPNS_4Cert8CerStoreEPNS_3Crl8CrlStoreE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef, ptr noundef) #2

declare noundef ptr @_ZN7UapkiNS10get_configEv() #2

declare i32 @__gxx_personality_v0(...)

declare noundef ptr @_ZN7UapkiNS12get_cerstoreEv() #2

declare noundef ptr @_ZN7UapkiNS12get_crlstoreEv() #2

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

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

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

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

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

declare void @_ZN12ParsonHelper19jsonObjectGetStringEP13json_object_tPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #2

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

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

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

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

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

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

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

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

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

declare noundef i32 @_ZN7UapkiNS4Cert8CerStore15getCertByCertIdEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef, ptr noundef) #2

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

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

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

declare noundef i64 @_ZN8TimeUtil8mtimeNowEv() #2

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

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

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

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

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

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

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

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator13getIssuerCertEPNS_4Cert7CerItemEPS4_Rb(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL19check_validity_timePKN7UapkiNS4Cert7CerItemES3_m(ptr noundef, ptr noundef, i64 noundef) #0

declare noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef, ptr noundef, i1 noundef zeroext) #2

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

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

declare noundef i32 @_ZN7UapkiNS4Cert7CerItem6verifyEPKS1_b(ptr noundef nonnull align 8 dereferenceable(401), ptr noundef, i1 noundef zeroext) #2

declare noundef ptr @_ZN7UapkiNS4Cert17verifyStatusToStrENS0_12VerifyStatusE(i32 noundef) #2

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

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

declare ptr @json_value_init_object() #2

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator13validateByCrlEPNS_4Cert7CerItemES4_mbRNS0_21ResultValidationByCrlEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7UapkiNS13CertValidator22ResultValidationByOcspC2Eb(ptr noundef nonnull align 8 dereferenceable(156), i1 noundef zeroext) unnamed_addr #0 align 2

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator14validateByOcspEPNS_4Cert7CerItemES4_RNS0_22ResultValidationByOcspEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(156), ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS13CertValidator22ResultValidationByOcspD2Ev(ptr noundef nonnull align 8 dereferenceable(156)) unnamed_addr #4 align 2

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator23expectedCertItemsToJsonEP13json_object_tPKc(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef) #2

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator22expectedCrlItemsToJsonEP13json_object_tPKc(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef) #2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #6

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #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 = { nobuiltin 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 #7 = { nounwind }
attributes #8 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN7UapkiNS4Cert14ValidationTypeE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}


; 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.UapkiNS::CertValidator::CertValidator" = type { ptr, ptr, ptr, %"class.std::vector", %"class.std::vector.0", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.UapkiNS::CertValidator::ResultValidationByCrl" = type { i32, ptr, ptr, %"struct.UapkiNS::Crl::RevokedCertItem" }
%"struct.UapkiNS::Crl::RevokedCertItem" = type { i64, i32, i64 }
%"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 [15 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local i32 @uapki_verify_cert(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.UapkiNS::CertValidator::CertValidator", align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.UapkiNS::SmartBA", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca i8, align 1
  %12 = alloca i64, align 8
  %13 = alloca %"class.UapkiNS::SmartBA", align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"struct.UapkiNS::CertValidator::ResultValidationByCrl", align 8
  %18 = alloca %"struct.UapkiNS::CertValidator::ResultValidationByOcsp", align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %3) #7
  call void @_ZN7UapkiNS13CertValidator13CertValidatorC1Ev(ptr noundef nonnull align 8 dereferenceable(88) %3)
  %19 = invoke noundef ptr @_ZN7UapkiNS10get_configEv()
          to label %20 unwind label %27

20:                                               ; preds = %2
  %21 = invoke noundef ptr @_ZN7UapkiNS12get_cerstoreEv()
          to label %22 unwind label %27

22:                                               ; preds = %20
  %23 = invoke noundef ptr @_ZN7UapkiNS12get_crlstoreEv()
          to label %24 unwind label %27

24:                                               ; preds = %22
  %25 = invoke noundef zeroext i1 @_ZN7UapkiNS13CertValidator13CertValidator4initEPNS_13LibraryConfigEPNS_4Cert8CerStoreEPNS_3Crl8CrlStoreE(ptr noundef nonnull align 8 dereferenceable(88) %3, ptr noundef %19, ptr noundef %21, ptr noundef %23)
          to label %26 unwind label %27

26:                                               ; preds = %24
  br i1 %25, label %29, label %204

27:                                               ; preds = %24, %22, %20, %2
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %205

29:                                               ; preds = %26
  %30 = call noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator12getLibConfigEv(ptr noundef nonnull align 8 dereferenceable(88) %3)
  %31 = call noundef zeroext i1 @_ZNK7UapkiNS13LibraryConfig13isInitializedEv(ptr noundef nonnull align 8 dereferenceable(97) %30)
  br i1 %31, label %32, label %204

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  invoke void @_ZN12ParsonHelper19jsonObjectGetStringEP13json_object_tPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %33 unwind label %38

33:                                               ; preds = %32
  %34 = invoke noundef i32 @_ZN7UapkiNS4Cert21validationTypeFromStrERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %35 unwind label %40

35:                                               ; preds = %33
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #7
  store i8 0, ptr %11, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  store i64 0, ptr %12, align 8, !tbaa !11
  %36 = and i32 %34, -3
  %or.cond = icmp eq i32 %36, 0
  br i1 %or.cond, label %37, label %45

37:                                               ; preds = %35
  invoke void @stacktrace_create(ptr noundef nonnull @.str.1, i64 noundef 87, i32 noundef 4101, ptr noundef null)
          to label %.thread122 unwind label %43

38:                                               ; preds = %32
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %42

40:                                               ; preds = %33
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %42

42:                                               ; preds = %40, %38
  %.pn = phi { ptr, i32 } [ %41, %40 ], [ %39, %38 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %203

43:                                               ; preds = %196, %.thread122, %152, %147, %141, %137, %136, %131, %122, %117, %114, %109, %108, %104, %103, %99, %98, %93, %86, %83, %80, %75, %53, %49, %45, %37
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %202

45:                                               ; preds = %35
  %46 = invoke ptr @json_object_get_base64(ptr noundef %0, ptr noundef nonnull @.str.2)
          to label %47 unwind label %43

47:                                               ; preds = %45
  %48 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %46)
  br i1 %48, label %49, label %56

49:                                               ; preds = %47
  %50 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %7)
  %51 = invoke noundef i32 @_ZN7UapkiNS4Cert9parseCertEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef %50, ptr noundef nonnull %5)
          to label %52 unwind label %43

52:                                               ; preds = %49
  %.not92 = icmp eq i32 %51, 0
  br i1 %.not92, label %54, label %53

53:                                               ; preds = %52
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 91, i32 noundef %51)
          to label %.thread122 unwind label %43

54:                                               ; preds = %52
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %55, ptr %6, align 8, !tbaa !5
  br label %70

56:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %57 = invoke ptr @json_object_get_base64(ptr noundef %0, ptr noundef nonnull @.str.3)
          to label %58 unwind label %66

58:                                               ; preds = %56
  %59 = call noundef zeroext i1 @_ZN7UapkiNS7SmartBA3setEP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef %57)
  br i1 %59, label %60, label %68

60:                                               ; preds = %58
  %61 = call noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %3)
  %62 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %63 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore15getCertByCertIdEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %61, ptr noundef %62, ptr noundef nonnull %6)
          to label %64 unwind label %66

64:                                               ; preds = %60
  %.not = icmp eq i32 %63, 0
  br i1 %.not, label %69, label %65

65:                                               ; preds = %64
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 98, i32 noundef %63)
          to label %.thread unwind label %66

66:                                               ; preds = %68, %65, %60, %56
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %202

68:                                               ; preds = %58
  invoke void @stacktrace_create(ptr noundef nonnull @.str.1, i64 noundef 101, i32 noundef 4101, ptr noundef null)
          to label %.thread unwind label %66

.thread:                                          ; preds = %65, %68
  %.058.ph = phi i32 [ 4101, %68 ], [ %63, %65 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %.thread122

69:                                               ; preds = %64
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %70

70:                                               ; preds = %69, %54
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  invoke void @_ZN12ParsonHelper19jsonObjectGetStringEP13json_object_tPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %14, ptr noundef %0, ptr noundef nonnull @.str.4, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %71 unwind label %78

71:                                               ; preds = %70
  %72 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  %73 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  %74 = icmp eq i32 %34, 4
  %or.cond3 = or i1 %74, %73
  br i1 %or.cond3, label %75, label %80

75:                                               ; preds = %71
  %76 = invoke noundef i64 @_ZN8TimeUtil8mtimeNowEv()
          to label %77 unwind label %43

77:                                               ; preds = %75
  store i64 %76, ptr %12, align 8, !tbaa !11
  br label %84

78:                                               ; preds = %70
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br label %202

80:                                               ; preds = %71
  %81 = invoke noundef i32 @_ZN8TimeUtil12ftimeToMtimeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERm(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %82 unwind label %43

82:                                               ; preds = %80
  %.not93 = icmp eq i32 %81, 0
  br i1 %.not93, label %._crit_edge, label %83

._crit_edge:                                      ; preds = %82
  %.pre = load i64, ptr %12, align 8, !tbaa !11
  br label %84

83:                                               ; preds = %82
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 111, i32 noundef %81)
          to label %.thread122 unwind label %43

84:                                               ; preds = %._crit_edge, %77
  %85 = phi i64 [ %.pre, %._crit_edge ], [ %76, %77 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  invoke void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, i64 noundef %85, i1 noundef zeroext false)
          to label %86 unwind label %91

86:                                               ; preds = %84
  %87 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  %88 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  %89 = invoke i32 @json_object_set_string(ptr noundef %1, ptr noundef nonnull @.str.4, ptr noundef %88)
          to label %90 unwind label %43

90:                                               ; preds = %86
  %.not94 = icmp eq i32 %89, 0
  br i1 %.not94, label %93, label %.thread122

91:                                               ; preds = %84
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br label %202

93:                                               ; preds = %90
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401) %94)
  %96 = invoke i32 @json_object_set_base64(ptr noundef %1, ptr noundef nonnull @.str.5, ptr noundef %95)
          to label %97 unwind label %43

97:                                               ; preds = %93
  %.not95 = icmp eq i32 %96, 0
  br i1 %.not95, label %99, label %98

98:                                               ; preds = %97
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 116, i32 noundef %96)
          to label %.thread122 unwind label %43

99:                                               ; preds = %97
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = invoke noundef i32 @_ZN7UapkiNS4Cert14validityToJsonEP13json_object_tPKNS0_7CerItemE(ptr noundef %1, ptr noundef %100)
          to label %102 unwind label %43

102:                                              ; preds = %99
  %.not96 = icmp eq i32 %101, 0
  br i1 %.not96, label %104, label %103

103:                                              ; preds = %102
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 117, i32 noundef %101)
          to label %.thread122 unwind label %43

104:                                              ; preds = %102
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator13getIssuerCertEPNS_4Cert7CerItemEPS4_Rb(ptr noundef nonnull align 8 dereferenceable(88) %3, ptr noundef %105, ptr noundef nonnull %4, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %107 unwind label %43

107:                                              ; preds = %104
  %.not97 = icmp eq i32 %106, 0
  br i1 %.not97, label %109, label %108

108:                                              ; preds = %107
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 119, i32 noundef %106)
          to label %.thread122 unwind label %43

109:                                              ; preds = %107
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = load i64, ptr %12, align 8, !tbaa !11
  %113 = invoke noundef zeroext i1 @_ZL19check_validity_timePKN7UapkiNS4Cert7CerItemES3_m(ptr noundef %110, ptr noundef %111, i64 noundef %112)
          to label %114 unwind label %43

114:                                              ; preds = %109
  %115 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %1, ptr noundef nonnull @.str.6, i1 noundef zeroext %113)
          to label %116 unwind label %43

116:                                              ; preds = %114
  %.not98 = icmp eq i32 %115, 0
  br i1 %.not98, label %117, label %.thread122

117:                                              ; preds = %116
  %118 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %119 = trunc nuw i8 %118 to i1
  %120 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %1, ptr noundef nonnull @.str.7, i1 noundef zeroext %119)
          to label %121 unwind label %43

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

122:                                              ; preds = %121
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = call noundef zeroext i1 @_ZNK7UapkiNS4Cert7CerItem9isTrustedEv(ptr noundef nonnull align 8 dereferenceable(401) %123)
  %125 = invoke noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef %1, ptr noundef nonnull @.str.8, i1 noundef zeroext %124)
          to label %126 unwind label %43

126:                                              ; preds = %122
  %.not100 = icmp eq i32 %125, 0
  br i1 %.not100, label %127, label %.thread122

127:                                              ; preds = %126
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = call noundef i32 @_ZNK7UapkiNS4Cert7CerItem15getVerifyStatusEv(ptr noundef nonnull align 8 dereferenceable(401) %128)
  %130 = icmp eq i32 %129, 0
  br i1 %130, label %131, label %137

131:                                              ; preds = %127
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = invoke noundef i32 @_ZN7UapkiNS4Cert7CerItem6verifyEPKS1_b(ptr noundef nonnull align 8 dereferenceable(401) %132, ptr noundef %133, i1 noundef zeroext false)
          to label %135 unwind label %43

135:                                              ; preds = %131
  %.not101 = icmp eq i32 %134, 0
  br i1 %.not101, label %137, label %136

136:                                              ; preds = %135
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 125, i32 noundef %134)
          to label %.thread122 unwind label %43

137:                                              ; preds = %135, %127
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = call noundef i32 @_ZNK7UapkiNS4Cert7CerItem15getVerifyStatusEv(ptr noundef nonnull align 8 dereferenceable(401) %138)
  %140 = invoke noundef ptr @_ZN7UapkiNS4Cert17verifyStatusToStrENS0_12VerifyStatusE(i32 noundef %139)
          to label %141 unwind label %43

141:                                              ; preds = %137
  %142 = invoke i32 @json_object_set_string(ptr noundef %1, ptr noundef nonnull @.str.9, ptr noundef %140)
          to label %143 unwind label %43

143:                                              ; preds = %141
  %.not102 = icmp eq i32 %142, 0
  br i1 %.not102, label %144, label %.thread122

144:                                              ; preds = %143
  %145 = load i8, ptr %11, align 1, !tbaa !9, !range !13, !noundef !14
  %146 = trunc nuw i8 %145 to i1
  br i1 %146, label %153, label %147

147:                                              ; preds = %144
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem9getCertIdEv(ptr noundef nonnull align 8 dereferenceable(401) %148)
  %150 = invoke i32 @json_object_set_base64(ptr noundef %1, ptr noundef nonnull @.str.10, ptr noundef %149)
          to label %151 unwind label %43

151:                                              ; preds = %147
  %.not103 = icmp eq i32 %150, 0
  br i1 %.not103, label %153, label %152

152:                                              ; preds = %151
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 130, i32 noundef %150)
          to label %.thread122 unwind label %43

153:                                              ; preds = %151, %144
  %154 = icmp eq i32 %34, 3
  br i1 %154, label %155, label %173

155:                                              ; preds = %153
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %17) #7
  invoke void @_ZN7UapkiNS13CertValidator21ResultValidationByCrlC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %156 unwind label %161

156:                                              ; preds = %155
  %157 = invoke ptr @json_value_init_object()
          to label %158 unwind label %161

158:                                              ; preds = %156
  %159 = invoke i32 @json_object_set_value(ptr noundef %1, ptr noundef nonnull @.str.11, ptr noundef %157)
          to label %160 unwind label %161

160:                                              ; preds = %158
  %.not108 = icmp eq i32 %159, 0
  br i1 %.not108, label %163, label %172

161:                                              ; preds = %171, %168, %163, %158, %156, %155
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #7
  br label %202

163:                                              ; preds = %160
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = load i64, ptr %12, align 8, !tbaa !11
  %167 = invoke ptr @json_object_get_object(ptr noundef %1, ptr noundef nonnull @.str.11)
          to label %168 unwind label %161

168:                                              ; preds = %163
  %169 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator13validateByCrlEPNS_4Cert7CerItemES4_mbRNS0_21ResultValidationByCrlEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %3, ptr noundef %164, ptr noundef %165, i64 noundef %166, i1 noundef zeroext %73, ptr noundef nonnull align 8 dereferenceable(48) %17, ptr noundef %167)
          to label %170 unwind label %161

170:                                              ; preds = %168
  %.not109 = icmp eq i32 %169, 0
  br i1 %.not109, label %172, label %171

171:                                              ; preds = %170
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 143, i32 noundef %169)
          to label %172 unwind label %161

172:                                              ; preds = %170, %171, %160
  %.3 = phi i32 [ 4113, %160 ], [ %169, %171 ], [ 0, %170 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %17) #7
  br label %194

173:                                              ; preds = %153
  br i1 %74, label %174, label %.thread127

174:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %18) #7
  invoke void @_ZN7UapkiNS13CertValidator22ResultValidationByOcspC2Eb(ptr noundef nonnull align 8 dereferenceable(156) %18, i1 noundef zeroext false)
          to label %175 unwind label %180

175:                                              ; preds = %174
  %176 = invoke ptr @json_value_init_object()
          to label %177 unwind label %182

177:                                              ; preds = %175
  %178 = invoke i32 @json_object_set_value(ptr noundef %1, ptr noundef nonnull @.str.12, ptr noundef %176)
          to label %179 unwind label %182

179:                                              ; preds = %177
  %.not104 = icmp eq i32 %178, 0
  br i1 %.not104, label %184, label %192

180:                                              ; preds = %174
  %181 = landingpad { ptr, i32 }
          cleanup
  br label %193

182:                                              ; preds = %191, %188, %184, %177, %175
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7UapkiNS13CertValidator22ResultValidationByOcspD2Ev(ptr noundef nonnull align 8 dereferenceable(156) %18) #7
  br label %193

184:                                              ; preds = %179
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = invoke ptr @json_object_get_object(ptr noundef %1, ptr noundef nonnull @.str.12)
          to label %188 unwind label %182

188:                                              ; preds = %184
  %189 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator14validateByOcspEPNS_4Cert7CerItemES4_RNS0_22ResultValidationByOcspEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %3, ptr noundef %185, ptr noundef %186, ptr noundef nonnull align 8 dereferenceable(156) %18, ptr noundef %187)
          to label %190 unwind label %182

190:                                              ; preds = %188
  %.not105 = icmp eq i32 %189, 0
  br i1 %.not105, label %192, label %191

191:                                              ; preds = %190
  invoke void @stacktrace_add(ptr noundef nonnull @.str.1, i64 noundef 153, i32 noundef %189)
          to label %192 unwind label %182

192:                                              ; preds = %190, %191, %179
  %.4 = phi i32 [ 4113, %179 ], [ %189, %191 ], [ 0, %190 ]
  call void @_ZN7UapkiNS13CertValidator22ResultValidationByOcspD2Ev(ptr noundef nonnull align 8 dereferenceable(156) %18) #7
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %18) #7
  br label %194

193:                                              ; preds = %182, %180
  %.pn106 = phi { ptr, i32 } [ %183, %182 ], [ %181, %180 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %18) #7
  br label %202

194:                                              ; preds = %192, %172
  %.5 = phi i32 [ %.3, %172 ], [ %.4, %192 ]
  %.not110 = icmp eq i32 %.5, 0
  br i1 %.not110, label %.thread127, label %.thread122

.thread122:                                       ; preds = %.thread, %143, %126, %121, %116, %90, %83, %152, %136, %108, %103, %98, %53, %37, %194
  %.5125 = phi i32 [ %.5, %194 ], [ %.058.ph, %.thread ], [ 4113, %143 ], [ 4113, %126 ], [ 4113, %121 ], [ 4113, %116 ], [ 4113, %90 ], [ %81, %83 ], [ %150, %152 ], [ %134, %136 ], [ %106, %108 ], [ %101, %103 ], [ %96, %98 ], [ %51, %53 ], [ 4101, %37 ]
  %195 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator23expectedCertItemsToJsonEP13json_object_tPKc(ptr noundef nonnull align 8 dereferenceable(88) %3, ptr noundef %1, ptr noundef nonnull @.str.13)
          to label %196 unwind label %43

196:                                              ; preds = %.thread122
  %197 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator22expectedCrlItemsToJsonEP13json_object_tPKc(ptr noundef nonnull align 8 dereferenceable(88) %3, ptr noundef %1, ptr noundef nonnull @.str.14)
          to label %.thread127 unwind label %43

.thread127:                                       ; preds = %173, %196, %194
  %.5126 = phi i32 [ %.5125, %196 ], [ 0, %194 ], [ 0, %173 ]
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = icmp eq ptr %198, null
  br i1 %199, label %201, label %200

200:                                              ; preds = %.thread127
  call void @_ZN7UapkiNS4Cert7CerItemD1Ev(ptr noundef nonnull align 8 dereferenceable(401) %198) #7
  call void @_ZdlPvm(ptr noundef nonnull %198, i64 noundef 408) #8
  br label %201

201:                                              ; preds = %.thread127, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %204

202:                                              ; preds = %193, %161, %91, %78, %66, %43
  %.pn111 = phi { ptr, i32 } [ %44, %43 ], [ %162, %161 ], [ %.pn106, %193 ], [ %92, %91 ], [ %79, %78 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #7
  br label %203

203:                                              ; preds = %202, %42
  %.pn111.pn = phi { ptr, i32 } [ %.pn111, %202 ], [ %.pn, %42 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  br label %205

204:                                              ; preds = %29, %26, %201
  %.1 = phi i32 [ %.5126, %201 ], [ 4097, %26 ], [ 4105, %29 ]
  call void @_ZN7UapkiNS13CertValidator13CertValidatorD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %3) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %3) #7
  ret i32 %.1

205:                                              ; preds = %203, %27
  %.pn111.pn.pn = phi { ptr, i32 } [ %.pn111.pn, %203 ], [ %28, %27 ]
  call void @_ZN7UapkiNS13CertValidator13CertValidatorD1Ev(ptr noundef nonnull align 8 dereferenceable(88) %3) #7
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn111.pn.pn
}

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

declare void @_ZN7UapkiNS13CertValidator13CertValidatorC1Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2

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

declare noundef ptr @_ZN7UapkiNS10get_configEv() local_unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

declare noundef ptr @_ZN7UapkiNS12get_cerstoreEv() local_unnamed_addr #2

declare noundef ptr @_ZN7UapkiNS12get_crlstoreEv() local_unnamed_addr #2

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

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

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

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

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

declare void @_ZN12ParsonHelper19jsonObjectGetStringEP13json_object_tPKcRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

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

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

; 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 #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 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 ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #3 align 2

declare noundef i32 @_ZN7UapkiNS4Cert8CerStore15getCertByCertIdEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

declare noundef i64 @_ZN8TimeUtil8mtimeNowEv() local_unnamed_addr #2

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

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

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

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

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

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

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

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator13getIssuerCertEPNS_4Cert7CerItemEPS4_Rb(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL19check_validity_timePKN7UapkiNS4Cert7CerItemES3_m(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

declare noundef i32 @_ZN12ParsonHelper20jsonObjectSetBooleanEP13json_object_tPKcb(ptr noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

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

declare noundef i32 @_ZN7UapkiNS4Cert7CerItem6verifyEPKS1_b(ptr noundef nonnull align 8 dereferenceable(401), ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

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

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

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

declare ptr @json_value_init_object() local_unnamed_addr #2

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator13validateByCrlEPNS_4Cert7CerItemES4_mbRNS0_21ResultValidationByCrlEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef, i64 noundef, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7UapkiNS13CertValidator22ResultValidationByOcspC2Eb(ptr noundef nonnull align 8 dereferenceable(156), i1 noundef zeroext) unnamed_addr #0 align 2

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator14validateByOcspEPNS_4Cert7CerItemES4_RNS0_22ResultValidationByOcspEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(156), ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS13CertValidator22ResultValidationByOcspD2Ev(ptr noundef nonnull align 8 dereferenceable(156)) unnamed_addr #4 align 2

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator23expectedCertItemsToJsonEP13json_object_tPKc(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef) local_unnamed_addr #2

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator22expectedCrlItemsToJsonEP13json_object_tPKc(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #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 = { nobuiltin 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 #7 = { nounwind }
attributes #8 = { builtin 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass