; 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.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 }
%"class.__gnu_cxx::__normal_iterator.50" = 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::SmartBA" = type { 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" }

@.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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568), i32 noundef, ptr noundef, ptr noundef) #1 align 2

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

declare noundef zeroext i1 @_ZN7UapkiNS4Cert15addCertIfUniqueERSt6vectorIPNS0_7CerItemESaIS3_EES3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #3

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

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

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

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

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

declare void @_ZN7UapkiNS13CertValidator13CertChainItem9setIssuerEPNS_4Cert7CerItemE(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef) #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo14buildCertChainEv(ptr noundef nonnull align 8 dereferenceable(2568) %0) #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector.24", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::vector.24", align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca %"class.std::vector.24", align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %33 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %37 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %38 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %39 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %40 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %39, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = icmp ne ptr %41, null
  br i1 %42, label %43, label %180

43:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store ptr null, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %39, i32 0, i32 4
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  %46 = invoke noundef i32 @_ZN7UapkiNS4Cert7CerItem6verifyEPKS1_b(ptr noundef nonnull align 8 dereferenceable(401) %45, ptr noundef null, i1 noundef zeroext false)
          to label %47 unwind label %58

47:                                               ; preds = %43
  br label %48

48:                                               ; preds = %47
  %49 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %39, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  %51 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568) %39, i32 noundef 1, ptr noundef %50, ptr noundef %8)
          to label %52 unwind label %58

52:                                               ; preds = %48
  store i32 %51, ptr %4, align 4, !tbaa !9
  %53 = load i32, ptr %4, align 4, !tbaa !9
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %62

55:                                               ; preds = %52
  %56 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 543, i32 noundef %56)
          to label %57 unwind label %58

57:                                               ; preds = %55
  store i32 4, ptr %14, align 4
  br label %176

58:                                               ; preds = %128, %122, %113, %66, %64, %55, %48, %43
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %9, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %10, align 4
  br label %179

62:                                               ; preds = %52
  br label %63

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63
  %65 = invoke noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %39)
          to label %66 unwind label %58

66:                                               ; preds = %64
  %67 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %39, i32 0, i32 4
  %68 = load ptr, ptr %67, align 8, !tbaa !11
  %69 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore13getChainCertsEPKNS0_7CerItemERSt6vectorIPS2_SaIS6_EEPPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(96) %65, ptr noundef %68, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef %6)
          to label %70 unwind label %58

70:                                               ; preds = %66
  store i32 %69, ptr %4, align 4, !tbaa !9
  %71 = load i32, ptr %4, align 4, !tbaa !9
  %72 = icmp eq i32 %71, 0
  br i1 %72, label %73, label %116

73:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store ptr %7, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %74) #5
  %76 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %12, i32 0, i32 0
  store ptr %75, ptr %76, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #5
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %13, i32 0, i32 0
  store ptr %78, ptr %79, align 8
  br label %80

80:                                               ; preds = %109, %73
  %81 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_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 %81, label %83, label %82

82:                                               ; preds = %80
  store i32 5, ptr %14, align 4
  br label %111

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  store ptr %84, ptr %15, align 8, !tbaa !5
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = load ptr, ptr %15, align 8, !tbaa !5
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem9setIssuerEPNS_4Cert7CerItemE(ptr noundef nonnull align 8 dereferenceable(280) %85, ptr noundef %87)
          to label %88 unwind label %99

88:                                               ; preds = %83
  br label %89

89:                                               ; preds = %88
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = load ptr, ptr %90, align 8, !tbaa !5
  %92 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568) %39, i32 noundef 4, ptr noundef %91, ptr noundef %8)
          to label %93 unwind label %99

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

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

98:                                               ; preds = %96
  store i32 4, ptr %14, align 4
  br label %106

99:                                               ; preds = %96, %89, %83
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %9, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #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 %179

103:                                              ; preds = %93
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  store i32 0, ptr %14, align 4
  br label %106

106:                                              ; preds = %105, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %107 = load i32, ptr %14, align 4
  switch i32 %107, label %111 [
    i32 0, label %108
  ]

108:                                              ; preds = %106
  br label %109

109:                                              ; preds = %108
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br label %80

111:                                              ; preds = %106, %82
  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
  %112 = load i32, ptr %14, align 4
  switch i32 %112, label %176 [
    i32 5, label %113
  ]

113:                                              ; preds = %111
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem7setRootEv(ptr noundef nonnull align 8 dereferenceable(280) %114)
          to label %115 unwind label %58

115:                                              ; preds = %113
  br label %175

116:                                              ; preds = %70
  %117 = load i32, ptr %4, align 4, !tbaa !9
  %118 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %39, i32 0, i32 2
  store i32 %117, ptr %118, align 4, !tbaa !76
  %119 = load i32, ptr %4, align 4, !tbaa !9
  %120 = icmp eq i32 %119, 4164
  br i1 %120, label %121, label %174

121:                                              ; preds = %116
  br label %122

122:                                              ; preds = %121
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator22addExpectedCertByKeyIdENS0_10CertEntityEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(88) %39, i32 noundef 4, ptr noundef %123)
          to label %125 unwind label %58

125:                                              ; preds = %122
  store i32 %124, ptr %4, align 4, !tbaa !9
  %126 = load i32, ptr %4, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %131

128:                                              ; preds = %125
  %129 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 555, i32 noundef %129)
          to label %130 unwind label %58

130:                                              ; preds = %128
  store i32 4, ptr %14, align 4
  br label %176

131:                                              ; preds = %125
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %134 = load ptr, ptr %16, align 8, !tbaa !5
  %135 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %134) #5
  %136 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %17, i32 0, i32 0
  store ptr %135, ptr %136, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %137 = load ptr, ptr %16, align 8, !tbaa !5
  %138 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %137) #5
  %139 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %18, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  br label %140

140:                                              ; preds = %169, %133
  %141 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br i1 %141, label %143, label %142

142:                                              ; preds = %140
  store i32 11, ptr %14, align 4
  br label %171

143:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  store ptr %144, ptr %19, align 8, !tbaa !5
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = load ptr, ptr %19, align 8, !tbaa !5
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem9setIssuerEPNS_4Cert7CerItemE(ptr noundef nonnull align 8 dereferenceable(280) %145, ptr noundef %147)
          to label %148 unwind label %159

148:                                              ; preds = %143
  br label %149

149:                                              ; preds = %148
  %150 = load ptr, ptr %19, align 8, !tbaa !5
  %151 = load ptr, ptr %150, align 8, !tbaa !5
  %152 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568) %39, i32 noundef 4, ptr noundef %151, ptr noundef %8)
          to label %153 unwind label %159

153:                                              ; preds = %149
  store i32 %152, ptr %4, align 4, !tbaa !9
  %154 = load i32, ptr %4, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %163

156:                                              ; preds = %153
  %157 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 558, i32 noundef %157)
          to label %158 unwind label %159

158:                                              ; preds = %156
  store i32 4, ptr %14, align 4
  br label %166

159:                                              ; preds = %156, %149, %143
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %9, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %179

163:                                              ; preds = %153
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  store i32 0, ptr %14, align 4
  br label %166

166:                                              ; preds = %165, %158
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %167 = load i32, ptr %14, align 4
  switch i32 %167, label %171 [
    i32 0, label %168
  ]

168:                                              ; preds = %166
  br label %169

169:                                              ; preds = %168
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  br label %140

171:                                              ; preds = %166, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %172 = load i32, ptr %14, align 4
  switch i32 %172, label %176 [
    i32 11, label %173
  ]

173:                                              ; preds = %171
  br label %174

174:                                              ; preds = %173, %116
  br label %175

175:                                              ; preds = %174, %115
  store i32 0, ptr %14, align 4
  br label %176

176:                                              ; preds = %175, %171, %130, %111, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %177 = load i32, ptr %14, align 4
  switch i32 %177, label %358 [
    i32 0, label %178
    i32 4, label %356
  ]

178:                                              ; preds = %176
  br label %180

179:                                              ; preds = %159, %99, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %360

180:                                              ; preds = %178, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %181 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %39, i32 0, i32 22
  %182 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::VerifiedSignerInfo::ListAddedCerts", ptr %181, i32 0, i32 4
  store ptr %182, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %183 = load ptr, ptr %20, align 8, !tbaa !5
  %184 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %183) #5
  %185 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %21, i32 0, i32 0
  store ptr %184, ptr %185, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %186 = load ptr, ptr %20, align 8, !tbaa !5
  %187 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %186) #5
  %188 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %22, i32 0, i32 0
  store ptr %187, ptr %188, align 8
  br label %189

189:                                              ; preds = %198, %180
  %190 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  br i1 %190, label %192, label %191

191:                                              ; preds = %189
  store i32 15, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %204

192:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  store ptr %193, ptr %23, align 8, !tbaa !5
  %194 = load ptr, ptr %23, align 8, !tbaa !5
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  %196 = invoke noundef zeroext i1 @_ZN7UapkiNS4Cert15addCertIfUniqueERSt6vectorIPNS0_7CerItemESaIS3_EES3_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef %195)
          to label %197 unwind label %200

197:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %198

198:                                              ; preds = %197
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #5
  br label %189

200:                                              ; preds = %192
  %201 = landingpad { ptr, i32 }
          cleanup
  %202 = extractvalue { ptr, i32 } %201, 0
  store ptr %202, ptr %9, align 8
  %203 = extractvalue { ptr, i32 } %201, 1
  store i32 %203, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %360

204:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store ptr %5, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %205 = load ptr, ptr %24, align 8, !tbaa !5
  %206 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %205) #5
  %207 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %25, i32 0, i32 0
  store ptr %206, ptr %207, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %208 = load ptr, ptr %24, align 8, !tbaa !5
  %209 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %208) #5
  %210 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %26, i32 0, i32 0
  store ptr %209, ptr %210, align 8
  br label %211

211:                                              ; preds = %350, %204
  %212 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #5
  br i1 %212, label %214, label %213

213:                                              ; preds = %211
  store i32 17, ptr %14, align 4
  br label %353

214:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  store ptr %215, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  store ptr null, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  store ptr null, ptr %30, align 8, !tbaa !5
  br label %216

216:                                              ; preds = %214
  %217 = load ptr, ptr %27, align 8, !tbaa !5
  %218 = load ptr, ptr %217, align 8, !tbaa !5
  %219 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568) %39, i32 noundef 7, ptr noundef %218, ptr noundef %30)
          to label %220 unwind label %226

220:                                              ; preds = %216
  store i32 %219, ptr %4, align 4, !tbaa !9
  %221 = load i32, ptr %4, align 4, !tbaa !9
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %223, label %230

223:                                              ; preds = %220
  %224 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 573, i32 noundef %224)
          to label %225 unwind label %226

225:                                              ; preds = %223
  store i32 4, ptr %14, align 4
  br label %344

226:                                              ; preds = %296, %290, %281, %234, %232, %223, %216
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %9, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %10, align 4
  br label %352

230:                                              ; preds = %220
  br label %231

231:                                              ; preds = %230
  br label %232

232:                                              ; preds = %231
  %233 = invoke noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %39)
          to label %234 unwind label %226

234:                                              ; preds = %232
  %235 = load ptr, ptr %27, align 8, !tbaa !5
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  %237 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore13getChainCertsEPKNS0_7CerItemERSt6vectorIPS2_SaIS6_EEPPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(96) %233, ptr noundef %236, ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef %28)
          to label %238 unwind label %226

238:                                              ; preds = %234
  store i32 %237, ptr %4, align 4, !tbaa !9
  %239 = load i32, ptr %4, align 4, !tbaa !9
  %240 = icmp eq i32 %239, 0
  br i1 %240, label %241, label %284

241:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  store ptr %29, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #5
  %242 = load ptr, ptr %31, align 8, !tbaa !5
  %243 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %242) #5
  %244 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %32, i32 0, i32 0
  store ptr %243, ptr %244, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #5
  %245 = load ptr, ptr %31, align 8, !tbaa !5
  %246 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %245) #5
  %247 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %33, i32 0, i32 0
  store ptr %246, ptr %247, align 8
  br label %248

248:                                              ; preds = %277, %241
  %249 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33) #5
  br i1 %249, label %251, label %250

250:                                              ; preds = %248
  store i32 21, ptr %14, align 4
  br label %279

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #5
  store ptr %252, ptr %34, align 8, !tbaa !5
  %253 = load ptr, ptr %30, align 8, !tbaa !5
  %254 = load ptr, ptr %34, align 8, !tbaa !5
  %255 = load ptr, ptr %254, align 8, !tbaa !5
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem9setIssuerEPNS_4Cert7CerItemE(ptr noundef nonnull align 8 dereferenceable(280) %253, ptr noundef %255)
          to label %256 unwind label %267

256:                                              ; preds = %251
  br label %257

257:                                              ; preds = %256
  %258 = load ptr, ptr %34, align 8, !tbaa !5
  %259 = load ptr, ptr %258, align 8, !tbaa !5
  %260 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568) %39, i32 noundef 4, ptr noundef %259, ptr noundef %30)
          to label %261 unwind label %267

261:                                              ; preds = %257
  store i32 %260, ptr %4, align 4, !tbaa !9
  %262 = load i32, ptr %4, align 4, !tbaa !9
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %264, label %271

264:                                              ; preds = %261
  %265 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 578, i32 noundef %265)
          to label %266 unwind label %267

266:                                              ; preds = %264
  store i32 4, ptr %14, align 4
  br label %274

267:                                              ; preds = %264, %257, %251
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %9, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  br label %352

271:                                              ; preds = %261
  br label %272

272:                                              ; preds = %271
  br label %273

273:                                              ; preds = %272
  store i32 0, ptr %14, align 4
  br label %274

274:                                              ; preds = %273, %266
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  %275 = load i32, ptr %14, align 4
  switch i32 %275, label %279 [
    i32 0, label %276
  ]

276:                                              ; preds = %274
  br label %277

277:                                              ; preds = %276
  %278 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %32) #5
  br label %248

279:                                              ; preds = %274, %250
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  %280 = load i32, ptr %14, align 4
  switch i32 %280, label %344 [
    i32 21, label %281
  ]

281:                                              ; preds = %279
  %282 = load ptr, ptr %30, align 8, !tbaa !5
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem9setIssuerEPNS_4Cert7CerItemE(ptr noundef nonnull align 8 dereferenceable(280) %282, ptr noundef null)
          to label %283 unwind label %226

283:                                              ; preds = %281
  br label %343

284:                                              ; preds = %238
  %285 = load i32, ptr %4, align 4, !tbaa !9
  %286 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %39, i32 0, i32 2
  store i32 %285, ptr %286, align 4, !tbaa !76
  %287 = load i32, ptr %4, align 4, !tbaa !9
  %288 = icmp eq i32 %287, 4164
  br i1 %288, label %289, label %342

289:                                              ; preds = %284
  br label %290

290:                                              ; preds = %289
  %291 = load ptr, ptr %28, align 8, !tbaa !5
  %292 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator22addExpectedCertByKeyIdENS0_10CertEntityEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(88) %39, i32 noundef 4, ptr noundef %291)
          to label %293 unwind label %226

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

296:                                              ; preds = %293
  %297 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 585, i32 noundef %297)
          to label %298 unwind label %226

298:                                              ; preds = %296
  store i32 4, ptr %14, align 4
  br label %344

299:                                              ; preds = %293
  br label %300

300:                                              ; preds = %299
  br label %301

301:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  store ptr %29, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  %302 = load ptr, ptr %35, align 8, !tbaa !5
  %303 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %302) #5
  %304 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %36, i32 0, i32 0
  store ptr %303, ptr %304, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  %305 = load ptr, ptr %35, align 8, !tbaa !5
  %306 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %305) #5
  %307 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.50", ptr %37, i32 0, i32 0
  store ptr %306, ptr %307, align 8
  br label %308

308:                                              ; preds = %337, %301
  %309 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull align 8 dereferenceable(8) %37) #5
  br i1 %309, label %311, label %310

310:                                              ; preds = %308
  store i32 27, ptr %14, align 4
  br label %339

311:                                              ; preds = %308
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  %312 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #5
  store ptr %312, ptr %38, align 8, !tbaa !5
  %313 = load ptr, ptr %30, align 8, !tbaa !5
  %314 = load ptr, ptr %38, align 8, !tbaa !5
  %315 = load ptr, ptr %314, align 8, !tbaa !5
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem9setIssuerEPNS_4Cert7CerItemE(ptr noundef nonnull align 8 dereferenceable(280) %313, ptr noundef %315)
          to label %316 unwind label %327

316:                                              ; preds = %311
  br label %317

317:                                              ; preds = %316
  %318 = load ptr, ptr %38, align 8, !tbaa !5
  %319 = load ptr, ptr %318, align 8, !tbaa !5
  %320 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568) %39, i32 noundef 4, ptr noundef %319, ptr noundef %30)
          to label %321 unwind label %327

321:                                              ; preds = %317
  store i32 %320, ptr %4, align 4, !tbaa !9
  %322 = load i32, ptr %4, align 4, !tbaa !9
  %323 = icmp ne i32 %322, 0
  br i1 %323, label %324, label %331

324:                                              ; preds = %321
  %325 = load i32, ptr %4, align 4, !tbaa !9
  invoke void @stacktrace_add(ptr noundef @.str, i64 noundef 588, i32 noundef %325)
          to label %326 unwind label %327

326:                                              ; preds = %324
  store i32 4, ptr %14, align 4
  br label %334

327:                                              ; preds = %324, %317, %311
  %328 = landingpad { ptr, i32 }
          cleanup
  %329 = extractvalue { ptr, i32 } %328, 0
  store ptr %329, ptr %9, align 8
  %330 = extractvalue { ptr, i32 } %328, 1
  store i32 %330, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  br label %352

331:                                              ; preds = %321
  br label %332

332:                                              ; preds = %331
  br label %333

333:                                              ; preds = %332
  store i32 0, ptr %14, align 4
  br label %334

334:                                              ; preds = %333, %326
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  %335 = load i32, ptr %14, align 4
  switch i32 %335, label %339 [
    i32 0, label %336
  ]

336:                                              ; preds = %334
  br label %337

337:                                              ; preds = %336
  %338 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %36) #5
  br label %308

339:                                              ; preds = %334, %310
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  %340 = load i32, ptr %14, align 4
  switch i32 %340, label %344 [
    i32 27, label %341
  ]

341:                                              ; preds = %339
  br label %342

342:                                              ; preds = %341, %284
  br label %343

343:                                              ; preds = %342, %283
  store i32 0, ptr %14, align 4
  br label %344

344:                                              ; preds = %343, %339, %298, %279, %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  %345 = load i32, ptr %14, align 4
  switch i32 %345, label %347 [
    i32 0, label %346
  ]

346:                                              ; preds = %344
  store i32 0, ptr %14, align 4
  br label %347

347:                                              ; preds = %346, %344
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  %348 = load i32, ptr %14, align 4
  switch i32 %348, label %353 [
    i32 0, label %349
  ]

349:                                              ; preds = %347
  br label %350

350:                                              ; preds = %349
  %351 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #5
  br label %211

352:                                              ; preds = %327, %267, %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  br label %360

353:                                              ; preds = %347, %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  %354 = load i32, ptr %14, align 4
  switch i32 %354, label %358 [
    i32 17, label %355
    i32 4, label %356
  ]

355:                                              ; preds = %353
  br label %356

356:                                              ; preds = %355, %353, %176
  %357 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %357, ptr %2, align 4
  store i32 1, ptr %14, align 4
  br label %358

358:                                              ; preds = %356, %353, %176
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  %359 = load i32, ptr %2, align 4
  ret i32 %359

360:                                              ; preds = %352, %200, %179
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %361

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

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

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

declare noundef i32 @_ZN7UapkiNS4Cert8CerStore13getChainCertsEPKNS0_7CerItemERSt6vectorIPS2_SaIS6_EEPPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #3

declare void @_ZN7UapkiNS13CertValidator13CertChainItem7setRootEv(ptr noundef nonnull align 8 dereferenceable(280)) #3

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator22addExpectedCertByKeyIdENS0_10CertEntityEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, ptr noundef) #3

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

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


; 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.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 }
%"class.__gnu_cxx::__normal_iterator.50" = 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568), i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1 align 2

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

declare noundef zeroext i1 @_ZN7UapkiNS4Cert15addCertIfUniqueERSt6vectorIPNS0_7CerItemESaIS3_EES3_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #3

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

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

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

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

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

declare void @_ZN7UapkiNS13CertValidator13CertChainItem9setIssuerEPNS_4Cert7CerItemE(ptr noundef nonnull align 8 dereferenceable(280), ptr noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo14buildCertChainEv(ptr noundef nonnull align 8 dereferenceable(2568) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.24", align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::vector.24", align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::vector.24", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %18 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.50", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %21 = getelementptr inbounds i8, ptr %0, i64 312
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %.not = icmp eq ptr %22, null
  br i1 %.not, label %84, label %23

23:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store ptr null, ptr %3, align 8, !tbaa !74
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store ptr null, ptr %5, align 8, !tbaa !74
  %24 = load ptr, ptr %21, align 8, !tbaa !5
  %25 = invoke noundef i32 @_ZN7UapkiNS4Cert7CerItem6verifyEPKS1_b(ptr noundef nonnull align 8 dereferenceable(401) %24, ptr noundef null, i1 noundef zeroext false)
          to label %26 unwind label %31

26:                                               ; preds = %23
  %27 = load ptr, ptr %21, align 8, !tbaa !5
  %28 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568) %0, i32 noundef 1, ptr noundef %27, ptr noundef nonnull %5)
          to label %29 unwind label %31

29:                                               ; preds = %26
  %.not102 = icmp eq i32 %28, 0
  br i1 %.not102, label %33, label %30

30:                                               ; preds = %29
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 543, i32 noundef %28)
          to label %.thread131 unwind label %31

31:                                               ; preds = %64, %60, %._crit_edge197, %33, %30, %26, %23
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %83

33:                                               ; preds = %29
  %34 = call noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %35 = load ptr, ptr %21, align 8, !tbaa !5
  %36 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore13getChainCertsEPKNS0_7CerItemERSt6vectorIPS2_SaIS6_EEPPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(96) %34, ptr noundef %35, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull %3)
          to label %37 unwind label %31

37:                                               ; preds = %33
  %38 = icmp eq i32 %36, 0
  br i1 %38, label %39, label %57

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %40 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %40, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %41 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %41, ptr %7, align 8
  %42 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %42, label %.lr.ph196, label %._crit_edge197

.lr.ph196:                                        ; preds = %39, %52
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %44 = load ptr, ptr %5, align 8, !tbaa !74
  %45 = load ptr, ptr %43, align 8, !tbaa !74
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem9setIssuerEPNS_4Cert7CerItemE(ptr noundef nonnull align 8 dereferenceable(280) %44, ptr noundef %45)
          to label %46 unwind label %.loopexit166

46:                                               ; preds = %.lr.ph196
  %47 = load ptr, ptr %43, align 8, !tbaa !74
  %48 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568) %0, i32 noundef 4, ptr noundef %47, ptr noundef nonnull %5)
          to label %49 unwind label %.loopexit166

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

50:                                               ; preds = %49
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 548, i32 noundef %48)
          to label %55 unwind label %.loopexit.split-lp167

.loopexit166:                                     ; preds = %.lr.ph196, %46
  %lpad.loopexit168 = landingpad { ptr, i32 }
          cleanup
  br label %51

.loopexit.split-lp167:                            ; preds = %50
  %lpad.loopexit.split-lp169 = landingpad { ptr, i32 }
          cleanup
  br label %51

51:                                               ; preds = %.loopexit.split-lp167, %.loopexit166
  %lpad.phi170 = phi { ptr, i32 } [ %lpad.loopexit168, %.loopexit166 ], [ %lpad.loopexit.split-lp169, %.loopexit.split-lp167 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %83

52:                                               ; preds = %49
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  br i1 %54, label %.lr.ph196, label %._crit_edge197

55:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %.thread131

._crit_edge197:                                   ; preds = %52, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %56 = load ptr, ptr %5, align 8, !tbaa !74
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem7setRootEv(ptr noundef nonnull align 8 dereferenceable(280) %56)
          to label %82 unwind label %31

57:                                               ; preds = %37
  %58 = getelementptr inbounds i8, ptr %0, i64 92
  store i32 %36, ptr %58, align 4, !tbaa !75
  %59 = icmp eq i32 %36, 4164
  br i1 %59, label %60, label %82

60:                                               ; preds = %57
  %61 = load ptr, ptr %3, align 8, !tbaa !74
  %62 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator22addExpectedCertByKeyIdENS0_10CertEntityEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef 4, ptr noundef %61)
          to label %63 unwind label %31

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

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

65:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %66 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %66, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %67 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  store ptr %67, ptr %9, align 8
  %68 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %68, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %65, %78
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %70 = load ptr, ptr %5, align 8, !tbaa !74
  %71 = load ptr, ptr %69, align 8, !tbaa !74
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem9setIssuerEPNS_4Cert7CerItemE(ptr noundef nonnull align 8 dereferenceable(280) %70, ptr noundef %71)
          to label %72 unwind label %.loopexit171

72:                                               ; preds = %.lr.ph
  %73 = load ptr, ptr %69, align 8, !tbaa !74
  %74 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568) %0, i32 noundef 4, ptr noundef %73, ptr noundef nonnull %5)
          to label %75 unwind label %.loopexit171

75:                                               ; preds = %72
  %.not104 = icmp eq i32 %74, 0
  br i1 %.not104, label %78, label %76

76:                                               ; preds = %75
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 558, i32 noundef %74)
          to label %81 unwind label %.loopexit.split-lp172

.loopexit171:                                     ; preds = %.lr.ph, %72
  %lpad.loopexit173 = landingpad { ptr, i32 }
          cleanup
  br label %77

.loopexit.split-lp172:                            ; preds = %76
  %lpad.loopexit.split-lp174 = landingpad { ptr, i32 }
          cleanup
  br label %77

77:                                               ; preds = %.loopexit.split-lp172, %.loopexit171
  %lpad.phi175 = phi { ptr, i32 } [ %lpad.loopexit173, %.loopexit171 ], [ %lpad.loopexit.split-lp174, %.loopexit.split-lp172 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %83

78:                                               ; preds = %75
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  %80 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  br i1 %80, label %.lr.ph, label %._crit_edge

81:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %.thread131

._crit_edge:                                      ; preds = %78, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %82

.thread131:                                       ; preds = %55, %30, %64, %81
  %.5.ph = phi i32 [ %74, %81 ], [ %62, %64 ], [ %28, %30 ], [ %48, %55 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %159

82:                                               ; preds = %._crit_edge, %._crit_edge197, %57
  %.5 = phi i32 [ 0, %._crit_edge197 ], [ %36, %57 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %84

83:                                               ; preds = %77, %51, %31
  %.pn = phi { ptr, i32 } [ %32, %31 ], [ %lpad.phi170, %51 ], [ %lpad.phi175, %77 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  br label %160

84:                                               ; preds = %82, %1
  %.6 = phi i32 [ %.5, %82 ], [ 0, %1 ]
  %85 = getelementptr inbounds i8, ptr %0, i64 2544
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %86 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #5
  store ptr %86, ptr %10, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %87 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %85) #5
  store ptr %87, ptr %11, align 8
  %88 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %88, label %.lr.ph199, label %._crit_edge200

._crit_edge200:                                   ; preds = %96, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %89 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %89, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %90 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  store ptr %90, ptr %13, align 8
  %91 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_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 %91, label %.lr.ph208, label %.loopexit160

.lr.ph208:                                        ; preds = %._crit_edge200
  %92 = getelementptr inbounds i8, ptr %0, i64 92
  br label %101

.lr.ph199:                                        ; preds = %84, %96
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %94 = load ptr, ptr %93, align 8, !tbaa !74
  %95 = invoke noundef zeroext i1 @_ZN7UapkiNS4Cert15addCertIfUniqueERSt6vectorIPNS0_7CerItemESaIS3_EES3_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %94)
          to label %96 unwind label %99

96:                                               ; preds = %.lr.ph199
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %98 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br i1 %98, label %.lr.ph199, label %._crit_edge200

99:                                               ; preds = %.lr.ph199
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %160

101:                                              ; preds = %.lr.ph208, %155
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  store ptr null, ptr %14, align 8, !tbaa !74
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  store ptr null, ptr %16, align 8, !tbaa !74
  %103 = load ptr, ptr %102, align 8, !tbaa !74
  %104 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568) %0, i32 noundef 7, ptr noundef %103, ptr noundef nonnull %16)
          to label %105 unwind label %.loopexit161

105:                                              ; preds = %101
  %.not107 = icmp eq i32 %104, 0
  br i1 %.not107, label %107, label %106

106:                                              ; preds = %105
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 573, i32 noundef %104)
          to label %.thread151 unwind label %.loopexit.split-lp162

.loopexit161:                                     ; preds = %101, %107, %._crit_edge206, %133
  %lpad.loopexit163 = landingpad { ptr, i32 }
          cleanup
  br label %158

.loopexit.split-lp162:                            ; preds = %106, %137
  %lpad.loopexit.split-lp164 = landingpad { ptr, i32 }
          cleanup
  br label %158

107:                                              ; preds = %105
  %108 = call noundef ptr @_ZNK7UapkiNS13CertValidator13CertValidator11getCerStoreEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  %109 = load ptr, ptr %102, align 8, !tbaa !74
  %110 = invoke noundef i32 @_ZN7UapkiNS4Cert8CerStore13getChainCertsEPKNS0_7CerItemERSt6vectorIPS2_SaIS6_EEPPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(96) %108, ptr noundef %109, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull %14)
          to label %111 unwind label %.loopexit161

111:                                              ; preds = %107
  %112 = icmp eq i32 %110, 0
  br i1 %112, label %113, label %131

113:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  %114 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  store ptr %114, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #5
  %115 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  store ptr %115, ptr %18, align 8
  %116 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br i1 %116, label %.lr.ph205, label %._crit_edge206

.lr.ph205:                                        ; preds = %113, %126
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %118 = load ptr, ptr %16, align 8, !tbaa !74
  %119 = load ptr, ptr %117, align 8, !tbaa !74
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem9setIssuerEPNS_4Cert7CerItemE(ptr noundef nonnull align 8 dereferenceable(280) %118, ptr noundef %119)
          to label %120 unwind label %.loopexit

120:                                              ; preds = %.lr.ph205
  %121 = load ptr, ptr %117, align 8, !tbaa !74
  %122 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568) %0, i32 noundef 4, ptr noundef %121, ptr noundef nonnull %16)
          to label %123 unwind label %.loopexit

123:                                              ; preds = %120
  %.not110 = icmp eq i32 %122, 0
  br i1 %.not110, label %126, label %124

124:                                              ; preds = %123
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 578, i32 noundef %122)
          to label %129 unwind label %.loopexit.split-lp

.loopexit:                                        ; preds = %.lr.ph205, %120
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %125

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

125:                                              ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  br label %158

126:                                              ; preds = %123
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  %128 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #5
  br i1 %128, label %.lr.ph205, label %._crit_edge206

129:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  br label %.thread151

._crit_edge206:                                   ; preds = %126, %113
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  %130 = load ptr, ptr %16, align 8, !tbaa !74
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem9setIssuerEPNS_4Cert7CerItemE(ptr noundef nonnull align 8 dereferenceable(280) %130, ptr noundef null)
          to label %155 unwind label %.loopexit161

131:                                              ; preds = %111
  store i32 %110, ptr %92, align 4, !tbaa !75
  %132 = icmp eq i32 %110, 4164
  br i1 %132, label %133, label %155

133:                                              ; preds = %131
  %134 = load ptr, ptr %14, align 8, !tbaa !74
  %135 = invoke noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator22addExpectedCertByKeyIdENS0_10CertEntityEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(88) %0, i32 noundef 4, ptr noundef %134)
          to label %136 unwind label %.loopexit161

136:                                              ; preds = %133
  %.not108 = icmp eq i32 %135, 0
  br i1 %.not108, label %138, label %137

137:                                              ; preds = %136
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 585, i32 noundef %135)
          to label %.thread151 unwind label %.loopexit.split-lp162

138:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #5
  %139 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  store ptr %139, ptr %19, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #5
  %140 = call ptr @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  store ptr %140, ptr %20, align 8
  %141 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br i1 %141, label %.lr.ph202, label %._crit_edge203

.lr.ph202:                                        ; preds = %138, %151
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  %143 = load ptr, ptr %16, align 8, !tbaa !74
  %144 = load ptr, ptr %142, align 8, !tbaa !74
  invoke void @_ZN7UapkiNS13CertValidator13CertChainItem9setIssuerEPNS_4Cert7CerItemE(ptr noundef nonnull align 8 dereferenceable(280) %143, ptr noundef %144)
          to label %145 unwind label %.loopexit155

145:                                              ; preds = %.lr.ph202
  %146 = load ptr, ptr %142, align 8, !tbaa !74
  %147 = invoke noundef i32 @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo16addCertChainItemENS_13CertValidator10CertEntityEPNS_4Cert7CerItemEPPNS3_13CertChainItemE(ptr noundef nonnull align 8 dereferenceable(2568) %0, i32 noundef 4, ptr noundef %146, ptr noundef nonnull %16)
          to label %148 unwind label %.loopexit155

148:                                              ; preds = %145
  %.not109 = icmp eq i32 %147, 0
  br i1 %.not109, label %151, label %149

149:                                              ; preds = %148
  invoke void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 588, i32 noundef %147)
          to label %154 unwind label %.loopexit.split-lp156

.loopexit155:                                     ; preds = %.lr.ph202, %145
  %lpad.loopexit157 = landingpad { ptr, i32 }
          cleanup
  br label %150

.loopexit.split-lp156:                            ; preds = %149
  %lpad.loopexit.split-lp158 = landingpad { ptr, i32 }
          cleanup
  br label %150

150:                                              ; preds = %.loopexit.split-lp156, %.loopexit155
  %lpad.phi159 = phi { ptr, i32 } [ %lpad.loopexit157, %.loopexit155 ], [ %lpad.loopexit.split-lp158, %.loopexit.split-lp156 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  br label %158

151:                                              ; preds = %148
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %19) #5
  %153 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20) #5
  br i1 %153, label %.lr.ph202, label %._crit_edge203

154:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  br label %.thread151

._crit_edge203:                                   ; preds = %151, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #5
  br label %155

.thread151:                                       ; preds = %129, %106, %137, %154
  %.13.ph = phi i32 [ %147, %154 ], [ %135, %137 ], [ %104, %106 ], [ %122, %129 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %.loopexit160

155:                                              ; preds = %131, %._crit_edge206, %._crit_edge203
  %.13 = phi i32 [ 0, %._crit_edge206 ], [ %110, %131 ], [ 0, %._crit_edge203 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  %156 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  %157 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS4Cert7CerItemESt6vectorIS4_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 %157, label %101, label %.loopexit160

158:                                              ; preds = %.loopexit161, %.loopexit.split-lp162, %150, %125
  %.pn111 = phi { ptr, i32 } [ %lpad.phi, %125 ], [ %lpad.phi159, %150 ], [ %lpad.loopexit163, %.loopexit161 ], [ %lpad.loopexit.split-lp164, %.loopexit.split-lp162 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %160

.loopexit160:                                     ; preds = %155, %._crit_edge200, %.thread151
  %.14 = phi i32 [ %.13.ph, %.thread151 ], [ %.6, %._crit_edge200 ], [ %.13, %155 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %159

159:                                              ; preds = %.thread131, %.loopexit160
  %.0 = phi i32 [ %.14, %.loopexit160 ], [ %.5.ph, %.thread131 ]
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  ret i32 %.0

160:                                              ; preds = %158, %99, %83
  %.pn113 = phi { ptr, i32 } [ %100, %99 ], [ %.pn111, %158 ], [ %.pn, %83 ]
  call void @_ZNSt6vectorIPN7UapkiNS4Cert7CerItemESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #5
  resume { ptr, i32 } %.pn113
}

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

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

declare noundef i32 @_ZN7UapkiNS4Cert8CerStore13getChainCertsEPKNS0_7CerItemERSt6vectorIPS2_SaIS6_EEPPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #3

declare void @_ZN7UapkiNS13CertValidator13CertChainItem7setRootEv(ptr noundef nonnull align 8 dereferenceable(280)) local_unnamed_addr #3

declare noundef i32 @_ZN7UapkiNS13CertValidator13CertValidator22addExpectedCertByKeyIdENS0_10CertEntityEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(88), i32 noundef, ptr noundef) local_unnamed_addr #3

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

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


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