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

; 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.__gnu_cxx::__normal_iterator.58" = type { ptr }
%"class.UapkiNS::Ocsp::OcspHelper" = type <{ %"class.std::vector.59", ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, [4 x i8] }>
%"class.std::vector.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = type { %"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.49" = type { ptr }
%"class.UapkiNS::Doc::Verify::VerifiedSignerInfo" = type { %"class.UapkiNS::CertValidator::CertValidator", i8, i32, %"class.UapkiNS::Pkcs7::SignedDataParser::SignerInfo", ptr, i32, i32, i32, i64, %"class.std::vector.13", i32, %"class.std::__cxx11::basic_string", %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", %"struct.UapkiNS::Doc::Verify::CadesXlInfo", %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", i32, i8, i8, i64, %"class.std::vector.44", %"struct.UapkiNS::Doc::Verify::VerifiedSignerInfo::ListAddedCerts" }
%"class.UapkiNS::CertValidator::CertValidator" = type { ptr, ptr, ptr, %"class.std::vector.34", %"class.std::vector.39", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA" }
%"class.std::vector.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = 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.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = 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::Pkcs7::SignedDataParser::SignerInfo" = type { ptr, i32, i64, %"class.UapkiNS::SmartBA", %"struct.UapkiNS::AlgorithmIdentifier", %"class.std::vector.8", %"struct.UapkiNS::AlgorithmIdentifier", %"class.UapkiNS::SmartBA", %"class.std::vector.8", %"class.UapkiNS::SmartBA", %"struct.UapkiNS::Pkcs7::SignedDataParser::SignerInfo::MandatoryAttrs" }
%"struct.UapkiNS::AlgorithmIdentifier" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Attribute, std::allocator<UapkiNS::Attribute>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.UapkiNS::Pkcs7::SignedDataParser::SignerInfo::MandatoryAttrs" = type { %"class.std::__cxx11::basic_string", %"class.UapkiNS::SmartBA" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<UapkiNS::AttrCertId, std::allocator<UapkiNS::AttrCertId>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::AttrCertId, std::allocator<UapkiNS::AttrCertId>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::AttrCertId, std::allocator<UapkiNS::AttrCertId>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::AttrCertId, std::allocator<UapkiNS::AttrCertId>>::_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] }
%"struct.UapkiNS::Doc::Verify::CadesXlInfo" = type { i8, i8, i8, i8, %"class.std::vector.13", %"class.UapkiNS::VectorBA", %"class.UapkiNS::AttributeHelper::RevocationRefsParser", %"class.UapkiNS::AttributeHelper::RevocationValuesParser", %"class.UapkiNS::VectorBA", i32, %"class.std::vector.18" }
%"class.UapkiNS::AttributeHelper::RevocationRefsParser" = type { ptr, i64 }
%"class.UapkiNS::AttributeHelper::RevocationValuesParser" = type { %"class.UapkiNS::VectorBA", %"class.UapkiNS::VectorBA", %"struct.UapkiNS::Attribute" }
%"struct.UapkiNS::Attribute" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.UapkiNS::VectorBA" = type { %"class.std::vector.3" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl" }
%"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ByteArray_st *, std::allocator<ByteArray_st *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<UapkiNS::VerifyStatus, std::allocator<UapkiNS::VerifyStatus>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::VerifyStatus, std::allocator<UapkiNS::VerifyStatus>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::VerifyStatus, std::allocator<UapkiNS::VerifyStatus>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::VerifyStatus, std::allocator<UapkiNS::VerifyStatus>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.UapkiNS::Doc::Verify::AttrTimeStamp" = type { %"class.UapkiNS::Tsp::TsTokenParser", %"class.UapkiNS::Pkcs7::SignedDataParser::SignerInfo", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.UapkiNS::SmartBA", i64, ptr, i32, i32 }
%"class.UapkiNS::Tsp::TsTokenParser" = type { %"class.UapkiNS::Pkcs7::SignedDataParser", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", ptr, ptr, i64, i8, i8, ptr }
%"class.UapkiNS::Pkcs7::SignedDataParser" = type { ptr, i32, %"class.std::vector", %"struct.UapkiNS::Pkcs7::EncapsulatedContentInfo", %"class.UapkiNS::VectorBA", %"class.UapkiNS::VectorBA", i64 }
%"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 }
%"struct.UapkiNS::Pkcs7::EncapsulatedContentInfo" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.UapkiNS::Pkcs7::ArchiveTs3Helper" = type { ptr, i32, %"struct.UapkiNS::Pkcs7::ArchiveTs3Helper::ATSHashIndex", %struct.anon, %"class.UapkiNS::SmartBA" }
%"struct.UapkiNS::Pkcs7::ArchiveTs3Helper::ATSHashIndex" = type { %"class.UapkiNS::VectorBA", %"class.UapkiNS::VectorBA", %"class.UapkiNS::VectorBA" }
%struct.anon = type { %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA" }
%"class.std::vector.44" = type { %"struct.std::_Vector_base.45" }
%"struct.std::_Vector_base.45" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::CertChainItem *, std::allocator<UapkiNS::CertValidator::CertChainItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::CertChainItem *, std::allocator<UapkiNS::CertValidator::CertChainItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::CertChainItem *, std::allocator<UapkiNS::CertValidator::CertChainItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::CertChainItem *, std::allocator<UapkiNS::CertValidator::CertChainItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.UapkiNS::Doc::Verify::VerifiedSignerInfo::ListAddedCerts" = type { %"class.std::vector.24", %"class.std::vector.24", %"class.std::vector.24", %"class.std::vector.24", %"class.std::vector.24" }
%"class.std::vector.24" = type { %"struct.std::_Vector_base.25" }
%"struct.std::_Vector_base.25" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerItem *, std::allocator<UapkiNS::Cert::CerItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerItem *, std::allocator<UapkiNS::Cert::CerItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerItem *, std::allocator<UapkiNS::Cert::CerItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerItem *, std::allocator<UapkiNS::Cert::CerItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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 [21 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: 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 ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_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_iteratorIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

declare void @_ZN7UapkiNS13CertValidator13CertChainItem17setValidationTypeENS_4Cert14ValidationTypeE(ptr noundef nonnull align 8 dereferenceable(280), i32 noundef) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo27setRevocationValuesForChainEm(ptr noundef nonnull align 8 dereferenceable(2568) %0, i64 noundef %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.58", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.58", align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.UapkiNS::Ocsp::OcspHelper", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.UapkiNS::SmartBA", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %24 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %25 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %26 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %25, i32 0, i32 14
  %27 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::CadesXlInfo", ptr %26, i32 0, i32 7
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS15AttributeHelper22RevocationValuesParser11getOcspValsEv(ptr noundef nonnull align 8 dereferenceable(88) %27)
  store ptr %28, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = call ptr @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #7
  %31 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.58", ptr %8, i32 0, i32 0
  store ptr %30, ptr %31, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = call ptr @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  %34 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.58", ptr %9, i32 0, i32 0
  store ptr %33, ptr %34, align 8
  br label %35

35:                                               ; preds = %159, %2
  %36 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  br i1 %36, label %38, label %37

37:                                               ; preds = %35
  store i32 2, ptr %10, align 4
  br label %162

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  store ptr %39, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 96, ptr %12) #7
  call void @_ZN7UapkiNS4Ocsp10OcspHelperC1Ev(ptr noundef nonnull align 8 dereferenceable(92) %12)
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper22parseBasicOcspResponseEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %12, ptr noundef %41)
          to label %43 unwind label %56

43:                                               ; preds = %38
  store i32 %42, ptr %6, align 4, !tbaa !11
  %44 = load i32, ptr %6, align 4, !tbaa !11
  %45 = icmp eq i32 %44, 0
  br i1 %45, label %46, label %152

46:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  invoke void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %47 unwind label %60

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  %49 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper19scanSingleResponsesEv(ptr noundef nonnull align 8 dereferenceable(92) %12)
          to label %50 unwind label %64

50:                                               ; preds = %48
  store i32 %49, ptr %6, align 4, !tbaa !11
  %51 = load i32, ptr %6, align 4, !tbaa !11
  %52 = icmp ne i32 %51, 0
  br i1 %52, label %53, label %68

53:                                               ; preds = %50
  %54 = load i32, ptr %6, align 4, !tbaa !11
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 685, i32 noundef %54)
          to label %55 unwind label %64

55:                                               ; preds = %53
  store i32 6, ptr %10, align 4
  br label %147

56:                                               ; preds = %38
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %13, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %14, align 4
  br label %161

60:                                               ; preds = %46
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %13, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %14, align 4
  br label %151

64:                                               ; preds = %78, %73, %71, %53, %48
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %13, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %14, align 4
  br label %150

68:                                               ; preds = %50
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  %72 = invoke noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %73 unwind label %64

73:                                               ; preds = %71
  %74 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper25getSerialNumberFromCertIdEmPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %12, i64 noundef 0, ptr noundef %72)
          to label %75 unwind label %64

75:                                               ; preds = %73
  store i32 %74, ptr %6, align 4, !tbaa !11
  %76 = load i32, ptr %6, align 4, !tbaa !11
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %81

78:                                               ; preds = %75
  %79 = load i32, ptr %6, align 4, !tbaa !11
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 686, i32 noundef %79)
          to label %80 unwind label %64

80:                                               ; preds = %78
  store i32 6, ptr %10, align 4
  br label %147

81:                                               ; preds = %75
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %84 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %25, i32 0, i32 21
  store ptr %84, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %85 = load ptr, ptr %16, align 8, !tbaa !5
  %86 = call ptr @_ZNSt6vectorIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #7
  %87 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %17, i32 0, i32 0
  store ptr %86, ptr %87, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  %89 = call ptr @_ZNSt6vectorIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #7
  %90 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %18, i32 0, i32 0
  store ptr %89, ptr %90, align 8
  br label %91

91:                                               ; preds = %142, %83
  %92 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #7
  br i1 %92, label %94, label %93

93:                                               ; preds = %91
  store i32 9, ptr %10, align 4
  br label %145

94:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  store ptr %95, ptr %19, align 8, !tbaa !5
  %96 = invoke noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %97 unwind label %130

97:                                               ; preds = %94
  %98 = load ptr, ptr %19, align 8, !tbaa !5
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = invoke noundef ptr @_ZNK7UapkiNS13CertValidator13CertChainItem10getSubjectEv(ptr noundef nonnull align 8 dereferenceable(280) %99)
          to label %101 unwind label %130

101:                                              ; preds = %97
  %102 = invoke noundef ptr @_ZNK7UapkiNS4Cert7CerItem15getSerialNumberEv(ptr noundef nonnull align 8 dereferenceable(401) %100)
          to label %103 unwind label %130

103:                                              ; preds = %101
  %104 = invoke i32 @ba_cmp(ptr noundef %96, ptr noundef %102)
          to label %105 unwind label %130

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

107:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %108 = load ptr, ptr %19, align 8, !tbaa !5
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = invoke noundef nonnull align 8 dereferenceable(156) ptr @_ZN7UapkiNS13CertValidator13CertChainItem25getResultValidationByOcspEv(ptr noundef nonnull align 8 dereferenceable(280) %109)
          to label %111 unwind label %134

111:                                              ; preds = %107
  store ptr %110, ptr %20, align 8, !tbaa !5
  %112 = load ptr, ptr %20, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByOcsp", ptr %112, i32 0, i32 7
  store i32 1, ptr %113, align 8, !tbaa !13
  %114 = load ptr, ptr %20, align 8, !tbaa !5
  %115 = getelementptr inbounds %"struct.UapkiNS::Ocsp::ResponseInfo", ptr %114, i32 0, i32 0
  store i32 0, ptr %115, align 8, !tbaa !25
  %116 = load ptr, ptr %20, align 8, !tbaa !5
  %117 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo18verifyOcspResponseERNS_4Ocsp10OcspHelperERNS_13CertValidator22ResultValidationByOcspE(ptr noundef nonnull align 8 dereferenceable(2568) %25, ptr noundef nonnull align 8 dereferenceable(92) %12, ptr noundef nonnull align 8 dereferenceable(156) %116)
          to label %118 unwind label %134

118:                                              ; preds = %111
  %119 = invoke noundef i64 @_ZNK7UapkiNS4Ocsp10OcspHelper13getProducedAtEv(ptr noundef nonnull align 8 dereferenceable(92) %12)
          to label %120 unwind label %134

120:                                              ; preds = %118
  %121 = load ptr, ptr %20, align 8, !tbaa !5
  %122 = getelementptr inbounds %"struct.UapkiNS::Ocsp::ResponseInfo", ptr %121, i32 0, i32 3
  store i64 %119, ptr %122, align 8, !tbaa !26
  %123 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNK7UapkiNS4Ocsp10OcspHelper21getSingleResponseInfoEm(ptr noundef nonnull align 8 dereferenceable(92) %12, i64 noundef 0)
          to label %124 unwind label %134

124:                                              ; preds = %120
  %125 = load ptr, ptr %20, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.UapkiNS::CertValidator::ResultValidationByOcsp", ptr %125, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %126, ptr align 8 %123, i64 36, i1 false), !tbaa.struct !27
  %127 = load ptr, ptr %19, align 8, !tbaa !5
  %128 = load ptr, ptr %127, align 8, !tbaa !5
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem17setValidationTypeENS_4Cert14ValidationTypeE(ptr noundef nonnull align 8 dereferenceable(280) %128, i32 noundef 4)
          to label %129 unwind label %134

129:                                              ; preds = %124
  store i32 9, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %139

130:                                              ; preds = %103, %101, %97, %94
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %13, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %14, align 4
  br label %144

134:                                              ; preds = %124, %120, %118, %111, %107
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %13, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %144

138:                                              ; preds = %105
  store i32 0, ptr %10, align 4
  br label %139

139:                                              ; preds = %138, %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  %140 = load i32, ptr %10, align 4
  switch i32 %140, label %145 [
    i32 0, label %141
  ]

141:                                              ; preds = %139
  br label %142

142:                                              ; preds = %141
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  br label %91

144:                                              ; preds = %134, %130
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %150

145:                                              ; preds = %139, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %146

146:                                              ; preds = %145
  store i32 0, ptr %10, align 4
  br label %147

147:                                              ; preds = %146, %80, %55
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  %148 = load i32, ptr %10, align 4
  switch i32 %148, label %153 [
    i32 0, label %149
  ]

149:                                              ; preds = %147
  br label %152

150:                                              ; preds = %144, %64
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  br label %151

151:                                              ; preds = %150, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %161

152:                                              ; preds = %149, %43
  store i32 0, ptr %10, align 4
  br label %153

153:                                              ; preds = %152, %147
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %12) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %12) #7
  %154 = load i32, ptr %10, align 4
  switch i32 %154, label %156 [
    i32 0, label %155
  ]

155:                                              ; preds = %153
  store i32 0, ptr %10, align 4
  br label %156

156:                                              ; preds = %155, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  %157 = load i32, ptr %10, align 4
  switch i32 %157, label %162 [
    i32 0, label %158
  ]

158:                                              ; preds = %156
  br label %159

159:                                              ; preds = %158
  %160 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP12ByteArray_stSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br label %35

161:                                              ; preds = %151, %56
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %12) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %188

162:                                              ; preds = %156, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  %163 = load i32, ptr %10, align 4
  switch i32 %163, label %186 [
    i32 2, label %164
    i32 6, label %184
  ]

164:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %165 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %25, i32 0, i32 21
  store ptr %165, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %166 = load ptr, ptr %21, align 8, !tbaa !5
  %167 = call ptr @_ZNSt6vectorIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %166) #7
  %168 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %22, i32 0, i32 0
  store ptr %167, ptr %168, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %169 = load ptr, ptr %21, align 8, !tbaa !5
  %170 = call ptr @_ZNSt6vectorIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %169) #7
  %171 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.49", ptr %23, i32 0, i32 0
  store ptr %170, ptr %171, align 8
  br label %172

172:                                              ; preds = %181, %164
  %173 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  br i1 %173, label %175, label %174

174:                                              ; preds = %172
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %183

175:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  store ptr %176, ptr %24, align 8, !tbaa !5
  %177 = load ptr, ptr %24, align 8, !tbaa !5
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = load i64, ptr %5, align 8, !tbaa !9
  %180 = call noundef zeroext i1 @_ZN7UapkiNS13CertValidator13CertChainItem17checkValidityTimeEm(ptr noundef nonnull align 8 dereferenceable(280) %178, i64 noundef %179)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %181

181:                                              ; preds = %175
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br label %172

183:                                              ; preds = %174
  br label %184

184:                                              ; preds = %183, %162
  %185 = load i32, ptr %6, align 4, !tbaa !11
  store i32 %185, ptr %3, align 4
  store i32 1, ptr %10, align 4
  br label %186

186:                                              ; preds = %184, %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  %187 = load i32, ptr %3, align 4
  ret i32 %187

188:                                              ; preds = %161
  %189 = load ptr, ptr %13, align 8
  %190 = load i32, ptr %14, align 4
  %191 = insertvalue { ptr, i32 } poison, ptr %189, 0
  %192 = insertvalue { ptr, i32 } %191, i32 %190, 1
  resume { ptr, i32 } %192
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo18verifyOcspResponseERNS_4Ocsp10OcspHelperERNS_13CertValidator22ResultValidationByOcspE(ptr noundef nonnull align 8 dereferenceable(2568), ptr noundef nonnull align 8 dereferenceable(92), ptr noundef nonnull align 8 dereferenceable(156)) #4 align 2

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

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

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

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

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

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

!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 = !{!"int", !7, i64 0}
!13 = !{!14, !24, i64 152}
!14 = !{!"_ZTSN7UapkiNS13CertValidator22ResultValidationByOcspE", !15, i64 0, !19, i64 80, !18, i64 120, !23, i64 128, !18, i64 136, !18, i64 144, !24, i64 152}
!15 = !{!"_ZTSN7UapkiNS4Ocsp12ResponseInfoE", !16, i64 0, !17, i64 4, !18, i64 8, !10, i64 16, !19, i64 24, !22, i64 64, !6, i64 72}
!16 = !{!"_ZTSN7UapkiNS4Ocsp14ResponseStatusE", !7, i64 0}
!17 = !{!"_ZTSN7UapkiNS4Ocsp15ResponderIdTypeE", !7, i64 0}
!18 = !{!"_ZTSN7UapkiNS7SmartBAE", !6, i64 0}
!19 = !{!"_ZTSN7UapkiNS4Ocsp10OcspHelper18SingleResponseInfoE", !20, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !21, i64 32}
!20 = !{!"_ZTSN7UapkiNS10CertStatusE", !7, i64 0}
!21 = !{!"_ZTSN7UapkiNS9CrlReasonE", !7, i64 0}
!22 = !{!"_ZTSN7UapkiNS12VerifyStatusE", !7, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"_ZTSN7UapkiNS13CertValidator10DataSourceE", !7, i64 0}
!25 = !{!15, !16, i64 0}
!26 = !{!15, !10, i64 16}
!27 = !{i64 0, i64 4, !28, i64 8, i64 8, !9, i64 16, i64 8, !9, i64 24, i64 8, !9, i64 32, i64 4, !29}
!28 = !{!20, !20, i64 0}
!29 = !{!21, !21, i64 0}


; 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.__gnu_cxx::__normal_iterator.58" = type { ptr }
%"class.UapkiNS::Ocsp::OcspHelper" = type <{ %"class.std::vector.59", ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i32, [4 x i8] }>
%"class.std::vector.59" = type { %"struct.std::_Vector_base.60" }
%"struct.std::_Vector_base.60" = type { %"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo, std::allocator<UapkiNS::Ocsp::OcspHelper::SingleResponseInfo>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.UapkiNS::SmartBA" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.49" = type { ptr }

@.str = external hidden unnamed_addr constant [21 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress 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 ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

declare void @_ZN7UapkiNS13CertValidator13CertChainItem17setValidationTypeENS_4Cert14ValidationTypeE(ptr noundef nonnull align 8 dereferenceable(280), i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo27setRevocationValuesForChainEm(ptr noundef nonnull align 8 dereferenceable(2568) %0, i64 noundef %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.__gnu_cxx::__normal_iterator.58", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.58", align 8
  %5 = alloca %"class.UapkiNS::Ocsp::OcspHelper", align 8
  %6 = alloca %"class.UapkiNS::SmartBA", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.49", align 8
  %11 = getelementptr inbounds i8, ptr %0, i64 1584
  %12 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNK7UapkiNS15AttributeHelper22RevocationValuesParser11getOcspValsEv(ptr noundef nonnull align 8 dereferenceable(88) %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %13 = tail call ptr @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  store ptr %13, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  %14 = tail call ptr @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  store ptr %14, ptr %4, align 8
  %15 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %15, label %.lr.ph85, label %._crit_edge

.lr.ph85:                                         ; preds = %2
  %16 = getelementptr inbounds i8, ptr %0, i64 2424
  br label %17

17:                                               ; preds = %.lr.ph85, %65
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKP12ByteArray_stSt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %5) #7
  call void @_ZN7UapkiNS4Ocsp10OcspHelperC1Ev(ptr noundef nonnull align 8 dereferenceable(92) %5)
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper22parseBasicOcspResponseEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %5, ptr noundef %19)
          to label %21 unwind label %27

21:                                               ; preds = %17
  %22 = icmp eq i32 %20, 0
  br i1 %22, label %23, label %65

23:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN7UapkiNS7SmartBAC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %24 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper19scanSingleResponsesEv(ptr noundef nonnull align 8 dereferenceable(92) %5)
          to label %25 unwind label %.loopexit71

25:                                               ; preds = %23
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %29, label %26

26:                                               ; preds = %25
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 685, i32 noundef %24)
          to label %69 unwind label %.loopexit.split-lp

27:                                               ; preds = %17
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %68

.loopexit71:                                      ; preds = %23, %29
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %64

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

29:                                               ; preds = %25
  %30 = call noundef ptr @_ZN7UapkiNS7SmartBAadEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %31 = invoke noundef i32 @_ZN7UapkiNS4Ocsp10OcspHelper25getSerialNumberFromCertIdEmPP12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(92) %5, i64 noundef 0, ptr noundef %30)
          to label %32 unwind label %.loopexit71

32:                                               ; preds = %29
  %.not48 = icmp eq i32 %31, 0
  br i1 %.not48, label %34, label %33

33:                                               ; preds = %32
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 686, i32 noundef %31)
          to label %69 unwind label %.loopexit.split-lp

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %35 = call ptr @_ZNSt6vectorIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  store ptr %35, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %36 = call ptr @_ZNSt6vectorIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %16) #7
  store ptr %36, ptr %8, align 8
  %37 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %37, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %34, %.critedge
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %39 = call noundef ptr @_ZNK7UapkiNS7SmartBA3getEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %40 = load ptr, ptr %38, align 8, !tbaa !5
  %41 = call noundef ptr @_ZNK7UapkiNS13CertValidator13CertChainItem10getSubjectEv(ptr noundef nonnull align 8 dereferenceable(280) %40)
  %42 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem15getSerialNumberEv(ptr noundef nonnull align 8 dereferenceable(401) %41)
  %43 = invoke i32 @ba_cmp(ptr noundef %39, ptr noundef %42)
          to label %44 unwind label %57

44:                                               ; preds = %.lr.ph
  %.not50 = icmp eq i32 %43, 0
  br i1 %.not50, label %45, label %.critedge

45:                                               ; preds = %44
  %46 = load ptr, ptr %38, align 8, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(156) ptr @_ZN7UapkiNS13CertValidator13CertChainItem25getResultValidationByOcspEv(ptr noundef nonnull align 8 dereferenceable(280) %46)
  %48 = getelementptr inbounds i8, ptr %47, i64 152
  store i32 1, ptr %48, align 8, !tbaa !9
  store i32 0, ptr %47, align 8, !tbaa !22
  %49 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo18verifyOcspResponseERNS_4Ocsp10OcspHelperERNS_13CertValidator22ResultValidationByOcspE(ptr noundef nonnull align 8 dereferenceable(2568) %0, ptr noundef nonnull align 8 dereferenceable(92) %5, ptr noundef nonnull align 8 dereferenceable(156) %47)
          to label %50 unwind label %59

50:                                               ; preds = %45
  %51 = call noundef i64 @_ZNK7UapkiNS4Ocsp10OcspHelper13getProducedAtEv(ptr noundef nonnull align 8 dereferenceable(92) %5)
  %52 = getelementptr inbounds i8, ptr %47, i64 16
  store i64 %51, ptr %52, align 8, !tbaa !23
  %53 = invoke noundef nonnull align 8 dereferenceable(36) ptr @_ZNK7UapkiNS4Ocsp10OcspHelper21getSingleResponseInfoEm(ptr noundef nonnull align 8 dereferenceable(92) %5, i64 noundef 0)
          to label %54 unwind label %59

54:                                               ; preds = %50
  %55 = getelementptr inbounds i8, ptr %47, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(36) %55, ptr noundef nonnull align 8 dereferenceable(36) %53, i64 36, i1 false), !tbaa.struct !24
  %56 = load ptr, ptr %38, align 8, !tbaa !5
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem17setValidationTypeENS_4Cert14ValidationTypeE(ptr noundef nonnull align 8 dereferenceable(280) %56, i32 noundef 4)
          to label %.loopexit unwind label %59

57:                                               ; preds = %.lr.ph
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %63

59:                                               ; preds = %54, %50, %45
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %63

.critedge:                                        ; preds = %44
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %62, label %.lr.ph, label %.loopexit

63:                                               ; preds = %59, %57
  %.pn = phi { ptr, i32 } [ %60, %59 ], [ %58, %57 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %64

.loopexit:                                        ; preds = %.critedge, %34, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %65

64:                                               ; preds = %.loopexit71, %.loopexit.split-lp, %63
  %.pn51 = phi { ptr, i32 } [ %.pn, %63 ], [ %lpad.loopexit, %.loopexit71 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %68

65:                                               ; preds = %21, %.loopexit
  %.3.ph = phi i32 [ 0, %.loopexit ], [ %20, %21 ]
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %5) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #7
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKP12ByteArray_stSt6vectorIS2_SaIS2_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  %67 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKP12ByteArray_stSt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #7
  br i1 %67, label %17, label %._crit_edge

68:                                               ; preds = %64, %27
  %.pn51.pn = phi { ptr, i32 } [ %.pn51, %64 ], [ %28, %27 ]
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %5) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn51.pn

69:                                               ; preds = %33, %26
  %.1.ph = phi i32 [ %31, %33 ], [ %24, %26 ]
  call void @_ZN7UapkiNS7SmartBAD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZN7UapkiNS4Ocsp10OcspHelperD1Ev(ptr noundef nonnull align 8 dereferenceable(92) %5) #7
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %79

._crit_edge:                                      ; preds = %65, %2
  %.034.lcssa = phi i32 [ 0, %2 ], [ %.3.ph, %65 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  %70 = getelementptr inbounds i8, ptr %0, i64 2424
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %71 = call ptr @_ZNSt6vectorIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #7
  store ptr %71, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %72 = call ptr @_ZNSt6vectorIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #7
  store ptr %72, ptr %10, align 8
  %73 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %73, label %.lr.ph87, label %._crit_edge88

._crit_edge88:                                    ; preds = %.lr.ph87, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %79

.lr.ph87:                                         ; preds = %._crit_edge, %.lr.ph87
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = call noundef zeroext i1 @_ZN7UapkiNS13CertValidator13CertChainItem17checkValidityTimeEm(ptr noundef nonnull align 8 dereferenceable(280) %75, i64 noundef %1)
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS13CertValidator13CertChainItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %78, label %.lr.ph87, label %._crit_edge88

79:                                               ; preds = %69, %._crit_edge88
  %.469 = phi i32 [ %.1.ph, %69 ], [ %.034.lcssa, %._crit_edge88 ]
  ret i32 %.469
}

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo18verifyOcspResponseERNS_4Ocsp10OcspHelperERNS_13CertValidator22ResultValidationByOcspE(ptr noundef nonnull align 8 dereferenceable(2568), ptr noundef nonnull align 8 dereferenceable(92), ptr noundef nonnull align 8 dereferenceable(156)) local_unnamed_addr #4 align 2

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

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

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

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

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

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

!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, !21, i64 152}
!10 = !{!"_ZTSN7UapkiNS13CertValidator22ResultValidationByOcspE", !11, i64 0, !16, i64 80, !14, i64 120, !20, i64 128, !14, i64 136, !14, i64 144, !21, i64 152}
!11 = !{!"_ZTSN7UapkiNS4Ocsp12ResponseInfoE", !12, i64 0, !13, i64 4, !14, i64 8, !15, i64 16, !16, i64 24, !19, i64 64, !6, i64 72}
!12 = !{!"_ZTSN7UapkiNS4Ocsp14ResponseStatusE", !7, i64 0}
!13 = !{!"_ZTSN7UapkiNS4Ocsp15ResponderIdTypeE", !7, i64 0}
!14 = !{!"_ZTSN7UapkiNS7SmartBAE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSN7UapkiNS4Ocsp10OcspHelper18SingleResponseInfoE", !17, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !18, i64 32}
!17 = !{!"_ZTSN7UapkiNS10CertStatusE", !7, i64 0}
!18 = !{!"_ZTSN7UapkiNS9CrlReasonE", !7, i64 0}
!19 = !{!"_ZTSN7UapkiNS12VerifyStatusE", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN7UapkiNS13CertValidator10DataSourceE", !7, i64 0}
!22 = !{!11, !12, i64 0}
!23 = !{!11, !15, i64 16}
!24 = !{i64 0, i64 4, !25, i64 8, i64 8, !26, i64 16, i64 8, !26, i64 24, i64 8, !26, i64 32, i64 4, !27}
!25 = !{!17, !17, i64 0}
!26 = !{!15, !15, i64 0}
!27 = !{!18, !18, i64 0}


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