; LLVM IR from specinfo-ua/UAPKI :: library/uapki/src/cer-item.ll (ZN7UapkiNS4Cert7CerItemD2Ev)

; 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.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.UapkiNS::Cert::CerItem" = type <{ %"class.std::mutex", %"class.std::__cxx11::basic_string", ptr, ptr, ptr, ptr, %"class.std::__cxx11::basic_string", ptr, ptr, ptr, ptr, ptr, i32, [4 x i8], i64, i64, i32, %"struct.std::atomic", [3 x i8], %"struct.UapkiNS::Cert::CerItem::Uris", i32, [4 x i8], %"class.std::vector.3", %"struct.UapkiNS::Cert::CertStatusInfo", %"struct.UapkiNS::Cert::CertStatusInfo", %"struct.std::atomic", [7 x i8] }>
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { 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::Cert::CerItem::Uris" = type { %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"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 }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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 }
%"struct.UapkiNS::Cert::CertStatusInfo" = type { i32, %"struct.std::atomic", ptr, i32, i64 }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #0

declare void @ba_free(ptr noundef) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS4Cert7CerItem4UrisD2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7UapkiNS4Cert7CerItemD2Ev(ptr noundef nonnull align 8 dereferenceable(401) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  %8 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 2
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  invoke void @ba_free(ptr noundef %9)
          to label %10 unwind label %68

10:                                               ; preds = %1
  %11 = invoke ptr @get_Certificate_desc()
          to label %12 unwind label %68

12:                                               ; preds = %10
  %13 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 3
  %14 = load ptr, ptr %13, align 8, !tbaa !34
  invoke void @asn_free(ptr noundef %11, ptr noundef %14)
          to label %15 unwind label %68

15:                                               ; preds = %12
  %16 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 4
  %17 = load ptr, ptr %16, align 8, !tbaa !35
  invoke void @ba_free(ptr noundef %17)
          to label %18 unwind label %68

18:                                               ; preds = %15
  %19 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 5
  %20 = load ptr, ptr %19, align 8, !tbaa !36
  invoke void @ba_free(ptr noundef %20)
          to label %21 unwind label %68

21:                                               ; preds = %18
  %22 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 7
  %23 = load ptr, ptr %22, align 8, !tbaa !37
  invoke void @ba_free(ptr noundef %23)
          to label %24 unwind label %68

24:                                               ; preds = %21
  %25 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 8
  %26 = load ptr, ptr %25, align 8, !tbaa !38
  invoke void @ba_free(ptr noundef %26)
          to label %27 unwind label %68

27:                                               ; preds = %24
  %28 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 9
  %29 = load ptr, ptr %28, align 8, !tbaa !39
  invoke void @ba_free(ptr noundef %29)
          to label %30 unwind label %68

30:                                               ; preds = %27
  %31 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 10
  %32 = load ptr, ptr %31, align 8, !tbaa !40
  invoke void @ba_free(ptr noundef %32)
          to label %33 unwind label %68

33:                                               ; preds = %30
  %34 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 11
  %35 = load ptr, ptr %34, align 8, !tbaa !41
  invoke void @ba_free(ptr noundef %35)
          to label %36 unwind label %68

36:                                               ; preds = %33
  %37 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 12
  store i32 0, ptr %37, align 8, !tbaa !42
  %38 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 14
  store i64 0, ptr %38, align 8, !tbaa !43
  %39 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 15
  store i64 0, ptr %39, align 8, !tbaa !44
  %40 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 16
  store i32 0, ptr %40, align 8, !tbaa !45
  %41 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 20
  store i32 0, ptr %41, align 8, !tbaa !46
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %42 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 22
  store ptr %42, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = call ptr @_ZNSt6vectorIPN7UapkiNS10AttrCertIdESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  %45 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %44, ptr %45, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = call ptr @_ZNSt6vectorIPN7UapkiNS10AttrCertIdESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #6
  %48 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %47, ptr %48, align 8
  br label %49

49:                                               ; preds = %59, %36
  %50 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS10AttrCertIdESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br i1 %50, label %52, label %51

51:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %61

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS10AttrCertIdESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  store ptr %53, ptr %6, align 8, !tbaa !5
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  %56 = icmp eq ptr %55, null
  br i1 %56, label %58, label %57

57:                                               ; preds = %52
  call void @_ZN7UapkiNS10AttrCertIdD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %55) #6
  call void @_ZdlPvm(ptr noundef %55, i64 noundef 64) #7
  br label %58

58:                                               ; preds = %57, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %59

59:                                               ; preds = %58
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS10AttrCertIdESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br label %49

61:                                               ; preds = %51
  %62 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 24
  call void @_ZN7UapkiNS4Cert14CertStatusInfoD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %62) #6
  %63 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 23
  call void @_ZN7UapkiNS4Cert14CertStatusInfoD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %63) #6
  %64 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 22
  call void @_ZNSt6vectorIPN7UapkiNS10AttrCertIdESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %64) #6
  %65 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 19
  call void @_ZN7UapkiNS4Cert7CerItem4UrisD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %65) #6
  %66 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %66) #6
  %67 = getelementptr inbounds %"class.UapkiNS::Cert::CerItem", ptr %7, i32 0, i32 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %67) #6
  ret void

68:                                               ; preds = %33, %30, %27, %24, %21, %18, %15, %12, %10, %1
  %69 = landingpad { ptr, i32 }
          catch ptr null
  %70 = extractvalue { ptr, i32 } %69, 0
  call void @__clang_call_terminate(ptr %70) #8
  unreachable
}

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

declare ptr @get_Certificate_desc() #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS10AttrCertIdD2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #3 align 2

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

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

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

declare void @_ZN7UapkiNS4Cert14CertStatusInfoD1Ev(ptr)

attributes #0 = { noinline noreturn nounwind uwtable "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 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { builtin nounwind }
attributes #8 = { noreturn 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 72}
!10 = !{!"_ZTSN7UapkiNS4Cert7CerItemE", !11, i64 0, !13, i64 40, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !13, i64 104, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !16, i64 176, !15, i64 184, !15, i64 192, !17, i64 200, !18, i64 204, !21, i64 208, !26, i64 304, !27, i64 312, !31, i64 336, !31, i64 368, !18, i64 400}
!11 = !{!"_ZTSSt5mutex", !12, i64 0}
!12 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTS7HashAlg", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSSt6atomicIbE", !19, i64 0}
!19 = !{!"_ZTSSt13__atomic_baseIbE", !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTSN7UapkiNS4Cert7CerItem4UrisE", !22, i64 0, !22, i64 24, !22, i64 48, !22, i64 72}
!22 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTSN7UapkiNS4Cert12VerifyStatusE", !7, i64 0}
!27 = !{!"_ZTSSt6vectorIPN7UapkiNS10AttrCertIdESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS10AttrCertIdESaIS2_EE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS10AttrCertIdESaIS2_EE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS10AttrCertIdESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSN7UapkiNS4Cert14CertStatusInfoE", !32, i64 0, !18, i64 4, !6, i64 8, !33, i64 16, !15, i64 24}
!32 = !{!"_ZTSN7UapkiNS4Cert14ValidationTypeE", !7, i64 0}
!33 = !{!"_ZTSN7UapkiNS10CertStatusE", !7, i64 0}
!34 = !{!10, !6, i64 80}
!35 = !{!10, !6, i64 88}
!36 = !{!10, !6, i64 96}
!37 = !{!10, !6, i64 136}
!38 = !{!10, !6, i64 144}
!39 = !{!10, !6, i64 152}
!40 = !{!10, !6, i64 160}
!41 = !{!10, !6, i64 168}
!42 = !{!10, !16, i64 176}
!43 = !{!10, !15, i64 184}
!44 = !{!10, !15, i64 192}
!45 = !{!10, !17, i64 200}
!46 = !{!10, !26, i64 304}


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

%"class.__gnu_cxx::__normal_iterator" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #0

declare void @ba_free(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS4Cert7CerItem4UrisD2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7UapkiNS4Cert7CerItemD2Ev(ptr noundef nonnull align 8 dereferenceable(401) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 72
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @ba_free(ptr noundef %5)
          to label %6 unwind label %52

6:                                                ; preds = %1
  %7 = invoke ptr @get_Certificate_desc()
          to label %8 unwind label %52

8:                                                ; preds = %6
  %9 = getelementptr inbounds i8, ptr %0, i64 80
  %10 = load ptr, ptr %9, align 8, !tbaa !33
  invoke void @asn_free(ptr noundef %7, ptr noundef %10)
          to label %11 unwind label %52

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  %13 = load ptr, ptr %12, align 8, !tbaa !34
  invoke void @ba_free(ptr noundef %13)
          to label %14 unwind label %52

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %0, i64 96
  %16 = load ptr, ptr %15, align 8, !tbaa !35
  invoke void @ba_free(ptr noundef %16)
          to label %17 unwind label %52

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %0, i64 136
  %19 = load ptr, ptr %18, align 8, !tbaa !36
  invoke void @ba_free(ptr noundef %19)
          to label %20 unwind label %52

20:                                               ; preds = %17
  %21 = getelementptr inbounds i8, ptr %0, i64 144
  %22 = load ptr, ptr %21, align 8, !tbaa !37
  invoke void @ba_free(ptr noundef %22)
          to label %23 unwind label %52

23:                                               ; preds = %20
  %24 = getelementptr inbounds i8, ptr %0, i64 152
  %25 = load ptr, ptr %24, align 8, !tbaa !38
  invoke void @ba_free(ptr noundef %25)
          to label %26 unwind label %52

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %0, i64 160
  %28 = load ptr, ptr %27, align 8, !tbaa !39
  invoke void @ba_free(ptr noundef %28)
          to label %29 unwind label %52

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %0, i64 168
  %31 = load ptr, ptr %30, align 8, !tbaa !40
  invoke void @ba_free(ptr noundef %31)
          to label %32 unwind label %52

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %0, i64 176
  store i32 0, ptr %33, align 8, !tbaa !41
  %34 = getelementptr inbounds i8, ptr %0, i64 184
  %35 = getelementptr inbounds i8, ptr %0, i64 304
  store i32 0, ptr %35, align 8, !tbaa !42
  %36 = getelementptr inbounds i8, ptr %0, i64 312
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %34, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  %37 = tail call ptr @_ZNSt6vectorIPN7UapkiNS10AttrCertIdESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  store ptr %37, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %38 = tail call ptr @_ZNSt6vectorIPN7UapkiNS10AttrCertIdESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  store ptr %38, ptr %3, align 8
  %39 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS10AttrCertIdESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br i1 %39, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %49, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  %40 = getelementptr inbounds i8, ptr %0, i64 368
  call void @_ZN7UapkiNS4Cert14CertStatusInfoD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %40) #7
  %41 = getelementptr inbounds i8, ptr %0, i64 336
  call void @_ZN7UapkiNS4Cert14CertStatusInfoD1Ev(ptr noundef nonnull align 8 dereferenceable(32) %41) #7
  call void @_ZNSt6vectorIPN7UapkiNS10AttrCertIdESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  %42 = getelementptr inbounds i8, ptr %0, i64 208
  call void @_ZN7UapkiNS4Cert7CerItem4UrisD2Ev(ptr noundef nonnull align 8 dereferenceable(96) %42) #7
  %43 = getelementptr inbounds i8, ptr %0, i64 104
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %43) #7
  %44 = getelementptr inbounds i8, ptr %0, i64 40
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %44) #7
  ret void

.lr.ph:                                           ; preds = %32, %49
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPPN7UapkiNS10AttrCertIdESt6vectorIS3_SaIS3_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  %46 = load ptr, ptr %45, align 8, !tbaa !43
  %47 = icmp eq ptr %46, null
  br i1 %47, label %49, label %48

48:                                               ; preds = %.lr.ph
  call void @_ZN7UapkiNS10AttrCertIdD2Ev(ptr noundef nonnull align 8 dereferenceable(64) %46) #7
  call void @_ZdlPvm(ptr noundef nonnull %46, i64 noundef 64) #8
  br label %49

49:                                               ; preds = %48, %.lr.ph
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPPN7UapkiNS10AttrCertIdESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #7
  %51 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPPN7UapkiNS10AttrCertIdESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  br i1 %51, label %.lr.ph, label %._crit_edge

52:                                               ; preds = %29, %26, %23, %20, %17, %14, %11, %8, %6, %1
  %53 = landingpad { ptr, i32 }
          catch ptr null
  %54 = extractvalue { ptr, i32 } %53, 0
  tail call void @__clang_call_terminate(ptr %54) #9
  unreachable
}

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

declare ptr @get_Certificate_desc() local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7UapkiNS10AttrCertIdD2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #3 align 2

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

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

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

declare void @_ZN7UapkiNS4Cert14CertStatusInfoD1Ev(ptr) local_unnamed_addr

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #0 = { noinline noreturn nounwind uwtable "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 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { builtin nounwind }
attributes #9 = { noreturn 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, !13, i64 72}
!6 = !{!"_ZTSN7UapkiNS4Cert7CerItemE", !7, i64 0, !11, i64 40, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !11, i64 104, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !15, i64 176, !14, i64 184, !14, i64 192, !16, i64 200, !17, i64 204, !20, i64 208, !25, i64 304, !26, i64 312, !30, i64 336, !30, i64 368, !17, i64 400}
!7 = !{!"_ZTSSt5mutex", !8, i64 0}
!8 = !{!"_ZTSSt12__mutex_base", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !14, i64 8, !9, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"long", !9, i64 0}
!15 = !{!"_ZTS7HashAlg", !9, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!"_ZTSSt6atomicIbE", !18, i64 0}
!18 = !{!"_ZTSSt13__atomic_baseIbE", !19, i64 0}
!19 = !{!"bool", !9, i64 0}
!20 = !{!"_ZTSN7UapkiNS4Cert7CerItem4UrisE", !21, i64 0, !21, i64 24, !21, i64 48, !21, i64 72}
!21 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!25 = !{!"_ZTSN7UapkiNS4Cert12VerifyStatusE", !9, i64 0}
!26 = !{!"_ZTSSt6vectorIPN7UapkiNS10AttrCertIdESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseIPN7UapkiNS10AttrCertIdESaIS2_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS10AttrCertIdESaIS2_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIPN7UapkiNS10AttrCertIdESaIS2_EE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!30 = !{!"_ZTSN7UapkiNS4Cert14CertStatusInfoE", !31, i64 0, !17, i64 4, !13, i64 8, !32, i64 16, !14, i64 24}
!31 = !{!"_ZTSN7UapkiNS4Cert14ValidationTypeE", !9, i64 0}
!32 = !{!"_ZTSN7UapkiNS10CertStatusE", !9, i64 0}
!33 = !{!6, !13, i64 80}
!34 = !{!6, !13, i64 88}
!35 = !{!6, !13, i64 96}
!36 = !{!6, !13, i64 136}
!37 = !{!6, !13, i64 144}
!38 = !{!6, !13, i64 152}
!39 = !{!6, !13, i64 160}
!40 = !{!6, !13, i64 168}
!41 = !{!6, !15, i64 176}
!42 = !{!6, !25, i64 304}
!43 = !{!13, !13, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass