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

%struct.RecipientInfo = type { i32, %"union.RecipientInfo::RecipientInfo_u", %struct.asn_struct_ctx_s }
%"union.RecipientInfo::RecipientInfo_u" = type { %struct.KeyAgreeRecipientInfo }
%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 }
%"class.UapkiNS::Pkcs7::EnvelopedDataBuilder" = type { %"struct.UapkiNS::Pkcs7::EncryptedContentInfo", ptr, %"class.std::vector", ptr }
%"struct.UapkiNS::Pkcs7::EncryptedContentInfo" = type { %"class.std::__cxx11::basic_string", %"struct.UapkiNS::AlgorithmIdentifier", 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::AlgorithmIdentifier" = type { %"class.std::__cxx11::basic_string", ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *, std::allocator<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *>>::_Vector_impl" }
%"struct.std::_Vector_base<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *, std::allocator<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *>>::_Vector_impl" = type { %"struct.std::_Vector_base<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *, std::allocator<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *, std::allocator<UapkiNS::Pkcs7::EnvelopedDataBuilder::RecipientInfoBase *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.EnvelopedData = type { %struct.ASN__PRIMITIVE_TYPE_s, ptr, %struct.RecipientInfos, %struct.EncryptedContentInfo, ptr, %struct.asn_struct_ctx_s }
%struct.RecipientInfos = type { %struct.anon, %struct.asn_struct_ctx_s }
%struct.anon = type { ptr, i32, i32, ptr }
%struct.EncryptedContentInfo = type { %struct.ASN__PRIMITIVE_TYPE_s, %struct.AlgorithmIdentifier, ptr, %struct.asn_struct_ctx_s }

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

declare void @asn_free(ptr noundef, ptr noundef) #0

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) #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #2

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

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #3

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

declare i32 @asn_set_add(ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder16addRecipientInfoE16RecipientInfo_PR(ptr noundef nonnull align 8 dereferenceable(120) %0, i32 noundef %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store ptr null, ptr %7, align 8, !tbaa !5
  %11 = call noalias ptr @calloc(i64 noundef 1, i64 noundef 328) #7
  store ptr %11, ptr %6, align 8, !tbaa !5
  br label %12

12:                                               ; preds = %2
  %13 = load ptr, ptr %6, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %17

15:                                               ; preds = %12
  store i32 1, ptr %5, align 4, !tbaa !11
  %16 = load i32, ptr %5, align 4, !tbaa !11
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 153, i32 noundef %16, ptr noundef null)
  br label %53

17:                                               ; preds = %12
  br label %18

18:                                               ; preds = %17
  br label %19

19:                                               ; preds = %18
  %20 = load i32, ptr %4, align 4, !tbaa !9
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.RecipientInfo, ptr %21, i32 0, i32 0
  store i32 %20, ptr %22, align 8, !tbaa !13
  %23 = load i32, ptr %4, align 4, !tbaa !9
  switch i32 %23, label %33 [
    i32 2, label %24
  ]

24:                                               ; preds = %19
  %25 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 16) #8
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.RecipientInfo, ptr %26, i32 0, i32 1
  invoke void @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder21KeyAgreeRecipientInfoC1EP21KeyAgreeRecipientInfo(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef %27)
          to label %28 unwind label %29

28:                                               ; preds = %24
  store ptr %25, ptr %7, align 8, !tbaa !5
  br label %38

29:                                               ; preds = %24
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %8, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %25, i64 noundef 16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %69

33:                                               ; preds = %19
  br label %34

34:                                               ; preds = %33
  store i32 4118, ptr %5, align 4, !tbaa !11
  %35 = load i32, ptr %5, align 4, !tbaa !11
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 162, i32 noundef %35, ptr noundef null)
  br label %53

36:                                               ; No predecessors!
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37, %28
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %46, label %41

41:                                               ; preds = %38
  br label %42

42:                                               ; preds = %41
  store i32 4097, ptr %5, align 4, !tbaa !11
  %43 = load i32, ptr %5, align 4, !tbaa !11
  call void @stacktrace_create(ptr noundef @.str, i64 noundef 165, i32 noundef %43, ptr noundef null)
  br label %53

44:                                               ; No predecessors!
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45, %38
  %47 = getelementptr inbounds %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder", ptr %10, i32 0, i32 1
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  %49 = getelementptr inbounds %struct.EnvelopedData, ptr %48, i32 0, i32 2
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = call i32 @asn_set_add(ptr noundef %49, ptr noundef %50)
  store ptr null, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.UapkiNS::Pkcs7::EnvelopedDataBuilder", ptr %10, i32 0, i32 2
  call void @_ZNSt6vectorIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 8 dereferenceable(8) %7)
  store ptr null, ptr %7, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %46, %42, %34, %15
  %54 = call ptr @get_RecipientInfo_desc()
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  call void @asn_free(ptr noundef %54, ptr noundef %55)
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %67

58:                                               ; preds = %53
  %59 = load i32, ptr %4, align 4, !tbaa !9
  switch i32 %59, label %65 [
    i32 2, label %60
  ]

60:                                               ; preds = %58
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = icmp eq ptr %61, null
  br i1 %62, label %64, label %63

63:                                               ; preds = %60
  call void @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder21KeyAgreeRecipientInfoD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %61) #6
  call void @_ZdlPvm(ptr noundef %61, i64 noundef 16) #9
  br label %64

64:                                               ; preds = %63, %60
  br label %66

65:                                               ; preds = %58
  br label %66

66:                                               ; preds = %65, %64
  br label %67

67:                                               ; preds = %66, %53
  %68 = load i32, ptr %5, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret i32 %68

69:                                               ; preds = %29
  %70 = load ptr, ptr %8, align 8
  %71 = load i32, ptr %9, align 4
  %72 = insertvalue { ptr, i32 } poison, ptr %70, 0
  %73 = insertvalue { ptr, i32 } %72, i32 %71, 1
  resume { ptr, i32 } %73
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

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

declare ptr @get_RecipientInfo_desc() #0

declare void @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder21KeyAgreeRecipientInfoC1EP21KeyAgreeRecipientInfo(ptr, ptr)

declare void @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder21KeyAgreeRecipientInfoD1Ev(ptr)

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind allocsize(0,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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin allocsize(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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0,1) }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = !{!"_ZTS16RecipientInfo_PR", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS13RecipientInfo", !10, i64 0, !7, i64 8, !15, i64 304}
!15 = !{!"_ZTS16asn_struct_ctx_s", !16, i64 0, !16, i64 2, !12, i64 4, !6, i64 8, !17, i64 16}
!16 = !{!"short", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!19, !6, i64 80}
!19 = !{!"_ZTSN7UapkiNS5Pkcs720EnvelopedDataBuilderE", !20, i64 0, !6, i64 80, !24, i64 88, !6, i64 112}
!20 = !{!"_ZTSN7UapkiNS5Pkcs720EncryptedContentInfoE", !21, i64 0, !23, i64 32, !6, i64 72}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !17, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"_ZTSN7UapkiNS19AlgorithmIdentifierE", !21, i64 0, !6, i64 32}
!24 = !{!"_ZTSSt6vectorIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


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

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

declare void @asn_free(ptr noundef, ptr noundef) local_unnamed_addr #0

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) #1

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

; 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 nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 4119) i32 @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder16addRecipientInfoE16RecipientInfo_PR(ptr noundef nonnull align 8 dereferenceable(120) %0, i32 noundef %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store ptr null, ptr %3, align 8, !tbaa !5
  %4 = tail call noalias dereferenceable_or_null(328) ptr @calloc(i64 noundef 1, i64 noundef 328) #7
  %5 = icmp eq ptr %4, null
  br i1 %5, label %6, label %7

6:                                                ; preds = %2
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 153, i32 noundef 1, ptr noundef null)
  br label %20

7:                                                ; preds = %2
  store i32 %1, ptr %4, align 8, !tbaa !9
  %cond = icmp eq i32 %1, 2
  br i1 %cond, label %8, label %19

8:                                                ; preds = %7
  %9 = tail call noalias noundef nonnull dereferenceable(16) ptr @_Znwm(i64 noundef 16) #8
  %10 = getelementptr inbounds i8, ptr %4, i64 8
  invoke void @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder21KeyAgreeRecipientInfoC1EP21KeyAgreeRecipientInfo(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull %10)
          to label %11 unwind label %17

11:                                               ; preds = %8
  store ptr %9, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 80
  %13 = load ptr, ptr %12, align 8, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %13, i64 24
  %15 = tail call i32 @asn_set_add(ptr noundef nonnull %14, ptr noundef nonnull %4)
  %16 = getelementptr inbounds i8, ptr %0, i64 88
  call void @_ZNSt6vectorIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE9push_backERKS4_(ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(8) %3)
  store ptr null, ptr %3, align 8, !tbaa !5
  br label %20

17:                                               ; preds = %8
  %18 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %9, i64 noundef 16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  resume { ptr, i32 } %18

19:                                               ; preds = %7
  tail call void @stacktrace_create(ptr noundef nonnull @.str, i64 noundef 162, i32 noundef 4118, ptr noundef null)
  br label %20

20:                                               ; preds = %11, %19, %6
  %.015 = phi ptr [ null, %6 ], [ null, %11 ], [ %4, %19 ]
  %.0 = phi i32 [ 1, %6 ], [ 0, %11 ], [ 4118, %19 ]
  %21 = call ptr @get_RecipientInfo_desc()
  call void @asn_free(ptr noundef %21, ptr noundef %.015)
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = icmp ne ptr %22, null
  %cond1 = icmp eq i32 %1, 2
  %or.cond = and i1 %cond1, %23
  br i1 %or.cond, label %24, label %25

24:                                               ; preds = %20
  call void @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder21KeyAgreeRecipientInfoD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #6
  call void @_ZdlPvm(ptr noundef nonnull %22, i64 noundef 16) #9
  br label %25

25:                                               ; preds = %24, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret i32 %.0
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #5

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

declare ptr @get_RecipientInfo_desc() local_unnamed_addr #0

declare void @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder21KeyAgreeRecipientInfoC1EP21KeyAgreeRecipientInfo(ptr, ptr) local_unnamed_addr

declare void @_ZN7UapkiNS5Pkcs720EnvelopedDataBuilder21KeyAgreeRecipientInfoD1Ev(ptr) local_unnamed_addr

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin allocsize(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 #6 = { nounwind }
attributes #7 = { nounwind allocsize(0,1) }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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, !11, i64 0}
!10 = !{!"_ZTS13RecipientInfo", !11, i64 0, !7, i64 8, !12, i64 304}
!11 = !{!"_ZTS16RecipientInfo_PR", !7, i64 0}
!12 = !{!"_ZTS16asn_struct_ctx_s", !13, i64 0, !13, i64 2, !14, i64 4, !6, i64 8, !15, i64 16}
!13 = !{!"short", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !6, i64 80}
!17 = !{!"_ZTSN7UapkiNS5Pkcs720EnvelopedDataBuilderE", !18, i64 0, !6, i64 80, !22, i64 88, !6, i64 112}
!18 = !{!"_ZTSN7UapkiNS5Pkcs720EncryptedContentInfoE", !19, i64 0, !21, i64 32, !6, i64 72}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !20, i64 0, !15, i64 8, !7, i64 16}
!20 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!21 = !{!"_ZTSN7UapkiNS19AlgorithmIdentifierE", !19, i64 0, !6, i64 32}
!22 = !{!"_ZTSSt6vectorIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS5Pkcs720EnvelopedDataBuilder17RecipientInfoBaseESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


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