; 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.std::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.56" = type { 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::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.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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.UapkiNS::SmartBA" = type { ptr }
%"struct.UapkiNS::Cert::CerStore::AddedCerItem" = type <{ i32, [4 x i8], ptr, i8, [7 x i8] }>
%"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.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 }
%"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.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 }
%"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 }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo19verifyAttrTimestampERNS1_13AttrTimeStampE(ptr noundef nonnull align 8 dereferenceable(2568) %0, ptr noundef nonnull align 8 dereferenceable(552) %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.std::vector.51", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.56", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.56", align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %16, i32 0, i32 0
  %18 = call noundef nonnull align 8 dereferenceable(136) ptr @_ZN7UapkiNS3Tsp13TsTokenParser19getSignedDataParserEv(ptr noundef nonnull align 8 dereferenceable(240) %17)
  store ptr %18, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %19, i32 0, i32 1
  store ptr %20, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #5
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  br label %21

21:                                               ; preds = %2
  %22 = invoke noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %15)
          to label %23 unwind label %34

23:                                               ; preds = %21
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN7UapkiNS5Pkcs716SignedDataParser8getCertsEv(ptr noundef nonnull align 8 dereferenceable(136) %24)
          to label %26 unwind label %34

26:                                               ; preds = %23
  %27 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore8addCertsEbbRKNS_8VectorBAERSt6vectorINS1_12AddedCerItemESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(96) %22, i1 noundef zeroext false, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %8)
          to label %28 unwind label %34

28:                                               ; preds = %26
  store i32 %27, ptr %5, align 4, !tbaa !9
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %31, label %38

31:                                               ; preds = %28
  %32 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 1168, i32 noundef %32)
          to label %33 unwind label %34

33:                                               ; preds = %31
  br label %156

34:                                               ; preds = %146, %141, %138, %123, %120, %115, %110, %107, %102, %94, %88, %85, %83, %78, %75, %73, %69, %31, %26, %23, %21
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %9, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %10, align 4
  br label %158

38:                                               ; preds = %28
  br label %39

39:                                               ; preds = %38
  br label %40

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store ptr %8, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %41 = load ptr, ptr %11, align 8, !tbaa !5
  %42 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %41) #5
  %43 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.56", ptr %12, i32 0, i32 0
  store ptr %42, ptr %43, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %44) #5
  %46 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.56", ptr %13, i32 0, i32 0
  store ptr %45, ptr %46, align 8
  br label %47

47:                                               ; preds = %67, %40
  %48 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  br i1 %48, label %50, label %49

49:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %69

50:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %51 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  store ptr %51, ptr %14, align 8, !tbaa !5
  %52 = load ptr, ptr %14, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.UapkiNS::Cert::CerStore::AddedCerItem", ptr %52, i32 0, i32 2
  %54 = load ptr, ptr %53, align 8, !tbaa !11
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %66

56:                                               ; preds = %50
  %57 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %15, i32 0, i32 22
  %58 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::VerifiedSignerInfo::ListAddedCerts", ptr %57, i32 0, i32 2
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.UapkiNS::Cert::CerStore::AddedCerItem", ptr %59, i32 0, i32 2
  invoke void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 8 dereferenceable(8) %60)
          to label %61 unwind label %62

61:                                               ; preds = %56
  br label %66

62:                                               ; preds = %56
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %9, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %158

66:                                               ; preds = %61, %50
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %67

67:                                               ; preds = %66
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br label %47

69:                                               ; preds = %49
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = invoke noundef i64 @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo10getSidTypeEv(ptr noundef nonnull align 8 dereferenceable(216) %70)
          to label %72 unwind label %34

72:                                               ; preds = %69
  switch i64 %71, label %93 [
    i64 1, label %73
    i64 2, label %83
  ]

73:                                               ; preds = %72
  %74 = invoke noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %15)
          to label %75 unwind label %34

75:                                               ; preds = %73
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = invoke noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo13getSidEncodedEv(ptr noundef nonnull align 8 dereferenceable(216) %76)
          to label %78 unwind label %34

78:                                               ; preds = %75
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %79, i32 0, i32 6
  %81 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore12getCertBySIDEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %74, ptr noundef %77, ptr noundef %80)
          to label %82 unwind label %34

82:                                               ; preds = %78
  store i32 %81, ptr %5, align 4, !tbaa !9
  br label %99

83:                                               ; preds = %72
  %84 = invoke noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %15)
          to label %85 unwind label %34

85:                                               ; preds = %83
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = invoke noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo13getSidEncodedEv(ptr noundef nonnull align 8 dereferenceable(216) %86)
          to label %88 unwind label %34

88:                                               ; preds = %85
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %89, i32 0, i32 6
  %91 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore14getCertByKeyIdEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %84, ptr noundef %87, ptr noundef %90)
          to label %92 unwind label %34

92:                                               ; preds = %88
  store i32 %91, ptr %5, align 4, !tbaa !9
  br label %99

93:                                               ; preds = %72
  br label %94

94:                                               ; preds = %93
  store i32 4145, ptr %5, align 4, !tbaa !9
  %95 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @stacktrace_create(ptr noundef @.str, i64 noundef 1183, i32 noundef %95, ptr noundef null)
          to label %96 unwind label %34

96:                                               ; preds = %94
  br label %156

97:                                               ; No predecessors!
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98, %92, %82
  %100 = load i32, ptr %5, align 4, !tbaa !9
  %101 = icmp eq i32 %100, 0
  br i1 %101, label %102, label %126

102:                                              ; preds = %99
  %103 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %15, i32 0, i32 22
  %104 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::VerifiedSignerInfo::ListAddedCerts", ptr %103, i32 0, i32 4
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %105, i32 0, i32 6
  invoke void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %104, ptr noundef nonnull align 8 dereferenceable(8) %106)
          to label %107 unwind label %34

107:                                              ; preds = %102
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo21getSignatureAlgorithmEv(ptr noundef nonnull align 8 dereferenceable(216) %108)
          to label %110 unwind label %34

110:                                              ; preds = %107
  %111 = getelementptr inbounds %"struct.UapkiNS::AlgorithmIdentifier", ptr %109, i32 0, i32 0
  %112 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %111) #5
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = invoke noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo21getSignedAttrsEncodedEv(ptr noundef nonnull align 8 dereferenceable(216) %113)
          to label %115 unwind label %34

115:                                              ; preds = %110
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %116, i32 0, i32 6
  %118 = load ptr, ptr %117, align 8, !tbaa !14
  %119 = invoke noundef ptr @_ZNK7UapkiNS4Cert7CerItem7getSpkiEv(ptr noundef nonnull align 8 dereferenceable(401) %118)
          to label %120 unwind label %34

120:                                              ; preds = %115
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = invoke noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo12getSignatureEv(ptr noundef nonnull align 8 dereferenceable(216) %121)
          to label %123 unwind label %34

123:                                              ; preds = %120
  %124 = invoke noundef i32 @_ZN7UapkiNS6Verify15verifySignatureEPKcPK12ByteArray_stbS5_S5_(ptr noundef %112, ptr noundef %114, i1 noundef zeroext false, ptr noundef %119, ptr noundef %122)
          to label %125 unwind label %34

125:                                              ; preds = %123
  store i32 %124, ptr %5, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %125, %99
  %127 = load i32, ptr %5, align 4, !tbaa !9
  switch i32 %127, label %152 [
    i32 0, label %128
    i32 3, label %131
    i32 4161, label %134
  ]

128:                                              ; preds = %126
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %129, i32 0, i32 8
  store i32 5, ptr %130, align 4, !tbaa !41
  br label %155

131:                                              ; preds = %126
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %132, i32 0, i32 8
  store i32 4, ptr %133, align 4, !tbaa !41
  br label %155

134:                                              ; preds = %126
  %135 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %15, i32 0, i32 2
  store i32 4161, ptr %135, align 4, !tbaa !42
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %136, i32 0, i32 8
  store i32 2, ptr %137, align 4, !tbaa !41
  br label %138

138:                                              ; preds = %134
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = invoke noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo13getSidEncodedEv(ptr noundef nonnull align 8 dereferenceable(216) %139)
          to label %141 unwind label %34

141:                                              ; preds = %138
  %142 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator20addExpectedCertBySIDENS0_10CertEntityEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(88) %15, i32 noundef 7, ptr noundef %140)
          to label %143 unwind label %34

143:                                              ; preds = %141
  store i32 %142, ptr %5, align 4, !tbaa !9
  %144 = load i32, ptr %5, align 4, !tbaa !9
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %146, label %149

146:                                              ; preds = %143
  %147 = load i32, ptr %5, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 1206, i32 noundef %147)
          to label %148 unwind label %34

148:                                              ; preds = %146
  br label %156

149:                                              ; preds = %143
  br label %150

150:                                              ; preds = %149
  br label %151

151:                                              ; preds = %150
  store i32 4161, ptr %5, align 4, !tbaa !9
  br label %155

152:                                              ; preds = %126
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %153, i32 0, i32 8
  store i32 3, ptr %154, align 4, !tbaa !41
  br label %155

155:                                              ; preds = %152, %151, %131, %128
  br label %156

156:                                              ; preds = %155, %148, %96, %33
  %157 = load i32, ptr %5, align 4, !tbaa !9
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret i32 %157

158:                                              ; preds = %62, %34
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %159

159:                                              ; preds = %158
  %160 = load ptr, ptr %9, align 8
  %161 = load i32, ptr %10, align 4
  %162 = insertvalue { ptr, i32 } poison, ptr %160, 0
  %163 = insertvalue { ptr, i32 } %162, i32 %161, 1
  resume { ptr, i32 } %163
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 8}
!12 = !{!"_ZTSN7UapkiNS4Cert8CerStore12AddedCerItemE", !10, i64 0, !6, i64 8, !13, i64 16}
!13 = !{!"bool", !7, i64 0}
!14 = !{!15, !6, i64 536}
!15 = !{!"_ZTSN7UapkiNS3Doc6Verify13AttrTimeStampE", !16, i64 0, !31, i64 240, !23, i64 456, !23, i64 488, !33, i64 520, !25, i64 528, !6, i64 536, !40, i64 544, !40, i64 548}
!16 = !{!"_ZTSN7UapkiNS3Tsp13TsTokenParserE", !17, i64 0, !23, i64 136, !23, i64 168, !6, i64 200, !6, i64 208, !25, i64 216, !13, i64 224, !13, i64 225, !6, i64 232}
!17 = !{!"_ZTSN7UapkiNS5Pkcs716SignedDataParserE", !6, i64 0, !10, i64 8, !18, i64 16, !22, i64 40, !26, i64 80, !26, i64 104, !25, i64 128}
!18 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = !{!"_ZTSN7UapkiNS5Pkcs723EncapsulatedContentInfoE", !23, i64 0, !6, i64 32}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !25, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSN7UapkiNS8VectorBAE", !27, i64 0}
!27 = !{!"_ZTSSt6vectorIP12ByteArray_stSaIS1_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIP12ByteArray_stSaIS1_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSN7UapkiNS5Pkcs716SignedDataParser10SignerInfoE", !6, i64 0, !10, i64 8, !32, i64 16, !33, i64 24, !34, i64 32, !35, i64 72, !34, i64 96, !33, i64 136, !35, i64 144, !33, i64 168, !39, i64 176}
!32 = !{!"_ZTSN7UapkiNS5Pkcs720SignerIdentifierTypeE", !7, i64 0}
!33 = !{!"_ZTSN7UapkiNS7SmartBAE", !6, i64 0}
!34 = !{!"_ZTSN7UapkiNS19AlgorithmIdentifierE", !23, i64 0, !6, i64 32}
!35 = !{!"_ZTSSt6vectorIN7UapkiNS9AttributeESaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS9AttributeESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS9AttributeESaIS1_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS9AttributeESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTSN7UapkiNS5Pkcs716SignedDataParser10SignerInfo14MandatoryAttrsE", !23, i64 0, !33, i64 32}
!40 = !{!"_ZTSN7UapkiNS12VerifyStatusE", !7, i64 0}
!41 = !{!15, !40, i64 548}
!42 = !{!43, !10, i64 92}
!43 = !{!"_ZTSN7UapkiNS3Doc6Verify18VerifiedSignerInfoE", !44, i64 0, !13, i64 88, !10, i64 92, !31, i64 96, !6, i64 312, !53, i64 320, !40, i64 324, !40, i64 328, !25, i64 336, !54, i64 344, !40, i64 368, !23, i64 376, !15, i64 408, !15, i64 960, !58, i64 1512, !15, i64 1728, !66, i64 2280, !70, i64 2408, !13, i64 2412, !13, i64 2413, !25, i64 2416, !71, i64 2424, !75, i64 2448}
!44 = !{!"_ZTSN7UapkiNS13CertValidator13CertValidatorE", !6, i64 0, !6, i64 8, !6, i64 16, !45, i64 24, !49, i64 48, !33, i64 72, !33, i64 80}
!45 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !46, i64 0}
!46 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE12_Vector_implE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!49 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !50, i64 0}
!50 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !51, i64 0}
!51 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE12_Vector_implE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!53 = !{!"_ZTSN7UapkiNS3Doc6Verify16ValidationStatusE", !7, i64 0}
!54 = !{!"_ZTSSt6vectorIN7UapkiNS10AttrCertIdESaIS1_EE", !55, i64 0}
!55 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS10AttrCertIdESaIS1_EE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS10AttrCertIdESaIS1_EE12_Vector_implE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS10AttrCertIdESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!58 = !{!"_ZTSN7UapkiNS3Doc6Verify11CadesXlInfoE", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !54, i64 8, !26, i64 32, !59, i64 56, !60, i64 72, !26, i64 160, !40, i64 184, !62, i64 192}
!59 = !{!"_ZTSN7UapkiNS15AttributeHelper20RevocationRefsParserE", !6, i64 0, !25, i64 8}
!60 = !{!"_ZTSN7UapkiNS15AttributeHelper22RevocationValuesParserE", !26, i64 0, !26, i64 24, !61, i64 48}
!61 = !{!"_ZTSN7UapkiNS9AttributeE", !23, i64 0, !6, i64 32}
!62 = !{!"_ZTSSt6vectorIN7UapkiNS12VerifyStatusESaIS1_EE", !63, i64 0}
!63 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS12VerifyStatusESaIS1_EE", !64, i64 0}
!64 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS12VerifyStatusESaIS1_EE12_Vector_implE", !65, i64 0}
!65 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS12VerifyStatusESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!66 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperE", !6, i64 0, !67, i64 8, !68, i64 16, !69, i64 88, !33, i64 120}
!67 = !{!"_ZTS7HashAlg", !7, i64 0}
!68 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3Helper12ATSHashIndexE", !26, i64 0, !26, i64 24, !26, i64 48}
!69 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperUt_E", !33, i64 0, !33, i64 8, !33, i64 16, !33, i64 24}
!70 = !{!"_ZTSN7UapkiNS15SignatureFormatE", !7, i64 0}
!71 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE", !72, i64 0}
!72 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE", !73, i64 0}
!73 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE12_Vector_implE", !74, i64 0}
!74 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!75 = !{!"_ZTSN7UapkiNS3Doc6Verify18VerifiedSignerInfo14ListAddedCertsE", !76, i64 0, !76, i64 24, !76, i64 48, !76, i64 72, !76, i64 96}
!76 = !{!"_ZTSSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE", !77, i64 0}
!77 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS4Cert7CerItemESaIS3_EE", !78, i64 0}
!78 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS4Cert7CerItemESaIS3_EE12_Vector_implE", !79, i64 0}
!79 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS4Cert7CerItemESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


; 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::vector.51" = type { %"struct.std::_Vector_base.52" }
%"struct.std::_Vector_base.52" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Cert::CerStore::AddedCerItem, std::allocator<UapkiNS::Cert::CerStore::AddedCerItem>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.56" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo19verifyAttrTimestampERNS1_13AttrTimeStampE(ptr noundef nonnull align 8 dereferenceable(2568) %0, ptr noundef nonnull align 8 dereferenceable(552) %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.51", align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator.56", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.56", align 8
  %6 = tail call noundef nonnull align 8 dereferenceable(136) ptr @_ZN7UapkiNS3Tsp13TsTokenParser19getSignedDataParserEv(ptr noundef nonnull align 8 dereferenceable(240) %1)
  %7 = getelementptr inbounds i8, ptr %1, i64 240
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  %8 = call noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %9 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN7UapkiNS5Pkcs716SignedDataParser8getCertsEv(ptr noundef nonnull align 8 dereferenceable(136) %6)
  %10 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore8addCertsEbbRKNS_8VectorBAERSt6vectorINS1_12AddedCerItemESaIS6_EE(ptr noundef nonnull align 8 dereferenceable(96) %8, i1 noundef zeroext false, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %11 unwind label %13

11:                                               ; preds = %2
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %15, label %12

12:                                               ; preds = %11
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 1168, i32 noundef %10)
          to label %66 unwind label %13

13:                                               ; preds = %63, %57, %47, %44, %41, %36, %31, %12, %2
  %14 = landingpad { ptr, i32 }
          cleanup
  br label %67

15:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %16 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %16, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %17 = call ptr @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  store ptr %17, ptr %5, align 8
  %18 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %18, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %15
  %19 = getelementptr inbounds i8, ptr %0, i64 2496
  br label %21

._crit_edge:                                      ; preds = %28, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %20 = call noundef i64 @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo10getSidTypeEv(ptr noundef nonnull align 8 dereferenceable(216) %7)
  switch i64 %20, label %41 [
    i64 1, label %31
    i64 2, label %36
  ]

21:                                               ; preds = %.lr.ph, %28
  %22 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %23 = getelementptr inbounds i8, ptr %22, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  %.not37 = icmp eq ptr %24, null
  br i1 %.not37, label %28, label %25

25:                                               ; preds = %21
  invoke void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %28 unwind label %26

26:                                               ; preds = %25
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %67

28:                                               ; preds = %25, %21
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %30 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPN7UapkiNS4Cert8CerStore12AddedCerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br i1 %30, label %21, label %._crit_edge

31:                                               ; preds = %._crit_edge
  %32 = call noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %33 = call noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo13getSidEncodedEv(ptr noundef nonnull align 8 dereferenceable(216) %7)
  %34 = getelementptr inbounds i8, ptr %1, i64 536
  %35 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore12getCertBySIDEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %32, ptr noundef %33, ptr noundef nonnull %34)
          to label %42 unwind label %13

36:                                               ; preds = %._crit_edge
  %37 = call noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %38 = call noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo13getSidEncodedEv(ptr noundef nonnull align 8 dereferenceable(216) %7)
  %39 = getelementptr inbounds i8, ptr %1, i64 536
  %40 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore14getCertByKeyIdEPK12ByteArray_stPPNS0_7CerItemE(ptr noundef nonnull align 8 dereferenceable(96) %37, ptr noundef %38, ptr noundef nonnull %39)
          to label %42 unwind label %13

41:                                               ; preds = %._crit_edge
  invoke void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 1183, i32 noundef 4145, ptr noundef null)
          to label %66 unwind label %13

42:                                               ; preds = %36, %31
  %.0 = phi i32 [ %35, %31 ], [ %40, %36 ]
  %43 = icmp eq i32 %.0, 0
  br i1 %43, label %44, label %55

44:                                               ; preds = %42
  %45 = getelementptr inbounds i8, ptr %0, i64 2544
  %46 = getelementptr inbounds i8, ptr %1, i64 536
  invoke void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %45, ptr noundef nonnull align 8 dereferenceable(8) %46)
          to label %47 unwind label %13

47:                                               ; preds = %44
  %48 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo21getSignatureAlgorithmEv(ptr noundef nonnull align 8 dereferenceable(216) %7)
  %49 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %48) #5
  %50 = call noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo21getSignedAttrsEncodedEv(ptr noundef nonnull align 8 dereferenceable(216) %7)
  %51 = load ptr, ptr %46, align 8, !tbaa !12
  %52 = call noundef ptr @_ZNK7UapkiNS4Cert7CerItem7getSpkiEv(ptr noundef nonnull align 8 dereferenceable(401) %51)
  %53 = call noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo12getSignatureEv(ptr noundef nonnull align 8 dereferenceable(216) %7)
  %54 = invoke noundef i32 @_ZN7UapkiNS6Verify15verifySignatureEPKcPK12ByteArray_stbS5_S5_(ptr noundef %49, ptr noundef %50, i1 noundef zeroext false, ptr noundef %52, ptr noundef %53)
          to label %55 unwind label %13

55:                                               ; preds = %47, %42
  %.1 = phi i32 [ %.0, %42 ], [ %54, %47 ]
  switch i32 %.1, label %64 [
    i32 0, label %.sink.split
    i32 3, label %56
    i32 4161, label %57
  ]

56:                                               ; preds = %55
  br label %.sink.split

57:                                               ; preds = %55
  %58 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 4161, ptr %58, align 4, !tbaa !39
  %59 = getelementptr inbounds i8, ptr %1, i64 548
  store i32 2, ptr %59, align 4, !tbaa !77
  %60 = call noundef ptr @_ZNK7UapkiNS5Pkcs716SignedDataParser10SignerInfo13getSidEncodedEv(ptr noundef nonnull align 8 dereferenceable(216) %7)
  %61 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator20addExpectedCertBySIDENS0_10CertEntityEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef 7, ptr noundef %60)
          to label %62 unwind label %13

62:                                               ; preds = %57
  %.not36 = icmp eq i32 %61, 0
  br i1 %.not36, label %66, label %63

63:                                               ; preds = %62
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 1206, i32 noundef %61)
          to label %66 unwind label %13

64:                                               ; preds = %55
  br label %.sink.split

.sink.split:                                      ; preds = %55, %64, %56
  %.sink = phi i32 [ 4, %56 ], [ 3, %64 ], [ 5, %55 ]
  %65 = getelementptr inbounds i8, ptr %1, i64 548
  store i32 %.sink, ptr %65, align 4, !tbaa !77
  br label %66

66:                                               ; preds = %.sink.split, %62, %63, %41, %12
  %.2 = phi i32 [ %10, %12 ], [ 4145, %41 ], [ %61, %63 ], [ 4161, %62 ], [ %.1, %.sink.split ]
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  ret i32 %.2

67:                                               ; preds = %26, %13
  %.pn = phi { ptr, i32 } [ %14, %13 ], [ %27, %26 ]
  call void @_ZNSt6vectorIN7UapkiNS4Cert8CerStore12AddedCerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { 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, !10, i64 8}
!6 = !{!"_ZTSN7UapkiNS4Cert8CerStore12AddedCerItemE", !7, i64 0, !10, i64 8, !11, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!13, !10, i64 536}
!13 = !{!"_ZTSN7UapkiNS3Doc6Verify13AttrTimeStampE", !14, i64 0, !29, i64 240, !21, i64 456, !21, i64 488, !31, i64 520, !23, i64 528, !10, i64 536, !38, i64 544, !38, i64 548}
!14 = !{!"_ZTSN7UapkiNS3Tsp13TsTokenParserE", !15, i64 0, !21, i64 136, !21, i64 168, !10, i64 200, !10, i64 208, !23, i64 216, !11, i64 224, !11, i64 225, !10, i64 232}
!15 = !{!"_ZTSN7UapkiNS5Pkcs716SignedDataParserE", !10, i64 0, !7, i64 8, !16, i64 16, !20, i64 40, !24, i64 80, !24, i64 104, !23, i64 128}
!16 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!20 = !{!"_ZTSN7UapkiNS5Pkcs723EncapsulatedContentInfoE", !21, i64 0, !10, i64 32}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !23, i64 8, !8, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!23 = !{!"long", !8, i64 0}
!24 = !{!"_ZTSN7UapkiNS8VectorBAE", !25, i64 0}
!25 = !{!"_ZTSSt6vectorIP12ByteArray_stSaIS1_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIP12ByteArray_stSaIS1_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIP12ByteArray_stSaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!29 = !{!"_ZTSN7UapkiNS5Pkcs716SignedDataParser10SignerInfoE", !10, i64 0, !7, i64 8, !30, i64 16, !31, i64 24, !32, i64 32, !33, i64 72, !32, i64 96, !31, i64 136, !33, i64 144, !31, i64 168, !37, i64 176}
!30 = !{!"_ZTSN7UapkiNS5Pkcs720SignerIdentifierTypeE", !8, i64 0}
!31 = !{!"_ZTSN7UapkiNS7SmartBAE", !10, i64 0}
!32 = !{!"_ZTSN7UapkiNS19AlgorithmIdentifierE", !21, i64 0, !10, i64 32}
!33 = !{!"_ZTSSt6vectorIN7UapkiNS9AttributeESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS9AttributeESaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS9AttributeESaIS1_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS9AttributeESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!37 = !{!"_ZTSN7UapkiNS5Pkcs716SignedDataParser10SignerInfo14MandatoryAttrsE", !21, i64 0, !31, i64 32}
!38 = !{!"_ZTSN7UapkiNS12VerifyStatusE", !8, i64 0}
!39 = !{!40, !7, i64 92}
!40 = !{!"_ZTSN7UapkiNS3Doc6Verify18VerifiedSignerInfoE", !41, i64 0, !11, i64 88, !7, i64 92, !29, i64 96, !10, i64 312, !50, i64 320, !38, i64 324, !38, i64 328, !23, i64 336, !51, i64 344, !38, i64 368, !21, i64 376, !13, i64 408, !13, i64 960, !55, i64 1512, !13, i64 1728, !63, i64 2280, !67, i64 2408, !11, i64 2412, !11, i64 2413, !23, i64 2416, !68, i64 2424, !72, i64 2448}
!41 = !{!"_ZTSN7UapkiNS13CertValidator13CertValidatorE", !10, i64 0, !10, i64 8, !10, i64 16, !42, i64 24, !46, i64 48, !31, i64 72, !31, i64 80}
!42 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator16ExpectedCertItemESaIS3_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!46 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator15ExpectedCrlItemESaIS3_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!50 = !{!"_ZTSN7UapkiNS3Doc6Verify16ValidationStatusE", !8, i64 0}
!51 = !{!"_ZTSSt6vectorIN7UapkiNS10AttrCertIdESaIS1_EE", !52, i64 0}
!52 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS10AttrCertIdESaIS1_EE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS10AttrCertIdESaIS1_EE12_Vector_implE", !54, i64 0}
!54 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS10AttrCertIdESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!55 = !{!"_ZTSN7UapkiNS3Doc6Verify11CadesXlInfoE", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !51, i64 8, !24, i64 32, !56, i64 56, !57, i64 72, !24, i64 160, !38, i64 184, !59, i64 192}
!56 = !{!"_ZTSN7UapkiNS15AttributeHelper20RevocationRefsParserE", !10, i64 0, !23, i64 8}
!57 = !{!"_ZTSN7UapkiNS15AttributeHelper22RevocationValuesParserE", !24, i64 0, !24, i64 24, !58, i64 48}
!58 = !{!"_ZTSN7UapkiNS9AttributeE", !21, i64 0, !10, i64 32}
!59 = !{!"_ZTSSt6vectorIN7UapkiNS12VerifyStatusESaIS1_EE", !60, i64 0}
!60 = !{!"_ZTSSt12_Vector_baseIN7UapkiNS12VerifyStatusESaIS1_EE", !61, i64 0}
!61 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS12VerifyStatusESaIS1_EE12_Vector_implE", !62, i64 0}
!62 = !{!"_ZTSNSt12_Vector_baseIN7UapkiNS12VerifyStatusESaIS1_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!63 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperE", !10, i64 0, !64, i64 8, !65, i64 16, !66, i64 88, !31, i64 120}
!64 = !{!"_ZTS7HashAlg", !8, i64 0}
!65 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3Helper12ATSHashIndexE", !24, i64 0, !24, i64 24, !24, i64 48}
!66 = !{!"_ZTSN7UapkiNS5Pkcs716ArchiveTs3HelperUt_E", !31, i64 0, !31, i64 8, !31, i64 16, !31, i64 24}
!67 = !{!"_ZTSN7UapkiNS15SignatureFormatE", !8, i64 0}
!68 = !{!"_ZTSSt6vectorIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE", !69, i64 0}
!69 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE", !70, i64 0}
!70 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE12_Vector_implE", !71, i64 0}
!71 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS13CertValidator13CertChainItemESaIS3_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!72 = !{!"_ZTSN7UapkiNS3Doc6Verify18VerifiedSignerInfo14ListAddedCertsE", !73, i64 0, !73, i64 24, !73, i64 48, !73, i64 72, !73, i64 96}
!73 = !{!"_ZTSSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE", !74, i64 0}
!74 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS4Cert7CerItemESaIS3_EE", !75, i64 0}
!75 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS4Cert7CerItemESaIS3_EE12_Vector_implE", !76, i64 0}
!76 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS4Cert7CerItemESaIS3_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!77 = !{!13, !38, i64 548}


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