; 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"

%"struct.UapkiNS::Doc::Verify::CollectVerifyStatus" = type { [6 x i8] }
%"class.UapkiNS::Doc::Verify::VerifiedSignerInfo" = type { %"class.UapkiNS::CertValidator::CertValidator", i8, i32, %"class.UapkiNS::Pkcs7::SignedDataParser::SignerInfo", ptr, i32, i32, i32, i64, %"class.std::vector.13", i32, %"class.std::__cxx11::basic_string", %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", %"struct.UapkiNS::Doc::Verify::CadesXlInfo", %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", %"class.UapkiNS::Pkcs7::ArchiveTs3Helper", i32, i8, i8, i64, %"class.std::vector.44", %"struct.UapkiNS::Doc::Verify::VerifiedSignerInfo::ListAddedCerts" }
%"class.UapkiNS::CertValidator::CertValidator" = type { ptr, ptr, ptr, %"class.std::vector.34", %"class.std::vector.39", %"class.UapkiNS::SmartBA", %"class.UapkiNS::SmartBA" }
%"class.std::vector.34" = type { %"struct.std::_Vector_base.35" }
%"struct.std::_Vector_base.35" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCertItem *, std::allocator<UapkiNS::CertValidator::ExpectedCertItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.39" = type { %"struct.std::_Vector_base.40" }
%"struct.std::_Vector_base.40" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::CertValidator::ExpectedCrlItem *, std::allocator<UapkiNS::CertValidator::ExpectedCrlItem *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.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" }
%"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 }

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo18validateSignFormatEmb(ptr noundef nonnull align 8 dereferenceable(2568) %0, i64 noundef %1, i1 noundef zeroext %2) #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i8, align 1
  %7 = alloca %"struct.UapkiNS::Doc::Verify::CollectVerifyStatus", align 1
  %8 = alloca %"struct.UapkiNS::Doc::Verify::CollectVerifyStatus", align 1
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %11 = zext i1 %2 to i8
  store i8 %11, ptr %6, align 1, !tbaa !11
  %12 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 6, ptr %7) #3
  call void @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatusC2Ev(ptr noundef nonnull align 1 dereferenceable(6) %7)
  call void @llvm.lifetime.start.p0(i64 6, ptr %8) #3
  call void @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatusC2Ev(ptr noundef nonnull align 1 dereferenceable(6) %8)
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #3
  %13 = call noundef i32 @_ZNK7UapkiNS3Doc6Verify18VerifiedSignerInfo18getStatusSignatureEv(ptr noundef nonnull align 8 dereferenceable(2568) %12)
  %14 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %8, i32 noundef %13)
  %15 = zext i1 %14 to i8
  store i8 %15, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #3
  %16 = call noundef i32 @_ZNK7UapkiNS3Doc6Verify18VerifiedSignerInfo22getStatusMessageDigestEv(ptr noundef nonnull align 8 dereferenceable(2568) %12)
  %17 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %7, i32 noundef %16)
  %18 = zext i1 %17 to i8
  store i8 %18, ptr %10, align 1, !tbaa !11
  %19 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %20 = trunc i8 %19 to i1
  br i1 %20, label %21, label %43

21:                                               ; preds = %3
  %22 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %23 = trunc i8 %22 to i1
  br i1 %23, label %24, label %27

24:                                               ; preds = %21
  %25 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %26 = trunc i8 %25 to i1
  br i1 %26, label %30, label %27

27:                                               ; preds = %24, %21
  %28 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %29 = trunc i8 %28 to i1
  br i1 %29, label %42, label %30

30:                                               ; preds = %27, %24
  %31 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 8
  %32 = load i64, ptr %31, align 8, !tbaa !15
  %33 = icmp ugt i64 %32, 0
  br i1 %33, label %34, label %37

34:                                               ; preds = %30
  %35 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 8
  %36 = load i64, ptr %35, align 8, !tbaa !15
  br label %39

37:                                               ; preds = %30
  %38 = load i64, ptr %5, align 8, !tbaa !9
  br label %39

39:                                               ; preds = %37, %34
  %40 = phi i64 [ %36, %34 ], [ %38, %37 ]
  %41 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 20
  store i64 %40, ptr %41, align 8, !tbaa !79
  br label %42

42:                                               ; preds = %39, %27
  br label %43

43:                                               ; preds = %42, %3
  %44 = call noundef i32 @_ZNK7UapkiNS3Doc6Verify18VerifiedSignerInfo16getStatusEssCertEv(ptr noundef nonnull align 8 dereferenceable(2568) %12)
  %45 = icmp ne i32 %44, 1
  br i1 %45, label %46, label %49

46:                                               ; preds = %43
  %47 = call noundef i32 @_ZNK7UapkiNS3Doc6Verify18VerifiedSignerInfo16getStatusEssCertEv(ptr noundef nonnull align 8 dereferenceable(2568) %12)
  %48 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %7, i32 noundef %47)
  br label %49

49:                                               ; preds = %46, %43
  %50 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 12
  %51 = call noundef zeroext i1 @_ZNK7UapkiNS3Doc6Verify13AttrTimeStamp9isPresentEv(ptr noundef nonnull align 8 dereferenceable(552) %50)
  br i1 %51, label %52, label %81

52:                                               ; preds = %49
  %53 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 12
  %54 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %53, i32 0, i32 8
  %55 = load i32, ptr %54, align 4, !tbaa !80
  %56 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %8, i32 noundef %55)
  %57 = zext i1 %56 to i8
  store i8 %57, ptr %9, align 1, !tbaa !11
  %58 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 12
  %59 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %58, i32 0, i32 7
  %60 = load i32, ptr %59, align 8, !tbaa !81
  %61 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %7, i32 noundef %60)
  %62 = zext i1 %61 to i8
  store i8 %62, ptr %10, align 1, !tbaa !11
  %63 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %80

65:                                               ; preds = %52
  %66 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %71

68:                                               ; preds = %65
  %69 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %70 = trunc i8 %69 to i1
  br i1 %70, label %74, label %71

71:                                               ; preds = %68, %65
  %72 = load i8, ptr %6, align 1, !tbaa !11, !range !13, !noundef !14
  %73 = trunc i8 %72 to i1
  br i1 %73, label %79, label %74

74:                                               ; preds = %71, %68
  %75 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 12
  %76 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %75, i32 0, i32 5
  %77 = load i64, ptr %76, align 8, !tbaa !82
  %78 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 20
  store i64 %77, ptr %78, align 8, !tbaa !79
  br label %79

79:                                               ; preds = %74, %71
  br label %80

80:                                               ; preds = %79, %52
  br label %81

81:                                               ; preds = %80, %49
  %82 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 13
  %83 = call noundef zeroext i1 @_ZNK7UapkiNS3Doc6Verify13AttrTimeStamp9isPresentEv(ptr noundef nonnull align 8 dereferenceable(552) %82)
  br i1 %83, label %84, label %106

84:                                               ; preds = %81
  %85 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 13
  %86 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %85, i32 0, i32 8
  %87 = load i32, ptr %86, align 4, !tbaa !83
  %88 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %8, i32 noundef %87)
  %89 = zext i1 %88 to i8
  store i8 %89, ptr %9, align 1, !tbaa !11
  %90 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 13
  %91 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %90, i32 0, i32 7
  %92 = load i32, ptr %91, align 8, !tbaa !84
  %93 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %7, i32 noundef %92)
  %94 = zext i1 %93 to i8
  store i8 %94, ptr %10, align 1, !tbaa !11
  %95 = load i8, ptr %9, align 1, !tbaa !11, !range !13, !noundef !14
  %96 = trunc i8 %95 to i1
  br i1 %96, label %97, label %105

97:                                               ; preds = %84
  %98 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %99 = trunc i8 %98 to i1
  br i1 %99, label %100, label %105

100:                                              ; preds = %97
  %101 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 13
  %102 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %101, i32 0, i32 5
  %103 = load i64, ptr %102, align 8, !tbaa !85
  %104 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 20
  store i64 %103, ptr %104, align 8, !tbaa !79
  br label %105

105:                                              ; preds = %100, %97, %84
  br label %106

106:                                              ; preds = %105, %81
  %107 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 17
  %108 = load i32, ptr %107, align 8, !tbaa !86
  %109 = icmp uge i32 %108, 5
  br i1 %109, label %110, label %115

110:                                              ; preds = %106
  %111 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 14
  %112 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::CadesXlInfo", ptr %111, i32 0, i32 9
  %113 = load i32, ptr %112, align 8, !tbaa !87
  %114 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %7, i32 noundef %113)
  br label %115

115:                                              ; preds = %110, %106
  %116 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 15
  %117 = call noundef zeroext i1 @_ZNK7UapkiNS3Doc6Verify13AttrTimeStamp9isPresentEv(ptr noundef nonnull align 8 dereferenceable(552) %116)
  br i1 %117, label %118, label %127

118:                                              ; preds = %115
  %119 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 15
  %120 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %119, i32 0, i32 8
  %121 = load i32, ptr %120, align 4, !tbaa !88
  %122 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %8, i32 noundef %121)
  %123 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 15
  %124 = getelementptr inbounds %"struct.UapkiNS::Doc::Verify::AttrTimeStamp", ptr %123, i32 0, i32 7
  %125 = load i32, ptr %124, align 8, !tbaa !89
  %126 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %7, i32 noundef %125)
  br label %127

127:                                              ; preds = %118, %115
  %128 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus7isValidEv(ptr noundef nonnull align 1 dereferenceable(6) %8)
  %129 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 18
  %130 = zext i1 %128 to i8
  store i8 %130, ptr %129, align 4, !tbaa !90
  %131 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus7isValidEv(ptr noundef nonnull align 1 dereferenceable(6) %7)
  %132 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 19
  %133 = zext i1 %131 to i8
  store i8 %133, ptr %132, align 1, !tbaa !91
  %134 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 18
  %135 = load i8, ptr %134, align 4, !tbaa !90, !range !13, !noundef !14
  %136 = trunc i8 %135 to i1
  br i1 %136, label %137, label %143

137:                                              ; preds = %127
  %138 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 19
  %139 = load i8, ptr %138, align 1, !tbaa !91, !range !13, !noundef !14
  %140 = trunc i8 %139 to i1
  br i1 %140, label %141, label %143

141:                                              ; preds = %137
  %142 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 5
  store i32 3, ptr %142, align 8, !tbaa !92
  br label %152

143:                                              ; preds = %137, %127
  %144 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus13isDeterminateEv(ptr noundef nonnull align 1 dereferenceable(6) %8)
  br i1 %144, label %147, label %145

145:                                              ; preds = %143
  %146 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus13isDeterminateEv(ptr noundef nonnull align 1 dereferenceable(6) %7)
  br i1 %146, label %147, label %149

147:                                              ; preds = %145, %143
  %148 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 5
  store i32 1, ptr %148, align 8, !tbaa !92
  br label %151

149:                                              ; preds = %145
  %150 = getelementptr inbounds %"class.UapkiNS::Doc::Verify::VerifiedSignerInfo", ptr %12, i32 0, i32 5
  store i32 2, ptr %150, align 8, !tbaa !92
  br label %151

151:                                              ; preds = %149, %147
  br label %152

152:                                              ; preds = %151, %141
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 6, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 6, ptr %7) #3
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6), i32 noundef) #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus7isValidEv(ptr noundef nonnull align 1 dereferenceable(6)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus13isDeterminateEv(ptr noundef nonnull align 1 dereferenceable(6)) #2 align 2

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

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

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


; 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"

%"struct.UapkiNS::Doc::Verify::CollectVerifyStatus" = type { [6 x i8] }

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7UapkiNS3Doc6Verify18VerifiedSignerInfo18validateSignFormatEmb(ptr noundef nonnull align 8 dereferenceable(2568) %0, i64 noundef %1, i1 noundef zeroext %2) local_unnamed_addr #0 align 2 {
  %4 = alloca %"struct.UapkiNS::Doc::Verify::CollectVerifyStatus", align 1
  %5 = alloca %"struct.UapkiNS::Doc::Verify::CollectVerifyStatus", align 1
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %4) #3
  call void @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatusC2Ev(ptr noundef nonnull align 1 dereferenceable(6) %4)
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %5) #3
  call void @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatusC2Ev(ptr noundef nonnull align 1 dereferenceable(6) %5)
  %6 = call noundef i32 @_ZNK7UapkiNS3Doc6Verify18VerifiedSignerInfo18getStatusSignatureEv(ptr noundef nonnull align 8 dereferenceable(2568) %0)
  %7 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %5, i32 noundef %6)
  %8 = call noundef i32 @_ZNK7UapkiNS3Doc6Verify18VerifiedSignerInfo22getStatusMessageDigestEv(ptr noundef nonnull align 8 dereferenceable(2568) %0)
  %9 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %4, i32 noundef %8)
  %.not12 = xor i1 %2, true
  %brmerge15 = or i1 %9, %.not12
  %or.cond = and i1 %7, %brmerge15
  br i1 %or.cond, label %10, label %14

10:                                               ; preds = %3
  %11 = getelementptr inbounds i8, ptr %0, i64 336
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %.not = icmp eq i64 %12, 0
  %. = select i1 %.not, i64 %1, i64 %12
  %13 = getelementptr inbounds i8, ptr %0, i64 2416
  store i64 %., ptr %13, align 8, !tbaa !74
  br label %14

14:                                               ; preds = %10, %3
  %15 = call noundef i32 @_ZNK7UapkiNS3Doc6Verify18VerifiedSignerInfo16getStatusEssCertEv(ptr noundef nonnull align 8 dereferenceable(2568) %0)
  %.not11 = icmp eq i32 %15, 1
  br i1 %.not11, label %19, label %16

16:                                               ; preds = %14
  %17 = call noundef i32 @_ZNK7UapkiNS3Doc6Verify18VerifiedSignerInfo16getStatusEssCertEv(ptr noundef nonnull align 8 dereferenceable(2568) %0)
  %18 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %4, i32 noundef %17)
  br label %19

19:                                               ; preds = %16, %14
  %20 = getelementptr inbounds i8, ptr %0, i64 408
  %21 = call noundef zeroext i1 @_ZNK7UapkiNS3Doc6Verify13AttrTimeStamp9isPresentEv(ptr noundef nonnull align 8 dereferenceable(552) %20)
  br i1 %21, label %22, label %33

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 956
  %24 = load i32, ptr %23, align 4, !tbaa !75
  %25 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %5, i32 noundef %24)
  %26 = getelementptr inbounds i8, ptr %0, i64 952
  %27 = load i32, ptr %26, align 8, !tbaa !76
  %28 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %4, i32 noundef %27)
  %brmerge20 = or i1 %28, %.not12
  %or.cond29 = and i1 %25, %brmerge20
  br i1 %or.cond29, label %29, label %33

29:                                               ; preds = %22
  %30 = getelementptr inbounds i8, ptr %0, i64 936
  %31 = load i64, ptr %30, align 8, !tbaa !77
  %32 = getelementptr inbounds i8, ptr %0, i64 2416
  store i64 %31, ptr %32, align 8, !tbaa !74
  br label %33

33:                                               ; preds = %22, %29, %19
  %34 = getelementptr inbounds i8, ptr %0, i64 960
  %35 = call noundef zeroext i1 @_ZNK7UapkiNS3Doc6Verify13AttrTimeStamp9isPresentEv(ptr noundef nonnull align 8 dereferenceable(552) %34)
  br i1 %35, label %36, label %47

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %0, i64 1508
  %38 = load i32, ptr %37, align 4, !tbaa !78
  %39 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %5, i32 noundef %38)
  %40 = getelementptr inbounds i8, ptr %0, i64 1504
  %41 = load i32, ptr %40, align 8, !tbaa !79
  %42 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %4, i32 noundef %41)
  %brmerge23.demorgan = and i1 %39, %42
  br i1 %brmerge23.demorgan, label %43, label %47

43:                                               ; preds = %36
  %44 = getelementptr inbounds i8, ptr %0, i64 1488
  %45 = load i64, ptr %44, align 8, !tbaa !80
  %46 = getelementptr inbounds i8, ptr %0, i64 2416
  store i64 %45, ptr %46, align 8, !tbaa !74
  br label %47

47:                                               ; preds = %36, %43, %33
  %48 = getelementptr inbounds i8, ptr %0, i64 2408
  %49 = load i32, ptr %48, align 8, !tbaa !81
  %50 = icmp ugt i32 %49, 4
  br i1 %50, label %51, label %55

51:                                               ; preds = %47
  %52 = getelementptr inbounds i8, ptr %0, i64 1696
  %53 = load i32, ptr %52, align 8, !tbaa !82
  %54 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %4, i32 noundef %53)
  br label %55

55:                                               ; preds = %51, %47
  %56 = getelementptr inbounds i8, ptr %0, i64 1728
  %57 = call noundef zeroext i1 @_ZNK7UapkiNS3Doc6Verify13AttrTimeStamp9isPresentEv(ptr noundef nonnull align 8 dereferenceable(552) %56)
  br i1 %57, label %58, label %65

58:                                               ; preds = %55
  %59 = getelementptr inbounds i8, ptr %0, i64 2276
  %60 = load i32, ptr %59, align 4, !tbaa !83
  %61 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %5, i32 noundef %60)
  %62 = getelementptr inbounds i8, ptr %0, i64 2272
  %63 = load i32, ptr %62, align 8, !tbaa !84
  %64 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6) %4, i32 noundef %63)
  br label %65

65:                                               ; preds = %58, %55
  %66 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus7isValidEv(ptr noundef nonnull align 1 dereferenceable(6) %5)
  %67 = getelementptr inbounds i8, ptr %0, i64 2412
  %68 = zext i1 %66 to i8
  store i8 %68, ptr %67, align 4, !tbaa !85
  %69 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus7isValidEv(ptr noundef nonnull align 1 dereferenceable(6) %4)
  %70 = getelementptr inbounds i8, ptr %0, i64 2413
  %71 = zext i1 %69 to i8
  store i8 %71, ptr %70, align 1, !tbaa !86
  %72 = load i8, ptr %67, align 4, !tbaa !85, !range !87, !noundef !88
  %73 = trunc nuw i8 %72 to i1
  %brmerge26.demorgan = and i1 %69, %73
  br i1 %brmerge26.demorgan, label %78, label %74

74:                                               ; preds = %65
  %75 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus13isDeterminateEv(ptr noundef nonnull align 1 dereferenceable(6) %5)
  br i1 %75, label %78, label %76

76:                                               ; preds = %74
  %77 = call noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus13isDeterminateEv(ptr noundef nonnull align 1 dereferenceable(6) %4)
  %spec.select = select i1 %77, i32 1, i32 2
  br label %78

78:                                               ; preds = %76, %74, %65
  %.sink = phi i32 [ 3, %65 ], [ 1, %74 ], [ %spec.select, %76 ]
  %79 = getelementptr inbounds i8, ptr %0, i64 320
  store i32 %.sink, ptr %79, align 8, !tbaa !89
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %4) #3
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus3setENS_12VerifyStatusE(ptr noundef nonnull align 1 dereferenceable(6), i32 noundef) local_unnamed_addr #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus7isValidEv(ptr noundef nonnull align 1 dereferenceable(6)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7UapkiNS3Doc6Verify19CollectVerifyStatus13isDeterminateEv(ptr noundef nonnull align 1 dereferenceable(6)) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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, !27, i64 336}
!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 = !{!6, !27, i64 2416}
!75 = !{!6, !34, i64 956}
!76 = !{!6, !34, i64 952}
!77 = !{!6, !27, i64 936}
!78 = !{!6, !34, i64 1508}
!79 = !{!6, !34, i64 1504}
!80 = !{!6, !27, i64 1488}
!81 = !{!6, !64, i64 2408}
!82 = !{!6, !34, i64 1696}
!83 = !{!6, !34, i64 2276}
!84 = !{!6, !34, i64 2272}
!85 = !{!6, !20, i64 2412}
!86 = !{!6, !20, i64 2413}
!87 = !{i8 0, i8 2}
!88 = !{}
!89 = !{!6, !33, i64 320}


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