; 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.OriginatorInfo = type { ptr, ptr, %struct.asn_struct_ctx_s }
%struct.asn_struct_ctx_s = type { i16, i16, i32, ptr, i64 }
%"struct.UapkiNS::Pkcs7::EnvelopedDataParser::OriginatorInfo" = type { %"class.UapkiNS::VectorBA", %"class.UapkiNS::VectorBA" }
%"class.UapkiNS::VectorBA" = type { %"class.std::vector.8" }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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 }
%struct.CertificateSet = type { %struct.anon.28, %struct.asn_struct_ctx_s }
%struct.anon.28 = type { ptr, i32, i32, ptr }
%struct.RevocationInfoChoices = type { %struct.anon.29, %struct.asn_struct_ctx_s }
%struct.anon.29 = type { ptr, i32, i32, ptr }

@.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 ptr @get_CertificateChoices_desc() #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS5Pkcs719EnvelopedDataParser19parseOriginatorInfoERK14OriginatorInfoRNS1_14OriginatorInfoE(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) #2 align 2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !9
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.OriginatorInfo, ptr %10, i32 0, i32 0
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %61

14:                                               ; preds = %2
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.UapkiNS::Pkcs7::EnvelopedDataParser::OriginatorInfo", ptr %15, i32 0, i32 0
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.OriginatorInfo, ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8, !tbaa !11
  %20 = getelementptr inbounds %struct.CertificateSet, ptr %19, i32 0, i32 0
  %21 = getelementptr inbounds %struct.anon.28, ptr %20, i32 0, i32 1
  %22 = load i32, ptr %21, align 8, !tbaa !16
  %23 = sext i32 %22 to i64
  call void @_ZNSt6vectorIP12ByteArray_stSaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %23)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  store i64 0, ptr %7, align 8, !tbaa !19
  br label %24

24:                                               ; preds = %55, %14
  %25 = load i64, ptr %7, align 8, !tbaa !19
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.UapkiNS::Pkcs7::EnvelopedDataParser::OriginatorInfo", ptr %26, i32 0, i32 0
  %28 = call noundef i64 @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #4
  %29 = icmp ult i64 %25, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %24
  store i32 2, ptr %8, align 4
  br label %58

31:                                               ; preds = %24
  br label %32

32:                                               ; preds = %31
  %33 = call ptr @get_CertificateChoices_desc()
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.OriginatorInfo, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = getelementptr inbounds %struct.CertificateSet, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds %struct.anon.28, ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !20
  %40 = load i64, ptr %7, align 8, !tbaa !19
  %41 = getelementptr inbounds ptr, ptr %39, i64 %40
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.UapkiNS::Pkcs7::EnvelopedDataParser::OriginatorInfo", ptr %43, i32 0, i32 0
  %45 = load i64, ptr %7, align 8, !tbaa !19
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %45) #4
  %47 = call i32 @asn_encode_ba(ptr noundef %33, ptr noundef %42, ptr noundef %46)
  store i32 %47, ptr %6, align 4, !tbaa !9
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %32
  %51 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 659, i32 noundef %51)
  store i32 7, ptr %8, align 4
  br label %58

52:                                               ; preds = %32
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  %56 = load i64, ptr %7, align 8, !tbaa !19
  %57 = add i64 %56, 1
  store i64 %57, ptr %7, align 8, !tbaa !19
  br label %24, !llvm.loop !21

58:                                               ; preds = %50, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  %59 = load i32, ptr %8, align 4
  switch i32 %59, label %116 [
    i32 2, label %60
    i32 7, label %114
  ]

60:                                               ; preds = %58
  br label %61

61:                                               ; preds = %60, %2
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.OriginatorInfo, ptr %62, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !23
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %113

66:                                               ; preds = %61
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.UapkiNS::Pkcs7::EnvelopedDataParser::OriginatorInfo", ptr %67, i32 0, i32 1
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.OriginatorInfo, ptr %69, i32 0, i32 1
  %71 = load ptr, ptr %70, align 8, !tbaa !23
  %72 = getelementptr inbounds %struct.RevocationInfoChoices, ptr %71, i32 0, i32 0
  %73 = getelementptr inbounds %struct.anon.29, ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 8, !tbaa !24
  %75 = sext i32 %74 to i64
  call void @_ZNSt6vectorIP12ByteArray_stSaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %75)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i64 0, ptr %9, align 8, !tbaa !19
  br label %76

76:                                               ; preds = %107, %66
  %77 = load i64, ptr %9, align 8, !tbaa !19
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.UapkiNS::Pkcs7::EnvelopedDataParser::OriginatorInfo", ptr %78, i32 0, i32 1
  %80 = call noundef i64 @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %79) #4
  %81 = icmp ult i64 %77, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %76
  store i32 8, ptr %8, align 4
  br label %110

83:                                               ; preds = %76
  br label %84

84:                                               ; preds = %83
  %85 = call ptr @get_RevocationInfoChoices_desc()
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.OriginatorInfo, ptr %86, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !23
  %89 = getelementptr inbounds %struct.RevocationInfoChoices, ptr %88, i32 0, i32 0
  %90 = getelementptr inbounds %struct.anon.29, ptr %89, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !27
  %92 = load i64, ptr %9, align 8, !tbaa !19
  %93 = getelementptr inbounds ptr, ptr %91, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.UapkiNS::Pkcs7::EnvelopedDataParser::OriginatorInfo", ptr %95, i32 0, i32 1
  %97 = load i64, ptr %9, align 8, !tbaa !19
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %97) #4
  %99 = call i32 @asn_encode_ba(ptr noundef %85, ptr noundef %94, ptr noundef %98)
  store i32 %99, ptr %6, align 4, !tbaa !9
  %100 = load i32, ptr %6, align 4, !tbaa !9
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %104

102:                                              ; preds = %84
  %103 = load i32, ptr %6, align 4, !tbaa !9
  call void @stacktrace_add(ptr noundef @.str, i64 noundef 667, i32 noundef %103)
  store i32 7, ptr %8, align 4
  br label %110

104:                                              ; preds = %84
  br label %105

105:                                              ; preds = %104
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  %108 = load i64, ptr %9, align 8, !tbaa !19
  %109 = add i64 %108, 1
  store i64 %109, ptr %9, align 8, !tbaa !19
  br label %76, !llvm.loop !28

110:                                              ; preds = %102, %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %111 = load i32, ptr %8, align 4
  switch i32 %111, label %116 [
    i32 8, label %112
    i32 7, label %114
  ]

112:                                              ; preds = %110
  br label %113

113:                                              ; preds = %112, %61
  br label %114

114:                                              ; preds = %113, %110, %58
  %115 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %115, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %116

116:                                              ; preds = %114, %110, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %117 = load i32, ptr %3, align 4
  ret i32 %117
}

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

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

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

declare ptr @get_RevocationInfoChoices_desc() #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 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS14OriginatorInfo", !6, i64 0, !6, i64 8, !13, i64 16}
!13 = !{!"_ZTS16asn_struct_ctx_s", !14, i64 0, !14, i64 2, !10, i64 4, !6, i64 8, !15, i64 16}
!14 = !{!"short", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !10, i64 8}
!17 = !{!"_ZTS14CertificateSet", !18, i64 0, !13, i64 24}
!18 = !{!"_ZTSN14CertificateSetUt_E", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16}
!19 = !{!15, !15, i64 0}
!20 = !{!17, !6, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!12, !6, i64 8}
!24 = !{!25, !10, i64 8}
!25 = !{!"_ZTS21RevocationInfoChoices", !26, i64 0, !13, i64 24}
!26 = !{!"_ZTSN21RevocationInfoChoicesUt_E", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16}
!27 = !{!25, !6, i64 0}
!28 = distinct !{!28, !22}


; 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 ptr @get_CertificateChoices_desc() local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7UapkiNS5Pkcs719EnvelopedDataParser19parseOriginatorInfoERK14OriginatorInfoRNS1_14OriginatorInfoE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(40) %0, ptr noundef nonnull align 8 dereferenceable(48) %1) local_unnamed_addr #1 align 2 {
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %.thread, label %4

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %3, i64 8
  %6 = load i32, ptr %5, align 8, !tbaa !14
  %7 = sext i32 %6 to i64
  tail call void @_ZNSt6vectorIP12ByteArray_stSaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %7)
  %8 = tail call noundef i64 @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  %.not48 = icmp eq i64 %8, 0
  br i1 %.not48, label %.thread, label %.lr.ph

9:                                                ; preds = %.lr.ph
  %10 = add nuw i64 %.02845, 1
  %11 = tail call noundef i64 @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #3
  %12 = icmp ult i64 %10, %11
  br i1 %12, label %.lr.ph, label %.thread, !llvm.loop !17

.lr.ph:                                           ; preds = %4, %9
  %.02845 = phi i64 [ %10, %9 ], [ 0, %4 ]
  %13 = tail call ptr @get_CertificateChoices_desc()
  %14 = load ptr, ptr %0, align 8, !tbaa !5
  %15 = load ptr, ptr %14, align 8, !tbaa !19
  %16 = getelementptr inbounds ptr, ptr %15, i64 %.02845
  %17 = load ptr, ptr %16, align 8, !tbaa !20
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.02845) #3
  %19 = tail call i32 @asn_encode_ba(ptr noundef %13, ptr noundef %17, ptr noundef nonnull %18)
  %.not38 = icmp eq i32 %19, 0
  br i1 %.not38, label %9, label %20

20:                                               ; preds = %.lr.ph
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 659, i32 noundef %19)
  br label %.loopexit

.thread:                                          ; preds = %9, %4, %2
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !21
  %.not39 = icmp eq ptr %22, null
  br i1 %.not39, label %.loopexit, label %23

23:                                               ; preds = %.thread
  %24 = getelementptr inbounds i8, ptr %1, i64 24
  %25 = getelementptr inbounds i8, ptr %22, i64 8
  %26 = load i32, ptr %25, align 8, !tbaa !22
  %27 = sext i32 %26 to i64
  tail call void @_ZNSt6vectorIP12ByteArray_stSaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %27)
  %28 = tail call noundef i64 @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #3
  %.not49 = icmp eq i64 %28, 0
  br i1 %.not49, label %.loopexit, label %.lr.ph47

29:                                               ; preds = %.lr.ph47
  %30 = add nuw i64 %.046, 1
  %31 = tail call noundef i64 @_ZNKSt6vectorIP12ByteArray_stSaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #3
  %32 = icmp ult i64 %30, %31
  br i1 %32, label %.lr.ph47, label %.loopexit, !llvm.loop !25

.lr.ph47:                                         ; preds = %23, %29
  %.046 = phi i64 [ %30, %29 ], [ 0, %23 ]
  %33 = tail call ptr @get_RevocationInfoChoices_desc()
  %34 = load ptr, ptr %21, align 8, !tbaa !21
  %35 = load ptr, ptr %34, align 8, !tbaa !26
  %36 = getelementptr inbounds ptr, ptr %35, i64 %.046
  %37 = load ptr, ptr %36, align 8, !tbaa !20
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP12ByteArray_stSaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %.046) #3
  %39 = tail call i32 @asn_encode_ba(ptr noundef %33, ptr noundef %37, ptr noundef nonnull %38)
  %.not40 = icmp eq i32 %39, 0
  br i1 %.not40, label %29, label %40

40:                                               ; preds = %.lr.ph47
  tail call void @stacktrace_add(ptr noundef nonnull @.str, i64 noundef 667, i32 noundef %39)
  br label %.loopexit

.loopexit:                                        ; preds = %29, %23, %20, %.thread, %40
  %.031 = phi i32 [ %19, %20 ], [ 0, %.thread ], [ %39, %40 ], [ 0, %23 ], [ 0, %29 ]
  ret i32 %.031
}

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

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

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

declare ptr @get_RevocationInfoChoices_desc() 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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !7, i64 0}
!6 = !{!"_ZTS14OriginatorInfo", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS16asn_struct_ctx_s", !11, i64 0, !11, i64 2, !12, i64 4, !7, i64 8, !13, i64 16}
!11 = !{!"short", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!15, !12, i64 8}
!15 = !{!"_ZTS14CertificateSet", !16, i64 0, !10, i64 24}
!16 = !{!"_ZTSN14CertificateSetUt_E", !7, i64 0, !12, i64 8, !12, i64 12, !7, i64 16}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!15, !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!6, !7, i64 8}
!22 = !{!23, !12, i64 8}
!23 = !{!"_ZTS21RevocationInfoChoices", !24, i64 0, !10, i64 24}
!24 = !{!"_ZTSN21RevocationInfoChoicesUt_E", !7, i64 0, !12, i64 8, !12, i64 12, !7, i64 16}
!25 = distinct !{!25, !18}
!26 = !{!23, !7, i64 0}


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