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

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

%"class.std::lock_guard" = type { ptr }
%"class.std::vector.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = type { %"struct.std::_Vector_base<const UapkiNS::Crl::RevokedCertItem *, std::allocator<const UapkiNS::Crl::RevokedCertItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<const UapkiNS::Crl::RevokedCertItem *, std::allocator<const UapkiNS::Crl::RevokedCertItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const UapkiNS::Crl::RevokedCertItem *, std::allocator<const UapkiNS::Crl::RevokedCertItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const UapkiNS::Crl::RevokedCertItem *, std::allocator<const UapkiNS::Crl::RevokedCertItem *>>::_Vector_impl_data" = type { ptr, ptr, 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] }
%"class.__gnu_cxx::__normal_iterator.44" = type { ptr }
%"struct.UapkiNS::CertValidator::ResultValidationByCrl" = type { i32, ptr, ptr, %"struct.UapkiNS::Crl::RevokedCertItem" }
%"struct.UapkiNS::Crl::RevokedCertItem" = type { i64, i32, i64 }
%"class.UapkiNS::CertValidator::CertValidator" = type { ptr, ptr, ptr, %"class.std::vector.18", %"class.std::vector.23", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA" }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UapkiNS::SmartBA" = type { ptr }
%"struct.UapkiNS::Cert::CerItem::Uris" = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare ptr @json_value_init_object() #4

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator13validateByCrlEPNS_4Cert7CerItemES4_mbRNS0_21ResultValidationByCrlEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i1 noundef zeroext %4, ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef %6) #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.std::lock_guard", align 8
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca %"class.std::vector.34", align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i8, align 1
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator.44", align 8
  %30 = alloca %"class.__gnu_cxx::__normal_iterator.44", align 8
  %31 = alloca ptr, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store i64 %3, ptr %12, align 8, !tbaa !9
  %32 = zext i1 %4 to i8
  store i8 %32, ptr %13, align 1, !tbaa !11
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  %33 = load ptr, ptr %9, align 8
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %37, label %36

36:                                               ; preds = %7
  store i32 4101, ptr %8, align 4
  br label %300

37:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZN7UapkiNS4Cert7CerItem8getMutexEv(ptr noundef nonnull align 8 dereferenceable(401) %38)
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(40) %39)
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store ptr null, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  call void @_ZNSt6vectorIPKN7UapkiNS3Crl15RevokedCertItemESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store ptr null, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store ptr null, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  %40 = load ptr, ptr %15, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %69

42:                                               ; preds = %37
  %43 = load ptr, ptr %15, align 8, !tbaa !5
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !15
  %47 = invoke noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef %46)
          to label %48 unwind label %53

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

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

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

53:                                               ; preds = %290, %265, %262, %256, %253, %212, %205, %195, %189, %173, %162, %153, %146, %140, %129, %124, %119, %116, %107, %99, %94, %87, %81, %70, %65, %60, %57, %48, %42
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %24, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %25, align 4
  br label %299

57:                                               ; preds = %50
  %58 = load ptr, ptr %15, align 8, !tbaa !5
  %59 = invoke ptr @json_value_init_object()
          to label %60 unwind label %53

60:                                               ; preds = %57
  %61 = invoke i32 @json_object_set_value(ptr noundef %58, ptr noundef @.str.2, ptr noundef %59)
          to label %62 unwind label %53

62:                                               ; preds = %60
  %63 = icmp ne i32 %61, 0
  br i1 %63, label %64, label %65

64:                                               ; preds = %62
  store i32 4113, ptr %17, align 4, !tbaa !13
  br label %269

65:                                               ; preds = %62
  %66 = load ptr, ptr %15, align 8, !tbaa !5
  %67 = invoke ptr @json_object_get_object(ptr noundef %66, ptr noundef @.str.2)
          to label %68 unwind label %53

68:                                               ; preds = %65
  store ptr %67, ptr %21, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %68, %37
  br label %70

70:                                               ; preds = %69
  %71 = getelementptr inbounds %"class.UapkiNS::CertValidator::CertValidator", ptr %33, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !20
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = load i64, ptr %12, align 8, !tbaa !9
  %76 = load ptr, ptr %21, align 8, !tbaa !5
  %77 = invoke noundef i32 @_ZN7UapkiNS13CertValidator6getCrlERNS_3Crl8CrlStoreEPKNS_4Cert7CerItemES7_mPPK12ByteArray_stPPNS1_7CrlItemEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(144) %72, ptr noundef %73, ptr noundef %74, i64 noundef %75, ptr noundef %22, ptr noundef %18, ptr noundef %76)
          to label %78 unwind label %53

78:                                               ; preds = %70
  store i32 %77, ptr %17, align 4, !tbaa !13
  %79 = load i32, ptr %17, align 4, !tbaa !13
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %84

81:                                               ; preds = %78
  %82 = load i32, ptr %17, align 4, !tbaa !13
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 456, i32 noundef %82)
          to label %83 unwind label %53

83:                                               ; preds = %81
  br label %269

84:                                               ; preds = %78
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %18, align 8, !tbaa !5
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = invoke noundef i32 @_ZN7UapkiNS3Crl7CrlItem12revokedCertsEPKNS_4Cert7CerItemERSt6vectorIPKNS0_15RevokedCertItemESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(268) %88, ptr noundef %89, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %91 unwind label %53

91:                                               ; preds = %87
  store i32 %90, ptr %17, align 4, !tbaa !13
  %92 = load i32, ptr %17, align 4, !tbaa !13
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %97

94:                                               ; preds = %91
  %95 = load i32, ptr %17, align 4, !tbaa !13
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 458, i32 noundef %95)
          to label %96 unwind label %53

96:                                               ; preds = %94
  br label %269

97:                                               ; preds = %91
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  %100 = load ptr, ptr %18, align 8, !tbaa !5
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %101, i32 0, i32 1
  store ptr %100, ptr %102, align 8, !tbaa !31
  %103 = getelementptr inbounds %"class.UapkiNS::CertValidator::CertValidator", ptr %33, i32 0, i32 2
  %104 = load ptr, ptr %103, align 8, !tbaa !20
  %105 = invoke noundef zeroext i1 @_ZNK7UapkiNS3Crl8CrlStore11useDeltaCrlEv(ptr noundef nonnull align 8 dereferenceable(144) %104)
          to label %106 unwind label %53

106:                                              ; preds = %99
  br i1 %105, label %107, label %162

107:                                              ; preds = %106
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  %109 = invoke noundef nonnull align 8 dereferenceable(96) ptr @_ZNK7UapkiNS4Cert7CerItem7getUrisEv(ptr noundef nonnull align 8 dereferenceable(401) %108)
          to label %110 unwind label %53

110:                                              ; preds = %107
  %111 = getelementptr inbounds %"struct.UapkiNS::Cert::CerItem::Uris", ptr %109, i32 0, i32 1
  %112 = call noundef zeroext i1 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %111) #6
  br i1 %112, label %162, label %113

113:                                              ; preds = %110
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = icmp ne ptr %114, null
  br i1 %115, label %116, label %128

116:                                              ; preds = %113
  %117 = load ptr, ptr %15, align 8, !tbaa !5
  %118 = invoke ptr @json_value_init_object()
          to label %119 unwind label %53

119:                                              ; preds = %116
  %120 = invoke i32 @json_object_set_value(ptr noundef %117, ptr noundef @.str.3, ptr noundef %118)
          to label %121 unwind label %53

121:                                              ; preds = %119
  %122 = icmp ne i32 %120, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %121
  store i32 4113, ptr %17, align 4, !tbaa !13
  br label %269

124:                                              ; preds = %121
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = invoke ptr @json_object_get_object(ptr noundef %125, ptr noundef @.str.3)
          to label %127 unwind label %53

127:                                              ; preds = %124
  store ptr %126, ptr %20, align 8, !tbaa !5
  br label %128

128:                                              ; preds = %127, %113
  br label %129

129:                                              ; preds = %128
  %130 = getelementptr inbounds %"class.UapkiNS::CertValidator::CertValidator", ptr %33, i32 0, i32 2
  %131 = load ptr, ptr %130, align 8, !tbaa !20
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = load i64, ptr %12, align 8, !tbaa !9
  %135 = load ptr, ptr %20, align 8, !tbaa !5
  %136 = invoke noundef i32 @_ZN7UapkiNS13CertValidator6getCrlERNS_3Crl8CrlStoreEPKNS_4Cert7CerItemES7_mPPK12ByteArray_stPPNS1_7CrlItemEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(144) %131, ptr noundef %132, ptr noundef %133, i64 noundef %134, ptr noundef %22, ptr noundef %18, ptr noundef %135)
          to label %137 unwind label %53

137:                                              ; preds = %129
  store i32 %136, ptr %17, align 4, !tbaa !13
  %138 = load i32, ptr %17, align 4, !tbaa !13
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %143

140:                                              ; preds = %137
  %141 = load i32, ptr %17, align 4, !tbaa !13
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 477, i32 noundef %141)
          to label %142 unwind label %53

142:                                              ; preds = %140
  br label %269

143:                                              ; preds = %137
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  %147 = load ptr, ptr %18, align 8, !tbaa !5
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = invoke noundef i32 @_ZN7UapkiNS3Crl7CrlItem12revokedCertsEPKNS_4Cert7CerItemERSt6vectorIPKNS0_15RevokedCertItemESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(268) %147, ptr noundef %148, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %150 unwind label %53

150:                                              ; preds = %146
  store i32 %149, ptr %17, align 4, !tbaa !13
  %151 = load i32, ptr %17, align 4, !tbaa !13
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %156

153:                                              ; preds = %150
  %154 = load i32, ptr %17, align 4, !tbaa !13
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 478, i32 noundef %154)
          to label %155 unwind label %53

155:                                              ; preds = %153
  br label %269

156:                                              ; preds = %150
  br label %157

157:                                              ; preds = %156
  br label %158

158:                                              ; preds = %157
  %159 = load ptr, ptr %18, align 8, !tbaa !5
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %160, i32 0, i32 1
  store ptr %159, ptr %161, align 8, !tbaa !31
  br label %162

162:                                              ; preds = %158, %110, %106
  %163 = load i64, ptr %12, align 8, !tbaa !9
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  %165 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  %167 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %166, i32 0, i32 3
  %168 = invoke noundef zeroext i1 @_ZN7UapkiNS3Crl15findRevokedCertERKSt6vectorIPKNS0_15RevokedCertItemESaIS4_EEmRNS_10CertStatusERS2_(ptr noundef nonnull align 8 dereferenceable(24) %19, i64 noundef %163, ptr noundef nonnull align 4 dereferenceable(4) %165, ptr noundef nonnull align 8 dereferenceable(24) %167)
          to label %169 unwind label %53

169:                                              ; preds = %162
  %170 = zext i1 %168 to i8
  store i8 %170, ptr %23, align 1, !tbaa !11
  %171 = load i8, ptr %23, align 1, !tbaa !11, !range !32, !noundef !33
  %172 = trunc i8 %171 to i1
  br i1 %172, label %173, label %186

173:                                              ; preds = %169
  %174 = load ptr, ptr %14, align 8, !tbaa !5
  %175 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %174, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8, !tbaa !31
  %177 = invoke noundef i32 @_ZNK7UapkiNS3Crl7CrlItem10getVersionEv(ptr noundef nonnull align 8 dereferenceable(268) %176)
          to label %178 unwind label %53

178:                                              ; preds = %173
  %179 = icmp eq i32 %177, 1
  br i1 %179, label %180, label %186

180:                                              ; preds = %178
  %181 = load ptr, ptr %14, align 8, !tbaa !5
  %182 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %181, i32 0, i32 0
  store i32 1, ptr %182, align 8, !tbaa !15
  %183 = load ptr, ptr %14, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %183, i32 0, i32 3
  %185 = getelementptr inbounds %"struct.UapkiNS::Crl::RevokedCertItem", ptr %184, i32 0, i32 1
  store i32 0, ptr %185, align 8, !tbaa !34
  br label %186

186:                                              ; preds = %180, %178, %169
  %187 = load ptr, ptr %15, align 8, !tbaa !5
  %188 = icmp ne ptr %187, null
  br i1 %188, label %189, label %250

189:                                              ; preds = %186
  %190 = load ptr, ptr %15, align 8, !tbaa !5
  %191 = load ptr, ptr %14, align 8, !tbaa !5
  %192 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %191, i32 0, i32 0
  %193 = load i32, ptr %192, align 8, !tbaa !15
  %194 = invoke noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef %193)
          to label %195 unwind label %53

195:                                              ; preds = %189
  %196 = invoke i32 @json_object_set_string(ptr noundef %190, ptr noundef @.str.1, ptr noundef %194)
          to label %197 unwind label %53

197:                                              ; preds = %195
  %198 = icmp ne i32 %196, 0
  br i1 %198, label %199, label %200

199:                                              ; preds = %197
  store i32 4113, ptr %17, align 4, !tbaa !13
  br label %269

200:                                              ; preds = %197
  %201 = load ptr, ptr %14, align 8, !tbaa !5
  %202 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %201, i32 0, i32 0
  %203 = load i32, ptr %202, align 8, !tbaa !15
  %204 = icmp eq i32 %203, 1
  br i1 %204, label %205, label %249

205:                                              ; preds = %200
  %206 = load ptr, ptr %15, align 8, !tbaa !5
  %207 = load ptr, ptr %14, align 8, !tbaa !5
  %208 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %207, i32 0, i32 3
  %209 = getelementptr inbounds %"struct.UapkiNS::Crl::RevokedCertItem", ptr %208, i32 0, i32 1
  %210 = load i32, ptr %209, align 8, !tbaa !34
  %211 = invoke noundef ptr @_ZN7UapkiNS3Crl14crlReasonToStrENS_9CrlReasonE(i32 noundef %210)
          to label %212 unwind label %53

212:                                              ; preds = %205
  %213 = invoke i32 @json_object_set_string(ptr noundef %206, ptr noundef @.str.4, ptr noundef %211)
          to label %214 unwind label %53

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

216:                                              ; preds = %214
  store i32 4113, ptr %17, align 4, !tbaa !13
  br label %269

217:                                              ; preds = %214
  %218 = load ptr, ptr %14, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %218, i32 0, i32 3
  %220 = getelementptr inbounds %"struct.UapkiNS::Crl::RevokedCertItem", ptr %219, i32 0, i32 0
  %221 = load i64, ptr %220, align 8, !tbaa !35
  %222 = icmp ugt i64 %221, 0
  br i1 %222, label %223, label %248

223:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #6
  %224 = load ptr, ptr %14, align 8, !tbaa !5
  %225 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %224, i32 0, i32 3
  %226 = getelementptr inbounds %"struct.UapkiNS::Crl::RevokedCertItem", ptr %225, i32 0, i32 0
  %227 = load i64, ptr %226, align 8, !tbaa !35
  invoke void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %26, i64 noundef %227, i1 noundef zeroext false)
          to label %228 unwind label %235

228:                                              ; preds = %223
  %229 = load ptr, ptr %15, align 8, !tbaa !5
  %230 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  %231 = invoke i32 @json_object_set_string(ptr noundef %229, ptr noundef @.str.5, ptr noundef %230)
          to label %232 unwind label %239

232:                                              ; preds = %228
  %233 = icmp ne i32 %231, 0
  br i1 %233, label %234, label %243

234:                                              ; preds = %232
  store i32 4113, ptr %17, align 4, !tbaa !13
  store i32 2, ptr %27, align 4
  br label %244

235:                                              ; preds = %223
  %236 = landingpad { ptr, i32 }
          cleanup
  %237 = extractvalue { ptr, i32 } %236, 0
  store ptr %237, ptr %24, align 8
  %238 = extractvalue { ptr, i32 } %236, 1
  store i32 %238, ptr %25, align 4
  br label %247

239:                                              ; preds = %228
  %240 = landingpad { ptr, i32 }
          cleanup
  %241 = extractvalue { ptr, i32 } %240, 0
  store ptr %241, ptr %24, align 8
  %242 = extractvalue { ptr, i32 } %240, 1
  store i32 %242, ptr %25, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  br label %247

243:                                              ; preds = %232
  store i32 0, ptr %27, align 4
  br label %244

244:                                              ; preds = %243, %234
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  %245 = load i32, ptr %27, align 4
  switch i32 %245, label %298 [
    i32 0, label %246
    i32 2, label %269
  ]

246:                                              ; preds = %244
  br label %248

247:                                              ; preds = %239, %235
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #6
  br label %299

248:                                              ; preds = %246, %217
  br label %249

249:                                              ; preds = %248, %200
  br label %250

250:                                              ; preds = %249, %186
  %251 = load i8, ptr %13, align 1, !tbaa !11, !range !32, !noundef !33
  %252 = trunc i8 %251 to i1
  br i1 %252, label %253, label %268

253:                                              ; preds = %250
  %254 = load ptr, ptr %10, align 8, !tbaa !5
  %255 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZN7UapkiNS4Cert7CerItem18getCertStatusByCrlEv(ptr noundef nonnull align 8 dereferenceable(401) %254)
          to label %256 unwind label %53

256:                                              ; preds = %253
  %257 = load ptr, ptr %14, align 8, !tbaa !5
  %258 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByCrl", ptr %257, i32 0, i32 0
  %259 = load i32, ptr %258, align 8, !tbaa !15
  %260 = load ptr, ptr %18, align 8, !tbaa !5
  %261 = invoke noundef i64 @_ZNK7UapkiNS3Crl7CrlItem13getNextUpdateEv(ptr noundef nonnull align 8 dereferenceable(268) %260)
          to label %262 unwind label %53

262:                                              ; preds = %256
  %263 = load ptr, ptr %18, align 8, !tbaa !5
  %264 = invoke noundef ptr @_ZNK7UapkiNS3Crl7CrlItem8getCrlIdEv(ptr noundef nonnull align 8 dereferenceable(268) %263)
          to label %265 unwind label %53

265:                                              ; preds = %262
  %266 = invoke noundef i32 @_ZN7UapkiNS4Cert14CertStatusInfo3setENS_10CertStatusEmPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(32) %255, i32 noundef %259, i64 noundef %261, ptr noundef %264)
          to label %267 unwind label %53

267:                                              ; preds = %265
  br label %268

268:                                              ; preds = %267, %250
  br label %269

269:                                              ; preds = %268, %244, %216, %199, %155, %142, %123, %96, %83, %64, %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  store ptr %19, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %270 = load ptr, ptr %28, align 8, !tbaa !5
  %271 = call ptr @_ZNSt6vectorIPKN7UapkiNS3Crl15RevokedCertItemESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %270) #6
  %272 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.44", ptr %29, i32 0, i32 0
  store ptr %271, ptr %272, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %273 = load ptr, ptr %28, align 8, !tbaa !5
  %274 = call ptr @_ZNSt6vectorIPKN7UapkiNS3Crl15RevokedCertItemESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %273) #6
  %275 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.44", ptr %30, i32 0, i32 0
  store ptr %274, ptr %275, align 8
  br label %276

276:                                              ; preds = %286, %269
  %277 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPKN7UapkiNS3Crl15RevokedCertItemESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  br i1 %277, label %279, label %278

278:                                              ; preds = %276
  store i32 11, ptr %27, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %288

279:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPKN7UapkiNS3Crl15RevokedCertItemESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  store ptr %280, ptr %31, align 8, !tbaa !5
  %281 = load ptr, ptr %31, align 8, !tbaa !5
  %282 = load ptr, ptr %281, align 8, !tbaa !5
  %283 = icmp eq ptr %282, null
  br i1 %283, label %285, label %284

284:                                              ; preds = %279
  call void @_ZdlPvm(ptr noundef %282, i64 noundef 24) #7
  br label %285

285:                                              ; preds = %284, %279
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %286

286:                                              ; preds = %285
  %287 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPKN7UapkiNS3Crl15RevokedCertItemESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  br label %276

288:                                              ; preds = %278
  call void @_ZNSt6vectorIPKN7UapkiNS3Crl15RevokedCertItemESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  %289 = load i32, ptr %17, align 4, !tbaa !13
  switch i32 %289, label %295 [
    i32 4120, label %290
    i32 4178, label %290
    i32 4179, label %290
  ]

290:                                              ; preds = %288, %288, %288
  %291 = load ptr, ptr %10, align 8, !tbaa !5
  %292 = load ptr, ptr %18, align 8, !tbaa !5
  %293 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator14addExpectedCrlEPNS_4Cert7CerItemEPNS_3Crl7CrlItemE(ptr noundef nonnull align 8 dereferenceable(88) %33, ptr noundef %291, ptr noundef %292)
          to label %294 unwind label %53

294:                                              ; preds = %290
  br label %296

295:                                              ; preds = %288
  br label %296

296:                                              ; preds = %295, %294
  %297 = load i32, ptr %17, align 4, !tbaa !13
  store i32 %297, ptr %8, align 4
  store i32 1, ptr %27, align 4
  br label %298

298:                                              ; preds = %296, %244
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @_ZNSt6vectorIPKN7UapkiNS3Crl15RevokedCertItemESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %300

299:                                              ; preds = %247, %53
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @_ZNSt6vectorIPKN7UapkiNS3Crl15RevokedCertItemESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %302

300:                                              ; preds = %298, %36
  %301 = load i32, ptr %8, align 4
  ret i32 %301

302:                                              ; preds = %299
  %303 = load ptr, ptr %24, align 8
  %304 = load i32, ptr %25, align 4
  %305 = insertvalue { ptr, i32 } poison, ptr %303, 0
  %306 = insertvalue { ptr, i32 } %305, i32 %304, 1
  resume { ptr, i32 } %306
}

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

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

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

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

declare noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS13CertValidator6getCrlERNS_3Crl8CrlStoreEPKNS_4Cert7CerItemES7_mPPK12ByteArray_stPPNS1_7CrlItemEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare noundef i32 @_ZN7UapkiNS3Crl7CrlItem12revokedCertsEPKNS_4Cert7CerItemERSt6vectorIPKNS0_15RevokedCertItemESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(268), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) #4

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

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

declare noundef zeroext i1 @_ZN7UapkiNS3Crl15findRevokedCertERKSt6vectorIPKNS0_15RevokedCertItemESaIS4_EEmRNS_10CertStatusERS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(24)) #4

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

declare noundef ptr @_ZN7UapkiNS3Crl14crlReasonToStrENS_9CrlReasonE(i32 noundef) #4

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTSN7UapkiNS13CertValidator21ResultValidationByCrlE", !17, i64 0, !6, i64 8, !6, i64 16, !18, i64 24}
!17 = !{!"_ZTSN7UapkiNS10CertStatusE", !7, i64 0}
!18 = !{!"_ZTSN7UapkiNS3Crl15RevokedCertItemE", !10, i64 0, !19, i64 8, !10, i64 16}
!19 = !{!"_ZTSN7UapkiNS9CrlReasonE", !7, i64 0}
!20 = !{!21, !6, i64 16}
!21 = !{!"_ZTSN7UapkiNS13CertValidator13CertValidatorE", !6, i64 0, !6, i64 8, !6, i64 16, !22, i64 24, !26, i64 48, !30, i64 72, !30, i64 80}
!22 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSN7UapkiNS7SmartBAE", !6, i64 0}
!31 = !{!16, !6, i64 8}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!16, !19, i64 32}
!35 = !{!16, !10, i64 24}


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

%"class.std::lock_guard" = type { ptr }
%"class.std::vector.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = type { %"struct.std::_Vector_base<const UapkiNS::Crl::RevokedCertItem *, std::allocator<const UapkiNS::Crl::RevokedCertItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<const UapkiNS::Crl::RevokedCertItem *, std::allocator<const UapkiNS::Crl::RevokedCertItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<const UapkiNS::Crl::RevokedCertItem *, std::allocator<const UapkiNS::Crl::RevokedCertItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<const UapkiNS::Crl::RevokedCertItem *, std::allocator<const UapkiNS::Crl::RevokedCertItem *>>::_Vector_impl_data" = type { ptr, ptr, 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] }
%"class.__gnu_cxx::__normal_iterator.44" = type { ptr }

@.str = external hidden unnamed_addr constant [25 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [15 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

declare ptr @json_value_init_object() local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator13validateByCrlEPNS_4Cert7CerItemES4_mbRNS0_21ResultValidationByCrlEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1, ptr noundef %2, i64 noundef %3, i1 noundef zeroext %4, ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef %6) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.std::lock_guard", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::vector.34", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.44", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.44", align 8
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %136, label %15

15:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %16 = tail call noundef nonnull align 8 dereferenceable(40) ptr @_ZN7UapkiNS4Cert7CerItem8getMutexEv(ptr noundef nonnull align 8 dereferenceable(401) %1)
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(40) %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorIPKN7UapkiNS3Crl15RevokedCertItemESaIS4_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  store ptr null, ptr %11, align 8, !tbaa !5
  %.not80 = icmp eq ptr %6, null
  br i1 %.not80, label %32, label %17

17:                                               ; preds = %15
  %18 = load i32, ptr %5, align 8, !tbaa !9
  %19 = invoke noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef %18)
          to label %20 unwind label %23

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

22:                                               ; preds = %20
  %.not81 = icmp eq i32 %21, 0
  br i1 %.not81, label %25, label %120

23:                                               ; preds = %131, %112, %96, %92, %86, %83, %72, %69, %65, %64, %60, %58, %55, %53, %42, %38, %37, %32, %30, %27, %25, %20, %17
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %135

25:                                               ; preds = %22
  %26 = invoke ptr @json_value_init_object()
          to label %27 unwind label %23

27:                                               ; preds = %25
  %28 = invoke i32 @json_object_set_value(ptr noundef nonnull %6, ptr noundef nonnull @.str.2, ptr noundef %26)
          to label %29 unwind label %23

29:                                               ; preds = %27
  %.not82 = icmp eq i32 %28, 0
  br i1 %.not82, label %30, label %120

30:                                               ; preds = %29
  %31 = invoke ptr @json_object_get_object(ptr noundef nonnull %6, ptr noundef nonnull @.str.2)
          to label %32 unwind label %23

32:                                               ; preds = %30, %15
  %.068 = phi ptr [ null, %15 ], [ %31, %30 ]
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !15
  %35 = invoke noundef i32 @_ZN7UapkiNS13CertValidator6getCrlERNS_3Crl8CrlStoreEPKNS_4Cert7CerItemES7_mPPK12ByteArray_stPPNS1_7CrlItemEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(144) %34, ptr noundef nonnull %1, ptr noundef %2, i64 noundef %3, ptr noundef nonnull %11, ptr noundef nonnull %9, ptr noundef %.068)
          to label %36 unwind label %23

36:                                               ; preds = %32
  %.not83 = icmp eq i32 %35, 0
  br i1 %.not83, label %38, label %37

37:                                               ; preds = %36
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 456, i32 noundef %35)
          to label %120 unwind label %23

38:                                               ; preds = %36
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = invoke noundef i32 @_ZN7UapkiNS3Crl7CrlItem12revokedCertsEPKNS_4Cert7CerItemERSt6vectorIPKNS0_15RevokedCertItemESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(268) %39, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %41 unwind label %23

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

42:                                               ; preds = %41
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 458, i32 noundef %40)
          to label %120 unwind label %23

43:                                               ; preds = %41
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %44, ptr %45, align 8, !tbaa !26
  %46 = load ptr, ptr %33, align 8, !tbaa !15
  %47 = call noundef zeroext i1 @_ZNK7UapkiNS3Crl8CrlStore11useDeltaCrlEv(ptr noundef nonnull align 8 dereferenceable(144) %46)
  br i1 %47, label %48, label %72

48:                                               ; preds = %43
  %49 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNK7UapkiNS4Cert7CerItem7getUrisEv(ptr noundef nonnull align 8 dereferenceable(401) %1)
  %50 = getelementptr inbounds i8, ptr %49, i64 24
  %51 = call noundef zeroext i1 @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #6
  br i1 %51, label %72, label %52

52:                                               ; preds = %48
  br i1 %.not80, label %60, label %53

53:                                               ; preds = %52
  %54 = invoke ptr @json_value_init_object()
          to label %55 unwind label %23

55:                                               ; preds = %53
  %56 = invoke i32 @json_object_set_value(ptr noundef nonnull %6, ptr noundef nonnull @.str.3, ptr noundef %54)
          to label %57 unwind label %23

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

58:                                               ; preds = %57
  %59 = invoke ptr @json_object_get_object(ptr noundef nonnull %6, ptr noundef nonnull @.str.3)
          to label %60 unwind label %23

60:                                               ; preds = %58, %52
  %.067 = phi ptr [ null, %52 ], [ %59, %58 ]
  %61 = load ptr, ptr %33, align 8, !tbaa !15
  %62 = invoke noundef i32 @_ZN7UapkiNS13CertValidator6getCrlERNS_3Crl8CrlStoreEPKNS_4Cert7CerItemES7_mPPK12ByteArray_stPPNS1_7CrlItemEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(144) %61, ptr noundef nonnull %1, ptr noundef %2, i64 noundef %3, ptr noundef nonnull %11, ptr noundef nonnull %9, ptr noundef %.067)
          to label %63 unwind label %23

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

64:                                               ; preds = %63
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 477, i32 noundef %62)
          to label %120 unwind label %23

65:                                               ; preds = %63
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = invoke noundef i32 @_ZN7UapkiNS3Crl7CrlItem12revokedCertsEPKNS_4Cert7CerItemERSt6vectorIPKNS0_15RevokedCertItemESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(268) %66, ptr noundef nonnull %1, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %68 unwind label %23

68:                                               ; preds = %65
  %.not87 = icmp eq i32 %67, 0
  br i1 %.not87, label %70, label %69

69:                                               ; preds = %68
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 478, i32 noundef %67)
          to label %120 unwind label %23

70:                                               ; preds = %68
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %71, ptr %45, align 8, !tbaa !26
  br label %72

72:                                               ; preds = %70, %48, %43
  %73 = getelementptr inbounds i8, ptr %5, i64 24
  %74 = invoke noundef zeroext i1 @_ZN7UapkiNS3Crl15findRevokedCertERKSt6vectorIPKNS0_15RevokedCertItemESaIS4_EEmRNS_10CertStatusERS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %3, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(24) %73)
          to label %75 unwind label %23

75:                                               ; preds = %72
  br i1 %74, label %76, label %82

76:                                               ; preds = %75
  %77 = load ptr, ptr %45, align 8, !tbaa !26
  %78 = call noundef i32 @_ZNK7UapkiNS3Crl7CrlItem10getVersionEv(ptr noundef nonnull align 8 dereferenceable(268) %77)
  %79 = icmp eq i32 %78, 1
  br i1 %79, label %80, label %82

80:                                               ; preds = %76
  store i32 1, ptr %5, align 8, !tbaa !9
  %81 = getelementptr inbounds i8, ptr %5, i64 32
  store i32 0, ptr %81, align 8, !tbaa !27
  br label %82

82:                                               ; preds = %80, %76, %75
  br i1 %.not80, label %111, label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %5, align 8, !tbaa !9
  %85 = invoke noundef ptr @_ZN7UapkiNS3Crl15certStatusToStrENS_10CertStatusE(i32 noundef %84)
          to label %86 unwind label %23

86:                                               ; preds = %83
  %87 = invoke i32 @json_object_set_string(ptr noundef nonnull %6, ptr noundef nonnull @.str.1, ptr noundef %85)
          to label %88 unwind label %23

88:                                               ; preds = %86
  %.not88 = icmp eq i32 %87, 0
  br i1 %.not88, label %89, label %120

89:                                               ; preds = %88
  %90 = load i32, ptr %5, align 8, !tbaa !9
  %91 = icmp eq i32 %90, 1
  br i1 %91, label %92, label %111

92:                                               ; preds = %89
  %93 = getelementptr inbounds i8, ptr %5, i64 32
  %94 = load i32, ptr %93, align 8, !tbaa !27
  %95 = invoke noundef ptr @_ZN7UapkiNS3Crl14crlReasonToStrENS_9CrlReasonE(i32 noundef %94)
          to label %96 unwind label %23

96:                                               ; preds = %92
  %97 = invoke i32 @json_object_set_string(ptr noundef nonnull %6, ptr noundef nonnull @.str.4, ptr noundef %95)
          to label %98 unwind label %23

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

99:                                               ; preds = %98
  %100 = load i64, ptr %73, align 8, !tbaa !28
  %.not90 = icmp eq i64 %100, 0
  br i1 %.not90, label %111, label %101

101:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #6
  invoke void @_ZN8TimeUtil12mtimeToFtimeB5cxx11Emb(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, i64 noundef %100, i1 noundef zeroext false)
          to label %102 unwind label %106

102:                                              ; preds = %101
  %103 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  %104 = invoke i32 @json_object_set_string(ptr noundef nonnull %6, ptr noundef nonnull @.str.5, ptr noundef %103)
          to label %105 unwind label %108

105:                                              ; preds = %102
  %.not92 = icmp eq i32 %104, 0
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  %brmerge.not = and i1 %.not92, %4
  %.mux = select i1 %.not92, i32 0, i32 4113
  br i1 %brmerge.not, label %112, label %120

106:                                              ; preds = %101
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %110

108:                                              ; preds = %102
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #6
  br label %110

110:                                              ; preds = %108, %106
  %.pn = phi { ptr, i32 } [ %109, %108 ], [ %107, %106 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #6
  br label %135

111:                                              ; preds = %89, %99, %82
  br i1 %4, label %112, label %120

112:                                              ; preds = %105, %111
  %113 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN7UapkiNS4Cert7CerItem18getCertStatusByCrlEv(ptr noundef nonnull align 8 dereferenceable(401) %1)
  %114 = load i32, ptr %5, align 8, !tbaa !9
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = call noundef i64 @_ZNK7UapkiNS3Crl7CrlItem13getNextUpdateEv(ptr noundef nonnull align 8 dereferenceable(268) %115)
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = call noundef ptr @_ZNK7UapkiNS3Crl7CrlItem8getCrlIdEv(ptr noundef nonnull align 8 dereferenceable(268) %117)
  %119 = invoke noundef i32 @_ZN7UapkiNS4Cert14CertStatusInfo3setENS_10CertStatusEmPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(32) %113, i32 noundef %114, i64 noundef %116, ptr noundef %118)
          to label %120 unwind label %23

120:                                              ; preds = %105, %98, %88, %57, %29, %22, %111, %112, %69, %64, %42, %37
  %.3 = phi i32 [ %35, %37 ], [ %40, %42 ], [ %.mux, %105 ], [ 0, %112 ], [ 0, %111 ], [ %62, %64 ], [ %67, %69 ], [ 4113, %22 ], [ 4113, %29 ], [ 4113, %57 ], [ 4113, %88 ], [ 4113, %98 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %121 = call ptr @_ZNSt6vectorIPKN7UapkiNS3Crl15RevokedCertItemESaIS4_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store ptr %121, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %122 = call ptr @_ZNSt6vectorIPKN7UapkiNS3Crl15RevokedCertItemESaIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store ptr %122, ptr %14, align 8
  %123 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPKN7UapkiNS3Crl15RevokedCertItemESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %123, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %128, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @_ZNSt6vectorIPKN7UapkiNS3Crl15RevokedCertItemESaIS4_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  switch i32 %.3, label %134 [
    i32 4120, label %131
    i32 4178, label %131
    i32 4179, label %131
  ]

.lr.ph:                                           ; preds = %120, %128
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPKN7UapkiNS3Crl15RevokedCertItemESt6vectorIS5_SaIS5_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = icmp eq ptr %125, null
  br i1 %126, label %128, label %127

127:                                              ; preds = %.lr.ph
  call void @_ZdlPvm(ptr noundef nonnull %125, i64 noundef 24) #7
  br label %128

128:                                              ; preds = %127, %.lr.ph
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPKN7UapkiNS3Crl15RevokedCertItemESt6vectorIS5_SaIS5_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  %130 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPKN7UapkiNS3Crl15RevokedCertItemESt6vectorIS5_SaIS5_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  br i1 %130, label %.lr.ph, label %._crit_edge

131:                                              ; preds = %._crit_edge, %._crit_edge, %._crit_edge
  %132 = load ptr, ptr %9, align 8, !tbaa !5
  %133 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator14addExpectedCrlEPNS_4Cert7CerItemEPNS_3Crl7CrlItemE(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull %1, ptr noundef %132)
          to label %134 unwind label %23

134:                                              ; preds = %131, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZNSt6vectorIPKN7UapkiNS3Crl15RevokedCertItemESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %136

135:                                              ; preds = %110, %23
  %.pn93 = phi { ptr, i32 } [ %24, %23 ], [ %.pn, %110 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @_ZNSt6vectorIPKN7UapkiNS3Crl15RevokedCertItemESaIS4_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  resume { ptr, i32 } %.pn93

136:                                              ; preds = %7, %134
  %.1 = phi i32 [ %.3, %134 ], [ 4101, %7 ]
  ret i32 %.1
}

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS13CertValidator6getCrlERNS_3Crl8CrlStoreEPKNS_4Cert7CerItemES7_mPPK12ByteArray_stPPNS1_7CrlItemEP13json_object_t(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef, ptr noundef, i64 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef i32 @_ZN7UapkiNS3Crl7CrlItem12revokedCertsEPKNS_4Cert7CerItemERSt6vectorIPKNS0_15RevokedCertItemESaIS9_EE(ptr noundef nonnull align 8 dereferenceable(268), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

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

declare noundef zeroext i1 @_ZN7UapkiNS3Crl15findRevokedCertERKSt6vectorIPKNS0_15RevokedCertItemESaIS4_EEmRNS_10CertStatusERS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 #6 = { nounwind }
attributes #7 = { 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, !11, i64 0}
!10 = !{!"_ZTSN7UapkiNS13CertValidator21ResultValidationByCrlE", !11, i64 0, !6, i64 8, !6, i64 16, !12, i64 24}
!11 = !{!"_ZTSN7UapkiNS10CertStatusE", !7, i64 0}
!12 = !{!"_ZTSN7UapkiNS3Crl15RevokedCertItemE", !13, i64 0, !14, i64 8, !13, i64 16}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTSN7UapkiNS9CrlReasonE", !7, i64 0}
!15 = !{!16, !6, i64 16}
!16 = !{!"_ZTSN7UapkiNS13CertValidator13CertValidatorE", !6, i64 0, !6, i64 8, !6, i64 16, !17, i64 24, !21, i64 48, !25, i64 72, !25, i64 80}
!17 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSN7UapkiNS7SmartBAE", !6, i64 0}
!26 = !{!10, !6, i64 8}
!27 = !{!10, !14, i64 32}
!28 = !{!10, !13, i64 24}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass