; LLVM IR from specinfo-ua/UAPKI :: library/common/pkix (envelopeddata-helper)

; 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.UapkiNS::Pkcs7::EnvelopedDataBuilder::KeyAgreeRecipientInfo" = type { %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase", ptr }
%"class.UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase" = type { i32 }
%struct.KeyAgreeRecipientInfo = type { %struct.ASN__PRIMITIVE_TYPE_s, %struct.OriginatorIdentifierOrKey, ptr, %struct.AlgorithmIdentifier, %struct.RecipientEncryptedKeys, %struct.asn_struct_ctx_s }
%struct.ASN__PRIMITIVE_TYPE_s = type { ptr, i32 }
%struct.OriginatorIdentifierOrKey = type { i32, %"union.OriginatorIdentifierOrKey::OriginatorIdentifierOrKey_u", %struct.asn_struct_ctx_s }
%"union.OriginatorIdentifierOrKey::OriginatorIdentifierOrKey_u" = type { %struct.IssuerAndSerialNumber }
%struct.IssuerAndSerialNumber = type { %struct.Name, %struct.ASN__PRIMITIVE_TYPE_s, %struct.asn_struct_ctx_s }
%struct.Name = type { i32, %"union.Name::Name_u", %struct.asn_struct_ctx_s }
%"union.Name::Name_u" = type { %struct.RDNSequence }
%struct.RDNSequence = type { %struct.anon.3, %struct.asn_struct_ctx_s }
%struct.anon.3 = type { ptr, i32, i32, ptr }
%struct.AlgorithmIdentifier = type { %struct.ASN__PRIMITIVE_TYPE_s, ptr, %struct.asn_struct_ctx_s }
%struct.RecipientEncryptedKeys = type { %struct.anon.7, %struct.asn_struct_ctx_s }
%struct.anon.7 = type { ptr, i32, i32, ptr }
%struct.asn_struct_ctx_s = type { i16, i16, i32, ptr, i64 }
%"struct.UapkiNS::AlgorithmIdentifier" = type { %"class.std::__cxx11::basic_string", 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.OriginatorPublicKey = type { %struct.AlgorithmIdentifier, %struct.BIT_STRING_s, %struct.asn_struct_ctx_s }
%struct.BIT_STRING_s = type { ptr, i32, i32, %struct.asn_struct_ctx_s }

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

; 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

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

declare i32 @asn_set_oid_from_text(ptr noundef, ptr noundef) #1

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

declare ptr @asn_decode_ba_with_alloc(ptr noundef, ptr noundef) #1

declare ptr @get_ANY_desc() #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder21KeyAgreeRecipientInfo24setOriginatorByPublicKeyERKNS_19AlgorithmIdentifierEPK12ByteArray_st(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef %2) #3 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %10 = load ptr, ptr %5, align 8
  %11 = getelementptr inbounds %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder::KeyAgreeRecipientInfo", ptr %10, i32 0, i32 1
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %20

14:                                               ; preds = %3
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = call noundef zeroext i1 @_ZNK7UapkiNS19AlgorithmIdentifier9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40) %15)
  br i1 %16, label %17, label %20

17:                                               ; preds = %14
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %21, label %20

20:                                               ; preds = %17, %14, %3
  store i32 4101, ptr %4, align 4
  br label %99

21:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %22 = getelementptr inbounds %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder::KeyAgreeRecipientInfo", ptr %10, i32 0, i32 1
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds %struct.KeyAgreeRecipientInfo, ptr %23, i32 0, i32 1
  %25 = getelementptr inbounds %struct.OriginatorIdentifierOrKey, ptr %24, i32 0, i32 1
  store ptr %25, ptr %9, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder::KeyAgreeRecipientInfo", ptr %10, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.KeyAgreeRecipientInfo, ptr %27, i32 0, i32 1
  %29 = getelementptr inbounds %struct.OriginatorIdentifierOrKey, ptr %28, i32 0, i32 0
  store i32 3, ptr %29, align 8, !tbaa !15
  br label %30

30:                                               ; preds = %21
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.UapkiNS::AlgorithmIdentifier", ptr %31, i32 0, i32 0
  %33 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %32) #4
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.OriginatorPublicKey, ptr %34, i32 0, i32 0
  %36 = getelementptr inbounds %struct.AlgorithmIdentifier, ptr %35, i32 0, i32 0
  %37 = call i32 @asn_set_oid_from_text(ptr noundef %33, ptr noundef %36)
  store i32 %37, ptr %8, align 4, !tbaa !13
  %38 = load i32, ptr %8, align 4, !tbaa !13
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %30
  %41 = load i32, ptr %8, align 4, !tbaa !13
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 372, i32 noundef %41)
  br label %97

42:                                               ; preds = %30
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %"struct.UapkiNS::AlgorithmIdentifier", ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !26
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %65

49:                                               ; preds = %44
  br label %50

50:                                               ; preds = %49
  %51 = call ptr @get_ANY_desc()
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %"struct.UapkiNS::AlgorithmIdentifier", ptr %52, i32 0, i32 1
  %54 = load ptr, ptr %53, align 8, !tbaa !26
  %55 = call ptr @asn_decode_ba_with_alloc(ptr noundef %51, ptr noundef %54)
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.OriginatorPublicKey, ptr %56, i32 0, i32 0
  %58 = getelementptr inbounds %struct.AlgorithmIdentifier, ptr %57, i32 0, i32 1
  store ptr %55, ptr %58, align 8, !tbaa !30
  %59 = icmp eq ptr null, %55
  br i1 %59, label %60, label %62

60:                                               ; preds = %50
  store i32 2, ptr %8, align 4, !tbaa !13
  %61 = load i32, ptr %8, align 4, !tbaa !13
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 375, i32 noundef %61)
  br label %97

62:                                               ; preds = %50
  br label %63

63:                                               ; preds = %62
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64, %44
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.UapkiNS::AlgorithmIdentifier", ptr %66, i32 0, i32 0
  %68 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %67) #4
  %69 = call noundef zeroext i1 @_ZN6DstuNS16isDstu4145familyEPKc(ptr noundef %68)
  br i1 %69, label %70, label %83

70:                                               ; preds = %65
  br label %71

71:                                               ; preds = %70
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.OriginatorPublicKey, ptr %73, i32 0, i32 1
  %75 = call noundef i32 @_ZN6DstuNS22ba2BitStringEncapOctetEPK12ByteArray_stP12BIT_STRING_s(ptr noundef %72, ptr noundef %74)
  store i32 %75, ptr %8, align 4, !tbaa !13
  %76 = load i32, ptr %8, align 4, !tbaa !13
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %80

78:                                               ; preds = %71
  %79 = load i32, ptr %8, align 4, !tbaa !13
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 380, i32 noundef %79)
  br label %97

80:                                               ; preds = %71
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  br label %96

83:                                               ; preds = %65
  br label %84

84:                                               ; preds = %83
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.OriginatorPublicKey, ptr %86, i32 0, i32 1
  %88 = call i32 @asn_ba2BITSTRING(ptr noundef %85, ptr noundef %87)
  store i32 %88, ptr %8, align 4, !tbaa !13
  %89 = load i32, ptr %8, align 4, !tbaa !13
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %93

91:                                               ; preds = %84
  %92 = load i32, ptr %8, align 4, !tbaa !13
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 383, i32 noundef %92)
  br label %97

93:                                               ; preds = %84
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95, %82
  br label %97

97:                                               ; preds = %96, %91, %78, %60, %40
  %98 = load i32, ptr %8, align 4, !tbaa !13
  store i32 %98, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %99

99:                                               ; preds = %97, %20
  %100 = load i32, ptr %4, align 4
  ret i32 %100
}

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

declare noundef zeroext i1 @_ZN6DstuNS16isDstu4145familyEPKc(ptr noundef) #1

declare noundef i32 @_ZN6DstuNS22ba2BitStringEncapOctetEPK12ByteArray_stP12BIT_STRING_s(ptr noundef, ptr noundef) #1

declare i32 @asn_ba2BITSTRING(ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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, !6, i64 8}
!10 = !{!"_ZTSN7UapkiNS5Pkcs720EnvelopedDataBuilder21KeyAgreeRecipientInfoE", !11, i64 0, !6, i64 8}
!11 = !{!"_ZTSN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseE", !12, i64 0}
!12 = !{!"_ZTS16RecipientInfo_PR", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !19, i64 16}
!16 = !{!"_ZTS21KeyAgreeRecipientInfo", !17, i64 0, !18, i64 16, !6, i64 168, !23, i64 176, !24, i64 224, !20, i64 272}
!17 = !{!"_ZTS21ASN__PRIMITIVE_TYPE_s", !6, i64 0, !14, i64 8}
!18 = !{!"_ZTS25OriginatorIdentifierOrKey", !19, i64 0, !7, i64 8, !20, i64 128}
!19 = !{!"_ZTS28OriginatorIdentifierOrKey_PR", !7, i64 0}
!20 = !{!"_ZTS16asn_struct_ctx_s", !21, i64 0, !21, i64 2, !14, i64 4, !6, i64 8, !22, i64 16}
!21 = !{!"short", !7, i64 0}
!22 = !{!"long", !7, i64 0}
!23 = !{!"_ZTS19AlgorithmIdentifier", !17, i64 0, !6, i64 16, !20, i64 24}
!24 = !{!"_ZTS22RecipientEncryptedKeys", !25, i64 0, !20, i64 24}
!25 = !{!"_ZTSN22RecipientEncryptedKeysUt_E", !6, i64 0, !14, i64 8, !14, i64 12, !6, i64 16}
!26 = !{!27, !6, i64 32}
!27 = !{!"_ZTSN7UapkiNS19AlgorithmIdentifierE", !28, i64 0, !6, i64 32}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !29, i64 0, !22, i64 8, !7, i64 16}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!30 = !{!31, !6, i64 16}
!31 = !{!"_ZTS19OriginatorPublicKey", !23, i64 0, !32, i64 48, !20, i64 88}
!32 = !{!"_ZTS12BIT_STRING_s", !6, i64 0, !14, i64 8, !14, i64 12, !20, i64 16}


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

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

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

declare i32 @asn_set_oid_from_text(ptr noundef, ptr noundef) local_unnamed_addr #0

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

declare ptr @asn_decode_ba_with_alloc(ptr noundef, ptr noundef) local_unnamed_addr #0

declare ptr @get_ANY_desc() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder21KeyAgreeRecipientInfo24setOriginatorByPublicKeyERKNS_19AlgorithmIdentifierEPK12ByteArray_st(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef %2) local_unnamed_addr #2 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %36, label %6

6:                                                ; preds = %3
  %7 = tail call noundef zeroext i1 @_ZNK7UapkiNS19AlgorithmIdentifier9isPresentEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  %8 = icmp ne ptr %2, null
  %or.cond = and i1 %8, %7
  br i1 %or.cond, label %9, label %36

9:                                                ; preds = %6
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  %12 = getelementptr inbounds i8, ptr %10, i64 24
  store i32 3, ptr %11, align 8, !tbaa !12
  %13 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %14 = tail call i32 @asn_set_oid_from_text(ptr noundef %13, ptr noundef nonnull %12)
  %.not28 = icmp eq i32 %14, 0
  br i1 %.not28, label %16, label %15

15:                                               ; preds = %9
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 372, i32 noundef %14)
  br label %36

16:                                               ; preds = %9
  %17 = getelementptr inbounds i8, ptr %1, i64 32
  %18 = load ptr, ptr %17, align 8, !tbaa !24
  %.not29 = icmp eq ptr %18, null
  br i1 %.not29, label %26, label %19

19:                                               ; preds = %16
  %20 = tail call ptr @get_ANY_desc()
  %21 = load ptr, ptr %17, align 8, !tbaa !24
  %22 = tail call ptr @asn_decode_ba_with_alloc(ptr noundef %20, ptr noundef %21)
  %23 = getelementptr inbounds i8, ptr %10, i64 40
  store ptr %22, ptr %23, align 8, !tbaa !28
  %24 = icmp eq ptr %22, null
  br i1 %24, label %25, label %26

25:                                               ; preds = %19
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 375, i32 noundef 2)
  br label %36

26:                                               ; preds = %19, %16
  %27 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #3
  %28 = tail call noundef zeroext i1 @_ZN6DstuNS16isDstu4145familyEPKc(ptr noundef %27)
  %29 = getelementptr inbounds i8, ptr %10, i64 72
  br i1 %28, label %30, label %33

30:                                               ; preds = %26
  %31 = tail call noundef i32 @_ZN6DstuNS22ba2BitStringEncapOctetEPK12ByteArray_stP12BIT_STRING_s(ptr noundef nonnull %2, ptr noundef nonnull %29)
  %.not31 = icmp eq i32 %31, 0
  br i1 %.not31, label %36, label %32

32:                                               ; preds = %30
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 380, i32 noundef %31)
  br label %36

33:                                               ; preds = %26
  %34 = tail call i32 @asn_ba2BITSTRING(ptr noundef nonnull %2, ptr noundef nonnull %29)
  %.not30 = icmp eq i32 %34, 0
  br i1 %.not30, label %36, label %35

35:                                               ; preds = %33
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 383, i32 noundef %34)
  br label %36

36:                                               ; preds = %15, %25, %32, %35, %33, %30, %3, %6
  %.0 = phi i32 [ 4101, %6 ], [ 4101, %3 ], [ %14, %15 ], [ 2, %25 ], [ %31, %32 ], [ 0, %30 ], [ %34, %35 ], [ 0, %33 ]
  ret i32 %.0
}

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

declare noundef zeroext i1 @_ZN6DstuNS16isDstu4145familyEPKc(ptr noundef) local_unnamed_addr #0

declare noundef i32 @_ZN6DstuNS22ba2BitStringEncapOctetEPK12ByteArray_stP12BIT_STRING_s(ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @asn_ba2BITSTRING(ptr noundef, ptr noundef) local_unnamed_addr #0

attributes #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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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, !11, i64 8}
!6 = !{!"_ZTSN7UapkiNS5Pkcs720EnvelopedDataBuilder21KeyAgreeRecipientInfoE", !7, i64 0, !11, i64 8}
!7 = !{!"_ZTSN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseE", !8, i64 0}
!8 = !{!"_ZTS16RecipientInfo_PR", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!13, !17, i64 16}
!13 = !{!"_ZTS21KeyAgreeRecipientInfo", !14, i64 0, !16, i64 16, !11, i64 168, !21, i64 176, !22, i64 224, !18, i64 272}
!14 = !{!"_ZTS21ASN__PRIMITIVE_TYPE_s", !11, i64 0, !15, i64 8}
!15 = !{!"int", !9, i64 0}
!16 = !{!"_ZTS25OriginatorIdentifierOrKey", !17, i64 0, !9, i64 8, !18, i64 128}
!17 = !{!"_ZTS28OriginatorIdentifierOrKey_PR", !9, i64 0}
!18 = !{!"_ZTS16asn_struct_ctx_s", !19, i64 0, !19, i64 2, !15, i64 4, !11, i64 8, !20, i64 16}
!19 = !{!"short", !9, i64 0}
!20 = !{!"long", !9, i64 0}
!21 = !{!"_ZTS19AlgorithmIdentifier", !14, i64 0, !11, i64 16, !18, i64 24}
!22 = !{!"_ZTS22RecipientEncryptedKeys", !23, i64 0, !18, i64 24}
!23 = !{!"_ZTSN22RecipientEncryptedKeysUt_E", !11, i64 0, !15, i64 8, !15, i64 12, !11, i64 16}
!24 = !{!25, !11, i64 32}
!25 = !{!"_ZTSN7UapkiNS19AlgorithmIdentifierE", !26, i64 0, !11, i64 32}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !20, i64 8, !9, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!28 = !{!29, !11, i64 16}
!29 = !{!"_ZTS19OriginatorPublicKey", !21, i64 0, !30, i64 48, !18, i64 88}
!30 = !{!"_ZTS12BIT_STRING_s", !11, i64 0, !15, i64 8, !15, i64 12, !18, i64 16}


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